I finally found the "New" label in the Controller.xcu, it's called
addDirect. Now I have to look for some other ones (Templates and Send)

Thanks,
Joan

-----Mensaje original-----
De: Carsten Driesner [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 17 de noviembre de 2006 13:44
Para: [email protected]
Asunto: Re: [api-dev] Disable "File / New" Menu

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]


This e-mail may contain confidential or privileged information. Any unauthorised
copying, use or distribution of this information is strictly prohibited.

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

Reply via email to