[Solved] Can't figure out how to disable File > Open

Discuss the word processor
Post Reply
dpcowx
Posts: 12
Joined: Wed Jul 29, 2009 10:05 pm

[Solved] Can't figure out how to disable File > Open

Post by dpcowx »

Hi gang,

I've followed the instructions in the OO 3.1 Administrators Guide at http://wiki.services.openoffice.org/w/i ... o3.1.0.pdf, but I still can't figure out how to disable the File > Open dialog menu item. Here's what I have in my Commands.xcu file; which I've placed in C:\Program Files\OpenOffice.org 3\share\registry\data\org\openoffice\Office\Commands.xcu.

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>
<oor:component-schema oor:name="Commands"
oor:package="org.openoffice.Office" xml:lang="en-US"
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="Open" oor:op="replace">
        <prop oor:name="Command">
          <value>Open</value>
        </prop>
      </node>
    </node>
  </node>
</oor:component-schema>
I've confirmed that this file is in fact being read b/c when I put junk in it, OOo fails on startup. However, with the contents as show above, the File > Open option remains and I can still open files.

please help!

Cheers,
Daniel
Last edited by dpcowx on Tue Aug 11, 2009 5:16 am, edited 1 time in total.
dpcowx
Posts: 12
Joined: Wed Jul 29, 2009 10:05 pm

Re: Can't figure out how to disable File > Open

Post by dpcowx »

I figured it out. Silly mistake. Should have been:

Code: Select all

<?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="Open" oor:op="replace">
        <prop oor:name="Command">
          <value>Open</value>
        </prop>
      </node>      
    </node>
  </node>
</oor:component-data>
Post Reply