LibreOffice Module svx (master) 1
Classes | Functions | Variables
unoshape.cxx File Reference
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/awt/XBitmap.hpp>
#include <com/sun/star/awt/Rectangle.hpp>
#include <com/sun/star/drawing/CircleKind.hpp>
#include <com/sun/star/lang/NoSupportException.hpp>
#include <vcl/svapp.hxx>
#include <svl/itemprop.hxx>
#include <o3tl/any.hxx>
#include <osl/mutex.hxx>
#include <editeng/unotext.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdoole2.hxx>
#include <svx/shapepropertynotifier.hxx>
#include <comphelper/interfacecontainer3.hxx>
#include <comphelper/scopeguard.hxx>
#include <comphelper/servicehelper.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/gfxlink.hxx>
#include <vcl/virdev.hxx>
#include <svx/sdangitm.hxx>
#include <svx/svdlayer.hxx>
#include <svx/svdopage.hxx>
#include <svx/xflbstit.hxx>
#include <svx/xflbmtit.hxx>
#include <svx/xlnstit.hxx>
#include <svx/xlnedit.hxx>
#include <svx/xlnclit.hxx>
#include <svx/svdmodel.hxx>
#include <svx/svdobjkind.hxx>
#include <svx/unopage.hxx>
#include <svx/unoshape.hxx>
#include <svx/unoshtxt.hxx>
#include <svx/svdpage.hxx>
#include <svx/unoshprp.hxx>
#include <svx/svdograf.hxx>
#include <svx/unoapi.hxx>
#include <svx/svdomeas.hxx>
#include <svx/svdpool.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/stream.hxx>
#include <tools/gen.hxx>
#include <tools/UnitConversion.hxx>
#include <svx/svdoedge.hxx>
#include <svx/svdocapt.hxx>
#include <svx/obj3d.hxx>
#include <svx/xflftrit.hxx>
#include <svx/xtable.hxx>
#include <svx/xbtmpit.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflgrit.hxx>
#include <svx/xflhtit.hxx>
#include <svx/xlineit0.hxx>
#include <svx/xlndsit.hxx>
#include <svx/unomaster.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include "gluepts.hxx"
#include "shapeimpl.hxx"
#include <sal/log.hxx>
#include <svx/lathe3d.hxx>
#include <extrud3d.hxx>
#include <svx/sdr/contact/viewcontact.hxx>
#include <drawinglayer/converters.hxx>
#include <drawinglayer/geometry/viewinformation2d.hxx>
#include <drawinglayer/primitive2d/transformprimitive2d.hxx>
#include <vcl/gdimtf.hxx>
#include <vcl/wmf.hxx>
#include <svx/sdtfsitm.hxx>
#include <svx/svdopath.hxx>
#include <svx/SvxXTextColumns.hxx>
#include <svx/xflclit.hxx>
#include <editeng/frmdiritem.hxx>
#include <memory>
#include <optional>
#include <vector>
#include <iostream>
#include <bitmaps.hlst>
Include dependency graph for unoshape.cxx:

Go to the source code of this file.

Classes

struct  SvxShapeImpl
 

Functions

static void SvxItemPropertySet_ObtainSettingsFromPropertySet (const SvxItemPropertySet &rPropSet, SvxItemPropertySetUsrAnys &rAnys, SfxItemSet &rSet, const uno::Reference< beans::XPropertySet > &xSet, const SfxItemPropertyMap *pMap)
 
static bool svx_needLogicRectHack (SdrObject const *pObj)
 
static tools::Rectangle svx_getLogicRectHack (SdrObject const *pObj)
 
static void svx_setLogicRectHack (SdrObject *pObj, const tools::Rectangle &rRect)
 
uno::Reference< drawing::XShape > GetXShapeForSdrObject (SdrObject *pObj) noexcept
 returns a StarOffice API wrapper for the given SdrObject More...
 
uno::Any SvxItemPropertySet_getPropertyValue (const SfxItemPropertyMapEntry *pMap, const SfxItemSet &rSet)
 
void SvxItemPropertySet_setPropertyValue (const SfxItemPropertyMapEntry *pMap, const uno::Any &rVal, SfxItemSet &rSet)
 

Variables

constexpr OUStringLiteral sUNO_service_style_ParagraphProperties = u"com.sun.star.style.ParagraphProperties"
 
constexpr OUStringLiteral sUNO_service_style_ParagraphPropertiesComplex = u"com.sun.star.style.ParagraphPropertiesComplex"
 
