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


On 09/28/2011 11:00 PM, Rob Snelders wrote:
I'm looking into bug fdo#35973. But I have trouble finding out how I can
add config-variables for Impress. Can anybody give me any pointers?

The configuration data is in module officecfg. There you have schema (.xcs) files describing the static layout of the data tree (think of it as a hierarchy of structs and lists, with data types like bool and string and integer at the leaves) and data (.xcu) files describing the actual values (if they need to be preset). For a new impress flag, say, you would need to add to officecfg/registry/schema/org/openoffice/Office/Impress.xcs. The corresponding XML schema is described at officecfg/registry/component-schema.dtd. (When you modify anything in module officecfg, you also need to rebuild module postprocess, as there various small .xcs/.xcu files are packed together into larger .xcd files. Impress.xcs ends up in a main.xcd, see postprocess/packregistry/makefile.mk.)

Accessing the configuration data at runtime is done via the configmgr UNO services (although there are---rather unnecessary---layers of abstraction above those UNO services themselves in the code base, which the application code typically uses instead.)

Let me know if you have any further questions (I'm sberg at #libreoffice-dev, if you prefer IRC).

-Stephan

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.