Weblog entry #89 for dkg
Alas, i can find no documentation about how to change the default page margins system-wide for either Oo.o or LibreOffice. Surely this is something that can be done without a recompile. What am i missing?
Comments on this Entry
[ Send Message | View dkg's Scratchpad | View Weblogs ]
Are you referring to /usr/lib/libreoffice/share/registry/writer.xcd? this file is managed by the system package manager. Can i just drop another .xcd file in /usr/lib/libreoffice/share/registry/ and have it be loaded as well?
if so, what do i need to put in that file to change the margins of the default page?
[ Parent | Reply to this comment ]
Whether additional files you might put there are being sourced, that I don't know.
It would seem like editing writer.xcd should be enough, the reason why I've mentioned main is because it does contain several Margin-related settings.
rjc
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
Which settings are you referring to in particular? How should they be changed?
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
[ Parent | Reply to this comment ]
These settings are mostly personal and stored in a specific file registrymodifications.xcu. So, if we replace this file after installation with a similar file with the correct above settings, we can control the selected feature. ...
Toolbars and icons are also personal, but cannot be transferred by means of copying. For example, custom Writer toolbars are in "%userprofile%\Application Data\LibreOffice\3\user\config\soffice.cfg\modules\swriter\toolba r". ...
In some situations, such as decreasing Macro security levels on a silent install, or configuring an option for the installation, can be carried by placing a XML file in the right place, after LibreOffice is installed and with the help of a script or automated tool.
For example the following XML file with .xcd extension can be placed in
%PROGRAMFILES%\LibreOffice 3.5\share\registry
and will set macro security level to Medium
OOo Admin Guide says re: paths:
To Add a Template For All Users of a OpenOffice.org Network Installation
1 Become root.
2 Copy the template to the network-install-dir/share/template/ directory.
To Add a Template to a Workstation Installation of OpenOffice.org
1 Become root.
2 Copy the template to the ooo-user-dir/user/template/ directory on the workstation.
Also see libreoffice-users 9 Feb 2012 thread re: Default path for templates:
$USER_LO_DIR/..../user/template are personal templates, only for each user.
$LO_INST_DIR/..../template/common are collective templates, for all user of
system.
> The path he needs to use ends in .../template/common because his LO
> installation is on a server. This permits people from other computers to
> use LO and the same templates.
> If templates are placed in the common folder, they will not be
> seen. A folder must first be created in the common folder and the
> templates placed in the created folder. (See my earlier post.)
> There is another path for templates which is in the user's LO
> folder. This path ends in .../user/template. Templates placed in the
> template folder of this path will be seen. Templates in this path are
> only visible on one computer which is why this path would not work for
> him.
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
Also, none of the text you've provided suggests anything about making a given template the default template without tampering with end user profiles, which i've already stated i do not want to do (based on years of sysadmin practice). Do you have any suggestions for how to set the default template for all users?
[ Parent | Reply to this comment ]
You are correct. Doing as you propose does not seem to be supported, and the recommendations are to script changes to the user files. Do note, though, that even should you work around that and fiddle with main.xcd or writer.xcd to affect global settings, the user can still at any time override it by creating his own user settings and make any template he wants the default--so it's not foolproof unless you disable the user from accessing/modifying the template settings. I suppose main.xcd makes sense, unless you care only about writer, but do not know exactly what to put in there.
But first, the template has to be accessible to all users of a network install, and what I posted discusses that a bit. Apparently, you need a dir in a dir to make it show with a category name from the global location.
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
I'm perfectly fine with users overriding the sysadmin-declared defaults. They're called "defaults", and not "forced overrides". In fact, wanting to respect user preferences is the main reason i don't want to fiddle with each user's profile directory.
I guess i'll start by making sure that i can make a template visible to all users as a first step. I'm going to hold out hope that the LO or Oo.o teams haven't been silly enough to prevent an admin from tuning the default template for all users from the central installation.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
See here http en.libreofficeforum.org/node/1760
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
Unfortunately, that link appears to be related to the default save format -- nothing to do with page margins :(
[ Parent | Reply to this comment ]
[1] http www.linuxtag.org/2012/fileadmin/www.linuxtag.org/slides/Thorsten% 20Behrens%20-%20LibreOffice%20configuration%20management%20-%20To ols_%20approaches%20and%20best%20practices.p331.pdf
[2] http users.freedesktop.org/~thorsten/extensions/ooconfig.oxt
[ Parent | Reply to this comment ]
[ Send Message | View dkg's Scratchpad | View Weblogs ]
Also: i'm not against a user who wants to choose their own default template doing so; i just want to change the system default for those users who never tweak it themselves. So i don't think oor:finalized="true" is relevant (or desirable, for that matter).
[ Parent | Reply to this comment ]
XML Spec, Sec 2.3 page-master, 3.11.19 L&R margins, 3.11.22 T&B margins
https www.openoffice.org/xml/xml_specification.pdf
Extension Manager use
http wiki.openoffice.org/wiki/Documentation/Administration_Guide/Using _Package_Manager
Thorsten Behren's slides on LibO config management
http www.linuxtag.org/2012/fileadmin/www.linuxtag.org/slides/Thorsten Behrens - LibreOffice configuration management - Tools_ approaches and best practices.p331.pdf
Florian Effenberger's slides on corporate deployment of OOo
http www.linux-kongress.org/2010/slides/ooo_netzwerk-effenberger.pdf
Florian Effenberger's article on OOo config with XCU files
German: http www.linux-magazin.de/Online-Artikel/Positive-Einstellung
English: http translate.google.com/translate?sl=auto&tl=en&js=n&pre v=_t&hl=en&ie=UTF-8&eotf=1&u=http%3A%2F%2Fwww.lin ux-magazin.de%2FOnline-Artikel%2FPositive-Einstellung
Not sure it's useful but for good measure...Template Files
http wiki.openoffice.org/wiki/Documentation/Administration_Guide/Addin g_Template_Files
[ Parent | Reply to this comment ]
[ Send Message ]
Regards,
rjc
[ Parent | Reply to this comment ]