constexpr OUStringLiteral sUNO_service_style_ParagraphPropertiesAsian = u"com.sun.star.style.ParagraphPropertiesAsian"
 
constexpr OUStringLiteral sUNO_service_style_CharacterProperties = u"com.sun.star.style.CharacterProperties"
 
constexpr OUStringLiteral sUNO_service_style_CharacterPropertiesComplex = u"com.sun.star.style.CharacterPropertiesComplex"
 
constexpr OUStringLiteral sUNO_service_style_CharacterPropertiesAsian = u"com.sun.star.style.CharacterPropertiesAsian"
 
constexpr OUStringLiteral sUNO_service_drawing_FillProperties = u"com.sun.star.drawing.FillProperties"
 
constexpr OUStringLiteral sUNO_service_drawing_TextProperties = u"com.sun.star.drawing.TextProperties"
 
constexpr OUStringLiteral sUNO_service_drawing_LineProperties = u"com.sun.star.drawing.LineProperties"
 
constexpr OUStringLiteral sUNO_service_drawing_ConnectorProperties = u"com.sun.star.drawing.ConnectorProperties"
 
constexpr OUStringLiteral sUNO_service_drawing_MeasureProperties = u"com.sun.star.drawing.MeasureProperties"
 
constexpr OUStringLiteral sUNO_service_drawing_ShadowProperties = u"com.sun.star.drawing.ShadowProperties"
 
constexpr OUStringLiteral sUNO_service_drawing_RotationDescriptor = u"com.sun.star.drawing.RotationDescriptor"
 
constexpr OUStringLiteral sUNO_service_drawing_Text = u"com.sun.star.drawing.Text"
 
constexpr OUStringLiteral sUNO_service_drawing_GroupShape = u"com.sun.star.drawing.GroupShape"
 
constexpr OUStringLiteral sUNO_service_drawing_CustomShapeProperties = u"com.sun.star.drawing.CustomShapeProperties"
 
constexpr OUStringLiteral sUNO_service_drawing_CustomShape = u"com.sun.star.drawing.CustomShape"
 
constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonDescriptor = u"com.sun.star.drawing.PolyPolygonDescriptor"
 
constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonBezierDescriptor = u"com.sun.star.drawing.PolyPolygonBezierDescriptor"
 
constexpr OUStringLiteral sUNO_service_drawing_LineShape = u"com.sun.star.drawing.LineShape"
 
constexpr OUStringLiteral sUNO_service_drawing_Shape = u"com.sun.star.drawing.Shape"
 
constexpr OUStringLiteral sUNO_service_drawing_RectangleShape = u"com.sun.star.drawing.RectangleShape"
 
constexpr OUStringLiteral sUNO_service_drawing_EllipseShape = u"com.sun.star.drawing.EllipseShape"
 
constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonShape = u"com.sun.star.drawing.PolyPolygonShape"
 
constexpr OUStringLiteral sUNO_service_drawing_PolyLineShape = u"com.sun.star.drawing.PolyLineShape"
 
constexpr OUStringLiteral sUNO_service_drawing_OpenBezierShape = u"com.sun.star.drawing.OpenBezierShape"
 
constexpr OUStringLiteral sUNO_service_drawing_ClosedBezierShape = u"com.sun.star.drawing.ClosedBezierShape"
 
constexpr OUStringLiteral sUNO_service_drawing_TextShape = u"com.sun.star.drawing.TextShape"
 
constexpr OUStringLiteral sUNO_service_drawing_GraphicObjectShape = u"com.sun.star.drawing.GraphicObjectShape"
 
constexpr OUStringLiteral sUNO_service_drawing_OLE2Shape = u"com.sun.star.drawing.OLE2Shape"
 
constexpr OUStringLiteral sUNO_service_drawing_PageShape = u"com.sun.star.drawing.PageShape"
 
constexpr OUStringLiteral sUNO_service_drawing_CaptionShape = u"com.sun.star.drawing.CaptionShape"
 
constexpr OUStringLiteral sUNO_service_drawing_MeasureShape = u"com.sun.star.drawing.MeasureShape"
 
constexpr OUStringLiteral sUNO_service_drawing_FrameShape = u"com.sun.star.drawing.FrameShape"
 
constexpr OUStringLiteral sUNO_service_drawing_ControlShape = u"com.sun.star.drawing.ControlShape"
 
constexpr OUStringLiteral sUNO_service_drawing_ConnectorShape = u"com.sun.star.drawing.ConnectorShape"
 
constexpr OUStringLiteral sUNO_service_drawing_MediaShape = u"com.sun.star.drawing.MediaShape"
 

