diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-11-29 16:09:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-11-30 08:38:57 +0100 |
commit | 01a3cc1e55034f7703219d4bbb209de7c37bf07b (patch) | |
tree | 42a5f54b8f9bc3083fb7e6796a1721afe820e983 /sc | |
parent | 79553e784c6d4587814bc2a577d7251c458df8d4 (diff) |
tdf#133343 collect autostyle prop names
before scanning for autostyles. That way we can collect only the
property state we are interested in, instead of all properties.
Change-Id: I8da4d61401d904631cbf9dc1828266950fe98421
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143466
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 579b04623aec..051c0ac251b3 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -581,6 +581,7 @@ void ScXMLExport::CollectShapesAutoStyles(SCTAB nTableCount) } if (pSharedData->HasDrawPage()) { + css::uno::Sequence<OUString> aAutoStylePropNames = GetAutoStylePool()->GetPropertyNames(); for (SCTAB nTable = 0; nTable < nTableCount; ++nTable) { uno::Reference<drawing::XDrawPage> xDrawPage(pSharedData->GetDrawPage(nTable)); @@ -599,7 +600,7 @@ void ScXMLExport::CollectShapesAutoStyles(SCTAB nTableCount) { for (const auto& rxShape : (*pTableShapes)[nTable]) { - GetShapeExport()->collectShapeAutoStyles(rxShape); + GetShapeExport()->collectShapeAutoStyles(rxShape, aAutoStylePropNames); IncrementProgressBar(false); } } @@ -608,7 +609,7 @@ void ScXMLExport::CollectShapesAutoStyles(SCTAB nTableCount) ScMyShapeList::const_iterator aEndItr(pShapeList->end()); while ( aShapeItr != aEndItr && ( aShapeItr->aAddress.Tab() == nTable ) ) { - GetShapeExport()->collectShapeAutoStyles(aShapeItr->xShape); + GetShapeExport()->collectShapeAutoStyles(aShapeItr->xShape, aAutoStylePropNames); IncrementProgressBar(false); ++aShapeItr; } @@ -619,7 +620,7 @@ void ScXMLExport::CollectShapesAutoStyles(SCTAB nTableCount) for (const auto& rNoteShape : rNoteShapes) { if ( rNoteShape.aPos.Tab() == nTable ) - GetShapeExport()->collectShapeAutoStyles(rNoteShape.xShape); + GetShapeExport()->collectShapeAutoStyles(rNoteShape.xShape, aAutoStylePropNames); } } } |