Hi all, I have some troubles with the display of the new added menu item. For examlpe, I want to add a menu item "WebHtml" in the file menu. I modified the correlative files and added the necessary codes in those files. The result is: The place of new menu item is there but the "WebHtml" is missing. The files and added codes that I modified are as follows: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ svx\inc\globlmn_tmpl.hrc #define ITEM_FILE_OPENDOC \ Identifier = SID_OPENDOC ; \ Command = ".uno:Open" ; \ HelpID = SID_OPENDOC ; \ Text [ de ] = "��~ffnen..." ; \ Text [ en-US ] = "~Open..." ;\ Text [ x-comment ] = " "; \ /*******************************************added begin*/ \ #define ITEM_FILE_WEBHTML \ Identifier = SID_WEBHTML ; \ Command = ".uno:WebHtml" ; \ HelpID = SID_WEBHTML ; \ Text [ de ] = "Web ~Html..." ; \ Text [ en-US ] = "Web ~Html..."; \ Text [ x-comment ] = "Preview Web ~Html..." ; \ /*******************************************added end*/ \ #define ITEM_FILE_AUTOPILOT \ MenuItem\ {\ Identifier = SID_AUTOPILOTMENU ; \ Command = ".uno:AutoPilotMenu" ; \ HelpID = SID_AUTOPILOTMENU ; \ Text [ de ] = "~Assistent" ; \ Text [ en-US ] = "A~utoPilot" ; \ Text [ x-comment ] = " ";\ }; -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sfx2\inc\sfxsids.hrc #define SID_MAIL_SEND (SID_SFX_START + 364) #define SID_WEBHTML (SID_SFX_START + 393)/*added*/ #define SID_MAIL_FILE (SID_SFX_START + 365) -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sfx2\sdi\sfx.sdi SfxObjectItem Open SID_OPENDOC (SfxStringItem URL SID_FILE_NAME,SfxStringItem FilterName SID_FILTER_NAME,SfxStringItem OpenFlags SID_OPTIONS,SfxStringItem Password SID_PASSWORD,SfxStringItem FilterOptions SID_FILE_FILTEROPTIONS,SfxInt16Item Version SID_VERSION,SfxStringItem Referer SID_REFERER) [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = TRUE, MenuConfig = TRUE, StatusBarConfig = FALSE, ToolBoxConfig = TRUE, GroupId = GID_APPLICATION; ] /******************************************/add begin SfxObjectItem WebHtml SID_WEBHTML () [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = TRUE, MenuConfig = TRUE, StatusBarConfig = FALSE, ToolBoxConfig = TRUE, GroupId = GID_FORMAT; ] /*********************************************/added end //-------------------------------------------------------------------------- SfxObjectItem OpenHyperlink SID_OPENHYPERLINK (SfxStringItem URL SID_FILE_NAME,SfxStringItem FilterName SID_FILTER_NAME,SfxStringItem OpenFlags SID_OPTIONS,SfxStringItem Password SID_PASSWORD,SfxStringItem FilterOptions D_FILE_FILTEROPTIONS,SfxInt16Item Version SID_VERSION,SfxStringItem Referer SID_REFERER) [ /* flags: */ AutoUpdate = FALSE, Cachable = Cachable, FastCall = FALSE, HasCoreId = FALSE, HasDialog = TRUE, ReadOnlyDoc = TRUE, Toggle = FALSE, Container = TRUE, RecordAbsolute = FALSE, RecordPerSet; Asynchron; /* config: */ AccelConfig = FALSE, MenuConfig = FALSE, StatusBarConfig = FALSE, ToolBoxConfig = FALSE, GroupId = GID_APPLICATION; -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ sw\uiconfig\swriter\menubar\menubar.xml <menu:menuitem menu:id=".uno:Reload"/> <menu:menuitem menu:id=".uno:VersionDialog"/> <!-- added begin --> <menu:menuitem menu:id=".uno:WebHtml" /> <!--added end --> <menu:menuseparator/>
---- 刘涛 Beijing Redflag CH2000 Software Co., Ltd. Address: 北京亦庄经济技术开发区地盛北街 1号A区3号楼 Postalcode: 100176 Tel: 8610-58022828-605 Mobile: 13126869000 Email: [EMAIL PROTECTED]