Hi,
I’m trying to deliver a template within an extension and directly set the
template as default-template.
The Setup.xcu code:

[…]
       <node oor:name="Office">
                <node oor:name="Factories" >
                        <node oor:name="com.sun.star.text.TextDocument">
                                <prop oor:name="ooSetupFactoryTemplateFile" 
oor:type="xs:string">
                                        
<value>%origin%/templates/standard.ott</value>
                                </prop>
                        </node>
                </node>
        </node>
[…]

The Problem is that everything works fine except of one thing, when I open a
new file I get an error message. OpenOffice opens the correct default
template from the extension and nothing seems to be wrong except of that
message I get: (sorry it’s german – the message is: “general error”) 
http://old.nabble.com/file/p28827026/allgemeiner_fehler.jpg 
I really don’t know what to do.
I’ve tried to change the template, or the location nothing worked

Everything works when I change the location of the template and use an
absolute path, or another placeholder like $(user) but I need to deliver the
template in the extension and use it from the extension

The only problem is the usage of %origin% to find my extension and the
template in the extension.

Another thing is that %origin% works in other xcu files, for example in a
toolbar I made, to find the icons I used %origin% and it works very well,
only in Setup.xcu I get this “error”-message.

I’m using WinXP (SP3) and OpenOffice.org 3.2

Thanks for your help
Yours sponmonster

-- 
View this message in context: 
http://old.nabble.com/Problems-using--origin--in-Setup.xcu-tp28827026p28827026.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to