LibreOffice Module vbahelper (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ScVbaShape Class Reference

#include <vbashape.hxx>

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

Public Member Functions

 ScVbaShape (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::drawing::XShape > xShape, css::uno::Reference< css::drawing::XShapes > xShapes, css::uno::Reference< css::frame::XModel > xModel, sal_Int32 nType)
 
virtual ~ScVbaShape () override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &_name) override
 
virtual OUString SAL_CALL getAlternativeText () override
 
virtual void SAL_CALL setAlternativeText (const OUString &_name) override
 
virtual double SAL_CALL getHeight () override
 
virtual void SAL_CALL setHeight (double _height) override
 
virtual double SAL_CALL getWidth () override
 
virtual void SAL_CALL setWidth (double _width) override
 
virtual double SAL_CALL getLeft () override
 
virtual void SAL_CALL setLeft (double _left) override
 
virtual double SAL_CALL getTop () override
 
virtual void SAL_CALL setTop (double _top) override
 
virtual sal_Bool SAL_CALL getVisible () override
 
virtual void SAL_CALL setVisible (sal_Bool _visible) override
 
virtual sal_Int32 SAL_CALL getZOrderPosition () override
 
virtual sal_Int32 SAL_CALL getType () override
 
virtual double SAL_CALL getRotation () override
 
virtual void SAL_CALL setRotation (double _rotation) override
 
virtual css::uno::Reference< ov::msforms::XLineFormat > SAL_CALL getLine () override
 
virtual css::uno::Reference< ov::msforms::XFillFormat > SAL_CALL getFill () override
 
virtual css::uno::Reference< ov::msforms::XPictureFormat > SAL_CALL getPictureFormat () override
 
virtual sal_Bool SAL_CALL getLockAspectRatio () override
 
virtual void SAL_CALL setLockAspectRatio (sal_Bool _lockaspectratio) override
 
virtual sal_Bool SAL_CALL getLockAnchor () override
 
virtual void SAL_CALL setLockAnchor (sal_Bool _lockanchor) override
 
virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition () override
 
virtual void SAL_CALL setRelativeHorizontalPosition (::sal_Int32 _relativehorizontalposition) override
 
virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition () override
 
virtual void SAL_CALL setRelativeVerticalPosition (::sal_Int32 _relativeverticalposition) override
 
virtual css::uno::Any SAL_CALL TextFrame () override
 
virtual css::uno::Any SAL_CALL WrapFormat () override
 
virtual void SAL_CALL Delete () override
 
virtual void SAL_CALL ZOrder (sal_Int32 ZOrderCmd) override
 
virtual void SAL_CALL IncrementRotation (double Increment) override
 
virtual void SAL_CALL IncrementLeft (double Increment) override
 
virtual void SAL_CALL IncrementTop (double Increment) override
 
virtual void SAL_CALL ScaleHeight (double Factor, sal_Bool RelativeToOriginalSize, sal_Int32 Scale) override
 
virtual void SAL_CALL ScaleWidth (double Factor, sal_Bool RelativeToOriginalSize, sal_Int32 Scale) override
 
virtual void SAL_CALL Select (const css::uno::Any &Replace) override
 
virtual css::uno::Any SAL_CALL ShapeRange (const css::uno::Any &index) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &rEventObject) override
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< Ifc >
 InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual OUString getServiceImplName ()=0
 
virtual css::uno::Sequence< OUString > getServiceNames ()=0
 
virtual ::sal_Int32 SAL_CALL getCreator () override
 
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent () override
 
virtual css::uno::Any SAL_CALL Application () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Static Public Member Functions

static sal_Int32 getType (const css::uno::Reference< css::drawing::XShape > &rShape)
 
static sal_Int32 getAutoShapeType (const css::uno::Reference< css::drawing::XShape > &rShape)
 

Protected Member Functions

void addListeners ()
 
void removeShapeListener ()
 
void removeShapesListener ()
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 

Protected Attributes

ov::ShapeHelper m_aShapeHelper
 
css::uno::Reference< css::drawing::XShape > m_xShape
 
css::uno::Reference< css::drawing::XShapes > m_xShapes
 
css::uno::Reference< css::beans::XPropertySetm_xPropertySet
 
sal_Int32 m_nType
 
css::uno::Reference< css::frame::XModel > m_xModel
 
- Protected Attributes inherited from InheritedHelperInterfaceImpl< Ifc >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 60 of file vbashape.hxx.

