[Libreoffice-bugs] [Bug 123440] New: Introduce expert option 'WriteLayerStateAsConfigItem'
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Feb 13 15:39:21 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=123440
Bug ID: 123440
Summary: Introduce expert option 'WriteLayerStateAsConfigItem'
Product: LibreOffice
Version: 6.3.0.0.alpha0+ Master
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: rb.henschel at t-online.de
LibreOffice writes the ODF attributes 'draw:display' and 'draw:protected' of
the 'draw:layer' element since version 6.2. It can read the ODF attributes
since version 6.2. But they are only evaluated if non of the config items
VisibleLayers, PrintableLayers and LockedLayers exists. These config items are
written as proprietary information into the 'office:settings' element.
Because default values for the ODF attributes 'draw:display' and
'draw:protected' are not written, it is not possible to decide from the ODF
attributes, whether it is an old document, which has the layer state in config
items or a new document with default layer state. Only the absence of config
items ensures, that it is a new document with layer state in ODF attributes.
I propose a hidden expert options, that determines whether config items for
layer state are written or not. It provides a smooth transition from using the
proprietary settings to using ODF conform attributes. In the beginning the new
option will have the default value 'true', so that the proprietary settings are
written parallel to the ODF attributes. When version 6.1 is end of life, the
default value can be set to 'false'. Users can then still set it to 'true' in
case they need interoperability with older versions or with Apache OpenOffice.
The option influences only writing of documents. Existing documents are read
the same as before the option exists.
Users who use the file format directly or work with macros can immediately set
the option to 'false' to produce documents without the config items, so that on
loading the ODF attributes are used. In case users remove unused default layers
per macro when saving a document, config items must not be written, because
otherwise ODF attributes and config items are out of sync on reopening the
document in LibreOffice. Removing unused default layers might be desired, if
the document is going to be used in other applications like Calligra Karbon or
Scribus.
If one day the set of default layers are changed, not writing config items is
then necessary too, so that older versions with old set of default layers will
not assign not fitting config items.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190213/c44cc272/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list