/*------------------------------------------------------------------------- br.hpd 1.0 HTML-Kit plugin created on samedi 1 septembre 2001 21:35:11 -------------------------------------------------------------------------*/ /*------------------------------------------------------------------------- HTML-Kit will call the following function whenever user clicks on the the plugin's icon, selects one of its drop-down menu items or otherwise invokes the plugin. -------------------------------------------------------------------------*/ static hkp_Main(pDataIn, pDataOut) { auto nPluginID = 0; auto nOutputMode = 1; auto sOutput = ""; auto nMoveCursor = 0; auto nFormatTags = 0; /*---------------------------------------------------------- Get the 1 based plugin ID. Useful when there are two or more plugins registered within a single file. ----------------------------------------------------------*/ nPluginID = hkp_DataGetInt(pDataIn, "P_ID", 1); /* Button "
" */ if(nPluginID == 1) { /* Menu Item "
" */ 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); } /*------------------------------------------------------------------------- HTML-Kit will call the following function to initialize and register the plugin. -------------------------------------------------------------------------*/ static hkp_Register(pDataIn, pDataOut) { /*------------------------ Button # 1: "
" ------------------------*/ hkp_DataSetGlobalSuffix("_1"); /* Required Information */ hkp_DataAdd(pDataOut, "NAME", "
"); hkp_DataAdd(pDataOut, "SECTION", "MyPlugins"); /* Optional Information */ hkp_DataAdd(pDataOut, "VERSION", "1.0"); hkp_DataAddInt(pDataOut, "MODE_SHOW_STATUS", 0); hkp_DataSetGlobalSuffix(""); }