LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
SvxShape Class Reference

#include <unoshape.hxx>

Inheritance diagram for SvxShape:
[legend]
Collaboration diagram for SvxShape:
[legend]

Public Member Functions

 SvxShape (SdrObject *pObj)
 
 SvxShape (SdrObject *pObject, const SfxItemPropertyMapEntry *pEntries, const SvxItemPropertySet *pPropertySet)
 
virtual ~SvxShape () override throw ()
 
void ObtainSettingsFromPropertySet (const SvxItemPropertySet &rPropSet)
 
virtual void Create (SdrObject *pNewOpj, SvxDrawPage *pNewPage)
 
void TakeSdrObjectOwnership ()
 takes the ownership of the SdrObject. More...
 
bool HasSdrObjectOwnership () const
 
void InvalidateSdrObject ()
 
SdrObjectGetSdrObject () const
 
bool HasSdrObject () const
 
void SetShapeType (const OUString &ShapeType)
 
css::uno::Any GetBitmap (bool bMetaFile=false) const
 
svx::PropertyChangeNotifiergetShapePropertyChangeNotifier ()
 
void setShapeKind (sal_uInt32 nKind)
 
sal_uInt32 getShapeKind () const
 
css::uno::Reference< css::beans::XPropertySetInfo > const & _getPropertySetInfo ()
 same as SetFillAttribute but for property names instead of which ids, and the property found is returned instead of set at the object directly. More...
 
void _setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue)
 
css::uno::Any _getPropertyValue (const OUString &PropertyName)
 
css::beans::PropertyState _getPropertyState (const OUString &PropertyName)
 
void _setPropertyToDefault (const OUString &PropertyName)
 
css::uno::Any _getPropertyDefault (const OUString &aPropertyName)
 
css::uno::Sequence< OUString > _getSupportedServiceNames ()
 
css::uno::Sequence< css::uno::Type > const & _getTypes ()
 
void setMaster (SvxShapeMaster *pMaster)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override throw ()
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &aType) override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual OUString SAL_CALL getShapeType () override
 
virtual css::awt::Point SAL_CALL getPosition () override
 
virtual void SAL_CALL setPosition (const css::awt::Point &aPosition) override
 
virtual css::awt::Size SAL_CALL getSize () override
 
virtual void SAL_CALL setSize (const css::awt::Size &aSize) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &xListener) override
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
virtual void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
virtual css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
virtual void SAL_CALL setAllPropertiesToDefault () override
 
