diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-02-19 11:38:16 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-02-26 07:30:56 +0000 |
commit | 3b605c98a1e6385211e1f2ab76a1b86202f988cb (patch) | |
tree | ebfe72a5ef70e40e693a09aaadf5e7c7c937fcba /reportdesign/source/core/inc/ReportControlModel.hxx | |
parent | 5b14af735a87ef5b38909f443465c123591c74fa (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
Reviewed-on: https://gerrit.libreoffice.org/2255
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'reportdesign/source/core/inc/ReportControlModel.hxx')
-rw-r--r-- | reportdesign/source/core/inc/ReportControlModel.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/core/inc/ReportControlModel.hxx b/reportdesign/source/core/inc/ReportControlModel.hxx index c327cfc3f754..43a8f73f89ca 100644 --- a/reportdesign/source/core/inc/ReportControlModel.hxx +++ b/reportdesign/source/core/inc/ReportControlModel.hxx @@ -100,7 +100,7 @@ namespace reportdesign ,aComponent(_xContext) ,m_pOwner(_pOwner) ,m_rMutex(_rMutex) - ,bPrintWhenGroupChange(sal_False) + ,bPrintWhenGroupChange(sal_True) {} // XContainer |