| View previous topic :: View next topic |
| Author |
Message |
bigstu General User

Joined: 10 Mar 2005 Posts: 7
|
Posted: Tue Sep 07, 2010 7:36 am Post subject: |
|
|
I just tried something and so far it looks like its working but if it doesn't sorry.
Basically what I did was I downloaded the disablefirststartwzd package for 3.2 I had ran open office and changed my settings for the default save format already for that user, I took the settings for that section out of the setup.xcu file (the entire factories node) and I inserted it into the setup.xcu file in the plugin, the plugin seems to just be a zip file. Then I took the plugin and ran unopck add --shared <package>
I deleted the users openoffice profile data prior to this, so the next time I ran it, didn't ask me to do the first run but it did ask if I wanted to register which was okay and I the default file settings took! i tried also inserting the recovery.xcu but that didn't take, not a problem.
This is what I modified the setup.xcu inside the plugin to look like:
| Code: |
<?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="ooSetupInstCompleted" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="LicenseAcceptDate" oor:type="xs:string">
<value>2011-12-30T08:14:11</value>
</prop>
<prop oor:name="FirstStartWizardCompleted" oor:type="xs:boolean">
<value>true</value>
</prop>
<!-- borrowed from user setup.xcu-->
<node oor:name="Factories">
<node oor:name="com.sun.star.presentation.PresentationDocument">
<prop oor:name="ooSetupFactoryDefaultFilter" oor:type="xs:string">
<value>MS PowerPoint 97 Vorlage</value>
</prop>
</node>
<node oor:name="com.sun.star.sheet.SpreadsheetDocument">
<prop oor:name="ooSetupFactoryDefaultFilter" oor:type="xs:string">
<value>MS Excel 97 Vorlage/Template</value>
</prop>
</node>
<node oor:name="com.sun.star.text.TextDocument">
<prop oor:name="ooSetupFactoryDefaultFilter" oor:type="xs:string">
<value>MS Word 97</value>
</prop>
</node>
</node>
<!-- END borrowed code-->
</node>
</oor:component-data>
|
|
|
| Back to top |
|
 |
grayceworks Newbie

Joined: 03 Mar 2011 Posts: 1
|
Posted: Thu Mar 03, 2011 1:40 pm Post subject: Default File Formats on Linux? |
|
|
I have OOo on an opensuse 11.3 setup. I would like to change the default save formats to Microsoft Office 97/2000/XP for all the applicable formats, because most of the users will be opening, saving, and sending documents that used that format.
Any idea how to do this for all user accounts in linux?
Thanks! |
|
| Back to top |
|
 |
ftack Moderator


Joined: 27 Jan 2003 Posts: 3102 Location: Belgium
|
Posted: Sun Mar 13, 2011 4:03 am Post subject: |
|
|
It is a user setting. Thus, the setting will be stored in the user profile of OOo (.openoffice or .libreoffice). If you want to automate this, you will need to find the place where the option is stored. Alternatively, you could maintain a template profile with the adequate settings, then copy that over to the user profile (an change ownership to that user). _________________ --
GNU/Linux (Ubuntu) |
|
| Back to top |
|
 |
messiii General User

Joined: 25 Apr 2013 Posts: 13
|
Posted: Thu Apr 25, 2013 12:40 am Post subject: |
|
|
Thank you for sharing, I will always remember.  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|