30 aMap[
"Z-Order"] = OUString::number(
pObject->GetOrdNum());
31 aMap[
"Layer"] = OUString::number(
pObject->GetLayer().get());
32 aMap[
"IsGroupObject"] = OUString::boolean(
pObject->IsGroupObject());
33 aMap[
"IsPolyObject"] = OUString::boolean(
pObject->IsPolyObj());
34 aMap[
"PointCount"] = OUString::number(
pObject->GetPointCount());
35 aMap[
"HasTextEdit"] = OUString::boolean(
pObject->HasTextEdit());
36 aMap[
"HasMacro"] = OUString::boolean(
pObject->HasMacro());
37 aMap[
"IsClosed"] = OUString::boolean(
pObject->IsClosedObj());
38 aMap[
"IsEdgeObject"] = OUString::boolean(
pObject->IsEdgeObj());
39 aMap[
"Is3DObject"] = OUString::boolean(
pObject->Is3DObj());
40 aMap[
"IsUNOObject"] = OUString::boolean(
pObject->IsUnoObj());
41 aMap[
"MoveProtected"] = OUString::boolean(
pObject->IsMoveProtect());
42 aMap[
"ResizeProtected"] = OUString::boolean(
pObject->IsResizeProtect());
43 aMap[
"Printable"] = OUString::boolean(
pObject->IsPrintable());
44 aMap[
"Visible"] = OUString::boolean(
pObject->IsVisible());
45 aMap[
"HasText"] = OUString::boolean(
pObject->HasText());
56 if (rAction ==
"MOVE")
58 auto itrNX = rParameters.find(
"X");
59 if (itrNX == rParameters.end())
60 throw css::uno::RuntimeException(
"missing parameter X");
62 auto itrNY = rParameters.find(
"Y");
63 if (itrNY == rParameters.end())
64 throw css::uno::RuntimeException(
"missing parameter Y");
68 Size aMoveRange(nX, nY);
69 pObj->
Move(aMoveRange);
71 else if (rAction ==
"RESIZE")
73 auto itrNX = rParameters.find(
"X");
74 if (itrNX == rParameters.end())
75 throw css::uno::RuntimeException(
"missing parameter X");
77 auto itrNY = rParameters.find(
"Y");
78 if (itrNY == rParameters.end())
79 throw css::uno::RuntimeException(
"missing parameter Y");
85 auto itrFracX = rParameters.find(
"FRAC_X");
86 if (itrFracX == rParameters.end())
87 throw css::uno::RuntimeException(
"missing parameter FRAC_X");
88 double nFracX = itrFracX->second.toDouble();
91 auto itrFracY = rParameters.find(
"FRAC_Y");
92 if (itrFracY == rParameters.end())
93 throw css::uno::RuntimeException(
"missing parameter FRAC_Y");
94 double nFracY = itrFracY->second.toDouble();
96 pObj->
Resize(aPos, aFracX, aFracY,
true );
98 else if (rAction ==
"CROP")
102 auto itrNX = rParameters.find(
"X");
103 if (itrNX == rParameters.end())
104 throw css::uno::RuntimeException(
"missing parameter X");
106 auto itrNY = rParameters.find(
"Y");
107 if (itrNY == rParameters.end())
108 throw css::uno::RuntimeException(
"missing parameter Y");
110 const double fX(itrNX->second.toDouble());
111 const double fY(itrNY->second.toDouble());
114 auto itrFracX = rParameters.find(
"FRAC_X");
115 if (itrFracX == rParameters.end())
116 throw css::uno::RuntimeException(
"missing parameter FRAC_X");
117 const double fFracX(itrFracX->second.toDouble());
119 auto itrFracY = rParameters.find(
"FRAC_Y");
120 if (itrFracY == rParameters.end())
121 throw css::uno::RuntimeException(
"missing parameter FRAC_Y");
122 const double fFracY(itrFracY->second.toDouble());
124 pObj->
Crop(aPos, fFracX, fFracY);
126 else if (rAction ==
"ROTATE")
128 auto itrNX = rParameters.find(
"X");
129 if (itrNX == rParameters.end())
130 throw css::uno::RuntimeException(
"missing parameter X");
132 auto itrNY = rParameters.find(
"Y");
133 if (itrNY == rParameters.end())
134 throw css::uno::RuntimeException(
"missing parameter Y");
140 auto itrAngle = rParameters.find(
"ANGLE");
141 if (itrAngle == rParameters.end())
142 throw css::uno::RuntimeException(
"missing parameter ANGLE");
144 double nAngle = itrAngle->second.toDouble();
147 else if (rAction ==
"Mirror")
151 else if (rAction ==
"SHEAR")
167 if (rAction ==
"CHOOSE")
169 if (rParameters.find(
"POS") != rParameters.end())
171 OUString aIndexStr = rParameters.find(
"POS")->second;
172 sal_Int32
nIndex = aIndexStr.toInt32();
197 aMap[
"R"] = OUString::number(currColor.
GetRed());
200 aMap[
"RGB"] =
"(" + OUString::number(currColor.
GetRed()) +
","
201 + OUString::number(currColor.
GetGreen()) +
","
202 + OUString::number(currColor.
GetBlue()) +
")";
std::map< OUString, OUString > StringMap
sal_uInt8 GetBlue() const
sal_uInt8 GetGreen() const
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
virtual void Crop(const basegfx::B2DPoint &rRef, double fxFact, double fyFact)
virtual void Shear(const Point &rRef, Degree100 nAngle, double tn, bool bVShear)
virtual void Mirror(const Point &rRef1, const Point &rRef2)
virtual void Move(const Size &rSiz)
virtual void Rotate(const Point &rRef, Degree100 nAngle, double sn, double cs)
virtual void Resize(const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bUnsetRelative=true)
virtual ~SdrUIObject() override
virtual SdrObject * get_object()=0
virtual OUString get_type() const override
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
virtual StringMap get_state() override
virtual StringMap get_state() override
virtual void execute(const OUString &rAction, const StringMap &rParameters) override
OUString get_name() const override
SvxColorValueSet * mpColorSet
SvxColorValueSetUIObject(vcl::Window *pColorSetWin)
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
size_t GetItemCount() const
OUString GetItemText(sal_uInt16 nItemId) const
void SelectItem(sal_uInt16 nItemId)
sal_uInt16 GetSelectedItemId() const
Color GetItemColor(sal_uInt16 nItemId) const
sal_uInt16 GetColCount() const
size_t GetSelectItemPos() const
virtual StringMap get_state() override
EmbeddedObjectRef * pObject
HashMap_OWString_Interface aMap
SvxTableController * mpController