diff options
author | Sarper Akdemir <sarper.akdemir@collabora.com> | 2021-05-09 20:00:21 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-23 23:28:21 +0200 |
commit | 713fd97a136d90ace6fe68fb3428adeda4fcec17 (patch) | |
tree | 89f3fe9b6b51024cc73f3d53bca26a7052f0cc2b /include/oox | |
parent | edde00de9a9295b3e50e305f9ff36c9cf11b12d3 (diff) |
tdf#59323: ooxml import: hasShapeStyleRefs
Helper function to determine whether the shape has style refs or not.
Change-Id: I57b244b4af5b9e3abba90f0e4e25a35da27e3409
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117002
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit c5676a08eb57d30c11bd201f8d2c328165c8143f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117429
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/shape.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index 5b6fd21ce00d..37e2fe433a3f 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -178,6 +178,7 @@ public: ShapeStyleRefMap& getShapeStyleRefs() { return maShapeStyleRefs; } const ShapeStyleRefMap& getShapeStyleRefs() const { return maShapeStyleRefs; } const ShapeStyleRef* getShapeStyleRef( sal_Int32 nRefType ) const; + bool hasShapeStyleRefs() const { return !maShapeStyleRefs.empty(); } // addShape is creating and inserting the corresponding XShape. void addShape( |