tdf#120397 - odf export fix missing texts in text box control
[LibreOffice.git] / chart2 / source / view / main / VButton.hxx
blobf63851dd6443759ae0728dabf1a4af914dd985c1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <tools/color.hxx>
13 #include <com/sun/star/awt/Point.hpp>
14 #include <com/sun/star/awt/Size.hpp>
15 #include <com/sun/star/uno/Reference.hxx>
16 #include <rtl/ref.hxx>
17 #include <svx/unoshape.hxx>
19 namespace com::sun::star::beans { class XPropertySet; }
21 namespace chart
24 class VButton final
26 private:
27 rtl::Reference<SvxShapeGroupAnyD> m_xTarget;
28 rtl::Reference<SvxShapeGroup> m_xShape;
29 OUString m_sLabel;
30 OUString m_sCID;
31 css::awt::Point m_aPosition;
32 css::awt::Size m_aSize;
33 bool m_bShowArrow;
34 Color m_nArrowColor;
35 Color m_nBGColor;
37 rtl::Reference<SvxShapePolyPolygon>
38 createTriangle(css::awt::Size aSize);
40 public:
41 VButton();
43 void init(const rtl::Reference<SvxShapeGroupAnyD>& xTargetPage);
45 void createShapes(const css::uno::Reference<css::beans::XPropertySet>& xTextProp);
47 void showArrow(bool bShowArrow)
49 m_bShowArrow = bShowArrow;
51 void setArrowColor(Color nArrowColor)
53 m_nArrowColor = nArrowColor;
55 void setBGColor(Color nBGColor)
57 m_nBGColor = nBGColor;
59 void setLabel(OUString const & rLabel)
61 m_sLabel = rLabel;
63 void setCID(OUString const & rCID)
65 m_sCID = rCID;
67 void setPosition(css::awt::Point const & rPosition)
69 m_aPosition = rPosition;
71 css::awt::Size const & getSize() const
73 return m_aSize;
75 void setSize(css::awt::Size const & rSize)
77 m_aSize = rSize;
81 } //namespace chart
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */