Bug 172511 - App UI Configuration settings don't belong in templates
Summary: App UI Configuration settings don't belong in templates
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
26.8.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Templates
  Show dependency treegraph
 
Reported: 2026-06-19 13:24 UTC by Eyal Rozenberg
Modified: 2026-07-30 08:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2026-06-19 13:24:55 UTC
When saving a document as a template, we save with it the large set of configuration items we would save in a regular document. Example from an OTP file:

VisibleAreaTop VisibleAreaLeft VisibleAreaWidth VisibleAreaHeight Views WindowState GridIsVisible GridIsFront IsSnapToGrid IsSnapToPageMargins IsSnapToSnapLines IsSnapToObjectFrame

etc. etc. (95 lines)

These app settings should really not be part of the template; and, specifically, it is almost certainly not the author's intent to impose a bunch of UI settings on whoever it is that's using their template.

So:

* Let's stop saving these values in templates 
* Let's ignore these values when _opening_ templates
Comment 1 Eyal Rozenberg 2026-06-19 13:25:49 UTC
Would appreciate Regina's opinion about this from an "ODF'ish perspective".
Comment 2 Heiko Tietze 2026-06-22 07:43:23 UTC
Reasonable, IMO.
Comment 3 Heiko Tietze 2026-07-30 08:45:43 UTC
We discussed the topic in the design meeting. There is a general agreement to not (always) store locale information in a template. But different use cases might require meta data anyway, and documents have the same issue when it comes to sharing (removing personal data is very limited). The idea is to add a tab to the document properties dialog that allows a way more fine-tuned storage of those attributes, ideally with a preset for templates and documents to quickly switch it on/off. As a first step the unconditional removal when saving as template would be acceptable.

Could be a nice GSoC project.