LibreOffice Module oox (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
oox::ole::EmbeddedForm Class Reference

A wrapper for a control form embedded directly in a draw page. More...

#include <axcontrol.hxx>

Collaboration diagram for oox::ole::EmbeddedForm:
[legend]

Public Member Functions

 EmbeddedForm (const css::uno::Reference< css::frame::XModel > &rxDocModel, const css::uno::Reference< css::drawing::XDrawPage > &rxDrawPage, const GraphicHelper &rGraphicHelper)
 
css::uno::Reference< css::awt::XControlModel > convertAndInsert (const EmbeddedControl &rControl, sal_Int32 &rnCtrlIndex)
 Converts the passed control and inserts the control model into the form. More...
 
const css::uno::Reference< css::container::XIndexContainer > & getXForm () const
 Returns the XIndexContainer interface of the UNO control form, if existing. More...
 

Private Member Functions

css::uno::Reference< css::container::XIndexContainer > const & createXForm ()
 Creates the form that will hold the form controls. More...
 

Private Attributes

ControlConverter maControlConv
 
css::uno::Reference< css::lang::XMultiServiceFactory > mxModelFactory
 
css::uno::Reference< css::form::XFormsSupplier > mxFormsSupp
 
css::uno::Reference< css::container::XIndexContainer > mxFormIC
 

Detailed Description

A wrapper for a control form embedded directly in a draw page.

Definition at line 959 of file axcontrol.hxx.

Constructor & Destructor Documentation

◆ EmbeddedForm()

oox::ole::EmbeddedForm::EmbeddedForm ( const css::uno::Reference< css::frame::XModel > &  rxDocModel,
const css::uno::Reference< css::drawing::XDrawPage > &  rxDrawPage,
const GraphicHelper rGraphicHelper 
)
explicit

Definition at line 2722 of file axcontrol.cxx.

References mxModelFactory.

Member Function Documentation

◆ convertAndInsert()

Reference< XControlModel > oox::ole::EmbeddedForm::convertAndInsert ( const EmbeddedControl rControl,
sal_Int32 &  rnCtrlIndex 
)

Converts the passed control and inserts the control model into the form.

Returns
The API control model, if conversion was successful.

Definition at line 2731 of file axcontrol.cxx.

References Any, oox::ole::EmbeddedControl::convertProperties(), createXForm(), Exception, oox::ole::EmbeddedControl::getServiceName(), oox::ole::EmbeddedControl::hasModel(), maControlConv, mxModelFactory, and TOOLS_WARN_EXCEPTION.

◆ createXForm()

Reference< XIndexContainer > const & oox::ole::EmbeddedForm::createXForm ( )
private

Creates the form that will hold the form controls.

Definition at line 2756 of file axcontrol.cxx.

References Any, Exception, mxFormIC, mxFormsSupp, mxModelFactory, and TOOLS_WARN_EXCEPTION.

Referenced by convertAndInsert().

◆ getXForm()

const css::uno::Reference< css::container::XIndexContainer > & oox::ole::EmbeddedForm::getXForm ( ) const
inline

Returns the XIndexContainer interface of the UNO control form, if existing.

Definition at line 974 of file axcontrol.hxx.

References mxFormIC.

Member Data Documentation

◆ maControlConv

ControlConverter oox::ole::EmbeddedForm::maControlConv
private

Definition at line 982 of file axcontrol.hxx.

Referenced by convertAndInsert().

◆ mxFormIC

css::uno::Reference< css::container::XIndexContainer > oox::ole::EmbeddedForm::mxFormIC
private

Definition at line 985 of file axcontrol.hxx.

Referenced by createXForm(), and getXForm().

◆ mxFormsSupp

css::uno::Reference< css::form::XFormsSupplier > oox::ole::EmbeddedForm::mxFormsSupp
private

Definition at line 984 of file axcontrol.hxx.

Referenced by createXForm().

◆ mxModelFactory

css::uno::Reference< css::lang::XMultiServiceFactory > oox::ole::EmbeddedForm::mxModelFactory
private

Definition at line 983 of file axcontrol.hxx.

Referenced by convertAndInsert(), createXForm(), and EmbeddedForm().


The documentation for this class was generated from the following files: