Dear all,

Need help in getting pass this compliation error!  Thanks!

I have defined my own ITEM_THING in svx\inc\globlmn_tmpl.hrc.  I have added appropriate  #define in  svx\inc\svxids.hrc.  (I copy the ITEM_TRANSLITERATE_MENU.  Modify it.  Call it ITEM_THING.)

IN sw module, I have modified sw\source\ui\inc\swmn_tmpl.hrc.  In BASE_TEXT_POPUP_MENU_BEGIN, after ITEM_TRANSLITERATE_MENU, I add ITEM_THING.

#defi ne BASE_TEXT_POPUPMENU_BEGIN \
{                                               \
    ItemList =                                  \
    {                                           \
        MN_RESET                                \
        MenuItem { Separator = TRUE; } ;        \
        MN_TEXT_ATTR                            \
        MenuItem { Separator = TRUE; } ;        \
        MN_TXT                                  \
        MN_NUMBERING                            \
        ITEM_TRANSLITERATE_MENU                 \
        // Modify
        ITEM_THING                              \
      & nbsp; // end Modify
        MenuItem { Separator = TRUE; } ;

Compile and get error.

Result:
- Line 808 refers to ITEM_GBB5_MENU in BASE_TEXT_POPUPMENU_BEGIN above.
- Line 810 refers to the Seperator line above.

MenuItem
{
    Identifier = ( (10000 + 0) + 1058 ) ;
    HelpID = ( (10000 + 0) + 1058 ) ;
    Command = ".uno:MyMenu" ;
    Text [ de ] = "My Conversion" ;
    Text [ en-US ] = "My Conversion";
    SubMenu = Menu
    {
        ItemList =
        {
            MenuItem
            {
                Identifier = ( (10000 + 0) + 1057 ) ;
                Command = ".uno:ToRed" ;
                HelpID = ( (10000 + 0) + 1057 ) ;
                Text [ de ] = "~Red" ;
                Text [ en-US ] = "~Red" ;
            };
            MenuItem
            {
                Identifier = ( (10000 + 0) + 1056 ) ;
                Command =".uno:ToBlue" ;
                HelpID = ( (10000 + 0) + 1056 ) ;
                Text [ de ] = "~Blue";
                Text [ en-US ] = "~Blue";
            };
        };
    };
    Text[ ja ] = "My Conversion";
    Text[ ko ] = "My Conversion";
    Text[ zh-CN ] = "My Conversion";
    Text[ zh-TW ] = "My Conversion";
};
   ^ (The ^ points to the v in "My Conversion" in Text[zh-CN] above.)
f4099: "..\..\..\wntmsci10.pro\inc\swmn.hrc", line 808: Warning in the object (Type: MenuItem):
Global resources should have an identifier >= 256.
.
MenuItem
{
    Identifier = ( (10000 + 0) + 1058 ) ;
    HelpID = ( (10000 + 0) + 1058 ) ;
    Command = ".uno:MyMenu" ;
    Text [ de ] = "My Conversion" ;
    Text [ en-US ] = "My Conversion";
    SubMenu = Menu
    {
        ItemList =
        {
            MenuItem
            {
                Identifier = ( (10000 + 0) + 1057 ) ;
                Command = ".uno:ToRed" ;
                HelpID = ( (10000 + 0) + 1057 ) ;
                Text [ de ] = "~Red" ;
                Text [ en-US ] = "~Red" ;
            };
            MenuItem
            {
                Identifier = ( (10000 + 0) + 1056 ) ;
                Command =".uno:ToBlue" ;
                HelpID = ( (10000 + 0) + 1056 ) ;
                Text [ de ] = "~Blue";
                Text [ en-US ] = "~Blue";
            };
        };
    };
    Text[ ja ] = "My Conversion";
    Text[ ko ] = "My Conversion";
    Text[ zh-CN ] = "My Conversion";
    Text[ zh-TW ] = "My Conversion";
};
   ^ (The ^ points to the v in "My Conversion" in Text[zh-CN] above.)
f650: "..\..\..\wntmsci10.pro\inc\swmn.hrc", line 808: Error in the object (Type: MenuItem):
An identifier needs to be specified.

MenuItem { Separator = TRUE; };
          ^
f4099: "..\..\..\wntmsci10.pro\inc\swmn.hrc", line 810: Warning in the object (Type: MenuItem):

Global resources should have an identifier >= 256.
.
MenuItem { Separator = TRUE; } ;
          ^
f650: "..\..\..\wntmsci10.pro\inc\swmn.hrc", line 810: Error in the object (Type : MenuItem):
An identifier needs to be specified.
....................
f256: Error: !! 2 Error found!!
Error starting rsc2 compiler
dmake:  Error code 1, while making '../../../wntmsci10.pro/srs/app.srs'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /cygdrive/e/OOo_2.0.0rc3_src/sw/source/ui/app

_______________________________________
褩����洘 - Yahoo! Messenger
憩呾斕�]衄奻鋒ㄛ斕腔攬衭゛褫眕隱狟��洘緻斕ㄛ��斕奻鋒�r憩夔蕾撈艘善ㄛ¦睡挲��飲�衿萯均�
http://messenger.yahoo.com.hk

Reply via email to