LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
FmFormPageImpl Class Referencefinal

#include <fmpgeimp.hxx>

Collaboration diagram for FmFormPageImpl:
[legend]

Public Member Functions

 FmFormPageImpl (FmFormPage &_rPage)
 
 ~FmFormPageImpl ()
 
void initFrom (FmFormPageImpl &i_foreignImpl)
 
void setCurForm (const css::uno::Reference< css::form::XForm > &xForm)
 
css::uno::Reference< css::form::XForm > getDefaultForm ()
 
css::uno::Reference< css::form::XForm > findPlaceInFormComponentHierarchy (const css::uno::Reference< css::form::XFormComponent > &rContent, const css::uno::Reference< css::sdbc::XDataSource > &rDatabase=css::uno::Reference< css::sdbc::XDataSource >(), const OUString &rDBTitle=OUString(), const OUString &rCursorSource=OUString(), sal_Int32 nCommandType=0)
 finds a place in the form component hierarchy where to insert the given component More...
 
bool hasEverBeenActivated () const
 
void setHasBeenActivated ()
 
const css::uno::Reference< css::form::XForms > & getForms (bool _bForceCreate=true)
 
void SetFormsCreationHdl (const Link< FmFormPageImpl &, void > &_rFormsCreationHdl)
 
void formObjectInserted (const FmFormObj &_object)
 
void formObjectRemoved (const FmFormObj &_object)
 
void formModelAssigned (const FmFormObj &_object)
 
SVX_DLLPUBLIC css::uno::Reference< css::container::XMap > getControlToShapeMap ()
 returns an object mapping from control models to drawing shapes. More...
 

Static Public Member Functions

static OUString setUniqueName (const css::uno::Reference< css::form::XFormComponent > &xFormComponent, const css::uno::Reference< css::form::XForm > &xControls)
 

Private Member Functions

css::uno::Reference< css::form::XForm > findFormForDataSource (const css::uno::Reference< css::form::XForm > &rForm, const css::uno::Reference< css::sdbc::XDataSource > &rDatabase, const OUString &rCommand, sal_Int32 nCommandType)
 finds a form with a given data source signature More...
 
bool validateCurForm ()
 validates whether <member>xCurrentForm</member> is still valid and to be used More...
 
css::uno::Reference< css::container::XMap > impl_createControlShapeMap_nothrow ()
 
 FmFormPageImpl (const FmFormPageImpl &)=delete
 
FmFormPageImploperator= (const FmFormPageImpl &)=delete
 

Private Attributes

css::uno::Reference< css::form::XForm > xCurrentForm
 
css::uno::Reference< css::form::XForms > m_xForms
 
css::uno::WeakReference< css::container::XMap > m_aControlShapeMap
 
FmFormPagem_rPage
 
Link< FmFormPageImpl &, voidm_aFormsCreationHdl
 
bool m_bFirstActivation
 
bool m_bAttemptedFormCreation
 

Detailed Description

Definition at line 47 of file fmpgeimp.hxx.

Constructor & Destructor Documentation

FmFormPageImpl::FmFormPageImpl ( FmFormPage _rPage)
explicit

Definition at line 68 of file fmpgeimp.cxx.

FmFormPageImpl::~FmFormPageImpl ( )

Definition at line 334 of file fmpgeimp.cxx.

References m_xForms, and xCurrentForm.

FmFormPageImpl::FmFormPageImpl ( const FmFormPageImpl )
privatedelete

Member Function Documentation

Reference< XForm > FmFormPageImpl::findFormForDataSource ( const css::uno::Reference< css::form::XForm > &  rForm,
const css::uno::Reference< css::sdbc::XDataSource > &  rDatabase,
const OUString &  rCommand,
sal_Int32  nCommandType 
)
private

finds a form with a given data source signature

Parameters
rFormthe form to start the search with. This form, including all possible sub forms, will be examined
rDatabasethe data source which to which the found form must be bound
rCommandthe desired Command property value of the sought-after form
nCommandTypethe desired CommandType property value of the sought-after form

Definition at line 540 of file fmpgeimp.cxx.

References Exception, FM_PROP_ACTIVE_CONNECTION, FM_PROP_COMMAND, FM_PROP_COMMANDTYPE, FM_PROP_DATASOURCE, FM_PROP_NAME, i, isEmbeddedInDatabase(), makeAny(), and nType.

Referenced by findPlaceInFormComponentHierarchy().

Reference< css::form::XForm > FmFormPageImpl::findPlaceInFormComponentHierarchy ( const css::uno::Reference< css::form::XFormComponent > &  rContent,
const css::uno::Reference< css::sdbc::XDataSource > &  rDatabase = css::uno::Reference< css::sdbc::XDataSource>(),
const OUString &  rDBTitle = OUString(),
const OUString &  rCursorSource = OUString(),
sal_Int32  nCommandType = 0 
)

finds a place in the form component hierarchy where to insert the given component

Note that no actual insertion happens, this is the responsibility of the caller (as the caller might decide on a suitable place where in the returned container the insertion should happen).

