diff options
author | Grzegorz Araminowicz <g.araminowicz@gmail.com> | 2017-08-23 14:26:03 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-08-24 14:24:42 +0200 |
commit | 96b07db82b4a7834246ae8acc395cd2cb355630b (patch) | |
tree | 13c7503fe749e7d78de6964f0b07d45e3a2288e6 /oox/source/drawingml/diagram/diagramlayoutatoms.hxx | |
parent | 0d46a29b2144eb840935e6bb040ee016d74b4d99 (diff) |
SmartArt: get rid of tagToVarIdx() and change VarMap to std::map
it was unnecessarily complicated
Change-Id: I5ad4b4a6a401ffe6a67a471fa355ade9c1514ef1
Reviewed-on: https://gerrit.libreoffice.org/41458
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'oox/source/drawingml/diagram/diagramlayoutatoms.hxx')
-rw-r--r-- | oox/source/drawingml/diagram/diagramlayoutatoms.hxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.hxx b/oox/source/drawingml/diagram/diagramlayoutatoms.hxx index a7ff21759174..cb7c84e9e532 100644 --- a/oox/source/drawingml/diagram/diagramlayoutatoms.hxx +++ b/oox/source/drawingml/diagram/diagramlayoutatoms.hxx @@ -22,9 +22,7 @@ #include <map> #include <memory> -#include <array> -#include <com/sun/star/uno/Any.hxx> #include <com/sun/star/xml/sax/XFastAttributeList.hpp> #include "oox/drawingml/shape.hxx" @@ -207,20 +205,7 @@ class LayoutNode : public LayoutAtom { public: - enum { - VAR_animLvl = 0, - VAR_animOne, - VAR_bulletEnabled, - VAR_chMax, - VAR_chPref, - VAR_dir, - VAR_hierBranch, - VAR_orgChart, - VAR_resizeHandles - }; - // we know that the array is of fixed size - // the use of Any allow having empty values - typedef std::array<css::uno::Any, 9> VarMap; + typedef std::map<sal_Int32, OUString> VarMap; LayoutNode(const Diagram& rDgm) : LayoutAtom(*this), mrDgm(rDgm), mnChildOrder(0) {} const Diagram& getDiagram() const |