LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | List of all members
svx::FormControllerHelper Class Reference

is a helper class which manages form controller functionality (such as moveNext etc.). More...

#include <formcontrolling.hxx>

Inheritance diagram for svx::FormControllerHelper:
Collaboration diagram for svx::FormControllerHelper:

Public Member Functions

 FormControllerHelper (const css::uno::Reference< css::form::runtime::XFormController > &_rxController, IControllerFeatureInvalidation *_pInvalidationCallback)
 constructs the helper from a <type scope="css::form::runtime">XFormController<type> instance More...
css::uno::Reference< css::sdbc::XRowSet > getCursor () const
void getState (sal_Int32 _nSlotId, css::form::runtime::FeatureState &_out_rState) const
bool isEnabled (sal_Int32 _nSlotId) const
void execute (sal_Int32 _nSlotId) const
void execute (sal_Int32 _nSlotId, const OUString &_rParamName, const css::uno::Any &_rParamValue) const
bool commitCurrentRecord () const
bool commitCurrentControl () const
bool isInsertionRow () const
bool isModifiedRow () const
bool canDoFormFilter () const
void dispose ()
 disposes this instance. More...

Protected Member Functions

virtual ~FormControllerHelper () override
 dtor More...
virtual void SAL_CALL invalidateFeatures (const css::uno::Sequence< ::sal_Int16 > &Features) override
virtual void SAL_CALL invalidateAllFeatures () override
virtual void SAL_CALL errorOccured (const css::sdb::SQLErrorEvent &Event) override
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override

Protected Attributes

css::uno::Reference< css::form::runtime::XFormOperations > m_xFormOperations
css::uno::Any m_aOperationError

Private Types

enum  FormOperation {

Private Member Functions

bool impl_operateForm_nothrow (const FormOperation _eWhat, const sal_Int16 _nFeature, const css::uno::Sequence< css::beans::NamedValue > &_rArguments) const
bool impl_operateForm_nothrow (const FormOperation _eWhat) const
 FormControllerHelper (const FormControllerHelper &)=delete
FormControllerHelperoperator= (const FormControllerHelper &)=delete

Detailed Description

is a helper class which manages form controller functionality (such as moveNext etc.).

The class helps implementing form controller functionality, by providing methods to determine the state of, and execute, various common form features.
A feature is for instance moving the form associated with the controller to a certain position, or reloading the form, and so on.

Definition at line 131 of file formcontrolling.hxx.

Member Enumeration Documentation


Definition at line 192 of file formcontrolling.hxx.

Constructor & Destructor Documentation

svx::FormControllerHelper::FormControllerHelper ( const css::uno::Reference< css::form::runtime::XFormController > &  _rxController,
IControllerFeatureInvalidation _pInvalidationCallback 

constructs the helper from a <type scope="css::form::runtime">XFormController<type> instance

_rxControllerThe form controller which the helper should be responsible for. Must not be <NULL>, and must have a valid model (form).
_pInvalidationCallbackthe callback for invalidating feature states
svx::FormControllerHelper::~FormControllerHelper ( )


Definition at line 234 of file formcontrolling.cxx.

References DBG_UNHANDLED_EXCEPTION, dispose(), and Exception.

svx::FormControllerHelper::FormControllerHelper ( const FormControllerHelper )

Member Function Documentation

bool svx::FormControllerHelper::canDoFormFilter ( ) const
bool svx::FormControllerHelper::commitCurrentControl ( ) const
bool svx::FormControllerHelper::commitCurrentRecord ( ) const
void svx::FormControllerHelper::dispose ( void  )

disposes this instance.

After this method has been called, the instance is not functional anymore

Definition at line 248 of file formcontrolling.cxx.

References m_xFormOperations.

Referenced by ~FormControllerHelper().

void SAL_CALL svx::FormControllerHelper::disposing ( const css::lang::EventObject &  Source)

Definition at line 442 of file formcontrolling.cxx.

void SAL_CALL svx::FormControllerHelper::errorOccured ( const css::sdb::SQLErrorEvent &  Event)

Definition at line 435 of file formcontrolling.cxx.

References m_aOperationError.

void svx::FormControllerHelper::execute ( sal_Int32  _nSlotId) const
void svx::FormControllerHelper::execute ( sal_Int32  _nSlotId,
const OUString &  _rParamName,
const css::uno::Any &  _rParamValue 
) const
Reference< XRowSet > svx::FormControllerHelper::getCursor ( ) const
void svx::FormControllerHelper::getState ( sal_Int32  _nSlotId,
css::form::runtime::FeatureState &  _out_rState 
) const
bool svx::FormControllerHelper::impl_operateForm_nothrow ( const FormOperation  _eWhat,
const sal_Int16  _nFeature,
const css::uno::Sequence< css::beans::NamedValue > &  _rArguments 
) const
bool svx::FormControllerHelper::impl_operateForm_nothrow ( const FormOperation  _eWhat) const

Definition at line 199 of file formcontrolling.hxx.

References impl_operateForm_nothrow().

void SAL_CALL svx::FormControllerHelper::invalidateAllFeatures ( )
void SAL_CALL svx::FormControllerHelper::invalidateFeatures ( const css::uno::Sequence< ::sal_Int16 > &  Features)
bool svx::FormControllerHelper::isEnabled ( sal_Int32  _nSlotId) const
bool svx::FormControllerHelper::isInsertionRow ( ) const

Definition at line 448 of file formcontrolling.cxx.

References m_xFormOperations.

Referenced by FmXFormShell::setActiveController_Lock().

bool svx::FormControllerHelper::isModifiedRow ( ) const
FormControllerHelper& svx::FormControllerHelper::operator= ( const FormControllerHelper )

Member Data Documentation

css::uno::Any svx::FormControllerHelper::m_aOperationError

Definition at line 138 of file formcontrolling.hxx.

Referenced by errorOccured().

IControllerFeatureInvalidation* svx::FormControllerHelper::m_pInvalidationCallback

Definition at line 134 of file formcontrolling.hxx.

Referenced by invalidateAllFeatures(), and invalidateFeatures().

css::uno::Reference< css::form::runtime::XFormOperations > svx::FormControllerHelper::m_xFormOperations

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