I’m developing some LibreOffice extensions. One should only run under Writer, one only under Calc, yet another one only under Impress. I studied and found that “Context” seems to be used to assign it. So I had something like:
<node oor:name="AddonUI">
<node oor:name="OfficeToolbarMerging">
<node oor:name="abc.OfficeToolbarMerging" oor:op="replace">
<node oor:name="N001" oor:op="replace">
<prop oor:name="MergeContext" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
..... </node></node></node></node>
It works under OfficeToolbarMerging
, OfficeMenuBarMerging
, but when it comes to OfficeNotebookBar
it didn’t work. I.e., in the Tabbed UI in all applications, Writer, Calc, Impress, the extension’s icons would appear under Extension tab. (Therefore when clicking some of the buttons in the wrong application it would cause error)
I’m not sure if it is a bug, or was I missing some settings?