Bug 132747 - VIEWING: ViewMenu uno:ToolbarsMenu can't hide / disappear
Summary: VIEWING: ViewMenu uno:ToolbarsMenu can't hide / disappear
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Master old -3.6
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-06 01:05 UTC by Benjamin
Modified: 2020-09-04 09:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Writer addon - supposed to hide toolbars menu in view menu. (1.23 KB, application/vnd.openofficeorg.extension)
2020-05-06 01:05 UTC, Benjamin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin 2020-05-06 01:05:06 UTC
Created attachment 160407 [details]
Writer addon - supposed to hide toolbars menu in view menu.

Hi devs and thanks for your work.

When i make addon to merge configuration for try to hide in view Menu, the toolbars Menu, it can't be hide.

I can complety hide view menu, but not just toolbars menu.
Comment 1 Buovjaga 2020-09-04 09:25:39 UTC
Pasting here the AddonsUI.xcu contents, so people can study it quicker:

<?xml version="1.0" ?>
<oor:component-data oor:name="Addons" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <node oor:name="AddonUI">
    <node oor:name="OfficeMenuBarMerging">
        <node oor:name="" oor:op="replace">
        <node oor:name="" oor:op="replace">
            <prop oor:name="MergeCommand">
                <value>Remove</value>
            </prop>
            <prop oor:name="MergeFallback">
                <value>Ignore</value>
            </prop>
            <prop oor:name="MergePoint">
                <value>.uno:ViewMenu\.uno:ToolbarsMenu</value>
            </prop>
            <prop oor:name="MergeContext">
                <value>com.sun.star.text.TextDocument</value>
            </prop>
        </node>
        </node>
    </node>
  </node>
</oor:component-data>

I can't comment on it myself. I only confirm that nothing is hidden in current master or version 3.3.0, if I install it.
Comment 2 Benjamin 2020-09-04 09:46:35 UTC
Uno was change. I don't know if is a normal thing.

This code work :
                <prop oor:name="MergePoint">
                    <value>.uno:ViewMenu\.uno:AvailableToolbars</value>
                </prop>
Comment 3 Maxim Monastirsky 2020-09-04 09:57:09 UTC
Yes, using the correct command (.uno:AvailableToolbars) should work. The command was changed in 2004; No idea where did you get the old one.