LibreOffice Module oox (master) 1
Public Member Functions | Public Attributes | Protected Attributes | List of all members
oox::ole::ControlModelBase Class Referenceabstract

Base class for all models of form controls. More...

#include <axcontrol.hxx>

Inheritance diagram for oox::ole::ControlModelBase:
[legend]

Public Member Functions

 ControlModelBase ()
 
virtual ~ControlModelBase ()
 
void setAwtModelMode ()
 Sets this control model to AWT model mode. More...
 
void setFormComponentMode ()
 Sets this control model to form component mode. More...
 
OUString getServiceName () const
 Returns the UNO service name used to construct the AWT control model, or the control form component. More...
 
virtual void importProperty (sal_Int32 nPropId, const OUString &rValue)
 Derived classes set specific OOXML properties at the model structure. More...
 
virtual void importPictureData (sal_Int32 nPropId, BinaryInputStream &rInStrm)
 Derived classes set binary data (picture, mouse icon) at the model structure. More...
 
virtual bool importBinaryModel (BinaryInputStream &rInStrm)=0
 Derived classes import a form control model from the passed input stream. More...
 
virtual void exportBinaryModel (BinaryOutputStream &)
 Derived classes export a form control model to the passed output stream. More...
 
virtual void exportCompObj (BinaryOutputStream &)
 Derived classes export CompObjStream contents. More...
 
virtual ApiControlType getControlType () const =0
 Derived classes return the UNO control type enum value. More...
 
virtual void convertProperties (PropertyMap &rPropMap, const ControlConverter &rConv) const
 Derived classes convert all control properties. More...
 
virtual void convertFromProperties (PropertySet &rPropSet, const ControlConverter &rConv)
 Derived classes convert from uno control properties to equiv. More...
 
void convertSize (PropertyMap &rPropMap, const ControlConverter &rConv) const
 Converts the control size to UNO properties. More...
 

Public Attributes

AxPairData maSize
 Size of the control in 1/100 mm. More...
 

Protected Attributes

bool mbAwtModel
 True = AWT control model, false = form component. More...
 

Detailed Description

Base class for all models of form controls.

Definition at line 346 of file axcontrol.hxx.

Constructor & Destructor Documentation

◆ ControlModelBase()

oox::ole::ControlModelBase::ControlModelBase ( )
explicit

Definition at line 581 of file axcontrol.cxx.

References maSize.

◆ ~ControlModelBase()

oox::ole::ControlModelBase::~ControlModelBase ( )
virtual

Definition at line 587 of file axcontrol.cxx.

Member Function Documentation

◆ convertFromProperties()

void oox::ole::ControlModelBase::convertFromProperties ( PropertySet rPropSet,
const ControlConverter rConv 
)
virtual

◆ convertProperties()

void oox::ole::ControlModelBase::convertProperties ( PropertyMap rPropMap,
const ControlConverter rConv 
) const
virtual

◆ convertSize()

void oox::ole::ControlModelBase::convertSize ( PropertyMap rPropMap,
const ControlConverter rConv 
) const

Converts the control size to UNO properties.

Definition at line 650 of file axcontrol.cxx.

References oox::ole::ControlConverter::convertSize(), and maSize.

◆ exportBinaryModel()

virtual void oox::ole::ControlModelBase::exportBinaryModel ( BinaryOutputStream )
inlinevirtual

◆ exportCompObj()

virtual void oox::ole::ControlModelBase::exportCompObj ( BinaryOutputStream )
inlinevirtual

◆ getControlType()

virtual ApiControlType oox::ole::ControlModelBase::getControlType ( ) const
pure virtual

◆ getServiceName()

OUString oox::ole::ControlModelBase::getServiceName ( ) const

◆ importBinaryModel()

virtual bool oox::ole::ControlModelBase::importBinaryModel ( BinaryInputStream rInStrm)
pure virtual

◆ importPictureData()

void oox::ole::ControlModelBase::importPictureData ( sal_Int32  nPropId,
BinaryInputStream rInStrm 
)
virtual

◆ importProperty()

void oox::ole::ControlModelBase::importProperty ( sal_Int32  nPropId,
const OUString &  rValue 
)
virtual

◆ setAwtModelMode()

void oox::ole::ControlModelBase::setAwtModelMode ( )
inline

Sets this control model to AWT model mode.

Definition at line 353 of file axcontrol.hxx.

Referenced by oox::ole::AxContainerModelBase::AxContainerModelBase().

◆ setFormComponentMode()

void oox::ole::ControlModelBase::setFormComponentMode ( )
inline

Sets this control model to form component mode.

Definition at line 355 of file axcontrol.hxx.

Member Data Documentation

◆ maSize

AxPairData oox::ole::ControlModelBase::maSize

◆ mbAwtModel

bool oox::ole::ControlModelBase::mbAwtModel
protected

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