13#include <com/sun/star/drawing/FillStyle.hpp>
14#include <com/sun/star/drawing/LineStyle.hpp>
15#include <com/sun/star/style/ParagraphAdjust.hpp>
16#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
17#include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
28 , m_nArrowColor(0x00000000)
29 , m_nBGColor(0x00E6E6E6)
41 xShape->setShapeKind(SdrObjKind::Polygon);
43 drawing::PolyPolygonShape3D aPolyPolygon;
44 aPolyPolygon.SequenceX.realloc(1);
45 aPolyPolygon.SequenceY.realloc(1);
46 aPolyPolygon.SequenceZ.realloc(1);
48 drawing::DoubleSequence* pOuterSequenceX = aPolyPolygon.SequenceX.getArray();
49 drawing::DoubleSequence* pOuterSequenceY = aPolyPolygon.SequenceY.getArray();
50 drawing::DoubleSequence* pOuterSequenceZ = aPolyPolygon.SequenceZ.getArray();
52 pOuterSequenceX->realloc(3);
53 pOuterSequenceY->realloc(3);
54 pOuterSequenceZ->realloc(3);
56 double* pInnerSequenceX = pOuterSequenceX->getArray();
57 double* pInnerSequenceY = pOuterSequenceY->getArray();
58 double* pInnerSequenceZ = pOuterSequenceZ->getArray();
60 pInnerSequenceX[0] = 0.0;
61 pInnerSequenceY[0] = 0.0;
62 pInnerSequenceZ[0] = 0.0;
64 pInnerSequenceX[1] = aSize.Width / 2.0;
65 pInnerSequenceY[1] = aSize.Height;
66 pInnerSequenceZ[1] = 0.0;
68 pInnerSequenceX[2] = aSize.Width;
69 pInnerSequenceY[2] = 0.0;
70 pInnerSequenceZ[2] = 0.0;
75 xShape->SvxShape::setPropertyValue(
"LineStyle",
uno::Any(drawing::LineStyle_NONE));
95 aTextValueMap[
"CharHeight"] <<= 10.0f;
96 aTextValueMap[
"CharHeightAsian"] <<= 10.0f;
97 aTextValueMap[
"CharHeightComplex"] <<= 10.0f;
99 aTextValueMap[
"FillStyle"] <<= drawing::FillStyle_SOLID;
100 aTextValueMap[
"LineColor"] <<= sal_Int32(0xcccccc);
101 aTextValueMap[
"LineStyle"] <<= drawing::LineStyle_SOLID;
102 aTextValueMap[
"ParaAdjust"] <<= style::ParagraphAdjust_CENTER;
103 aTextValueMap[
"TextHorizontalAdjust"] <<= drawing::TextHorizontalAdjust_LEFT;
104 aTextValueMap[
"TextVerticalAdjust"] <<= drawing::TextVerticalAdjust_CENTER;
105 aTextValueMap[
"ParaLeftMargin"] <<= sal_Int32(100);
106 aTextValueMap[
"ParaRightMargin"] <<= sal_Int32(600);
108 aTextValueMap[
"Name"] <<=
m_sCID;
124 awt::Size aPolySize{ 280, 180 };
127 xPoly->setSize(aPolySize);
131 xContainer->add(xPoly);
static void getMultiPropertyListsFromValueMap(tNameSequence &rNames, tAnySequence &rValues, const tPropertyNameValueMap &rValueMap)
static void getTextLabelMultiPropertyLists(const css::uno::Reference< css::beans::XPropertySet > &xSourceProp, tNameSequence &rPropNames, tAnySequence &rPropValues, bool bName=true, sal_Int32 nLimitedSpace=-1, bool bLimitedHeight=false, bool bSupportsLabelBorder=true)
static rtl::Reference< SvxShapeText > createText(const rtl::Reference< SvxShapeGroupAnyD > &xTarget2D, const OUString &rText, const tNameSequence &rPropNames, const tAnySequence &rPropValues, const css::uno::Any &rATransformation)
static rtl::Reference< SvxShapeGroup > createGroup2D(const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &aName=OUString())
css::uno::Sequence< OUString > tNameSequence
css::uno::Sequence< css::uno::Any > tAnySequence
std::unordered_map< OUString, css::uno::Any > tPropertyNameValueMap
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::PointSequenceSequence PolyToPointSequence(const css::drawing::PolyPolygonShape3D &rPolyPolygon)
PolyPolygonShape3D -> drawing::PointSequenceSequence (2D)
const PropertyStruct aPropNames[]
constexpr OUStringLiteral UNO_NAME_POLYPOLYGON