LibreOffice Module oox (master) 1
|
Model for a Forms 2.0 image. More...
#include <axcontrol.hxx>
Public Member Functions | |
AxImageModel () | |
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... | |
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... | |
Private Attributes | |
StreamDataSequence | maPictureData |
Binary picture stream. More... | |
sal_uInt32 | mnBackColor |
Fill color. More... | |
sal_uInt32 | mnFlags |
Various flags. More... | |
sal_uInt32 | mnBorderColor |
Flat border color. More... | |
sal_Int32 | mnBorderStyle |
Flat border style. More... | |
sal_Int32 | mnSpecialEffect |
3D border effect. More... | |
sal_Int32 | mnPicSizeMode |
Clip, stretch, zoom. More... | |
sal_Int32 | mnPicAlign |
Anchor position of the picture. More... | |
bool | mbPicTiling |
True = picture is repeated. More... | |
Additional Inherited Members | |
Public Attributes inherited from oox::ole::ControlModelBase | |
AxPairData | maSize |
Size of the control in 1/100 mm. More... | |
Protected Attributes inherited from oox::ole::ControlModelBase | |
bool | mbAwtModel |
True = AWT control model, false = form component. More... | |
Model for a Forms 2.0 image.
Definition at line 560 of file axcontrol.hxx.
|
explicit |
Definition at line 1225 of file axcontrol.cxx.
References mnFlags.
|
overridevirtual |
Derived classes convert all control properties.
Reimplemented from oox::ole::ControlModelBase.
Definition at line 1335 of file axcontrol.cxx.
References oox::ole::AX_FLAGS_ENABLED, oox::ole::ControlConverter::convertAxBackground(), oox::ole::ControlConverter::convertAxBorder(), oox::ole::ControlConverter::convertAxPicture(), oox::ole::ControlModelBase::convertProperties(), oox::getFlag(), maPictureData, mnBackColor, mnBorderColor, mnBorderStyle, mnFlags, mnPicSizeMode, mnSpecialEffect, oox::PropertyMap::setProperty(), and oox::ole::Void.
|
overridevirtual |
Derived classes export a form control model to the passed output stream.
Reimplemented from oox::ole::ControlModelBase.
Definition at line 1283 of file axcontrol.cxx.
References oox::ole::AxBinaryPropertyWriter::finalizeExport(), oox::ole::ControlModelBase::maSize, mbPicTiling, mnBackColor, mnBorderColor, mnBorderStyle, mnFlags, mnPicAlign, mnPicSizeMode, mnSpecialEffect, oox::ole::AxBinaryPropertyWriter::skipProperty(), oox::ole::AxBinaryPropertyWriter::writeBoolProperty(), oox::ole::AxBinaryPropertyWriter::writeIntProperty(), and oox::ole::AxBinaryPropertyWriter::writePairProperty().
|
overridevirtual |
Derived classes export CompObjStream contents.
Reimplemented from oox::ole::ControlModelBase.
Definition at line 1307 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 1330 of file axcontrol.cxx.
References oox::ole::API_CONTROL_IMAGE.
|
overridevirtual |
Derived classes import a form control model from the passed input stream.
Implements oox::ole::ControlModelBase.
Definition at line 1262 of file axcontrol.cxx.
References oox::ole::AxBinaryPropertyReader::finalizeImport(), maPictureData, oox::ole::ControlModelBase::maSize, mbPicTiling, mnBackColor, mnBorderColor, mnBorderStyle, mnFlags, mnPicAlign, mnPicSizeMode, mnSpecialEffect, oox::ole::AxBinaryPropertyReader::readBoolProperty(), oox::ole::AxBinaryPropertyReader::readIntProperty(), oox::ole::AxBinaryPropertyReader::readPairProperty(), oox::ole::AxBinaryPropertyReader::readPictureProperty(), oox::ole::AxBinaryPropertyReader::skipBoolProperty(), oox::ole::AxBinaryPropertyReader::skipIntProperty(), oox::ole::AxBinaryPropertyReader::skipPictureProperty(), and oox::ole::AxBinaryPropertyReader::skipUndefinedProperty().
|
overridevirtual |
Derived classes set binary data (picture, mouse icon) at the model structure.
Reimplemented from oox::ole::ControlModelBase.
Definition at line 1253 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::AxControlModelBase.
Definition at line 1237 of file axcontrol.cxx.
References oox::AttributeConversion::decodeInteger(), oox::AttributeConversion::decodeUnsigned(), oox::ole::AxControlModelBase::importProperty(), mbPicTiling, mnBackColor, mnBorderColor, mnBorderStyle, mnFlags, mnPicAlign, mnPicSizeMode, and mnSpecialEffect.
|
private |
Binary picture stream.
Definition at line 575 of file axcontrol.hxx.
Referenced by convertProperties(), importBinaryModel(), and importPictureData().
|
private |
True = picture is repeated.
Definition at line 583 of file axcontrol.hxx.
Referenced by exportBinaryModel(), importBinaryModel(), and importProperty().
|
private |
Fill color.
Definition at line 576 of file axcontrol.hxx.
Referenced by convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
|
private |
Flat border color.
Definition at line 578 of file axcontrol.hxx.
Referenced by convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
|
private |
Flat border style.
Definition at line 579 of file axcontrol.hxx.
Referenced by convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
|
private |
Various flags.
Definition at line 577 of file axcontrol.hxx.
Referenced by convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
|
private |
Anchor position of the picture.
Definition at line 582 of file axcontrol.hxx.
Referenced by exportBinaryModel(), importBinaryModel(), and importProperty().
|
private |
Clip, stretch, zoom.
Definition at line 581 of file axcontrol.hxx.
Referenced by convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().
|
private |
3D border effect.
Definition at line 580 of file axcontrol.hxx.
Referenced by convertProperties(), exportBinaryModel(), importBinaryModel(), and importProperty().