Created attachment 158687 [details] Destination document The (very useful) command Styles -> "Load styles" not only loads styles but also changes the text (at least) of the header in the destination document. To reproduce - Open the attached DestDoc - Select Styles -> Load styles and there "From file" - Select the attached SourceDoc - Select in the dialog "Frame" and "Overwrite" When executing this the header text (and not only the style) in the destination document changes to that in the source document. This behavior makes using a "style master document" from which styles are imported in different other documents (to ensure a common look) impossible. -- Version: 6.4.1.2 Build ID: 1:6.4.1~rc2-0ubuntu0.18.04.1 CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: kf5; Locale: de-DE (en_US.UTF-8); UI-Language: en-US Calc: threaded
Created attachment 158688 [details] Source document
I have to check some other options, which is unclear to me what exactly overrides the header content and not only the style (both are possible). Besides the unclear situation, isn't override obvious? More generally we have to answer how "Load Style" is related to "Load Template". See also bug 130719.
Headers/footers (including their text) is *not* document content; it's part of the definition of page style: it describes how a newly created page looks like. This is NOTABUG.
(In reply to Mike Kaganski from comment #3) > Headers/footers (including their text) is *not* document content; it's part > of the definition of page style: it describes how a newly created page looks > like. This is NOTABUG. "Load style" at Style/Formatting changes the document content. That's at least unexpected and I wouldn't come to the NAB verdict so quickly.
(In reply to Heiko Tietze from comment #4) > "Load style" at Style/Formatting changes the document content. That's at > least unexpected and I wouldn't come to the NAB verdict so quickly. Which "document content" - except for styles (which includes headers and footers)?
My starting point for separating style and content would be the (my) goal behind styles and importing styles: To allow central managed style templates which may be imported in different (maybe existing) documents to allow for an consistent look of all documents importing the style. Then "style" is all what is common to all documents regarding their look and content is what is specific to each document. Examples from my point of view - When a header contains a page number field, this is style - When a header contains "typed in text" (i.e. a documents title) this is content Not importing "typed in text" from a header is also consistent with importing styles from the text part of a document - only the style and not text from a paragraph is imported. So is see this as a bug and a barrier for the way toward style based document management.
(In reply to Ulrich Gemkow from comment #6) No matter if you typed "text" or "field" into the header (or both, like text "page " followed by field PAGE NUMBER followed by text " of " followed by field PAGE COUNT). Headers'/footer's content is part of the style by definition.