Jayant B M wrote:
Hi,
I added a menuitem to calc sources. The menuItem is functional but am
not able to get the "string name", It shows blank menu !!!

Here is all I did :

sc/uiconfig/scalc/menubar/menubar.xml

sfx2/inc/sfxsids.hrc (new ID)
sfx2/sdi/sfx.sdi (function signature)
sfx2/sdi/viwslots.sdi (getState and exec methods)

svx/inc/globlmn_tmpl.hrc (UNO name)

/*appropriate source file in sfx*/
sfx2/source/view/viewsh.cxx (getState and execState)
sfx2/source/dialog/myimplementationFile.cxx  ()
/*-------------------------------------*/

why is the menu Name not appearing any hint ?? One option is menubar.xml
I can "hard code" value="My Menu" which is not good :( !!!!

Regards,
Jayant



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Hi Jayant,

menubar.xml is the right way, but set an empty string as label here.

Then you add a new node to:

/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu

like this:

<node oor:name=".uno:InsertCell" oor:op="replace">
    <prop oor:name="Label" oor:type="xs:string">
        <value xml:lang="de">~Zellen...</value>
        <value xml:lang="en-US">~Cells...</value>
    </prop>
</node>

You can also use /officecfg/.../GenericCommands.xcu, if you want to you this command in more than one application.

I hope this can help.
Regards Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to