Definition at line 446 of file fmpgeimp.cxx.

References Any, aStr, createInstance(), DBG_ASSERT, Exception, findFormForDataSource(), FM_PROP_COMMAND, FM_PROP_COMMANDTYPE, FM_PROP_DATASOURCE, FM_PROP_NAME, FM_PROP_URL, FM_SUN_COMPONENT_FORM, getDefaultForm(), getForms(), comphelper::getProcessServiceFactory(), SdrPage::getSdrModelFromSdrPage(), i, FmUndoContainerAction::Inserted, m_rPage, makeAny(), sName, SvxResId(), validateCurForm(), and xCurrentForm.

Referenced by FmFormObj::EndCreate(), and FmXUndoEnvironment::Inserted().

void FmFormPageImpl::formModelAssigned ( const FmFormObj _object)

Definition at line 662 of file fmpgeimp.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_aControlShapeMap.

Referenced by FmFormObj::SetUnoControlModel().

void FmFormPageImpl::formObjectInserted ( const FmFormObj _object)

Definition at line 681 of file fmpgeimp.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_aControlShapeMap.

Referenced by FmFormObj::handlePageChange().

void FmFormPageImpl::formObjectRemoved ( const FmFormObj _object)

Definition at line 699 of file fmpgeimp.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_aControlShapeMap.

Referenced by FmFormObj::handlePageChange().

Reference< XMap > FmFormPageImpl::getControlToShapeMap ( )

returns an object mapping from control models to drawing shapes.

Definition at line 225 of file fmpgeimp.cxx.

References impl_createControlShapeMap_nothrow(), and m_aControlShapeMap.

Referenced by FmPropBrw::impl_createPropertyBrowser_throw().

Reference< XForm > FmFormPageImpl::getDefaultForm ( )
const Reference< css::form::XForms > & FmFormPageImpl::getForms ( bool  _bForceCreate = true)
bool FmFormPageImpl::hasEverBeenActivated ( ) const
inline

Definition at line 84 of file fmpgeimp.hxx.

References m_bFirstActivation.

Referenced by FmXFormShell::viewActivated_Lock().

Reference< XMap > FmFormPageImpl::impl_createControlShapeMap_nothrow ( )
private
void FmFormPageImpl::initFrom ( FmFormPageImpl i_foreignImpl)
FmFormPageImpl& FmFormPageImpl::operator= ( const FmFormPageImpl )
privatedelete
void FmFormPageImpl::setCurForm ( const css::uno::Reference< css::form::XForm > &  xForm)

Definition at line 354 of file fmpgeimp.cxx.

References xCurrentForm.

Referenced by FmXFormShell::impl_updateCurrentForm_Lock().

void FmFormPageImpl::SetFormsCreationHdl ( const Link< FmFormPageImpl &, void > &  _rFormsCreationHdl)
inline

Definition at line 89 of file fmpgeimp.hxx.

Referenced by FmXFormShell::viewActivated_Lock().

void FmFormPageImpl::setHasBeenActivated ( )
inline

Definition at line 85 of file fmpgeimp.hxx.

Referenced by FmXFormShell::viewActivated_Lock().

OUString FmFormPageImpl::setUniqueName ( const css::uno::Reference< css::form::XFormComponent > &  xFormComponent,
const css::uno::Reference< css::form::XForm > &  xControls 
)
static
bool FmFormPageImpl::validateCurForm ( )
private

validates whether <member>xCurrentForm</member> is still valid and to be used

There are situations where our current form becomes invalid, without us noticing this. Thus, every method which accesses <member>xCurrentForm</member> should beforehand validate the current form by calling this method.

If <member>xCurrentForm</member> is not valid anymore, it is reset to <NULL>.

Returns
<TRUE> if and only if xCurrentForm is valid.
Available since:
#i40086#

Definition at line 342 of file fmpgeimp.cxx.

References xCurrentForm.

Referenced by findPlaceInFormComponentHierarchy(), and getDefaultForm().

Member Data Documentation

css::uno::WeakReference< css::container::XMap > FmFormPageImpl::m_aControlShapeMap
private
Link<FmFormPageImpl&,void> FmFormPageImpl::m_aFormsCreationHdl
private

Definition at line 54 of file fmpgeimp.hxx.

Referenced by getForms().

bool FmFormPageImpl::m_bAttemptedFormCreation
private

Definition at line 57 of file fmpgeimp.hxx.

Referenced by getForms().

bool FmFormPageImpl::m_bFirstActivation
private

Definition at line 56 of file fmpgeimp.hxx.

Referenced by hasEverBeenActivated().

FmFormPage& FmFormPageImpl::m_rPage
private
css::uno::Reference< css::form::XForms > FmFormPageImpl::m_xForms
private

Definition at line 50 of file fmpgeimp.hxx.

Referenced by getForms(), initFrom(), and ~FmFormPageImpl().

css::uno::Reference< css::form::XForm > FmFormPageImpl::xCurrentForm
private

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