diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-27 21:09:49 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-29 08:09:21 +0100 |
commit | 5f2a74c5bdc52cc861fda58f1e8e4860eadad1ed (patch) | |
tree | 1b8a99621679deacccfb87e3b7c005528fc7f77d /chart2 | |
parent | 7fa4e2fa0331d36b09e10d12705e09048c259a83 (diff) |
set a few more missed properties
Change-Id: I30a606e2bea9c8c8d7861e5b05a6df0e7c00b9a5
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 55c69e1f05c0..e6a22e7ac51f 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -229,6 +229,16 @@ void setProperties( uno::Reference< beans::XPropertySet > xPropSet, const tPrope } } +void setProperties( const tNameSequence& rNames, const tAnySequence& rValues, + std::map<OUString, uno::Any>& rTargetMap) +{ + sal_Int32 nSize = std::min(rNames.getLength(), rValues.getLength()); + for(sal_Int32 i = 0; i < nSize; ++i) + { + rTargetMap[rNames[i]] = rValues[i]; + } +} + } DummyCube::DummyCube(const drawing::Position3D &rPos, const drawing::Direction3D& rSize, @@ -357,18 +367,20 @@ DummyRectangle::DummyRectangle(const awt::Size& rSize) setSize(rSize); } -DummyRectangle::DummyRectangle(const awt::Size& rSize, const awt::Point& rPoint, const tNameSequence& , - const tAnySequence& ) +DummyRectangle::DummyRectangle(const awt::Size& rSize, const awt::Point& rPoint, const tNameSequence& rNames, + const tAnySequence& rValues) { setSize(rSize); setPosition(rPoint); + setProperties(rNames, rValues, maProperties); } -DummyText::DummyText(const OUString& rText, const tNameSequence& , - const tAnySequence& , const uno::Any& rTrans ): +DummyText::DummyText(const OUString& rText, const tNameSequence& rNames, + const tAnySequence& rValues, const uno::Any& rTrans ): maText(rText), maTrans(rTrans) { + setProperties(rNames, rValues, maProperties); } DummyGroup3D::DummyGroup3D(const OUString& rName) |