static hkp_Main(pDataIn, pDataOut) { auto nPluginID = 0; auto nOutputMode = 1; auto sOutput = ""; auto sSelText = ""; auto nSelText = 0; auto nMoveCursor = 0; auto nFormatTags = 0; nSelText = hkp_DataGet(pDataIn, "INPUT_SELECTION", &sSelText); if(!nSelText || ("" == sSelText)) { nSelText = 0; } nPluginID = hkp_DataGetInt(pDataIn, "P_ID", 1); if(nPluginID == 1) { sOutput = ""; if(nSelText > 0) { sOutput += sSelText; } sOutput += ""; } hkp_DataAdd(pDataOut, "OUTPUT", sOutput); hkp_DataAddInt(pDataOut, "MODE_OUTPUT", nOutputMode); hkp_DataAddInt(pDataOut, "MODE_MOVE_TO_CARET", nMoveCursor); hkp_DataAddInt(pDataOut, "MODE_PREPROCESS_FORMAT_TAGS", nFormatTags); } static hkp_Register(pDataIn, pDataOut) { hkp_DataSetGlobalSuffix("_1"); hkp_DataAdd(pDataOut, "NAME", "exp˛"); hkp_DataAdd(pDataOut, "SECTION", "MyPlugins"); hkp_DataAdd(pDataOut, "VERSION", "1.0"); hkp_DataAdd(pDataOut, "AUTHOR", "Jean-Paul Boussac"); hkp_DataAdd(pDataOut, "COPYRIGHT_SHORT", "Copyright © BUREAU.COM\\nAll Rights Reserved"); hkp_DataAdd(pDataOut, "EMAIL", "babyssou@ifrance.com"); hkp_DataAdd(pDataOut, "URL_HOME", "http://flyonly.free.fr/"); hkp_DataAdd(pDataOut, "URL_DOWNLOAD", "http://BUREAUCOM.free.fr/html-kit/html.zip"); hkp_DataAddInt(pDataOut, "MODE_SHOW_STATUS", 0); hkp_DataAddInt(pDataOut, "MODE_IN_TEXT_SELECTED", 1); hkp_DataSetGlobalSuffix(""); }