Chris H wrote:
Hello,

I would like to remove some items from the File --> New sub-menu such as Formula or XML Form Document. I have removed the unwanted mX (m1, m2, etc) entries from Common.xcu and Common-MODULENAME.xcu files. I am left with m0 through m4, with m3 being a separator. Everything seems to be right but all of the sub-menu items still appear. I tried clearing the all the cache files under C:\Documents and Settings\UserName\etc. but that did not help.

Is there a .res file or something else I need to do to remove these sub-menu entries?

Hi Chris,

Your solution is correct and should work. I have just tried it successfully. You can find the files I changed as attachment, please copy them to <Office installation>/share/registry/modules/org/openoffice/Office/Common and restart the Office. No need to clear the cache. The entries "XML Form Document" and "Formula" shouldn't be part of the "File - New" menu.

If you need further help, please write a personal e-mail and attach your xcu files. I will try to find the problem.

Regards,
Carsten

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

<oor:component-data oor:name="Common" oor:package="org.openoffice.Office" 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="Menus">
		<node oor:name="New">
		</node>
	</node>
</oor:component-data>

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

<oor:component-data oor:name="Common" oor:package="org.openoffice.Office" 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="Menus">
		<node oor:name="New">
			<node oor:name="m0" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>private:factory/swriter</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~Text Document</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_default</value>
				</prop>
			</node>
			<node oor:name="m6" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>private:factory/swriter/web</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~HTML Document</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_default</value>
				</prop>
			</node>
			<node oor:name="m8" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>private:factory/swriter/GlobalDocument</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">M~aster Document</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_default</value>
				</prop>
			</node>
			<node oor:name="m11" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>private:factory/swriter?slot=21051</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~Labels</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_default</value>
				</prop>
				<prop oor:name="ImageIdentifier" oor:type="xs:string">
					<value>private:image/3255</value>
				</prop>
			</node>
			<node oor:name="m12" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>private:factory/swriter?slot=21052</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">B~usiness Cards</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_default</value>
				</prop>
				<prop oor:name="ImageIdentifier" oor:type="xs:string">
					<value>private:image/3255</value>
				</prop>
			</node>
		</node>
		<node oor:name="Wizard">
			<node oor:name="m0" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>service:com.sun.star.wizards.letter.CallWizard?start</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~Letter...</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_self</value>
				</prop>
				<prop oor:name="ImageIdentifier" oor:type="xs:string">
					<value>private:image/3216</value>
				</prop>
			</node>
			<node oor:name="m1" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>service:com.sun.star.wizards.fax.CallWizard?start</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~Fax...</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_self</value>
				</prop>
				<prop oor:name="ImageIdentifier" oor:type="xs:string">
					<value>private:image/3216</value>
				</prop>
			</node>
			<node oor:name="m2" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>service:com.sun.star.wizards.agenda.CallWizard?start</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~Agenda...</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_self</value>
				</prop>
				<prop oor:name="ImageIdentifier" oor:type="xs:string">
					<value>private:image/3216</value>
				</prop>
			</node>
			<node oor:name="m7" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>service:com.sun.star.wizards.web.CallWizard?start</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~Web Page...</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_self</value>
				</prop>
				<prop oor:name="ImageIdentifier" oor:type="xs:string">
					<value>private:image/3216</value>
				</prop>
			</node>
			<node oor:name="m12" oor:op="replace">
				<prop oor:name="URL" oor:type="xs:string">
					<value>macro:///Euro.AutoPilotRun.StartAutoPilot</value>
				</prop>
				<prop oor:name="Title">
					<value xml:lang="en-US">~Euro Converter...</value>
				</prop>
				<prop oor:name="TargetName" oor:type="xs:string">
					<value>_self</value>
				</prop>
				<prop oor:name="ImageIdentifier" oor:type="xs:string">
					<value>private:image/3216</value>
				</prop>
			</node>
		</node>
	</node>
</oor:component-data>


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

Reply via email to