--- On Wed, 6/19/13, Vieri <[email protected]> wrote:

> Hi,
> 
> I'm currently using the file:
> 
> C:\Program Files\LibreOffice
> 4.0\share\registry\data\org\openoffice\Office\commands.xcu
> 
> with the following content:
> 
>   <?xml version="1.0" encoding="UTF-8" ?>
>   <oor:component-data oor:name="Commands" 
>                
>       oor:package="org.openoffice.Office" 
>                
>       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="Execute">
>           <node
> oor:name="Disabled">
>               <node
> oor:name="com.mycompany.a-chosen-unique-name.m3"
> oor:op="replace">
>                
>   <prop oor:name="Command">
>                
>       <value>About</value>
>                
>   </prop>
>              
> </node>
>               <node
> oor:name="com.mycompany.a-chosen-unique-name.m4"
> oor:op="replace">
>                
>   <prop oor:name="Command">
>                
>       <value>Quit</value>
>                
>   </prop>
>              
> </node>
>           </node>
>       </node>
>   </oor:component-data>
> 
> It disables the "Quit" menu item. However, how can I also
> disable the X (top-right corner) to quit the application
> (using Windows)? I want my users to quit only through a
> custom macro call (checks stuff, closes document and quits
> app).

I tried to add this but it doesn't seem to have any effect:

              <node oor:name="com.mycompany.a-chosen-unique-name.m5" 
oor:op="replace">
                  <prop oor:name="Command">
                      <value>CloseWin</value>
                  </prop>
              </node>


Thanks,

Vieri



-- 
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to