diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-04-19 22:10:47 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-04-22 09:06:44 +0200 |
commit | 011057b0ce7552497858afed7252136a3fc09bf8 (patch) | |
tree | 211e74486a9d8ac4e160a81b76fb908e7c758704 /chart2/source/view/main/VButton.hxx | |
parent | c99f72bebdce6d294eb47e070fa1397a98ba2087 (diff) |
tdf#107068 add arrow to the buttons, mark if field is filtered
Change-Id: Iba0b4c2ce3ab84229d388a7cb2d20db1f47c0b57
Reviewed-on: https://gerrit.libreoffice.org/36738
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'chart2/source/view/main/VButton.hxx')
-rw-r--r-- | chart2/source/view/main/VButton.hxx | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/chart2/source/view/main/VButton.hxx b/chart2/source/view/main/VButton.hxx index d27b85acba5d..e64a1049e726 100644 --- a/chart2/source/view/main/VButton.hxx +++ b/chart2/source/view/main/VButton.hxx @@ -25,6 +25,13 @@ private: css::uno::Reference<css::drawing::XShape> m_xShape; OUString m_sLabel; OUString m_sCID; + css::awt::Point m_aPosition; + css::awt::Size m_aSize; + bool m_bShowArrow; + sal_Int32 m_nArrowColor; + + css::uno::Reference<css::drawing::XShape> + createTriangle(css::awt::Size aSize); public: VButton(); @@ -32,18 +39,35 @@ public: void init(const css::uno::Reference<css::drawing::XShapes>& xTargetPage, const css::uno::Reference<css::lang::XMultiServiceFactory>& xFactory); - void createShapes(const css::awt::Point& rPosition, - const css::awt::Size& rReferenceSize, - const css::uno::Reference<css::beans::XPropertySet>& xTextProp); + void createShapes(const css::uno::Reference<css::beans::XPropertySet>& xTextProp); - void setWidth(sal_Int32 nWidth); - void setLabel(OUString const & sLabel) + void showArrow(bool bShowArrow) + { + m_bShowArrow = bShowArrow; + } + void setArrowColor(sal_Int32 nArrowColor) + { + m_nArrowColor = nArrowColor; + } + void setLabel(OUString const & rLabel) + { + m_sLabel = rLabel; + } + void setCID(OUString const & rCID) + { + m_sCID = rCID; + } + void setPosition(css::awt::Point const & rPosition) + { + m_aPosition = rPosition; + } + css::awt::Size getSize() { - m_sLabel = sLabel; + return m_aSize; } - void setCID(OUString const & sCID) + void setSize(css::awt::Size const & rSize) { - m_sCID = sCID; + m_aSize = rSize; } }; |