virtual void SAL_CALL setPropertiesToDefault (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults (const css::uno::Sequence< OUString > &aPropertyNames) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Reference< css::container::XIndexContainer > SAL_CALL getGluePoints () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual sal_Bool SAL_CALL isActionLocked () override
 
virtual void SAL_CALL addActionLock () override
 
virtual void SAL_CALL removeActionLock () override
 
virtual void SAL_CALL setActionLocks (sal_Int16 nLock) override
 
virtual sal_Int16 SAL_CALL resetActionLocks () override
 
- Public Member Functions inherited from cppu::WeakAggImplHelper12< class, class, class, class, class, class, class, class, class, class, class, class >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Static Public Member Functions

static bool SetFillAttribute (sal_uInt16 nWID, const OUString &rName, SfxItemSet &rSet, SdrModel const *pModel)
 
static bool SetFillAttribute (sal_uInt16 nWID, const OUString &rName, SfxItemSet &rSet)
 

Protected Member Functions

void ForceMetricToItemPoolMetric (Pair &rPoint) const throw ()
 
void ForceMetricToItemPoolMetric (Point &rPoint) const throw ()
 
void ForceMetricToItemPoolMetric (Size &rPoint) const throw ()
 
void ForceMetricTo100th_mm (Pair &rPoint) const throw ()
 
void ForceMetricTo100th_mm (Point &rPoint) const throw ()
 
void ForceMetricTo100th_mm (Size &rPoint) const throw ()
 
void ForceMetricToItemPoolMetric (basegfx::B2DPolyPolygon &rPolyPolygon) const throw ()
 
void ForceMetricTo100th_mm (basegfx::B2DPolyPolygon &rPolyPolygon) const throw ()
 
void ForceMetricToItemPoolMetric (basegfx::B2DHomMatrix &rB2DHomMatrix) const throw ()
 
void ForceMetricTo100th_mm (basegfx::B2DHomMatrix &rB2DHomMatrix) const throw ()
 
css::uno::Any GetAnyForItem (SfxItemSet const &aSet, const SfxItemPropertySimpleEntry *pMap) const
 
bool SetFillAttribute (sal_uInt16 nWID, const OUString &rName)
 
virtual void lock ()
 called from the XActionLockable interface methods on initial locking More...
 
virtual void unlock ()
 called from the XActionLockable interface methods on final unlock More...
 
const SfxItemPropertyMapEntrygetPropertyMapEntries () const
 
void updateShapeKind ()
 since polygon shapes can change their kind during editing, we have to recheck it here. More...
 
void endSetPropertyValues ()
 
virtual bool setPropertyValueImpl (const OUString &rName, const SfxItemPropertySimpleEntry *pProperty, const css::uno::Any &rValue)
 
virtual bool getPropertyValueImpl (const OUString &rName, const SfxItemPropertySimpleEntry *pProperty, css::uno::Any &rValue)
 
virtual bool getPropertyStateImpl (const SfxItemPropertySimpleEntry *pProperty, css::beans::PropertyState &rState)
 
virtual bool setPropertyToDefaultImpl (const SfxItemPropertySimpleEntry *pProperty)
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Protected Attributes

const SvxItemPropertySetmpPropSet
 
const SfxItemPropertyMapEntrymaPropMapEntries
 
sal_uInt16 mnLockCount
 used from the XActionLockable interface More...
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 
- Protected Attributes inherited from SvxShapeMutex
::osl::Mutex maMutex
 

Private Member Functions

SVX_DLLPRIVATE void impl_initFromSdrObject ()
 initializes SdrObj-dependent members. More...
 
SVX_DLLPRIVATE void impl_construct ()
 CTOR-Impl. More...
 

Private Attributes

css::awt::Size maSize
 
css::awt::Point maPosition
 
OUString maShapeType
 
OUString maShapeName
 
std::unique_ptr< SvxShapeImplmpImpl
 these members are used to optimize XMultiProperty calls More...
 
bool mbIsMultiPropertyCall
 
css::uno::WeakReference< css::container::XIndexContainer > mxGluePoints
 
::tools::WeakReference< SdrObjectmpSdrObjectWeakReference
 

Friends

class SvxDrawPage
 
class SvxShapeConnector
 
class SdXShape
 

Detailed Description

Definition at line 108 of file unoshape.hxx.

Constructor & Destructor Documentation

SvxShape::SvxShape ( SdrObject pObj)
Exceptions
css::uno::RuntimeException

Definition at line 177 of file unoshape.cxx.

References impl_construct(), maMutex, and maSize.

SvxShape::SvxShape ( SdrObject pObject,
const SfxItemPropertyMapEntry pEntries,
const SvxItemPropertySet pPropertySet 
)
Exceptions
css::uno::RuntimeException

Definition at line 190 of file unoshape.cxx.

References impl_construct(), maMutex, and maSize.

SvxShape::~SvxShape ( )
throw (
)
overridevirtual

Member Function Documentation

uno::Any SvxShape::_getPropertyDefault ( const OUString &  aPropertyName)
Exceptions
css::beans::UnknownPropertyException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 2997 of file unoshape.cxx.

References GetAnyForItem(), SvxItemPropertySet::getPropertyMapEntry(), getPropertyValue(), GetSdrObject(), HasSdrObject(), SfxItemPool::IsWhich(), mpPropSet, SfxItemPropertySimpleEntry::nWID, SDRATTR_NOTPERSIST_FIRST, and SDRATTR_NOTPERSIST_LAST.

Referenced by getPropertyDefault().

Reference< beans::XPropertySetInfo > const & SvxShape::_getPropertySetInfo ( )

same as SetFillAttribute but for property names instead of which ids, and the property found is returned instead of set at the object directly.

Exceptions
css::uno::RuntimeException

Definition at line 1378 of file unoshape.cxx.

References SvxItemPropertySet::getPropertySetInfo(), and mpPropSet.

Referenced by getPropertySetInfo().

beans::PropertyState SvxShape::_getPropertyState ( const OUString &  PropertyName)
uno::Any SvxShape::_getPropertyValue ( const OUString &  PropertyName)
uno::Sequence< OUString > SvxShape::_getSupportedServiceNames ( )
Exceptions
css::uno::RuntimeException

Definition at line 3133 of file unoshape.cxx.

References comphelper::ServiceInfoHelper::addToSequence(), Default, FmForm, SdrObject::GetObjIdentifier(), SdrObject::GetObjInventor(), GetSdrObject(), HasSdrObject(), OBJ_CAPTION, OBJ_CARC, OBJ_CCUT, OBJ_CIRC, OBJ_CUSTOMSHAPE, OBJ_EDGE, OBJ_FRAME, OBJ_FREEFILL, OBJ_FREELINE, OBJ_GRAF, OBJ_GRUP, OBJ_LINE, OBJ_MEASURE, OBJ_MEDIA, OBJ_OLE2, OBJ_OUTLINETEXT, OBJ_PAGE, OBJ_PATHFILL, OBJ_PATHLINE, OBJ_PATHPLIN, OBJ_PATHPOLY, OBJ_PLIN, OBJ_POLY, OBJ_RECT, OBJ_SECT, OBJ_TEXT, OBJ_TITLETEXT, OBJ_UNO, sUNO_service_drawing_CaptionShape, sUNO_service_drawing_ClosedBezierShape, sUNO_service_drawing_ConnectorProperties, sUNO_service_drawing_ConnectorShape, sUNO_service_drawing_ControlShape, sUNO_service_drawing_CustomShape, sUNO_service_drawing_CustomShapeProperties, sUNO_service_drawing_EllipseShape, sUNO_service_drawing_FillProperties, sUNO_service_drawing_FrameShape, sUNO_service_drawing_GraphicObjectShape, sUNO_service_drawing_GroupShape, sUNO_service_drawing_LineProperties, sUNO_service_drawing_LineShape, sUNO_service_drawing_MeasureProperties, sUNO_service_drawing_MeasureShape, sUNO_service_drawing_MediaShape, sUNO_service_drawing_OLE2Shape, sUNO_service_drawing_OpenBezierShape, sUNO_service_drawing_PageShape, sUNO_service_drawing_PolyLineShape, sUNO_service_drawing_PolyPolygonBezierDescriptor, sUNO_service_drawing_PolyPolygonDescriptor, sUNO_service_drawing_PolyPolygonShape, sUNO_service_drawing_RectangleShape, sUNO_service_drawing_ShadowProperties, sUNO_service_drawing_Shape, sUNO_service_drawing_Text, sUNO_service_drawing_TextProperties, sUNO_service_drawing_TextShape, sUNO_service_style_CharacterProperties, sUNO_service_style_CharacterPropertiesAsian, sUNO_service_style_CharacterPropertiesComplex, sUNO_service_style_ParagraphProperties, sUNO_service_style_ParagraphPropertiesAsian, and sUNO_service_style_ParagraphPropertiesComplex.

Referenced by getSupportedServiceNames().

uno::Sequence< uno::Type > const & SvxShape::_getTypes ( )
void SvxShape::_setPropertyToDefault ( const OUString &  PropertyName)
void SvxShape::_setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
void SAL_CALL SvxShape::addActionLock ( )
overridevirtual

Definition at line 3759 of file unoshape.cxx.

References DBG_ASSERT, lock(), and mnLockCount.

void SAL_CALL SvxShape::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 1350 of file unoshape.cxx.

References mpImpl.

void SAL_CALL SvxShape::addPropertiesChangeListener ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 1881 of file unoshape.cxx.

void SAL_CALL SvxShape::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 1384 of file unoshape.cxx.

References SvxShapeMutex::maMutex, and mpImpl.

void SAL_CALL SvxShape::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 1398 of file unoshape.cxx.

void SvxShape::Create ( SdrObject pNewOpj,
SvxDrawPage pNewPage 
)
virtual
void SAL_CALL SvxShape::dispose ( void  )
overridevirtual
void SvxShape::endSetPropertyValues ( )
protected

Definition at line 1831 of file unoshape.cxx.

References mbIsMultiPropertyCall, and mpImpl.

Referenced by setPropertyValues().

void SAL_CALL SvxShape::firePropertiesChangeEvent ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener 
)
overridevirtual

