20#ifndef INCLUDED_SVX_SOURCE_INC_FORMCONTROLLING_HXX
21#define INCLUDED_SVX_SOURCE_INC_FORMCONTROLLING_HXX
23#include <com/sun/star/form/runtime/XFormController.hpp>
24#include <com/sun/star/form/runtime/FeatureState.hpp>
25#include <com/sun/star/form/runtime/XFormOperations.hpp>
26#include <com/sun/star/sdb/XSQLErrorListener.hpp>
68 class FormControllerHelper;
95 const css::uno::Reference< css::form::runtime::XFormController >& _rxController
107 const css::uno::Reference< css::form::runtime::XFormController >& _rxController
121 typedef ::cppu::WeakImplHelper < css::form::runtime::XFeatureInvalidation
122 , css::sdb::XSQLErrorListener
134 css::uno::Reference< css::form::runtime::XFormOperations >
149 const css::uno::Reference< css::form::runtime::XFormController >& _rxController,
154 css::uno::Reference< css::sdbc::XRowSet >
158 css::form::runtime::FeatureState& _out_rState
160 bool isEnabled( sal_Int32 _nSlotId )
const;
161 void execute( sal_Int32 _nSlotId )
const;
162 void execute( sal_Int32 _nSlotId,
const OUString& _rParamName,
const css::uno::Any& _rParamValue )
const;
181 virtual void SAL_CALL
invalidateFeatures(
const css::uno::Sequence< ::sal_Int16 >& Features )
override;
185 virtual void SAL_CALL
errorOccured(
const css::sdb::SQLErrorEvent& Event )
override;
188 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
194 const sal_Int16 _nFeature,
195 const css::uno::Sequence< css::beans::NamedValue >& _rArguments
easier access to a FormControllerHelper instance
rtl::Reference< FormControllerHelper > m_pImpl
void assign(const css::uno::Reference< css::form::runtime::XFormController > &_rxController)
assign to a controller
void dispose()
clears the instance so that it cannot be used afterwards
FormControllerHelper * operator->()
ControllerFeatures(IControllerFeatureInvalidation *_pInvalidationCallback)
standard ctor
IControllerFeatureInvalidation * m_pInvalidationCallback
ControllerFeatures(const css::uno::Reference< css::form::runtime::XFormController > &_rxController)
constructs the instance from a <type scope="css::form::runtime">XFormController<type> instance
const FormControllerHelper * operator->() const
bool isAssigned() const
checks whether the instance is properly assigned to a form and/or controller
~ControllerFeatures()
dtor
static sal_Int32 getControllerFeatureSlotIdForURL(const OUString &_rMainURL)
retrieves the feature id for a given feature URL
static sal_Int16 getFormFeatureForSlotId(sal_Int32 _nSlotId)
retrieves the css.form.runtime.FormFeature ID for a given slot ID
static sal_Int32 getSlotIdForFormFeature(sal_Int16 _nFormFeature)
retrieves the slot id for a given css.form.runtime.FormFeature ID
~IControllerFeatureInvalidation()
virtual void invalidateFeatures(const ::std::vector< sal_Int32 > &_rFeatures)=0
invalidates the given features
::cppu::WeakImplHelper< css::form::runtime::XFeatureInvalidation, css::sdb::XSQLErrorListener > FormControllerHelper_Base