Function Documentation

◆ GetXShapeForSdrObject()

uno::Reference< drawing::XShape > GetXShapeForSdrObject ( SdrObject pObj)
noexcept

returns a StarOffice API wrapper for the given SdrObject

Returns a StarOffice API wrapper for the given SdrObject.

Definition at line 4013 of file unoshape.cxx.

Referenced by svx::FontworkBar::execute(), SdrObjCustomShape::GetCustomShapeEngine(), accessibility::AccessibleShape::getGroupPosition(), and SvxShape::getPropertyValueImpl().

◆ svx_getLogicRectHack()

static tools::Rectangle svx_getLogicRectHack ( SdrObject const *  pObj)
static

◆ svx_needLogicRectHack()

static bool svx_needLogicRectHack ( SdrObject const *  pObj)
static

◆ svx_setLogicRectHack()

static void svx_setLogicRectHack ( SdrObject pObj,
const tools::Rectangle rRect 
)
static

◆ SvxItemPropertySet_getPropertyValue()

uno::Any SvxItemPropertySet_getPropertyValue ( const SfxItemPropertyMapEntry pMap,
const SfxItemSet rSet 
)

◆ SvxItemPropertySet_ObtainSettingsFromPropertySet()

static void SvxItemPropertySet_ObtainSettingsFromPropertySet ( const SvxItemPropertySet rPropSet,
SvxItemPropertySetUsrAnys rAnys,
SfxItemSet rSet,
const uno::Reference< beans::XPropertySet > &  xSet,
const SfxItemPropertyMap pMap 
)
static

◆ SvxItemPropertySet_setPropertyValue()

void SvxItemPropertySet_setPropertyValue ( const SfxItemPropertyMapEntry pMap,
const uno::Any rVal,
SfxItemSet rSet 
)

Variable Documentation

◆ sUNO_service_drawing_CaptionShape

constexpr OUStringLiteral sUNO_service_drawing_CaptionShape = u"com.sun.star.drawing.CaptionShape"
constexpr

Definition at line 3193 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_ClosedBezierShape

constexpr OUStringLiteral sUNO_service_drawing_ClosedBezierShape = u"com.sun.star.drawing.ClosedBezierShape"
constexpr

Definition at line 3188 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_ConnectorProperties

constexpr OUStringLiteral sUNO_service_drawing_ConnectorProperties = u"com.sun.star.drawing.ConnectorProperties"
constexpr

Definition at line 3166 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_ConnectorShape

constexpr OUStringLiteral sUNO_service_drawing_ConnectorShape = u"com.sun.star.drawing.ConnectorShape"
constexpr

Definition at line 3197 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_ControlShape

constexpr OUStringLiteral sUNO_service_drawing_ControlShape = u"com.sun.star.drawing.ControlShape"
constexpr

Definition at line 3196 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_CustomShape

constexpr OUStringLiteral sUNO_service_drawing_CustomShape = u"com.sun.star.drawing.CustomShape"
constexpr

Definition at line 3176 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_CustomShapeProperties

constexpr OUStringLiteral sUNO_service_drawing_CustomShapeProperties = u"com.sun.star.drawing.CustomShapeProperties"
constexpr

Definition at line 3175 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_EllipseShape

constexpr OUStringLiteral sUNO_service_drawing_EllipseShape = u"com.sun.star.drawing.EllipseShape"
constexpr

Definition at line 3184 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_FillProperties

constexpr OUStringLiteral sUNO_service_drawing_FillProperties = u"com.sun.star.drawing.FillProperties"
constexpr

Definition at line 3163 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_FrameShape

constexpr OUStringLiteral sUNO_service_drawing_FrameShape = u"com.sun.star.drawing.FrameShape"
constexpr

Definition at line 3195 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_GraphicObjectShape

constexpr OUStringLiteral sUNO_service_drawing_GraphicObjectShape = u"com.sun.star.drawing.GraphicObjectShape"
constexpr

Definition at line 3190 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_GroupShape

constexpr OUStringLiteral sUNO_service_drawing_GroupShape = u"com.sun.star.drawing.GroupShape"
constexpr

Definition at line 3173 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_LineProperties

constexpr OUStringLiteral sUNO_service_drawing_LineProperties = u"com.sun.star.drawing.LineProperties"
constexpr

Definition at line 3165 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_LineShape

constexpr OUStringLiteral sUNO_service_drawing_LineShape = u"com.sun.star.drawing.LineShape"
constexpr

Definition at line 3181 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_MeasureProperties