Definition at line 1889 of file unoshape.cxx.

void SvxShape::ForceMetricTo100th_mm ( Pair rPoint) const
throw (
)
protected
void SvxShape::ForceMetricTo100th_mm ( Point rPoint) const
throw (
)
inlineprotected

Definition at line 141 of file unoshape.hxx.

References ForceMetricTo100th_mm().

Referenced by ForceMetricTo100th_mm().

void SvxShape::ForceMetricTo100th_mm ( Size rPoint) const
throw (
)
inlineprotected

Definition at line 142 of file unoshape.hxx.

References ForceMetricTo100th_mm().

Referenced by ForceMetricTo100th_mm().

void SvxShape::ForceMetricTo100th_mm ( basegfx::B2DPolyPolygon rPolyPolygon) const
throw (
)
protected

Definition at line 542 of file unoshape.cxx.

References DBG_TESTSOLARMUTEX, and basegfx::B2DHomMatrix::scale().

void SvxShape::ForceMetricTo100th_mm ( basegfx::B2DHomMatrix rB2DHomMatrix) const
throw (
)
protected
void SvxShape::ForceMetricToItemPoolMetric ( Pair rPoint) const
throw (
)
protected
void SvxShape::ForceMetricToItemPoolMetric ( Point rPoint) const
throw (
)
inlineprotected

Definition at line 138 of file unoshape.hxx.

References ForceMetricToItemPoolMetric().

Referenced by ForceMetricToItemPoolMetric().

void SvxShape::ForceMetricToItemPoolMetric ( Size rPoint) const
throw (
)
inlineprotected

Definition at line 139 of file unoshape.hxx.

References ForceMetricToItemPoolMetric().

Referenced by ForceMetricToItemPoolMetric().

void SvxShape::ForceMetricToItemPoolMetric ( basegfx::B2DPolyPolygon rPolyPolygon) const
throw (
)
protected

Definition at line 458 of file unoshape.cxx.

References DBG_TESTSOLARMUTEX, and basegfx::B2DHomMatrix::scale().

void SvxShape::ForceMetricToItemPoolMetric ( basegfx::B2DHomMatrix rB2DHomMatrix) const
throw (
)
protected
uno::Any SvxShape::GetAnyForItem ( SfxItemSet const &  aSet,
const SfxItemPropertySimpleEntry pMap 
) const
protected
uno::Any SvxShape::GetBitmap ( bool  bMetaFile = false) const
uno::Reference< container::XIndexContainer > SAL_CALL SvxShape::getGluePoints ( )
overridevirtual
uno::Sequence< sal_Int8 > SAL_CALL SvxShape::getImplementationId ( )
overridevirtual
OUString SAL_CALL SvxShape::getImplementationName ( )
overridevirtual

