LibreOffice Module oox (master) 1
|
Base class for ActiveX container controls. More...
#include <axcontrol.hxx>
Public Member Functions | |
AxContainerModelBase (bool bFontSupport=false) | |
virtual void | importProperty (sal_Int32 nPropId, const OUString &rValue) override |
Allows to set single properties specified by XML token identifier. More... | |
virtual bool | importBinaryModel (BinaryInputStream &rInStrm) override |
Reads the leading structure in the 'f' stream containing the model for this control. More... | |
virtual void | convertProperties (PropertyMap &rPropMap, const ControlConverter &rConv) const override |
Converts font settings if supported. More... | |
bool | importClassTable (BinaryInputStream &rInStrm, AxClassTable &orClassTable) |
Reads the class table structure for embedded controls following the own model from the 'f' stream. More... | |
Public Member Functions inherited from oox::ole::AxFontDataModel | |
AxFontDataModel (bool bSupportsAlign=true) | |
virtual void | importProperty (sal_Int32 nPropId, const OUString &rValue) override |
Derived classes set specific OOXML properties at the model structure. More... | |
virtual bool | importBinaryModel (BinaryInputStream &rInStrm) override |
Derived classes import a form control model from the passed input stream. More... | |
virtual void | exportBinaryModel (BinaryOutputStream &rOutStrm) override |
Derived classes export a form control model to the passed output stream. More... | |
virtual void | convertProperties (PropertyMap &rPropMap, const ControlConverter &rConv) const override |
Derived classes convert all control properties. More... | |
virtual void | convertFromProperties (PropertySet &rPropSet, const ControlConverter &rConv) override |
Derived classes convert from uno control properties to equiv. More... | |
sal_Int16 | getFontHeight () const |
Returns the font height in points. More... | |
Public Member Functions inherited from oox::ole::AxControlModelBase | |
AxControlModelBase () | |
virtual void | importProperty (sal_Int32 nPropId, const OUString &rValue) override |
Derived classes set specific OOXML properties at the model structure. More... | |
Public Member Functions inherited from oox::ole::ControlModelBase | |
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 | |
StreamDataSequence | maPictureData |
Binary picture stream. More... | |
OUString | maCaption |
Visible caption of the form. More... | |
AxPairData | maLogicalSize |
Logical form size (scroll area). More... | |
AxPairData | maScrollPos |
Scroll position. More... | |
sal_uInt32 | mnBackColor |
Fill color. More... | |
sal_uInt32 | mnTextColor |
Text color. More... | |
sal_uInt32 | mnFlags |
Various flags. More... | |
sal_uInt32 | mnBorderColor |
Flat border color. More... | |
sal_Int32 | mnBorderStyle |
Flat border style. More... | |
sal_Int32 | mnScrollBars |
Horizontal/vertical scroll bar. More... | |
sal_Int32 | mnCycleType |
Cycle in all forms or in this form. More... | |
sal_Int32 | mnSpecialEffect |
3D border effect. More... | |
sal_Int32 | mnPicAlign |
Anchor position of the picture. More... | |
sal_Int32 | mnPicSizeMode |
Clip, stretch, zoom. More... | |
bool | mbPicTiling |
True = picture is repeated. More... | |
bool | mbFontSupport |
True = control supports the font property. More... | |
Public Attributes inherited from oox::ole::AxFontDataModel | |
AxFontData | maFontData |
The font settings. More... | |
Public Attributes inherited from oox::ole::ControlModelBase | |
AxPairData | maSize |
Size of the control in 1/100 mm. More... | |
Additional Inherited Members | |
Protected Attributes inherited from oox::ole::ControlModelBase | |
bool | mbAwtModel |
True = AWT control model, false = form component. More... | |
Base class for ActiveX container controls.
Definition at line 797 of file axcontrol.hxx.
|
explicit |
Definition at line 2361 of file axcontrol.cxx.
References oox::ole::ControlModelBase::maSize, mnFlags, and oox::ole::ControlModelBase::setAwtModelMode().
|
overridevirtual |
Converts font settings if supported.
Reimplemented from oox::ole::AxFontDataModel.
Reimplemented in oox::ole::AxFrameModel, oox::ole::AxPageModel, oox::ole::AxMultiPageModel, and oox::ole::AxUserFormModel.
Definition at line 2423 of file axcontrol.cxx.
References oox::ole::ControlConverter::convertColor(), oox::ole::AxFontDataModel::convertProperties(), mbFontSupport, mnTextColor, and PROP_TextColor.
Referenced by oox::ole::AxFrameModel::convertProperties(), oox::ole::AxPageModel::convertProperties(), oox::ole::AxMultiPageModel::convertProperties(), and oox::ole::AxUserFormModel::convertProperties().
|
overridevirtual |
Reads the leading structure in the 'f' stream containing the model for this control.
Reimplemented from oox::ole::AxFontDataModel.
Definition at line 2389 of file axcontrol.cxx.
References oox::ole::AxBinaryPropertyReader::finalizeImport(), maCaption, oox::ole::AxFontDataModel::maFontData, maLogicalSize, maPictureData, maScrollPos, oox::ole::ControlModelBase::maSize, mbPicTiling, mnBackColor, mnBorderColor, mnBorderStyle, mnCycleType, mnFlags, mnPicAlign, mnPicSizeMode, mnScrollBars, mnSpecialEffect, mnTextColor, oox::ole::AxBinaryPropertyReader::readBoolProperty(), oox::ole::AxBinaryPropertyReader::readFontProperty(), oox::ole::AxBinaryPropertyReader::readIntProperty(), oox::ole::AxBinaryPropertyReader::readPairProperty(), oox::ole::AxBinaryPropertyReader::readPictureProperty(), oox::ole::AxBinaryPropertyReader::readStringProperty(), oox::ole::AxBinaryPropertyReader::skipIntProperty(), oox::ole::AxBinaryPropertyReader::skipPictureProperty(), and oox::ole::AxBinaryPropertyReader::skipUndefinedProperty().
Referenced by oox::ole::VbaFormControl::importStorage().
bool oox::ole::AxContainerModelBase::importClassTable | ( | BinaryInputStream & | rInStrm, |
AxClassTable & | orClassTable | ||
) |
Reads the class table structure for embedded controls following the own model from the 'f' stream.
Definition at line 2432 of file axcontrol.cxx.
References oox::ole::AxBinaryPropertyReader::finalizeImport(), oox::getFlag(), mnFlags, nCount, nIndex, oox::ole::AxBinaryPropertyReader::readGuidProperty(), oox::BinaryInputStream::readuInt16(), oox::ole::AxBinaryPropertyReader::skipGuidProperty(), oox::ole::AxBinaryPropertyReader::skipIntProperty(), and oox::ole::AxBinaryPropertyReader::skipUndefinedProperty().
Referenced by oox::ole::VbaFormControl::importStorage().
|
overridevirtual |
Allows to set single properties specified by XML token identifier.
Reimplemented from oox::ole::AxFontDataModel.
Definition at line 2383 of file axcontrol.cxx.
References maCaption.
Referenced by oox::ole::VbaFormControl::importStorage().
OUString oox::ole::AxContainerModelBase::maCaption |
Visible caption of the form.
Definition at line 816 of file axcontrol.hxx.
Referenced by oox::ole::AxFrameModel::convertProperties(), oox::ole::AxPageModel::convertProperties(), oox::ole::AxMultiPageModel::convertProperties(), oox::ole::AxUserFormModel::convertProperties(), importBinaryModel(), and importProperty().
AxPairData oox::ole::AxContainerModelBase::maLogicalSize |
Logical form size (scroll area).
Definition at line 817 of file axcontrol.hxx.
Referenced by oox::ole::AxUserFormModel::convertProperties(), and importBinaryModel().
StreamDataSequence oox::ole::AxContainerModelBase::maPictureData |
Binary picture stream.
Definition at line 815 of file axcontrol.hxx.
Referenced by oox::ole::AxUserFormModel::convertProperties(), and importBinaryModel().
AxPairData oox::ole::AxContainerModelBase::maScrollPos |
Scroll position.
Definition at line 818 of file axcontrol.hxx.
Referenced by oox::ole::AxUserFormModel::convertProperties(), and importBinaryModel().
bool oox::ole::AxContainerModelBase::mbFontSupport |
True = control supports the font property.
Definition at line 830 of file axcontrol.hxx.
Referenced by convertProperties().
bool oox::ole::AxContainerModelBase::mbPicTiling |
True = picture is repeated.
Definition at line 829 of file axcontrol.hxx.
Referenced by importBinaryModel().
sal_uInt32 oox::ole::AxContainerModelBase::mnBackColor |
Fill color.
Definition at line 819 of file axcontrol.hxx.
Referenced by oox::ole::AxPageModel::convertProperties(), oox::ole::AxMultiPageModel::convertProperties(), oox::ole::AxUserFormModel::convertProperties(), and importBinaryModel().
sal_uInt32 oox::ole::AxContainerModelBase::mnBorderColor |
sal_Int32 oox::ole::AxContainerModelBase::mnBorderStyle |
sal_Int32 oox::ole::AxContainerModelBase::mnCycleType |
Cycle in all forms or in this form.
Definition at line 825 of file axcontrol.hxx.
Referenced by importBinaryModel().
sal_uInt32 oox::ole::AxContainerModelBase::mnFlags |
Various flags.
Definition at line 821 of file axcontrol.hxx.
Referenced by oox::ole::AxFrameModel::convertProperties(), oox::ole::AxPageModel::convertProperties(), oox::ole::AxMultiPageModel::convertProperties(), importBinaryModel(), and importClassTable().
sal_Int32 oox::ole::AxContainerModelBase::mnPicAlign |
Anchor position of the picture.
Definition at line 827 of file axcontrol.hxx.
Referenced by importBinaryModel().
sal_Int32 oox::ole::AxContainerModelBase::mnPicSizeMode |
Clip, stretch, zoom.
Definition at line 828 of file axcontrol.hxx.
Referenced by importBinaryModel().
sal_Int32 oox::ole::AxContainerModelBase::mnScrollBars |
Horizontal/vertical scroll bar.
Definition at line 824 of file axcontrol.hxx.
Referenced by oox::ole::AxUserFormModel::convertProperties(), and importBinaryModel().
sal_Int32 oox::ole::AxContainerModelBase::mnSpecialEffect |
sal_uInt32 oox::ole::AxContainerModelBase::mnTextColor |
Text color.
Definition at line 820 of file axcontrol.hxx.
Referenced by convertProperties(), and importBinaryModel().