constexpr OUStringLiteral sUNO_service_drawing_MeasureProperties = u"com.sun.star.drawing.MeasureProperties"
constexpr

Definition at line 3167 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_MeasureShape

constexpr OUStringLiteral sUNO_service_drawing_MeasureShape = u"com.sun.star.drawing.MeasureShape"
constexpr

Definition at line 3194 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_MediaShape

constexpr OUStringLiteral sUNO_service_drawing_MediaShape = u"com.sun.star.drawing.MediaShape"
constexpr

Definition at line 3198 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_OLE2Shape

constexpr OUStringLiteral sUNO_service_drawing_OLE2Shape = u"com.sun.star.drawing.OLE2Shape"
constexpr

Definition at line 3191 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_OpenBezierShape

constexpr OUStringLiteral sUNO_service_drawing_OpenBezierShape = u"com.sun.star.drawing.OpenBezierShape"
constexpr

Definition at line 3187 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_PageShape

constexpr OUStringLiteral sUNO_service_drawing_PageShape = u"com.sun.star.drawing.PageShape"
constexpr

Definition at line 3192 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_PolyLineShape

constexpr OUStringLiteral sUNO_service_drawing_PolyLineShape = u"com.sun.star.drawing.PolyLineShape"
constexpr

Definition at line 3186 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_PolyPolygonBezierDescriptor

constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonBezierDescriptor = u"com.sun.star.drawing.PolyPolygonBezierDescriptor"
constexpr

Definition at line 3179 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_PolyPolygonDescriptor

constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonDescriptor = u"com.sun.star.drawing.PolyPolygonDescriptor"
constexpr

Definition at line 3178 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_PolyPolygonShape

constexpr OUStringLiteral sUNO_service_drawing_PolyPolygonShape = u"com.sun.star.drawing.PolyPolygonShape"
constexpr

Definition at line 3185 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_RectangleShape

constexpr OUStringLiteral sUNO_service_drawing_RectangleShape = u"com.sun.star.drawing.RectangleShape"
constexpr

Definition at line 3183 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_RotationDescriptor

constexpr OUStringLiteral sUNO_service_drawing_RotationDescriptor = u"com.sun.star.drawing.RotationDescriptor"
constexpr

Definition at line 3170 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_ShadowProperties

constexpr OUStringLiteral sUNO_service_drawing_ShadowProperties = u"com.sun.star.drawing.ShadowProperties"
constexpr

Definition at line 3168 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_Shape

constexpr OUStringLiteral sUNO_service_drawing_Shape = u"com.sun.star.drawing.Shape"
constexpr

Definition at line 3182 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_Text

constexpr OUStringLiteral sUNO_service_drawing_Text = u"com.sun.star.drawing.Text"
constexpr

Definition at line 3172 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_TextProperties

constexpr OUStringLiteral sUNO_service_drawing_TextProperties = u"com.sun.star.drawing.TextProperties"
constexpr

Definition at line 3164 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_drawing_TextShape

constexpr OUStringLiteral sUNO_service_drawing_TextShape = u"com.sun.star.drawing.TextShape"
constexpr

Definition at line 3189 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_style_CharacterProperties

constexpr OUStringLiteral sUNO_service_style_CharacterProperties = u"com.sun.star.style.CharacterProperties"
constexpr

Definition at line 3159 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_style_CharacterPropertiesAsian

constexpr OUStringLiteral sUNO_service_style_CharacterPropertiesAsian = u"com.sun.star.style.CharacterPropertiesAsian"
constexpr

Definition at line 3161 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_style_CharacterPropertiesComplex

constexpr OUStringLiteral sUNO_service_style_CharacterPropertiesComplex = u"com.sun.star.style.CharacterPropertiesComplex"
constexpr

Definition at line 3160 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_style_ParagraphProperties

constexpr OUStringLiteral sUNO_service_style_ParagraphProperties = u"com.sun.star.style.ParagraphProperties"
constexpr

Definition at line 3156 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_style_ParagraphPropertiesAsian

constexpr OUStringLiteral sUNO_service_style_ParagraphPropertiesAsian = u"com.sun.star.style.ParagraphPropertiesAsian"
constexpr

Definition at line 3158 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().

◆ sUNO_service_style_ParagraphPropertiesComplex

constexpr OUStringLiteral sUNO_service_style_ParagraphPropertiesComplex = u"com.sun.star.style.ParagraphPropertiesComplex"
constexpr

Definition at line 3157 of file unoshape.cxx.

Referenced by SvxShape::_getSupportedServiceNames().