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< 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, const 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 83 of file vbasheetobject.hxx.

Constructor & Destructor Documentation

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 157 of file vbasheetobject.cxx.

References mxModel, and mxShape.

Member Function Documentation

double SAL_CALL ScVbaSheetObjectBase::getHeight ( )
overridevirtual

Definition at line 208 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

double SAL_CALL ScVbaSheetObjectBase::getLeft ( )
overridevirtual

Definition at line 172 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

OUString SAL_CALL ScVbaSheetObjectBase::getName ( )
overridevirtual

Definition at line 220 of file vbasheetobject.cxx.

References mxShapeProps.

sal_Int32 SAL_CALL ScVbaSheetObjectBase::getPlacement ( )
overridevirtual

Definition at line 230 of file vbasheetobject.cxx.

References eType, SvxShape::GetSdrObject(), mxShape, and SCA_PAGE.

sal_Bool SAL_CALL ScVbaSheetObjectBase::getPrintObject ( )
overridevirtual

Definition at line 270 of file vbasheetobject.cxx.

double SAL_CALL ScVbaSheetObjectBase::getTop ( )
overridevirtual

Definition at line 184 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

double SAL_CALL ScVbaSheetObjectBase::getWidth ( )
overridevirtual

Definition at line 196 of file vbasheetobject.cxx.

References HmmToPoints(), and mxShape.

virtual OUString ScVbaSheetObjectBase::implGetBaseName ( ) const
protectedpure virtual

Derived classes return the base name used for new objects.

Referenced by setDefaultProperties().

void ScVbaSheetObjectBase::implSetDefaultProperties ( )
protectedvirtual

Derived classes set default properties for new drawing objects.

Exceptions
css::uno::RuntimeException

Definition at line 290 of file vbasheetobject.cxx.

Referenced by setDefaultProperties().

void ScVbaSheetObjectBase::setDefaultProperties ( sal_Int32  nIndex)

Sets default properties after a new object has been created.

Exceptions
css::uno::RuntimeException

Definition at line 283 of file vbasheetobject.cxx.

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

void SAL_CALL ScVbaSheetObjectBase::setHeight ( double  fHeight)
overridevirtual

Definition at line 213 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

void SAL_CALL ScVbaSheetObjectBase::setLeft ( double  fLeft)
overridevirtual

Definition at line 177 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

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

Definition at line 225 of file vbasheetobject.cxx.

References mxShapeProps.

Referenced by setDefaultProperties().

void SAL_CALL ScVbaSheetObjectBase::setPlacement ( sal_Int32  nPlacement)
overridevirtual

Definition at line 249 of file vbasheetobject.cxx.

References eType, SvxShape::GetSdrObject(), mxShape, SCA_CELL, and SCA_PAGE.

void SAL_CALL ScVbaSheetObjectBase::setPrintObject ( sal_Bool  bPrintObject)
overridevirtual

Definition at line 276 of file vbasheetobject.cxx.

void SAL_CALL ScVbaSheetObjectBase::setTop ( double  fTop)
overridevirtual

Definition at line 189 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

void SAL_CALL ScVbaSheetObjectBase::setWidth ( double  fWidth)
overridevirtual

Definition at line 201 of file vbasheetobject.cxx.

References mxShape, and PointsToHmm().

Member Data Documentation

ScVbaPalette ScVbaSheetObjectBase::maPalette
protected

Definition at line 125 of file vbasheetobject.hxx.

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

Definition at line 126 of file vbasheetobject.hxx.

css::uno::Reference< css::drawing::XShape > ScVbaSheetObjectBase::mxShape
protected
css::uno::Reference< css::beans::XPropertySet > ScVbaSheetObjectBase::mxShapeProps
protected

Definition at line 128 of file vbasheetobject.hxx.

Referenced by getName(), and setName().


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