summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2023-01-25 13:51:17 +0530
committerDennis Francis <dennis.francis@collabora.com>2023-04-27 08:41:09 +0200
commit29014b2d883d4b94039bfba697606b9b87b905aa (patch)
treeffed465c5d0fbdd1d9508c343562a2d8bf6780b8 /xmloff
parent10b4b470238a92b5477f0a99ef65356032276163 (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. Change-Id: Ieaa1f3bd282ebdec804d0b45a0af7b3d95a2027f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150344 Tested-by: Dennis Francis <dennis.francis@collabora.com> Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmltoken.cxx2
-rw-r--r--xmloff/source/token/tokens.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index c9c00208edd0..ebfaaef97dee 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -2586,6 +2586,7 @@ namespace xmloff::token {
TOKEN( "tabular-layout", XML_TABULAR_LAYOUT ),
TOKEN( "outline-subtotals-top", XML_OUTLINE_SUBTOTALS_TOP ),
TOKEN( "outline-subtotals-bottom", XML_OUTLINE_SUBTOTALS_BOTTOM ),
+ TOKEN( "compact-layout", XML_COMPACT_LAYOUT ),
TOKEN( "layout-mode", XML_LAYOUT_MODE ),
TOKEN( "data-pilot-layout-info", XML_DATA_PILOT_LAYOUT_INFO ),
TOKEN( "symbol-color", XML_SYMBOL_COLOR ),
@@ -2768,6 +2769,7 @@ namespace xmloff::token {
TOKEN( "show-filter-button", XML_SHOW_FILTER_BUTTON ),
TOKEN( "drill-down-on-double-click", XML_DRILL_DOWN_ON_DOUBLE_CLICK ),
+ TOKEN( "show-drill-down-buttons", XML_SHOW_DRILL_DOWN_BUTTONS ),
TOKEN( "header-grid-layout", XML_HEADER_GRID_LAYOUT ),
TOKEN( "grouped-by", XML_GROUPED_BY ),
TOKEN( "days", XML_DAYS ),
diff --git a/xmloff/source/token/tokens.txt b/xmloff/source/token/tokens.txt
index 48740a9fc020..f4b46572e748 100644
--- a/xmloff/source/token/tokens.txt
+++ b/xmloff/source/token/tokens.txt
@@ -2433,6 +2433,7 @@ add-empty-lines
tabular-layout
outline-subtotals-top
outline-subtotals-bottom
+compact-layout
layout-mode
data-pilot-layout-info
symbol-color
@@ -2594,6 +2595,7 @@ GNM_STEP_CENTER_Y_DUMMY
N_DB_OASIS_DUMMY
show-filter-button
drill-down-on-double-click
+show-drill-down-buttons
header-grid-layout
grouped-by
days