LibreOffice Module oox (master) 1
|
A form control embedded in a document draw page. More...
#include <axcontrol.hxx>
Public Member Functions | |
EmbeddedControl (OUString aName) | |
template<typename ModelType > | |
ModelType & | createModel () |
Creates and returns the internal control model of the specified type. More... | |
template<typename ModelType , typename ParamType > | |
ModelType & | createModel (const ParamType &rParam) |
Creates and returns the internal control model of the specified type. More... | |
ControlModelBase * | createModelFromGuid (std::u16string_view rClassId) |
Creates and returns the internal control model according to the passed MS class identifier. More... | |
bool | hasModel () const |
Returns true, if the internal control model exists. More... | |
const ControlModelBase * | getModel () const |
Returns read-only access to the internal control model. More... | |
ControlModelBase * | getModel () |
Returns read/write access to the internal control model. More... | |
OUString | getServiceName () const |
Returns the UNO service name needed to construct the control model. More... | |
bool | convertProperties (const css::uno::Reference< css::awt::XControlModel > &rxCtrlModel, const ControlConverter &rConv) const |
Converts all control properties and inserts them into the passed model. More... | |
void | convertFromProperties (const css::uno::Reference< css::awt::XControlModel > &rxCtrlModel, const ControlConverter &rConv) |
Private Attributes | |
ControlModelRef | mxModel |
Control model containing the properties. More... | |
OUString | maName |
Name of the control. More... | |
A form control embedded in a document draw page.
Contains a specific model structure according to the type of the control.
Definition at line 897 of file axcontrol.hxx.
|
explicit |
Definition at line 2658 of file axcontrol.cxx.
References aName.
void oox::ole::EmbeddedControl::convertFromProperties | ( | const css::uno::Reference< css::awt::XControlModel > & | rxCtrlModel, |
const ControlConverter & | rConv | ||
) |
Definition at line 2712 of file axcontrol.cxx.
References oox::PropertySet::getProperty(), maName, and mxModel.
bool oox::ole::EmbeddedControl::convertProperties | ( | const css::uno::Reference< css::awt::XControlModel > & | rxCtrlModel, |
const ControlConverter & | rConv | ||
) | const |
Converts all control properties and inserts them into the passed model.
Definition at line 2690 of file axcontrol.cxx.
References Exception, maName, mxModel, oox::PropertySet::setProperties(), oox::PropertyMap::setProperty(), and TOOLS_WARN_EXCEPTION.
Referenced by oox::ole::EmbeddedForm::convertAndInsert().
|
inline |
Creates and returns the internal control model of the specified type.
Definition at line 940 of file axcontrol.hxx.
|
inline |
Creates and returns the internal control model of the specified type.
Definition at line 949 of file axcontrol.hxx.
ControlModelBase * oox::ole::EmbeddedControl::createModelFromGuid | ( | std::u16string_view | rClassId | ) |
Creates and returns the internal control model according to the passed MS class identifier.
Definition at line 2663 of file axcontrol.cxx.
References AX_GUID_CHECKBOX, AX_GUID_COMBOBOX, AX_GUID_COMMANDBUTTON, AX_GUID_FRAME, AX_GUID_IMAGE, AX_GUID_LABEL, AX_GUID_LISTBOX, AX_GUID_OPTIONBUTTON, AX_GUID_SCROLLBAR, AX_GUID_SPINBUTTON, AX_GUID_TEXTBOX, AX_GUID_TOGGLEBUTTON, COMCTL_GUID_SCROLLBAR_60, oox::ole::COMCTL_VERSION_60, o3tl::equalsIgnoreAsciiCase(), HTML_GUID_SELECT, HTML_GUID_TEXTBOX, mxModel, and u.
Referenced by oox::ole::AxControlFragment::onCreateContext().
|
inline |
Returns read/write access to the internal control model.
Definition at line 919 of file axcontrol.hxx.
References mxModel.
|
inline |
Returns read-only access to the internal control model.
Definition at line 917 of file axcontrol.hxx.
References mxModel.
OUString oox::ole::EmbeddedControl::getServiceName | ( | ) | const |
Returns the UNO service name needed to construct the control model.
Definition at line 2685 of file axcontrol.cxx.
References mxModel.
Referenced by oox::ole::EmbeddedForm::convertAndInsert().
|
inline |
Returns true, if the internal control model exists.
Definition at line 915 of file axcontrol.hxx.
References mxModel.
Referenced by oox::ole::EmbeddedForm::convertAndInsert().
|
private |
Name of the control.
Definition at line 935 of file axcontrol.hxx.
Referenced by convertFromProperties(), and convertProperties().
|
private |
Control model containing the properties.
Definition at line 934 of file axcontrol.hxx.
Referenced by convertFromProperties(), convertProperties(), createModel(), createModelFromGuid(), and getServiceName().