LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
svxform::FormControlFactory Class Reference

#include <formcontrolfactory.hxx>

Public Member Functions

 FormControlFactory (const css::uno::Reference< css::uno::XComponentContext > &_rContext)
 
 FormControlFactory ()
 
 ~FormControlFactory ()
 
sal_Int16 initializeControlModel (const DocumentType _eDocType, const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const tools::Rectangle &_rControlBoundRect)
 initializes the given control model which is to be newly inserted into a document More...
 
sal_Int16 initializeControlModel (const DocumentType _eDocType, const SdrUnoObj &_rObject)
 
void initializeControlModel (const DocumentType _eDocType, const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel)
 
void initializeTextFieldLineEnds (const css::uno::Reference< css::beans::XPropertySet > &_rxModel)
 

Static Public Member Functions

static void initializeFieldDependentProperties (const css::uno::Reference< css::beans::XPropertySet > &_rxDatabaseField, const css::uno::Reference< css::beans::XPropertySet > &_rxControlModel, const css::uno::Reference< css::util::XNumberFormats > &_rxNumberFormats)
 
static OUString getDefaultName (const sal_Int16 nClassId, const css::uno::Reference< css::lang::XServiceInfo > &_rxObject)
 
static OUString getDefaultUniqueName_ByComponentType (const css::uno::Reference< css::container::XNameAccess > &_rxContainer, const css::uno::Reference< css::beans::XPropertySet > &_rxObject)
 
static OUString getUniqueName (const css::uno::Reference< css::container::XNameAccess > &_rxContainer, std::u16string_view _rBaseName)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Detailed Description

Definition at line 45 of file formcontrolfactory.hxx.

Constructor & Destructor Documentation

◆ FormControlFactory() [1/2]

svxform::FormControlFactory::FormControlFactory ( const css::uno::Reference< css::uno::XComponentContext > &  _rContext)

◆ FormControlFactory() [2/2]

svxform::FormControlFactory::FormControlFactory ( )

Definition at line 97 of file formcontrolfactory.cxx.

References getProcessComponentContext(), and m_xContext.

◆ ~FormControlFactory()

svxform::FormControlFactory::~FormControlFactory ( )

Definition at line 103 of file formcontrolfactory.cxx.

Member Function Documentation

◆ getDefaultName()

OUString svxform::FormControlFactory::getDefaultName ( const sal_Int16  nClassId,
const css::uno::Reference< css::lang::XServiceInfo > &  _rxObject 
)
static

◆ getDefaultUniqueName_ByComponentType()

OUString svxform::FormControlFactory::getDefaultUniqueName_ByComponentType ( const css::uno::Reference< css::container::XNameAccess > &  _rxContainer,
const css::uno::Reference< css::beans::XPropertySet > &  _rxObject 
)
static

Definition at line 666 of file formcontrolfactory.cxx.

References FM_PROP_CLASSID, getDefaultName(), and getUniqueName().

◆ getUniqueName()

OUString svxform::FormControlFactory::getUniqueName ( const css::uno::Reference< css::container::XNameAccess > &  _rxContainer,
std::u16string_view  _rBaseName 
)
static

Definition at line 677 of file formcontrolfactory.cxx.

References n, and sName.

Referenced by getDefaultUniqueName_ByComponentType().

◆ initializeControlModel() [1/3]

void svxform::FormControlFactory::initializeControlModel ( const DocumentType  _eDocType,
const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel 
)

◆ initializeControlModel() [2/3]

sal_Int16 svxform::FormControlFactory::initializeControlModel ( const DocumentType  _eDocType,
const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const tools::Rectangle _rControlBoundRect 
)

initializes the given control model which is to be newly inserted into a document

Parameters
_eDocTypethe type of the document which the control is to be inserted into
_rxControlModelthe control model to be inserted
_rControlBoundRectthe bound rect of the control, if applicable
Returns
the class ID of the control

Referenced by initializeControlModel().

◆ initializeControlModel() [3/3]

sal_Int16 svxform::FormControlFactory::initializeControlModel ( const DocumentType  _eDocType,
const SdrUnoObj _rObject 
)

◆ initializeFieldDependentProperties()

void svxform::FormControlFactory::initializeFieldDependentProperties ( const css::uno::Reference< css::beans::XPropertySet > &  _rxDatabaseField,
const css::uno::Reference< css::beans::XPropertySet > &  _rxControlModel,
const css::uno::Reference< css::util::XNumberFormats > &  _rxNumberFormats 
)
static

◆ initializeTextFieldLineEnds()

void svxform::FormControlFactory::initializeTextFieldLineEnds ( const css::uno::Reference< css::beans::XPropertySet > &  _rxModel)

Member Data Documentation

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> svxform::FormControlFactory::m_xContext
private

Definition at line 98 of file formcontrolfactory.hxx.

Referenced by initializeTextFieldLineEnds().


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