diff options
author | Sarper Akdemir <sarper.akdemir@collabora.com> | 2021-05-09 20:00:21 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-06-14 12:28:13 +0200 |
commit | c5676a08eb57d30c11bd201f8d2c328165c8143f (patch) | |
tree | c665ad50e9ae68f1e1572be9083764eed6be1624 /include/oox | |
parent | b2869ca51c2e30128456cbdee7e526bacd9cc905 (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>
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 53401d18a1c1..1abc9c0a211a 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -179,6 +179,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( |