Hi Matthias,
On 08/21/07 12:20, Matthias B. wrote:
Where can I find the default file to build on. I've grepped all xcu
files in my OOo installation for ooSetupFactoryTemplateFile and all
occurences are like this
<prop oor:name="ooSetupFactoryTemplateFile">
<value></value>
</prop>
so the value is empty. Are the defaults hardcoded in the binary? If
so, could you tell me where [...]
as far as I know there is no default file. The Writer defaults are
hardcoded in sw/source/core/doc/poolfmt.cxx.
As for packaging: While the change to the xcu files can certainly be
packaged in a uno.pkg, how about the needed template file itself.
Since the location in the package cache is not known, we can't
hardcode its path in our package. Is there a variable that we could
use here, so that we can provide the template file and the xcu
override in the same uno.pkg?
I guess this is more or less dealing with the same problem:
http://www.oooforum.org/forum/viewtopic.phtml?t=14552
What you can try to do is
1. Create an extension containing an xcu file setting
ooSetupFactoryTemplateFile to %origin%/mynewtemplate.ott
2. add your new template file to your extension
3. patch GetStandardTemplate() in sfx2/source/doc/docfac.cxx to use the
macro expander to get the correct path of the new template file.
Hope this helps,
Frank
--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]