[Libreoffice-bugs] [Bug 128041] conditional text in header/footer fields turned static

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Oct 23 09:28:01 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=128041

--- Comment #7 from ajlittoz <page74010-sf at yahoo.fr> ---
I reread the documentation.

The problem is not in what can be put into conditional text/paragraph/section
but in the condition itself in header/footer context.

It isn't clear at all WHEN this condition is computed.

I "expect" (this is where I might be wrong) that conditions are computed
whenever we need to insert the header or footer in a page. It is obvious this
is what happens with field content: field is inserted into its formatted
location and, since it not text, its value is called for and replaces the field
object.

Apparently (this is how I understand the behaviour, conditions are evaluated
the FIRST TIME the header or footer is met and some form of parsing is
performed on it. This allows to keep only a simplified representation with only
text and fields (conditions resolved and removed). This parsed form is cached
and used when the header or footer is needed.

If my interpretation is correct, I disagree with this design because the header
or footer only reflects the state of variables (in the condition) existing in
the first use of the page style. This restriction is not mentioned in the
documentation.

I'd like the conditions to be treated exactly like fields are treated: use the
value prevalent at time of insertion into the output page.

It is not an issue with ODF format because the header or footer contents
already describes the conditional test, at least to be able to reload and
display the document. It is a matter of implementation: as I said, the choice
is between computing the condition the first time it is met in the header or
footer, or at every occurrence of header/footer insertion.

Only inspection of source program could tell which course was followed.
Unfortunately, I'm unable to do that.

Status RESOLVED/WORKSFORME does not answer the issue. Please reconsider the
above arguments.

-- 
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/20191023/af5b8db2/attachment.html>


More information about the Libreoffice-bugs mailing list