LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ScVbaSheetObjectBase Class Referenceabstract

Base class for drawing objects embedded in sheets. More...

#include <vbasheetobject.hxx>

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

Public Member Functions

 ScVbaSheetObjectBase (const css::uno::Reference< ov::XHelperInterface > &rxParent, const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XModel > &rxModel, const css::uno::Reference< css::drawing::XShape > &rxShape)
 
virtual double SAL_CALL getLeft () override
 
virtual void SAL_CALL setLeft (double fLeft) override
 
virtual double SAL_CALL getTop () override
 
virtual void SAL_CALL setTop (double fTop) override
 
virtual double SAL_CALL getWidth () override
 
virtual void SAL_CALL setWidth (double fWidth) override
 
virtual double SAL_CALL getHeight () override
 
virtual void SAL_CALL setHeight (double fHeight) override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &rName) override
 
virtual sal_Int32 SAL_CALL getPlacement () override
 
virtual void SAL_CALL setPlacement (sal_Int32 nPlacement) override
 
virtual sal_Bool SAL_CALL getPrintObject () override
 
virtual void SAL_CALL setPrintObject (sal_Bool bPrintObject) override
 
void setDefaultProperties (sal_Int32 nIndex)
 Sets default properties after a new object has been created. More...
 
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< typename... Ifc >
 InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< 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
 

Protected Member Functions

virtual OUString implGetBaseName () const =0
 Derived classes return the base name used for new objects. More...
 
virtual void implSetDefaultProperties ()
 Derived classes set default properties for new drawing objects. More...
 

Protected Attributes

ScVbaPalette maPalette
 
css::uno::Reference< css::frame::XModel > mxModel
 
css::uno::Reference< css::drawing::XShape > mxShape
 
css::uno::Reference< css::beans::XPropertySetmxShapeProps
 
- Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Base class for drawing objects embedded in sheets.

Definition at line 82 of file vbasheetobject.hxx.

Constructor & Destructor Documentation

◆ ScVbaSheetObjectBase()

ScVbaSheetObjectBase::ScVbaSheetObjectBase ( const css::uno::Reference< ov::XHelperInterface > &  rxParent,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::frame::XModel > &  rxModel,
const css::uno::Reference< css::drawing::XShape > &  rxShape 
)
explicit
Exceptions
css::uno::RuntimeException

Definition at line 167 of file vbasheetobject.cxx.

References mxModel, and mxShape.

Member Function Documentation

◆ getHeight()

double SAL_CALL ScVbaSheetObjectBase::getHeight ( )
overridevirtual

Definition at line 218 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

◆ getLeft()

double SAL_CALL ScVbaSheetObjectBase::getLeft ( )
overridevirtual

Definition at line 182 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

◆ getName()

OUString SAL_CALL ScVbaSheetObjectBase::getName ( )
overridevirtual

Definition at line 230 of file vbasheetobject.cxx.

References mxShapeProps.

◆ getPlacement()

sal_Int32 SAL_CALL ScVbaSheetObjectBase::getPlacement ( )
overridevirtual

◆ getPrintObject()

sal_Bool SAL_CALL ScVbaSheetObjectBase::getPrintObject ( )
overridevirtual

Definition at line 280 of file vbasheetobject.cxx.

◆ getTop()

double SAL_CALL ScVbaSheetObjectBase::getTop ( )
overridevirtual

Definition at line 194 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

◆ getWidth()

double SAL_CALL ScVbaSheetObjectBase::getWidth ( )
overridevirtual

Definition at line 206 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

◆ implGetBaseName()

virtual OUString ScVbaSheetObjectBase::implGetBaseName ( ) const
protectedpure virtual

Derived classes return the base name used for new objects.

Referenced by setDefaultProperties().

◆ implSetDefaultProperties()

void ScVbaSheetObjectBase::implSetDefaultProperties ( )
protectedvirtual

Derived classes set default properties for new drawing objects.

Exceptions
css::uno::RuntimeException

Definition at line 300 of file vbasheetobject.cxx.

Referenced by setDefaultProperties().

◆ setDefaultProperties()

void ScVbaSheetObjectBase::setDefaultProperties ( sal_Int32  nIndex)

Sets default properties after a new object has been created.

Exceptions
css::uno::RuntimeException

Definition at line 293 of file vbasheetobject.cxx.

References aName, implGetBaseName(), implSetDefaultProperties(), nIndex, and setName().

◆ setHeight()

void SAL_CALL ScVbaSheetObjectBase::setHeight ( double  fHeight)
overridevirtual

Definition at line 223 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

◆ setLeft()

void SAL_CALL ScVbaSheetObjectBase::setLeft ( double  fLeft)
overridevirtual

Definition at line 187 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

◆ setName()

void SAL_CALL ScVbaSheetObjectBase::setName ( const OUString &  rName)
overridevirtual

Definition at line 235 of file vbasheetobject.cxx.

References mxShapeProps.

Referenced by setDefaultProperties().

◆ setPlacement()

void SAL_CALL ScVbaSheetObjectBase::setPlacement ( sal_Int32  nPlacement)
overridevirtual

◆ setPrintObject()

void SAL_CALL ScVbaSheetObjectBase::setPrintObject ( sal_Bool  bPrintObject)
overridevirtual

Definition at line 286 of file vbasheetobject.cxx.

◆ setTop()

void SAL_CALL ScVbaSheetObjectBase::setTop ( double  fTop)
overridevirtual

Definition at line 199 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

◆ setWidth()

void SAL_CALL ScVbaSheetObjectBase::setWidth ( double  fWidth)
overridevirtual

Definition at line 211 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

Member Data Documentation

◆ maPalette

ScVbaPalette ScVbaSheetObjectBase::maPalette
protected

Definition at line 124 of file vbasheetobject.hxx.

◆ mxModel

css::uno::Reference< css::frame::XModel > ScVbaSheetObjectBase::mxModel
protected

Definition at line 125 of file vbasheetobject.hxx.

◆ mxShape

css::uno::Reference< css::drawing::XShape > ScVbaSheetObjectBase::mxShape
protected

◆ mxShapeProps

css::uno::Reference< css::beans::XPropertySet > ScVbaSheetObjectBase::mxShapeProps
protected

Definition at line 127 of file vbasheetobject.hxx.

Referenced by getName(), and setName().


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