LibreOffice Module oox (master) 1
|
#include <vbacontrol.hxx>
Public Member Functions | |
VbaUserForm (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XModel > &rxDocModel, const GraphicHelper &rGraphicHelper, bool bDefaultColorBgr) | |
void | importForm (const css::uno::Reference< css::container::XNameContainer > &rxDialogLib, StorageBase &rVbaFormStrg, const OUString &rModuleName, rtl_TextEncoding eTextEnc) |
Imports the form and its embedded controls, and inserts the form with all its controls into the passed dialog library. More... | |
Public Member Functions inherited from oox::ole::VbaFormControl | |
VbaFormControl () | |
virtual | ~VbaFormControl () |
void | importModelOrStorage (BinaryInputStream &rInStrm, StorageBase &rStrg, const AxClassTable &rClassTable) |
Imports the model from the passed stream or storage, depending on the control's type. More... | |
OUString | getControlName () const |
Returns the programmatical name of the control. More... | |
void | createAndConvert (sal_Int32 nCtrlIndex, const css::uno::Reference< css::container::XNameContainer > &rxParentNC, const ControlConverter &rConv) const |
Creates the UNO control model, inserts it into the passed container, and converts all control properties. More... | |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
css::uno::Reference< css::frame::XModel > | mxDocModel |
ControlConverter | maConverter |
Additional Inherited Members | |
Protected Member Functions inherited from oox::ole::VbaFormControl | |
void | importControlModel (BinaryInputStream &rInStrm, const AxClassTable &rClassTable) |
Creates and imports the control model containing properties of the control. More... | |
void | importStorage (StorageBase &rStrg, const AxClassTable &rClassTable) |
Creates and imports the control model, and imports all embedded controls from the passed substorage. More... | |
bool | convertProperties (const css::uno::Reference< css::awt::XControlModel > &rxCtrlModel, const ControlConverter &rConv, sal_Int32 nCtrlIndex) const |
Converts all control properties, and inserts and converts embedded controls. More... | |
Protected Attributes inherited from oox::ole::VbaFormControl | |
VbaSiteModelRef | mxSiteModel |
Common control properties. More... | |
ControlModelRef | mxCtrlModel |
Specific control properties. More... | |
Definition at line 186 of file vbacontrol.hxx.
|
explicit |
Definition at line 781 of file vbacontrol.cxx.
References mxContext, mxContext, and mxDocModel.
void oox::ole::VbaUserForm::importForm | ( | const css::uno::Reference< css::container::XNameContainer > & | rxDialogLib, |
StorageBase & | rVbaFormStrg, | ||
const OUString & | rModuleName, | ||
rtl_TextEncoding | eTextEnc | ||
) |
Imports the form and its embedded controls, and inserts the form with all its controls into the passed dialog library.
Definition at line 791 of file vbacontrol.cxx.
References Any, oox::ole::VbaFormControl::convertProperties(), Exception, oox::ole::VbaHelper::extractKeyValue(), oox::ole::VbaFormControl::importStorage(), oox::ContainerHelper::insertByName(), oox::BinaryStreamBase::isEof(), oox::TextInputStream::isEof(), maConverter, mxContext, oox::ole::VbaFormControl::mxCtrlModel, mxDocModel, oox::ole::VbaFormControl::mxSiteModel, oox::StorageBase::openInputStream(), oox::TextInputStream::readLine(), u, and xFactory.
Referenced by oox::ole::VbaProject::importModulesAndForms().
|
private |
Definition at line 206 of file vbacontrol.hxx.
Referenced by importForm().
|
private |
Definition at line 204 of file vbacontrol.hxx.
Referenced by importForm(), and VbaUserForm().
|
private |
Definition at line 205 of file vbacontrol.hxx.
Referenced by importForm(), and VbaUserForm().