Alamo Vallejo, Joan wrote:
Hi Carsten,
I want to remove them... I didn't have time to prove Tobias solution yet
(yes, it was java ;) )

I'll let you know if it works

Hi Joan,

Ok, here is a very simple solution to remove the sub-menu from "File - New". Just save the following snippet into a file called "Controller.xcu". Copy this file to the following folder inside your home OpenOffice folder "user/registry/data/org/openoffice/Office/UI". Under Unix home is your openoffice folder in your home directory. Under Windows normally "Documents and Settings/<username>/Application Data/OpenOffice".

The configuration file just removes the popup menu controller registration. Without the popup menu controller, the sub-menu gets removed.

Regards,
Carsten

------
<?xml version='1.0' encoding='UTF-8'?>

<oor:component-data oor:name="Controller" oor:package="org.openoffice.Office.UI" xmlns:install="http://openoffice.org/2004/installation"; xmlns:oor="http://openoffice.org/2001/registry"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <node oor:name="Registered">
                <node oor:name="PopupMenu">
                        <node oor:name="c11" oor:op="remove">
                        </node>
                </node>
                <node oor:name="ToolBar">
                </node>
                <node oor:name="StatusBar">
                </node>
        </node>
</oor:component-data>

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

Reply via email to