Constructor & Destructor Documentation

◆ ScVbaShape()

ScVbaShape::ScVbaShape ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
css::uno::Reference< css::drawing::XShape >  xShape,
css::uno::Reference< css::drawing::XShapes >  xShapes,
css::uno::Reference< css::frame::XModel >  xModel,
sal_Int32  nType 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 52 of file vbashape.cxx.

References addListeners(), m_xModel, m_xPropertySet, m_xShape, nType, and xModel.

◆ ~ScVbaShape()

ScVbaShape::~ScVbaShape ( )
overridevirtual

Definition at line 64 of file vbashape.cxx.

Member Function Documentation

◆ addListeners()

void ScVbaShape::addListeners ( )
protected

Definition at line 86 of file vbashape.cxx.

References m_xShape, and m_xShapes.

Referenced by ScVbaShape().

◆ Delete()

void SAL_CALL ScVbaShape::Delete ( )
overridevirtual

Definition at line 405 of file vbashape.cxx.

References m_xShape, and m_xShapes.

◆ disposing()

void SAL_CALL ScVbaShape::disposing ( const css::lang::EventObject &  rEventObject)
overridevirtual

Definition at line 69 of file vbashape.cxx.

References removeShapeListener(), and removeShapesListener().

◆ getAlternativeText()

OUString SAL_CALL ScVbaShape::getAlternativeText ( )
overridevirtual

Definition at line 221 of file vbashape.cxx.

References m_xShape.

◆ getAutoShapeType()

sal_Int32 ScVbaShape::getAutoShapeType ( const css::uno::Reference< css::drawing::XShape > &  rShape)
static

Definition at line 162 of file vbashape.cxx.

References getType(), SAL_INFO, SAL_WARN, and sType.

◆ getFill()

uno::Reference< msforms::XFillFormat > SAL_CALL ScVbaShape::getFill ( )
overridevirtual

Definition at line 378 of file vbashape.cxx.

References m_xShape, and InheritedHelperInterfaceImpl< Ifc >::mxContext.

◆ getHeight()

double SAL_CALL ScVbaShape::getHeight ( )
overridevirtual

Definition at line 237 of file vbashape.cxx.

References ooo::vba::ShapeHelper::getHeight(), and m_aShapeHelper.

Referenced by ScaleHeight().

◆ getLeft()

double SAL_CALL ScVbaShape::getLeft ( )
overridevirtual

Definition at line 261 of file vbashape.cxx.

References ooo::vba::ShapeHelper::getLeft(), left, m_aShapeHelper, and m_xPropertySet.

Referenced by IncrementLeft(), and ScaleWidth().

◆ getLine()

uno::Reference< msforms::XLineFormat > SAL_CALL ScVbaShape::getLine ( )
overridevirtual

Definition at line 371 of file vbashape.cxx.

References m_xShape, and InheritedHelperInterfaceImpl< Ifc >::mxContext.

◆ getLockAnchor()

sal_Bool SAL_CALL ScVbaShape::getLockAnchor ( )
overridevirtual

Definition at line 570 of file vbashape.cxx.

◆ getLockAspectRatio()

sal_Bool SAL_CALL ScVbaShape::getLockAspectRatio ( )
overridevirtual

Definition at line 557 of file vbashape.cxx.

◆ getName()

OUString SAL_CALL ScVbaShape::getName ( )
overridevirtual

Definition at line 205 of file vbashape.cxx.

References m_xShape, and sName.

◆ getPictureFormat()

uno::Reference< msforms::XPictureFormat > SAL_CALL ScVbaShape::getPictureFormat ( )
overridevirtual

Definition at line 384 of file vbashape.cxx.

References m_xShape, and InheritedHelperInterfaceImpl< Ifc >::mxContext.

◆ getRelativeHorizontalPosition()

sal_Int32 SAL_CALL ScVbaShape::getRelativeHorizontalPosition ( )
override

Definition at line 583 of file vbashape.cxx.

References m_xPropertySet, and nType.

◆ getRelativeVerticalPosition()

sal_Int32 SAL_CALL ScVbaShape::getRelativeVerticalPosition ( )
override

Definition at line 654 of file vbashape.cxx.

References m_xPropertySet, and nType.

◆ getRotation()

double SAL_CALL ScVbaShape::getRotation ( )
overridevirtual

Definition at line 354 of file vbashape.cxx.