Reimplemented in SvxShapeText.

Definition at line 3071 of file unoshape.cxx.

OUString SAL_CALL SvxShape::getName ( )
overridevirtual

Definition at line 1255 of file unoshape.cxx.

References SdrObject::GetName(), GetSdrObject(), HasSdrObject(), and maShapeName.

uno::Reference< uno::XInterface > SAL_CALL SvxShape::getParent ( )
overridevirtual
awt::Point SAL_CALL SvxShape::getPosition ( )
overridevirtual
uno::Any SAL_CALL SvxShape::getPropertyDefault ( const OUString &  aPropertyName)
overridevirtual

Reimplemented in SvxShapeControl.

Definition at line 2985 of file unoshape.cxx.

References _getPropertyDefault(), and mpImpl.

Referenced by SvxShapeControl::getPropertyDefault(), and getPropertyDefaults().

uno::Sequence< uno::Any > SvxShape::getPropertyDefaults ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 3058 of file unoshape.cxx.

References getPropertyDefault().

const SfxItemPropertyMapEntry* SvxShape::getPropertyMapEntries ( ) const
inlineprotected

Definition at line 165 of file unoshape.hxx.

Reference< beans::XPropertySetInfo > SAL_CALL SvxShape::getPropertySetInfo ( )
overridevirtual

Definition at line 1365 of file unoshape.cxx.

References _getPropertySetInfo(), and mpImpl.

beans::PropertyState SAL_CALL SvxShape::getPropertyState ( const OUString &  PropertyName)
overridevirtual

Reimplemented in SvxShapeControl.

Definition at line 1975 of file unoshape.cxx.

References _getPropertyState(), and mpImpl.

Referenced by SvxShapeControl::getPropertyState(), and getPropertyStates().

bool SvxShape::getPropertyStateImpl ( const SfxItemPropertySimpleEntry pProperty,
css::beans::PropertyState &  rState 
)
protectedvirtual
uno::Sequence< beans::PropertyState > SAL_CALL SvxShape::getPropertyStates ( const css::uno::Sequence< OUString > &  aPropertyName)
overridevirtual

Definition at line 2943 of file unoshape.cxx.

References getPropertyState().

uno::Any SAL_CALL SvxShape::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
bool SvxShape::getPropertyValueImpl ( const OUString &  rName,
const SfxItemPropertySimpleEntry pProperty,
css::uno::Any &  rValue 
)
protectedvirtual
Exceptions
css::beans::UnknownPropertyException
css::lang::WrappedTargetException
css::uno::RuntimeException

Reimplemented in SvxMediaShape, SvxCustomShape, Svx3DPolygonObject, Svx3DExtrudeObject, Svx3DLatheObject, Svx3DSphereObject, Svx3DCubeObject, Svx3DSceneObject, SvxGraphicObject, SvxShapePolyPolygon, SvxOle2Shape, SvxShapeText, SvxTableShape, SvxFrameShape, SvxAppletShape, and SvxPluginShape.

Definition at line 2505 of file unoshape.cxx.

