Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hello,

I hope I am in the right place here.

We've been using for some time now an extension to deploy some settings
and templates to our users, which are now using LO 4.2.5.4 and 4.3.0.4
under Ubuntu (from the Ubuntu LibreOffice PPA). This works just fine.
Now some users need this extension under Windows, and surprisingly, it
doesn't work, under the same versions of LO.

The extensions includes some templates, adds the directory containing
them to the list of template directories and sets one of the templates
as the default template. Under Ubuntu, the default template is used and
the template directory shows up in the template selector. Under Windows,
the template directory does not show up and when trying to create a new
blank writer document, LO complains that the default template
"...\Standard.ott" is defective and needs to be repaired. Repairing it
is not successful. The very same template can be opened manually just
fine (from the same location where the extension installs it,
C:\Users\<Username>\AppData\Roaming\LibreOffice\4\uno_packages\cache\uno_packages\tmp.XYZ\opendocument\Textdokumente\Standard.ott).

All other aspects of the extension work as expected, i.e. custom
settings and AutoText.

I am attaching what I think are the relevant parts from the extension.
Maybe someone has an idea what is wrong here.

Thanks,
Andreas

Paths.xcu:
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:package="org.openoffice.Office" oor:name="Paths"
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="Paths">
        <node oor:name="Template" oor:op="fuse">
            <node oor:name="InternalPaths">
                <node oor:name="%origin%/opendocument" oor:op="fuse"/>
            </node>
        </node>
        <node oor:name="AutoText" oor:op="fuse">
            <node oor:name="InternalPaths">
                <node oor:name="%origin%/autotext" oor:op="fuse"/>
            </node>
        </node>
    </node>
</oor:component-data>

Setup.xcu:
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry";
xmlns:xs="http://www.w3.org/2001/XMLSchema"; oor:name="Setup"
oor:package="org.openoffice">
 <node oor:name="Office">
  <prop oor:name="FirstStartWizardCompleted" oor:type="xs:boolean">
    <value>true</value>
  </prop>
  <node oor:name="Factories">
   <node oor:name="com.sun.star.text.TextDocument">
    <prop oor:name="ooSetupFactoryTemplateFile" oor:type="xs:string">
     <value>%origin%/opendocument/Textdokumente/HM_Standard.ott</value>
    </prop>
   </node>
  </node>
 </node>
</oor:component-data>



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.