diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-02-19 11:38:16 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-02-19 12:35:02 +0100 |
commit | 532421d208f21531d55554a356dd51105ba718bf (patch) | |
tree | 5a49f44ab94fb2efed4cd97350a23f81721b4688 /xmloff | |
parent | 818b84eb1573b55961cba56baca857806c0e8c8b (diff) |
fdo#52948 fix print-repeated-values=no with formatted values
Factorise the "should this element be printed" decision into an
utility function, which is used by
1) AbstractReportElementLayoutController
(in charge of non-formatted values: string, image, OLE object, ...)
which already obeyed PrintRepeatedValues.
2) TableCellLayoutController
(in charge of formatted values: dates, numbers, ...)
which blissfully ignored PrintRepeatedValues,
but obeyed the display condition.
Rename the inconsistently named
PrintWhenGroupChange
PrintWhenGroupChanges
print-only-when-group-change
print-when-group-change
to
PrintWhenGroupChange / print-when-group-change
Change the meaning of "PrintWhenGroupChange" to "override
PrintRepeatedValues in first occurrence in group". Since this feature
never worked under the old semantics, no loss of feature. Since we
change the XML attribute name, no ascending compatibility problem: it
will be reset to its default value.
Pursuant to the new meaning of PrintWhenGroupChange, change its
default to *true*, which is the sane default.
Change-Id: Idbe8e90565a354f70db222d047b3d51eeddbbb9f
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/xmloff/xmltoken.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/core/xmltoken.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/inc/xmloff/xmltoken.hxx b/xmloff/inc/xmloff/xmltoken.hxx index 13b59fe083fb..e7e886eb72fd 100644 --- a/xmloff/inc/xmloff/xmltoken.hxx +++ b/xmloff/inc/xmloff/xmltoken.hxx @@ -2959,7 +2959,7 @@ namespace xmloff { namespace token { XML_GROUP_ON, XML_FORCE_NEW_PAGE, XML_GROUP_INTERVAL, - XML_PRINT_ONLY_WHEN_GROUP_CHANGE, + XML_PRINT_WHEN_GROUP_CHANGE, XML_REPORT_ELEMENT, XML_LIST_SOURCE, XML_LIST_SOURCE_TYPE, diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx index 03180526de8f..afd52bad83a9 100644 --- a/xmloff/source/core/xmltoken.cxx +++ b/xmloff/source/core/xmltoken.cxx @@ -2955,7 +2955,7 @@ namespace xmloff { namespace token { TOKEN( "group-on", XML_GROUP_ON), TOKEN( "force-new-page", XML_FORCE_NEW_PAGE), TOKEN( "group-interval", XML_GROUP_INTERVAL), - TOKEN( "print-only-when-group-change", XML_PRINT_ONLY_WHEN_GROUP_CHANGE), + TOKEN( "print-when-group-change", XML_PRINT_WHEN_GROUP_CHANGE), TOKEN( "report-element", XML_REPORT_ELEMENT), TOKEN( "list-source", XML_LIST_SOURCE), TOKEN( "list-source-type", XML_LIST_SOURCE_TYPE), |