LibreOffice Module oox (master) 1
|
Model for a Forms 2.0 command button. More...
#include <axcontrol.hxx>
Public Member Functions | |
AxCommandButtonModel () | |
virtual void | importProperty (sal_Int32 nPropId, const OUString &rValue) override |
Derived classes set specific OOXML properties at the model structure. More... | |
virtual void | importPictureData (sal_Int32 nPropId, BinaryInputStream &rInStrm) override |
Derived classes set binary data (picture, mouse icon) 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 | exportCompObj (BinaryOutputStream &rOutStrm) override |
Derived classes export CompObjStream contents. More... | |
virtual ApiControlType | getControlType () const override |
Derived classes return the UNO control type enum value. 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... | |
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 button. More... | |
sal_uInt32 | mnTextColor |
Text color. More... | |
sal_uInt32 | mnBackColor |
Fill color. More... | |
sal_uInt32 | mnFlags |
Various flags. More... | |
sal_uInt32 | mnPicturePos |
Position of the picture relative to text. More... | |
sal_Int32 | mnVerticalAlign |
Vertical alignment (legacy VML drawing controls only). More... | |
bool | mbFocusOnClick |
True = take focus on click. 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... | |
Model for a Forms 2.0 command button.
Definition at line 505 of file axcontrol.hxx.
|
explicit |
Definition at line 965 of file axcontrol.cxx.
References mnFlags.
|
overridevirtual |
Derived classes convert from uno control properties to equiv.
MS values.
Reimplemented from oox::ole::AxFontDataModel.
Definition at line 1079 of file axcontrol.cxx.
References oox::ole::AX_FLAGS_ENABLED, oox::ole::AX_FLAGS_WORDWRAP, oox::ole::AxFontDataModel::convertFromProperties(), oox::ole::ControlConverter::convertToMSColor(), oox::PropertySet::getProperty(), maCaption, mbFocusOnClick, mnBackColor, mnFlags, mnTextColor, PROP_TextColor, and oox::setFlag().
|
overridevirtual |
Derived classes convert all control properties.
Reimplemented from oox::ole::AxFontDataModel.
Definition at line 1066 of file axcontrol.cxx.
References oox::ole::AX_FLAGS_ENABLED, oox::ole::AX_FLAGS_WORDWRAP, oox::ole::ControlConverter::convertAxBackground(), oox::ole::ControlConverter::convertAxPicture(), oox::ole::ControlConverter::convertColor(), oox::ole::AxFontDataModel::convertProperties(), oox::ole::ControlConverter::convertVerticalAlign(), oox::getFlag(), maCaption, maPictureData, mbFocusOnClick, mnBackColor, mnFlags, mnPicturePos, mnTextColor, mnVerticalAlign, oox::ole::NotSupported, PROP_TextColor, and oox::PropertyMap::setProperty().
|
overridevirtual |
Derived classes export a form control model to the passed output stream.
Reimplemented from oox::ole::AxFontDataModel.
Definition at line 1015 of file axcontrol.cxx.
References oox::ole::AxFontDataModel::exportBinaryModel(), oox::ole::AxBinaryPropertyWriter::finalizeExport(), maCaption, oox::ole::ControlModelBase::maSize, mbFocusOnClick, mnBackColor, mnFlags, mnTextColor, oox::ole::AxBinaryPropertyWriter::skipProperty(), oox::ole::AxBinaryPropertyWriter::writeBoolProperty(), oox::ole::AxBinaryPropertyWriter::writeIntProperty(), oox::ole::AxBinaryPropertyWriter::writePairProperty(), and oox::ole::AxBinaryPropertyWriter::writeStringProperty().
|
overridevirtual |
Derived classes export CompObjStream contents.
Reimplemented from oox::ole::ControlModelBase.
Definition at line 1036 of file axcontrol.cxx.
References oox::BinaryOutputStream::writeMemory().
|
overridevirtual |
Derived classes return the UNO control type enum value.
Implements oox::ole::ControlModelBase.
Definition at line 1061 of file axcontrol.cxx.
References oox::ole::API_CONTROL_BUTTON.
|
overridevirtual |
Derived classes import a form control model from the passed input stream.
Reimplemented from oox::ole::AxFontDataModel.
Definition at line 998 of file axcontrol.cxx.
References oox::ole::AxBinaryPropertyReader::finalizeImport(), oox::ole::AxFontDataModel::importBinaryModel(), maCaption, maPictureData, oox::ole::ControlModelBase::maSize, mbFocusOnClick, mnBackColor, mnFlags, mnPicturePos, mnTextColor, oox::ole::AxBinaryPropertyReader::readBoolProperty(), oox::ole::AxBinaryPropertyReader::readIntProperty(), oox::ole::AxBinaryPropertyReader::readPairProperty(), oox::ole::AxBinaryPropertyReader::readPictureProperty(), oox::ole::AxBinaryPropertyReader::readStringProperty(), oox::ole::AxBinaryPropertyReader::skipIntProperty(), and oox::ole::AxBinaryPropertyReader::skipPictureProperty().
|
overridevirtual |
Derived classes set binary data (picture, mouse icon) at the model structure.
Reimplemented from oox::ole::ControlModelBase.
Definition at line 989 of file axcontrol.cxx.
References oox::ole::ControlModelBase::importPictureData(), oox::ole::OleHelper::importStdPic(), and maPictureData.
|
overridevirtual |
Derived classes set specific OOXML properties at the model structure.
Reimplemented from oox::ole::AxFontDataModel.
Definition at line 975 of file axcontrol.cxx.
References oox::AttributeConversion::decodeInteger(), oox::AttributeConversion::decodeUnsigned(), oox::ole::AxFontDataModel::importProperty(), maCaption, mbFocusOnClick, mnBackColor, mnFlags, mnPicturePos, and mnTextColor.
OUString oox::ole::AxCommandButtonModel::maCaption |
Visible caption of the button.
Definition at line 522 of file axcontrol.hxx.
Referenced by convertFromProperties(), convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
StreamDataSequence oox::ole::AxCommandButtonModel::maPictureData |
Binary picture stream.
Definition at line 521 of file axcontrol.hxx.
Referenced by convertProperties(), importBinaryModel(), and importPictureData().
bool oox::ole::AxCommandButtonModel::mbFocusOnClick |
True = take focus on click.
Definition at line 528 of file axcontrol.hxx.
Referenced by convertFromProperties(), convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
sal_uInt32 oox::ole::AxCommandButtonModel::mnBackColor |
Fill color.
Definition at line 524 of file axcontrol.hxx.
Referenced by convertFromProperties(), convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
sal_uInt32 oox::ole::AxCommandButtonModel::mnFlags |
Various flags.
Definition at line 525 of file axcontrol.hxx.
Referenced by convertFromProperties(), convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
sal_uInt32 oox::ole::AxCommandButtonModel::mnPicturePos |
Position of the picture relative to text.
Definition at line 526 of file axcontrol.hxx.
Referenced by convertProperties(), importBinaryModel(), and importProperty().
sal_uInt32 oox::ole::AxCommandButtonModel::mnTextColor |
Text color.
Definition at line 523 of file axcontrol.hxx.
Referenced by convertFromProperties(), convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
sal_Int32 oox::ole::AxCommandButtonModel::mnVerticalAlign |
Vertical alignment (legacy VML drawing controls only).
Definition at line 527 of file axcontrol.hxx.
Referenced by convertProperties().