References m_xPropertySet.

Referenced by IncrementRotation().

◆ getServiceImplName()

OUString ScVbaShape::getServiceImplName ( )
overrideprotectedvirtual

Implements InheritedHelperInterfaceImpl< Ifc >.

Definition at line 738 of file vbashape.cxx.

◆ getServiceNames()

uno::Sequence< OUString > ScVbaShape::getServiceNames ( )
overrideprotectedvirtual

Implements InheritedHelperInterfaceImpl< Ifc >.

Definition at line 744 of file vbashape.cxx.

References aServiceNames.

◆ getTop()

double SAL_CALL ScVbaShape::getTop ( )
overridevirtual

Definition at line 293 of file vbashape.cxx.

References ooo::vba::ShapeHelper::getTop(), m_aShapeHelper, m_xPropertySet, and top.

Referenced by IncrementTop(), and ScaleHeight().

◆ getType() [1/2]

sal_Int32 SAL_CALL ScVbaShape::getType ( )
overridevirtual

◆ getType() [2/2]

static sal_Int32 ScVbaShape::getType ( const css::uno::Reference< css::drawing::XShape > &  rShape)
static
Exceptions
css::uno::RuntimeException

References Delete, getType(), and Select.

◆ getVisible()

sal_Bool SAL_CALL ScVbaShape::getVisible ( )
overridevirtual

Definition at line 324 of file vbashape.cxx.

◆ getWidth()

double SAL_CALL ScVbaShape::getWidth ( )
overridevirtual

Definition at line 249 of file vbashape.cxx.

References ooo::vba::ShapeHelper::getWidth(), and m_aShapeHelper.

Referenced by ScaleWidth().

◆ getZOrderPosition()

sal_Int32 SAL_CALL ScVbaShape::getZOrderPosition ( )
overridevirtual

Definition at line 339 of file vbashape.cxx.

References m_xPropertySet.

◆ IncrementLeft()

void SAL_CALL ScVbaShape::IncrementLeft ( double  Increment)
overridevirtual

Definition at line 454 of file vbashape.cxx.

References getLeft(), and setLeft().

◆ IncrementRotation()

void SAL_CALL ScVbaShape::IncrementRotation ( double  Increment)
overridevirtual

Definition at line 446 of file vbashape.cxx.

References getRotation(), and setRotation().

◆ IncrementTop()

void SAL_CALL ScVbaShape::IncrementTop ( double  Increment)
overridevirtual

Definition at line 462 of file vbashape.cxx.

References getTop(), and setTop().

◆ removeShapeListener()

void ScVbaShape::removeShapeListener ( )
protected
Exceptions
css::uno::RuntimeException

Definition at line 98 of file vbashape.cxx.

References m_xPropertySet, and m_xShape.

Referenced by disposing().

◆ removeShapesListener()

void ScVbaShape::removeShapesListener ( )
protected
Exceptions
css::uno::RuntimeException

Definition at line 110 of file vbashape.cxx.

References m_xShapes.

Referenced by disposing().

◆ ScaleHeight()

void SAL_CALL ScVbaShape::ScaleHeight ( double  Factor,
sal_Bool  RelativeToOriginalSize,
sal_Int32  Scale 
)
overridevirtual

Definition at line 470 of file vbashape.cxx.

References getHeight(), getTop(), Scale, setHeight(), and setTop().

◆ ScaleWidth()

void SAL_CALL ScVbaShape::ScaleWidth ( double  Factor,
sal_Bool  RelativeToOriginalSize,
sal_Int32  Scale 
)
overridevirtual

Definition at line 499 of file vbashape.cxx.

References getLeft(), getWidth(), Scale, setLeft(), and setWidth().

◆ Select()

void SAL_CALL ScVbaShape::Select ( const css::uno::Any &  Replace)
overridevirtual

Definition at line 528 of file vbashape.cxx.

References m_xModel, and m_xShape.

◆ setAlternativeText()

void SAL_CALL ScVbaShape::setAlternativeText ( const OUString &  _name)
overridevirtual

Definition at line 230 of file vbashape.cxx.

References m_xShape.

◆ setHeight()

void SAL_CALL ScVbaShape::setHeight ( double  _height)
overridevirtual

Definition at line 243 of file vbashape.cxx.

References m_aShapeHelper, and ooo::vba::ShapeHelper::setHeight().

Referenced by ScaleHeight().

◆ setLeft()

