LibreOffice Module oox (master) 1
|
Base class for Forms 2.0 controls supporting text formatting. More...
#include <axcontrol.hxx>
Public Member Functions | |
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 | |
AxFontData | maFontData |
The font settings. More... | |
Public Attributes inherited from oox::ole::ControlModelBase | |
AxPairData | maSize |
Size of the control in 1/100 mm. More... | |
Private Attributes | |
bool | mbSupportsAlign |
True = UNO model supports Align property. More... | |
Additional Inherited Members | |
Protected Attributes inherited from oox::ole::ControlModelBase | |
bool | mbAwtModel |
True = AWT control model, false = form component. More... | |
Base class for Forms 2.0 controls supporting text formatting.
Definition at line 482 of file axcontrol.hxx.
|
explicit |
Definition at line 850 of file axcontrol.cxx.
|
overridevirtual |
Derived classes convert from uno control properties to equiv.
MS values.
Reimplemented from oox::ole::ControlModelBase.
Reimplemented in oox::ole::AxCommandButtonModel, oox::ole::AxLabelModel, oox::ole::AxMorphDataModelBase, oox::ole::AxToggleButtonModel, oox::ole::AxCheckBoxModel, oox::ole::AxOptionButtonModel, oox::ole::AxTextBoxModel, oox::ole::AxNumericFieldModel, oox::ole::AxListBoxModel, and oox::ole::AxComboBoxModel.
Definition at line 923 of file axcontrol.cxx.
References Bold, oox::ole::Center, StyleSettings::GetAppFont(), Application::GetDefaultDevice(), vcl::Font::GetFontHeight(), oox::PropertySet::getProperty(), OutputDevice::GetSettings(), AllSettings::GetStyleSettings(), Italic, oox::ole::Left, maFontData, oox::ole::AxFontData::maFontName, oox::ole::AxFontData::mnFontEffects, oox::ole::AxFontData::mnHorAlign, PROP_FontHeight, PROP_FontName, PROP_FontSlant, PROP_FontStrikeout, PROP_FontUnderline, PROP_FontWeight, oox::ole::Right, oox::setFlag(), oox::ole::AxFontData::setHeightPoints(), Strikeout, and Underline.
Referenced by oox::ole::AxCommandButtonModel::convertFromProperties(), oox::ole::AxLabelModel::convertFromProperties(), and oox::ole::AxMorphDataModelBase::convertFromProperties().
|
overridevirtual |
Derived classes convert all control properties.
Reimplemented from oox::ole::ControlModelBase.
Reimplemented in oox::ole::AxCommandButtonModel, oox::ole::AxLabelModel, oox::ole::AxMorphDataModelBase, oox::ole::AxToggleButtonModel, oox::ole::AxCheckBoxModel, oox::ole::AxOptionButtonModel, oox::ole::AxTextBoxModel, oox::ole::AxNumericFieldModel, oox::ole::AxListBoxModel, oox::ole::AxComboBoxModel, oox::ole::AxContainerModelBase, oox::ole::AxFrameModel, oox::ole::AxPageModel, oox::ole::AxMultiPageModel, oox::ole::AxUserFormModel, and oox::ole::HtmlSelectModel.
Definition at line 881 of file axcontrol.cxx.
References Bold, oox::ole::Center, oox::ole::ControlModelBase::convertProperties(), oox::ole::AxFontData::getHeightPoints(), Italic, oox::ole::Left, maFontData, oox::ole::AxFontData::maFontName, oox::ole::AxFontData::mbDblUnderline, mbSupportsAlign, oox::ole::AxFontData::mnFontCharSet, oox::ole::AxFontData::mnFontEffects, oox::ole::AxFontData::mnHorAlign, PROP_FontCharset, PROP_FontHeight, PROP_FontName, PROP_FontSlant, PROP_FontStrikeout, PROP_FontUnderline, PROP_FontWeight, oox::ole::Right, SAL_MAX_UINT8, oox::PropertyMap::setProperty(), Strikeout, and Underline.
Referenced by oox::ole::AxCommandButtonModel::convertProperties(), oox::ole::AxLabelModel::convertProperties(), oox::ole::AxMorphDataModelBase::convertProperties(), and oox::ole::AxContainerModelBase::convertProperties().
|
overridevirtual |
Derived classes export a form control model to the passed output stream.
Reimplemented from oox::ole::ControlModelBase.
Reimplemented in oox::ole::AxCommandButtonModel, oox::ole::AxLabelModel, and oox::ole::AxMorphDataModelBase.
Definition at line 877 of file axcontrol.cxx.
References oox::ole::AxFontData::exportBinaryModel(), and maFontData.
Referenced by oox::ole::AxCommandButtonModel::exportBinaryModel(), oox::ole::AxLabelModel::exportBinaryModel(), and oox::ole::AxMorphDataModelBase::exportBinaryModel().
|
inline |
Returns the font height in points.
Definition at line 494 of file axcontrol.hxx.
Referenced by oox::ole::VbaFormControl::moveEmbeddedToAbsoluteParent().
|
overridevirtual |
Derived classes import a form control model from the passed input stream.
Implements oox::ole::ControlModelBase.
Reimplemented in oox::ole::AxCommandButtonModel, oox::ole::AxLabelModel, oox::ole::AxTabStripModel, oox::ole::AxMorphDataModelBase, oox::ole::AxContainerModelBase, oox::ole::HtmlSelectModel, and oox::ole::HtmlTextBoxModel.
Definition at line 872 of file axcontrol.cxx.
References oox::ole::AxFontData::importBinaryModel(), and maFontData.
Referenced by oox::ole::AxCommandButtonModel::importBinaryModel(), oox::ole::AxLabelModel::importBinaryModel(), oox::ole::AxTabStripModel::importBinaryModel(), and oox::ole::AxMorphDataModelBase::importBinaryModel().
|
overridevirtual |
Derived classes set specific OOXML properties at the model structure.
Reimplemented from oox::ole::AxControlModelBase.
Reimplemented in oox::ole::AxCommandButtonModel, oox::ole::AxLabelModel, oox::ole::AxMorphDataModelBase, and oox::ole::AxContainerModelBase.
Definition at line 855 of file axcontrol.cxx.
References oox::AttributeConversion::decodeInteger(), oox::AttributeConversion::decodeUnsigned(), oox::ole::AxControlModelBase::importProperty(), maFontData, oox::ole::AxFontData::maFontName, oox::ole::AxFontData::mnFontCharSet, oox::ole::AxFontData::mnFontEffects, oox::ole::AxFontData::mnFontHeight, and oox::ole::AxFontData::mnHorAlign.
Referenced by oox::ole::AxCommandButtonModel::importProperty(), oox::ole::AxLabelModel::importProperty(), and oox::ole::AxMorphDataModelBase::importProperty().
AxFontData oox::ole::AxFontDataModel::maFontData |
The font settings.
Definition at line 497 of file axcontrol.hxx.
Referenced by convertFromProperties(), convertProperties(), exportBinaryModel(), importBinaryModel(), oox::ole::AxContainerModelBase::importBinaryModel(), and importProperty().
|
private |
True = UNO model supports Align property.
Definition at line 500 of file axcontrol.hxx.
Referenced by convertProperties().