diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2023-01-25 13:51:17 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2023-04-27 08:35:59 +0200 |
commit | 2f8d10b0b9baa03b8a713e9fd1342fe6c8094fb4 (patch) | |
tree | f008321e237e02ca032178711e27a16969718312 /sc/inc/dptabsrc.hxx | |
parent | 292f422c421336c43bafe5ee048832137d617436 (diff) |
sc: pivot table compact layout
This implements compact layout for pivot tables. In ooxml each row field
can have a compact layout setting. Support for any such "mixed" layout
of tabular/outline/compact per field is also implemented. This also
implements expand/collpse toggle buttons to field labels to make pivot
tables with compact layout more usable. Such buttons are also available
if other layouts are used.
Conflicts:
sc/qa/unit/pivottable_filters_test.cxx
sc/source/ui/cctrl/checklistmenu.cxx
sc/source/ui/inc/checklistmenu.hxx
Change-Id: Ieaa1f3bd282ebdec804d0b45a0af7b3d95a2027f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151057
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc/inc/dptabsrc.hxx')
-rw-r--r-- | sc/inc/dptabsrc.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx index 4f7f1db572da..4476966f212a 100644 --- a/sc/inc/dptabsrc.hxx +++ b/sc/inc/dptabsrc.hxx @@ -528,8 +528,10 @@ public: bool IsSubtotalsAtTop() const { return bEnableLayout && + (aLayoutInfo.LayoutMode == + css::sheet::DataPilotFieldLayoutMode::OUTLINE_SUBTOTALS_TOP || aLayoutInfo.LayoutMode == - css::sheet::DataPilotFieldLayoutMode::OUTLINE_SUBTOTALS_TOP; + css::sheet::DataPilotFieldLayoutMode::COMPACT_LAYOUT); } bool IsAddEmpty() const |