void SAL_CALL ScVbaShape::setLeft ( double  _left)
overridevirtual

Definition at line 279 of file vbashape.cxx.

References m_aShapeHelper, m_xPropertySet, and ooo::vba::ShapeHelper::setLeft().

Referenced by IncrementLeft(), and ScaleWidth().

◆ setLockAnchor()

void SAL_CALL ScVbaShape::setLockAnchor ( sal_Bool  _lockanchor)
overridevirtual

Definition at line 577 of file vbashape.cxx.

◆ setLockAspectRatio()

void SAL_CALL ScVbaShape::setLockAspectRatio ( sal_Bool  _lockaspectratio)
overridevirtual

Definition at line 564 of file vbashape.cxx.

◆ setName()

void SAL_CALL ScVbaShape::setName ( const OUString &  _name)
overridevirtual

Definition at line 214 of file vbashape.cxx.

References m_xShape.

◆ setRelativeHorizontalPosition()

void SAL_CALL ScVbaShape::setRelativeHorizontalPosition ( ::sal_Int32  _relativehorizontalposition)
overridevirtual

Definition at line 620 of file vbashape.cxx.

References ERRCODE_BASIC_BAD_ARGUMENT, m_xPropertySet, and nType.

◆ setRelativeVerticalPosition()

void SAL_CALL ScVbaShape::setRelativeVerticalPosition ( ::sal_Int32  _relativeverticalposition)
overridevirtual

Definition at line 691 of file vbashape.cxx.

References ERRCODE_BASIC_BAD_ARGUMENT, m_xPropertySet, and nType.

◆ setRotation()

void SAL_CALL ScVbaShape::setRotation ( double  _rotation)
overridevirtual

Definition at line 364 of file vbashape.cxx.

References m_xPropertySet.

Referenced by IncrementRotation().

◆ setTop()

void SAL_CALL ScVbaShape::setTop ( double  _top)
overridevirtual

Definition at line 310 of file vbashape.cxx.

References m_aShapeHelper, m_xPropertySet, and ooo::vba::ShapeHelper::setTop().

Referenced by IncrementTop(), and ScaleHeight().

◆ setVisible()

void SAL_CALL ScVbaShape::setVisible ( sal_Bool  _visible)
overridevirtual

Definition at line 332 of file vbashape.cxx.

◆ setWidth()

void SAL_CALL ScVbaShape::setWidth ( double  _width)
overridevirtual

Definition at line 255 of file vbashape.cxx.

References m_aShapeHelper, and ooo::vba::ShapeHelper::setWidth().

Referenced by ScaleWidth().

◆ ShapeRange()

uno::Any SAL_CALL ScVbaShape::ShapeRange ( const css::uno::Any &  index)
overridevirtual

◆ TextFrame()

uno::Any SAL_CALL ScVbaShape::TextFrame ( )
overridevirtual

◆ WrapFormat()

uno::Any SAL_CALL ScVbaShape::WrapFormat ( )
overridevirtual

◆ ZOrder()

void SAL_CALL ScVbaShape::ZOrder ( sal_Int32  ZOrderCmd)
overridevirtual

Definition at line 412 of file vbashape.cxx.

References m_xPropertySet, and SAL_MAX_INT32.

Member Data Documentation

◆ m_aShapeHelper

ov::ShapeHelper ScVbaShape::m_aShapeHelper
protected

Definition at line 63 of file vbashape.hxx.

Referenced by getHeight(), getLeft(), getTop(), getWidth(), setHeight(), setLeft(), setTop(), and setWidth().

◆ m_nType

sal_Int32 ScVbaShape::m_nType
protected

Definition at line 67 of file vbashape.hxx.

Referenced by getType().

◆ m_xModel

css::uno::Reference< css::frame::XModel > ScVbaShape::m_xModel
protected

Definition at line 68 of file vbashape.hxx.

Referenced by Select(), ShapeRange(), TextFrame(), and WrapFormat().

◆ m_xPropertySet

css::uno::Reference< css::beans::XPropertySet > ScVbaShape::m_xPropertySet
protected

◆ m_xShape

css::uno::Reference< css::drawing::XShape > ScVbaShape::m_xShape
protected

◆ m_xShapes

css::uno::Reference< css::drawing::XShapes > ScVbaShape::m_xShapes
protected

Definition at line 65 of file vbashape.hxx.

Referenced by addListeners(), Delete(), and removeShapesListener().


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