M
Mike Shilov
Hi,
I'm developing an add-in for MS Office which extends ribbon in the following
way:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="GetImage" onLoad="OnRibbonLoad">
<ribbon>
<tabs>
<tab idMso="TabHome">
<group id="PapirusGroup" label="Papirus">
<splitButton id="SaveSplitButton" size="large"
getEnabled="GetSaveButtonEnabled">
<menu id="SaveMenu" label="Save" itemSize="normal">
<button id="SaveMenuButton" image="save.png" label="Save to
Papirus" onAction="SaveCommand" screentip="Saves the document on papirus.net"
/>
<button id="SaveAsMenuButton" label="Save to Papirus As"
onAction="SaveAsCommand" screentip="Saves the document on papirus.net under a
new name" getEnabled="GetSaveAsButtonEnabled"/>
</menu>
</splitButton>
</group>
</tab>
</tabs>
Everything is fine but when I go to File > Options > Customize Ribbon (in
any Office application) I expect to see "Papirus" group in "Home" tab with
"Save" menu having only one "Save to Papirus" and one "Save to Papirus As"
subitems in it. But instead I get "Save to Papirus" item doubled under the
"Save" menu.
I know that if I move "SaveMenuButton" from menu right into the splitButton
then I'll get rid of that doubling but I need these two options in the menu.
Please help!
I'm developing an add-in for MS Office which extends ribbon in the following
way:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="GetImage" onLoad="OnRibbonLoad">
<ribbon>
<tabs>
<tab idMso="TabHome">
<group id="PapirusGroup" label="Papirus">
<splitButton id="SaveSplitButton" size="large"
getEnabled="GetSaveButtonEnabled">
<menu id="SaveMenu" label="Save" itemSize="normal">
<button id="SaveMenuButton" image="save.png" label="Save to
Papirus" onAction="SaveCommand" screentip="Saves the document on papirus.net"
/>
<button id="SaveAsMenuButton" label="Save to Papirus As"
onAction="SaveAsCommand" screentip="Saves the document on papirus.net under a
new name" getEnabled="GetSaveAsButtonEnabled"/>
</menu>
</splitButton>
</group>
</tab>
</tabs>
Everything is fine but when I go to File > Options > Customize Ribbon (in
any Office application) I expect to see "Papirus" group in "Home" tab with
"Save" menu having only one "Save to Papirus" and one "Save to Papirus As"
subitems in it. But instead I get "Save to Papirus" item doubled under the
"Save" menu.
I know that if I move "SaveMenuButton" from menu right into the splitButton
then I'll get rid of that doubling but I need these two options in the menu.
Please help!