summaryrefslogtreecommitdiff
path: root/chart2/source/view/main/VButton.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/view/main/VButton.hxx')
-rw-r--r--chart2/source/view/main/VButton.hxx40
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;
}
};