summaryrefslogtreecommitdiff
path: root/xmloff/source/core
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2024-11-06 21:33:46 +0100
committerBalazs Varga <balazs.varga.extern@allotropia.de>2024-11-14 23:53:24 +0100
commit83910246044c1e05a3b50e25d21ac6a31566cc38 (patch)
treec41d25de2d95d093d9f39707cc43a27f6fcea0ce /xmloff/source/core
parentec13618a1836a46ada1fee72ce4de5c82c0051f6 (diff)
tdf#160404 tdf#160535 tdf#160536 - sc improve sheet protection
tdf#160404: Fix FILEOPEN XLSX Pivot table is not imported if sheet protection has Pivot table editing enabled - Import correctly the pivot tables, even if the tab protection is not allowing to use them. tdf#160535: Support sheet protection option: Use AutoFilter - Add new option for tab protection to enable/disable to use autofilter on the sheet. Import/export correctly to odf/ooxml. Add new ext-odf attribute: XML_USE_AUTOFILTER tdf#160536: Support sheet protection option: Use PivotTable&PivotChart - Add new option for tab protection to enable/disable to use Pivot table on the sheet. Import/export correctly to odf/ooxml. Add new ext-odf attribute: XML_USE_PIVOT Change-Id: I5d34e3608aed1a3d004ec553f6125b6428e9c05e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176274 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r--xmloff/source/core/xmltoken.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx
index 7b6e4a269602..9c6ba7833a75 100644
--- a/xmloff/source/core/xmltoken.cxx
+++ b/xmloff/source/core/xmltoken.cxx
@@ -2108,6 +2108,7 @@ namespace xmloff::token {
TOKEN( "upright", XML_UPRIGHT ),
TOKEN( "url", XML_URL ),
TOKEN( "use", XML_USE ),
+ TOKEN( "use-autofilter", XML_USE_AUTOFILTER),
TOKEN( "use-caption", XML_USE_CAPTION ),
TOKEN( "use-cell-protection", XML_USE_CELL_PROTECTION ),
TOKEN( "use-chart-objects", XML_USE_CHART_OBJECTS ),
@@ -2125,6 +2126,7 @@ namespace xmloff::token {
TOKEN( "use-optimal-column-width", XML_USE_OPTIMAL_COLUMN_WIDTH ),
TOKEN( "use-optimal-row-height", XML_USE_OPTIMAL_ROW_HEIGHT ),
TOKEN( "use-other-objects", XML_USE_OTHER_OBJECTS ),
+ TOKEN( "use-pivot", XML_USE_PIVOT),
TOKEN( "use-spreadsheet-objects", XML_USE_SPREADSHEET_OBJECTS ),
TOKEN( "use-styles", XML_USE_STYLES ),
TOKEN( "use-tables", XML_USE_TABLES ),