http://openoffice.org/bugzilla/show_bug.cgi?id=117825


[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|open-import                 |code




--- Comment #3 from [email protected]  2011-04-29 17:28:43 ---
this is a most interesting critter.

what actually happens in issue 104949 is not at all obvious:
the problem is that the report builder does very weird
things with variables.
for formulas used in header/footer, a variable will be declared,
the header/footer will contain a <text:variable-get> element,
and every result in the report body will have in its first cell
a hidden <text:variable-set> field that sets the variable to
its current value.

 <text:p>
  <text:variable-set text:name="auto_report_1" text:display="none"
text:formula="ooow:Date(2011;04;29)" office:date-value="2011-04-29T00:00:00.0Z"
office:value-type="date"/>
  here is the formula result of the cell as text
 </text:p>

in the case of the bugdoc at issue 104949 this is always the
same value, but perhaps this is not always so; if the value
were different in different results, then the
<text:variable-get> in the header/footer would display
a value set on the current page.

now the problem in issue 104949 is that these hidden
<text:variable-set> fields prevent the table cells that
contain them from displaying their formula result; the fields
cause them to be treated as text cells instead.
so a horribly ugly hack was introduced in swtable.cxx to treat
cells that contain a single paragraph with no special content
_except_ <text:variable-set> fields not as text cells, so
their content will be replaced with the formula result.
this is what causes the regression described in this issue.

now, ripping out the hideous hack would of course re-introduce
issue 104949, which would be a regression to OOo 3.3.

perhaps it would be possible to put the variable-set fields
into a dummy hidden table cell, but that seems like a lot of
effort, and i'm not sure it is possible.

for OOo 3.4 it would perhaps be appropriate to restrict the
ugly hack a bit so it causes less collateral damage.

-- 
Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification
from Bugzilla. Please log into the website and enter your comments.
---------------------------------------------------------------------
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
-- 
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

Reply via email to