References Point::AdjustX(), Point::AdjustY(), aName, basegfx::utils::B2DPolyPolygonToUnoPolyPolygonBezierCoords(), ConvertGDIMetaFileToWMF(), VCLUnoHelper::CreateBitmap(), basegfx::utils::createTranslateB2DHomMatrix(), Default, ForceMetricTo100th_mm(), basegfx::fround(), basegfx::B2DHomMatrix::get(), SfxItemSet::Get(), SdrObject::GetAnchorPos(), GetBitmap(), SdrEdgeObj::GetConnectedNode(), GfxLink::GetData(), GfxLink::GetDataSize(), SdrEdgeObj::GetEdgeTrackPath(), Graphic::GetGDIMetaFile(), Graphic::GetGfxLink(), SdrEdgeObj::getGluePointIndex(), SdrObject::GetGrabBagItem(), SdrOle2Obj::GetGraphic(), tools::Rectangle::GetHeight(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerPerID(), SdrObject::GetMergedItemSet(), SdrLayer::GetName(), SdrObject::GetOrdNum(), SdrPage::GetPageNum(), SdrMeasureObj::GetPoint(), SdrPageObj::GetReferencedPage(), SdrObject::GetRotateAngle(), SdrObject::getSdrModelFromSdrObject(), GetSdrObject(), SdrObject::GetShearAngle(), SdrEdgeObj::GetTailPoint(), GetTitle(), GfxLink::GetType(), tools::Rectangle::GetWidth(), GetXShapeForSdrObject(), HasSdrObject(), Graphic::IsGfxLink(), IsMirrored(), SdrObject::IsMoveProtect(), SdrObject::IsPrintable(), SdrObject::IsResizeProtect(), SdrObject::IsVisible(), SdrModel::IsWriter(), SfxItemPropertySimpleEntry::nWID, OBJ_GRAF, OBJ_OLE2, OWN_ATTR_BITMAP, OWN_ATTR_BOUNDRECT, OWN_ATTR_CAPTION_POINT, OWN_ATTR_EDGE_END_OBJ, OWN_ATTR_EDGE_END_POS, OWN_ATTR_EDGE_POLYPOLYGONBEZIER, OWN_ATTR_EDGE_START_OBJ, OWN_ATTR_EDGE_START_POS, OWN_ATTR_FILLBMP_MODE, OWN_ATTR_FRAMERECT, OWN_ATTR_GLUEID_HEAD, OWN_ATTR_GLUEID_TAIL, OWN_ATTR_INTEROPGRABBAG, OWN_ATTR_ISFONTWORK, OWN_ATTR_LDBITMAP, OWN_ATTR_LDNAME, OWN_ATTR_MEASURE_END_POS, OWN_ATTR_MEASURE_START_POS, OWN_ATTR_METAFILE, OWN_ATTR_MIRRORED, OWN_ATTR_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_TITLE, OWN_ATTR_PAGE_NUMBER, OWN_ATTR_TRANSFORMATION, OWN_ATTR_UINAME_PLURAL, OWN_ATTR_UINAME_SINGULAR, OWN_ATTR_ZORDER, SDRATTR_LAYERID, SDRATTR_LAYERNAME, SDRATTR_OBJECTNAME, SDRATTR_OBJMOVEPROTECT, SDRATTR_OBJPRINTABLE, SDRATTR_OBJSIZEPROTECT, SDRATTR_OBJVISIBLE, SDRATTR_ROTATEANGLE, SDRATTR_SHEARANGLE, sId, SdrObject::TakeObjNamePlural(), SdrObject::TakeObjNameSingul(), tools::Rectangle::TopLeft(), SdrObject::TRGetBaseGeometry(), Point::X(), XATTR_FILLBMP_STRETCH, XATTR_FILLBMP_TILE, and Point::Y().

Referenced by _getPropertyValue(), SvxTableShape::getPropertyValueImpl(), SvxShapeText::getPropertyValueImpl(), Svx3DSceneObject::getPropertyValueImpl(), Svx3DCubeObject::getPropertyValueImpl(), Svx3DSphereObject::getPropertyValueImpl(), Svx3DLatheObject::getPropertyValueImpl(), Svx3DExtrudeObject::getPropertyValueImpl(), Svx3DPolygonObject::getPropertyValueImpl(), SvxCustomShape::getPropertyValueImpl(), and SvxMediaShape::getPropertyValueImpl().

css::uno::Sequence< css::uno::Any > SAL_CALL SvxShape::getPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual
SdrObject* SvxShape::GetSdrObject ( ) const
inline

Definition at line 210 of file unoshape.hxx.

References tools::WeakReference< reference_type >::get().

Referenced by _getPropertyDefault(), _getPropertyState(), _getPropertyValue(), _getSupportedServiceNames(), _setPropertyToDefault(), _setPropertyValue(), SvxDrawPage::add(), Svx3DSceneObject::add(), SvxDrawPage::addBottom(), SvxShapeGroup::addUnoShape(), SvxShapeConnector::connectEnd(), SvxShapeConnector::connectStart(), Create(), SvxCustomShape::createCustomShapeDefaults(), SvxOle2Shape::createLink(), SvxOle2Shape::createObject(), SvxShapeConnector::disconnectBegin(), SvxShapeConnector::disconnectEnd(), dispose(), GetAnyForItem(), GetBitmap(), SvxShapeGroup::getByIndex(), Svx3DSceneObject::getByIndex(), SvxOle2Shape::GetClassName_Impl(), SvxShapeControl::getControl(), SvxShapeGroup::getCount(), Svx3DSceneObject::getCount(), getGluePoints(), getName(), getParent(), SvxShapePolyPolygon::GetPolygon(), SvxShapePolyPolygon::GetPolygonKind(), getPosition(), SvxCustomShape::getPosition(), getPropertyStateImpl(), SvxPluginShape::getPropertyValueImpl(), SvxAppletShape::getPropertyValueImpl(), SvxFrameShape::getPropertyValueImpl(), SvxTableShape::getPropertyValueImpl(), getPropertyValueImpl(), SvxShapeText::getPropertyValueImpl(), SvxOle2Shape::getPropertyValueImpl(), SvxShapePolyPolygon::getPropertyValueImpl(), SvxGraphicObject::getPropertyValueImpl(), Svx3DSceneObject::getPropertyValueImpl(), Svx3DCubeObject::getPropertyValueImpl(), Svx3DSphereObject::getPropertyValueImpl(), Svx3DLatheObject::getPropertyValueImpl(), Svx3DExtrudeObject::getPropertyValueImpl(), Svx3DPolygonObject::getPropertyValueImpl(), SvxCustomShape::getPropertyValueImpl(), SvxMediaShape::getPropertyValueImpl(), SdrObject::getSdrObjectFromXShape(), GetSdrObjectFromXShape(), getSize(), SvxShapeGroup::hasElements(), Svx3DSceneObject::hasElements(), impl_construct(), impl_initFromSdrObject(), InvalidateSdrObject(), SvxTableShape::lock(), ObtainSettingsFromPropertySet(), SvxDrawPage::remove(), SvxShapeGroup::remove(), Svx3DSceneObject::remove(), SvxOle2Shape::resetModifiedState(), setAllPropertiesToDefault(), SvxShapeControl::setControl(), SetFillAttribute(), setName(), SvxShapePolyPolygon::SetPolygon(), setPosition(), setPropertyToDefaultImpl(), SvxCustomShape::setPropertyValue(), SvxPluginShape::setPropertyValueImpl(), SvxAppletShape::setPropertyValueImpl(), SvxFrameShape::setPropertyValueImpl(), SvxTableShape::setPropertyValueImpl(), setPropertyValueImpl(), SvxShapeText::setPropertyValueImpl(), SvxOle2Shape::setPropertyValueImpl(), SvxShapePolyPolygon::setPropertyValueImpl(), SvxGraphicObject::setPropertyValueImpl(), Svx3DSceneObject::setPropertyValueImpl(), Svx3DCubeObject::setPropertyValueImpl(), Svx3DSphereObject::setPropertyValueImpl(), Svx3DLatheObject::setPropertyValueImpl(), Svx3DExtrudeObject::setPropertyValueImpl(), Svx3DPolygonObject::setPropertyValueImpl(), SvxMediaShape::setPropertyValueImpl(), setPropertyValues(), setSize(), SvxTableShape::unlock(), updateShapeKind(), and ~SvxShape().

sal_uInt32 SvxShape::getShapeKind ( ) const

Definition at line 264 of file unoshape.cxx.

References mpImpl.

svx::PropertyChangeNotifier & SvxShape::getShapePropertyChangeNotifier ( )
OUString SAL_CALL SvxShape::getShapeType ( )
overridevirtual
awt::Size SAL_CALL SvxShape::getSize ( )
overridevirtual
uno::Sequence< OUString > SAL_CALL SvxShape::getSupportedServiceNames ( )
overridevirtual
uno::Sequence< uno::Type > SAL_CALL SvxShape::getTypes ( )
overridevirtual
bool SvxShape::HasSdrObject ( ) const
inline
bool SvxShape::HasSdrObjectOwnership ( ) const
void SvxShape::impl_construct ( )
private
void SvxShape::impl_initFromSdrObject ( )
private
void SvxShape::InvalidateSdrObject ( )
sal_Bool SAL_CALL SvxShape::isActionLocked ( )
overridevirtual

Definition at line 3751 of file unoshape.cxx.

References mnLockCount.

void SvxShape::lock ( )
protectedvirtual

called from the XActionLockable interface methods on initial locking

Reimplemented in SvxShapeText, and SvxTableShape.

Definition at line 3739 of file unoshape.cxx.

Referenced by addActionLock(), SvxTableShape::lock(), and setActionLocks().

void SvxShape::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
throw (
)
overridevirtual
void SvxShape::ObtainSettingsFromPropertySet ( const SvxItemPropertySet rPropSet)
uno::Any SAL_CALL SvxShape::queryAggregation ( const css::uno::Type &  aType)
overridevirtual
void SAL_CALL SvxShape::removeActionLock ( )
overridevirtual

Definition at line 3771 of file unoshape.cxx.

References DBG_ASSERT, mnLockCount, and unlock().

void SAL_CALL SvxShape::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 1356 of file unoshape.cxx.

References mpImpl.

void SAL_CALL SvxShape::removePropertiesChangeListener ( const css::uno::Reference< css::beans::XPropertiesChangeListener > &  xListener)
overridevirtual

Definition at line 1885 of file unoshape.cxx.

void SAL_CALL SvxShape::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 1391 of file unoshape.cxx.

References SvxShapeMutex::maMutex, and mpImpl.

void SAL_CALL SvxShape::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 1404 of file unoshape.cxx.

sal_Int16 SAL_CALL SvxShape::resetActionLocks ( )
overridevirtual

Definition at line 3797 of file unoshape.cxx.

References mnLockCount, and unlock().

void SAL_CALL SvxShape::setActionLocks ( sal_Int16  nLock)
overridevirtual

Definition at line 3783 of file unoshape.cxx.

References lock(), mnLockCount, and unlock().

void SvxShape::setAllPropertiesToDefault ( )
overridevirtual
bool SvxShape::SetFillAttribute ( sal_uInt16  nWID,
const OUString &  rName 
)
protected
bool SvxShape::SetFillAttribute ( sal_uInt16  nWID,
const OUString &  rName,
SfxItemSet rSet,
SdrModel const *  pModel 
)
static
bool SvxShape::SetFillAttribute ( sal_uInt16  nWID,
const OUString &  rName,
SfxItemSet rSet 
)
static
void SvxShape::setMaster ( SvxShapeMaster pMaster)

Definition at line 270 of file unoshape.cxx.

References mpImpl.

void SAL_CALL SvxShape::setName ( const OUString &  aName)
overridevirtual

Definition at line 1269 of file unoshape.cxx.

References GetSdrObject(), HasSdrObject(), maShapeName, and SdrObject::SetName().

void SAL_CALL SvxShape::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

Definition at line 3732 of file unoshape.cxx.

void SAL_CALL SvxShape::setPosition ( const css::awt::Point &  aPosition)
overridevirtual
void SvxShape::setPropertiesToDefault ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Definition at line 3051 of file unoshape.cxx.

References setPropertyToDefault().

void SAL_CALL SvxShape::setPropertyToDefault ( const OUString &  PropertyName)
overridevirtual

Reimplemented in SvxShapeControl.

Definition at line 2955 of file unoshape.cxx.

References _setPropertyToDefault(), and mpImpl.

Referenced by setPropertiesToDefault(), and SvxShapeControl::setPropertyToDefault().

bool SvxShape::setPropertyToDefaultImpl ( const SfxItemPropertySimpleEntry pProperty)
protectedvirtual
void SAL_CALL SvxShape::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual
bool SvxShape::setPropertyValueImpl ( const OUString &  rName,
const SfxItemPropertySimpleEntry pProperty,
const css::uno::Any &  rValue 
)
protectedvirtual
Exceptions
css::beans::UnknownPropertyException
css::beans::PropertyVetoException
css::lang::IllegalArgumentException
css::lang::WrappedTargetException
css::uno::RuntimeException

Reimplemented in SvxMediaShape, Svx3DPolygonObject, Svx3DExtrudeObject, Svx3DLatheObject, Svx3DSphereObject, Svx3DCubeObject, Svx3DSceneObject, SvxGraphicObject, SvxShapePolyPolygon, SvxOle2Shape, SvxShapeText, SvxTableShape, SvxFrameShape, SvxAppletShape, and SvxPluginShape.

Definition at line 2054 of file unoshape.cxx.

References Point::AdjustX(), Point::AdjustY(), aName, SfxItemPropertySimpleEntry::aType, SdrObject::BroadcastObjectChange(), Center, SdrEdgeObj::ConnectToNode(), basegfx::B2DPolyPolygon::count(), basegfx::utils::createTranslateB2DHomMatrix(), DBG_ASSERT, F_PI18000, ForceMetricToItemPoolMetric(), basegfx::fround(), basegfx::B2DHomMatrix::get(), SdrObject::GetAnchorPos(), SdrLayer::GetID(), SdrLayerAdmin::GetLayer(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerPerID(), SdrObject::getParentSdrObjListFromSdrObject(), SdrObject::GetRotateAngle(), SdrObject::getSdrModelFromSdrObject(), GetSdrObject(), GetSdrObjectFromXShape(), SdrObject::GetShearAngle(), SdrModel::IsWriter(), MID_NAME, SdrMeasureObj::NbcSetPoint(), nId, SfxItemPropertySimpleEntry::nMemberId, SfxItemPropertySimpleEntry::nWID, OWN_ATTR_CAPTION_POINT, OWN_ATTR_EDGE_END_OBJ, OWN_ATTR_EDGE_END_POS, OWN_ATTR_EDGE_POLYPOLYGONBEZIER, OWN_ATTR_EDGE_START_OBJ, OWN_ATTR_EDGE_START_POS, OWN_ATTR_FILLBMP_MODE, OWN_ATTR_FRAMERECT, OWN_ATTR_GLUEID_HEAD, OWN_ATTR_GLUEID_TAIL, OWN_ATTR_INTEROPGRABBAG, OWN_ATTR_MEASURE_END_POS, OWN_ATTR_MEASURE_START_POS, OWN_ATTR_MIRRORED, OWN_ATTR_MISC_OBJ_DESCRIPTION, OWN_ATTR_MISC_OBJ_TITLE, OWN_ATTR_PAGE_NUMBER, OWN_ATTR_TRANSFORMATION, OWN_ATTR_ZORDER, SdrObject::Rotate(), SDRATTR_LAYERID, SDRATTR_LAYERNAME, SDRATTR_OBJECTNAME, SDRATTR_OBJMOVEPROTECT, SDRATTR_OBJPRINTABLE, SDRATTR_OBJSIZEPROTECT, SDRATTR_OBJVISIBLE, SDRATTR_ROTATEANGLE, SDRATTR_SHEARANGLE, basegfx::B2DHomMatrix::set(), SdrObject::SetChanged(), SdrObject::SetDescription(), SdrEdgeObj::SetEdgeTrackPath(), SetFillAttribute(), SdrEdgeObj::setGluePointIndex(), SdrObject::SetGrabBagItem(), SdrObject::SetLayer(), SdrObject::SetMergedItem(), SdrGrafObj::SetMirrored(), SdrObject::SetMoveProtect(), SdrObject::SetName(), SdrObjList::SetObjectOrdNum(), tools::Rectangle::SetPos(), SdrObject::SetPrintable(), SdrPageObj::SetReferencedPage(), SdrObject::SetResizeProtect(), tools::Rectangle::SetSize(), SdrObject::SetSnapRect(), SdrEdgeObj::SetTailPoint(), SdrObject::SetTitle(), SdrObject::SetVisible(), SdrObject::Shear(), basegfx::B2DPolyPolygon::transform(), SdrObject::TRGetBaseGeometry(), SdrObject::TRSetBaseGeometry(), basegfx::utils::UnoPointSequenceSequenceToB2DPolyPolygon(), basegfx::utils::UnoPolyPolygonBezierCoordsToB2DPolyPolygon(), Point::X(), XATTR_FILLBITMAP, XATTR_FILLFLOATTRANSPARENCE, XATTR_FILLGRADIENT, XATTR_FILLHATCH, XATTR_LINEDASH, XATTR_LINEEND, XATTR_LINESTART, and Point::Y().

Referenced by _setPropertyValue(), SvxTableShape::setPropertyValueImpl(), SvxShapeText::setPropertyValueImpl(), Svx3DSceneObject::setPropertyValueImpl(), Svx3DCubeObject::setPropertyValueImpl(), Svx3DSphereObject::setPropertyValueImpl(), Svx3DLatheObject::setPropertyValueImpl(), Svx3DExtrudeObject::setPropertyValueImpl(), Svx3DPolygonObject::setPropertyValueImpl(), and SvxMediaShape::setPropertyValueImpl().

void SAL_CALL SvxShape::setPropertyValues ( const css::uno::Sequence< OUString > &  aPropertyNames,
const css::uno::Sequence< css::uno::Any > &  aValues 
)
overridevirtual
void SvxShape::setShapeKind ( sal_uInt32  nKind)

Definition at line 258 of file unoshape.cxx.

References mpImpl.

Referenced by SvxDrawPage::CreateShapeByTypeAndInventor(), and SvxShapeControl::SvxShapeControl().

void SvxShape::SetShapeType ( const OUString &  ShapeType)
inline
void SAL_CALL SvxShape::setSize ( const css::awt::Size &  aSize)
overridevirtual
sal_Bool SAL_CALL SvxShape::supportsService ( const OUString &  ServiceName)
overridevirtual

Reimplemented in SvxShapeText.

Definition at line 3664 of file unoshape.cxx.

References cppu::supportsService().

void SvxShape::TakeSdrObjectOwnership ( )

takes the ownership of the SdrObject.

When the shape is disposed, and it has the ownership of its associated SdrObject, then it will delete this object.

Definition at line 229 of file unoshape.cxx.

References mpImpl.

Referenced by SdrObject::impl_setUnoShape().

void SvxShape::unlock ( )
protectedvirtual

called from the XActionLockable interface methods on final unlock

Reimplemented in SvxShapeText, and SvxTableShape.

Definition at line 3745 of file unoshape.cxx.

Referenced by removeActionLock(), resetActionLocks(), setActionLocks(), and SvxTableShape::unlock().

void SvxShape::updateShapeKind ( )
protected

since polygon shapes can change their kind during editing, we have to recheck it here.

Circle shapes also change their kind, but they are all treated equal so no update is necessary.

Definition at line 3816 of file unoshape.cxx.

References SdrObject::GetObjIdentifier(), GetSdrObject(), mpImpl, nId, OBJ_FREEFILL, OBJ_FREELINE, OBJ_LINE, OBJ_PATHFILL, OBJ_PATHLINE, OBJ_PATHPLIN, OBJ_PATHPOLY, OBJ_PLIN, and OBJ_POLY.

Friends And Related Function Documentation

friend class SdXShape
friend

Definition at line 127 of file unoshape.hxx.

friend class SvxDrawPage
friend

Definition at line 125 of file unoshape.hxx.

friend class SvxShapeConnector
friend

Definition at line 126 of file unoshape.hxx.

Member Data Documentation

css::awt::Point SvxShape::maPosition
private

Definition at line 114 of file unoshape.hxx.

Referenced by Create(), getPosition(), setPosition(), and setSize().

const SfxItemPropertyMapEntry* SvxShape::maPropMapEntries
protected

Definition at line 130 of file unoshape.hxx.

OUString SvxShape::maShapeName
private

Definition at line 116 of file unoshape.hxx.

Referenced by Create(), getName(), and setName().

OUString SvxShape::maShapeType
private

Definition at line 115 of file unoshape.hxx.

Referenced by getShapeType().

css::awt::Size SvxShape::maSize
private

Definition at line 113 of file unoshape.hxx.

Referenced by Create(), getSize(), and setSize().

bool SvxShape::mbIsMultiPropertyCall
private

Definition at line 120 of file unoshape.hxx.

Referenced by _setPropertyValue(), Create(), endSetPropertyValues(), and setPropertyValues().

sal_uInt16 SvxShape::mnLockCount
protected

used from the XActionLockable interface

Definition at line 163 of file unoshape.hxx.

Referenced by addActionLock(), isActionLocked(), removeActionLock(), resetActionLocks(), setActionLocks(), and ~SvxShape().

std::unique_ptr<SvxShapeImpl> SvxShape::mpImpl
private
const SvxItemPropertySet* SvxShape::mpPropSet
protected
::tools::WeakReference< SdrObject > SvxShape::mpSdrObjectWeakReference
private

Definition at line 133 of file unoshape.hxx.

Referenced by Create(), and InvalidateSdrObject().

css::uno::WeakReference< css::container::XIndexContainer > SvxShape::mxGluePoints
private

Definition at line 122 of file unoshape.hxx.

Referenced by getGluePoints().


The documentation for this class was generated from the following files: