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>
29 #include <rtl/ref.hxx>
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
135 css::uno::Reference< css::form::runtime::XFormOperations >
150 const css::uno::Reference< css::form::runtime::XFormController >& _rxController,
155 css::uno::Reference< css::sdbc::XRowSet >
159 css::form::runtime::FeatureState& _out_rState
161 bool isEnabled( sal_Int32 _nSlotId )
const;
162 void execute( sal_Int32 _nSlotId )
const;
163 void execute( sal_Int32 _nSlotId,
const OUString& _rParamName,
const css::uno::Any& _rParamValue )
const;
182 virtual void SAL_CALL
invalidateFeatures(
const css::uno::Sequence< ::sal_Int16 >& Features )
override;
186 virtual void SAL_CALL
errorOccured(
const css::sdb::SQLErrorEvent& Event )
override;
189 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
196 const sal_Int16 _nFeature,
197 const css::uno::Sequence< css::beans::NamedValue >& _rArguments
213 #endif // INCLUDED_SVX_SOURCE_INC_FORMCONTROLLING_HXX
virtual void invalidateFeatures(const ::std::vector< sal_Int32 > &_rFeatures)=0
invalidates the given features
easier access to a FormControllerHelper instance
~IControllerFeatureInvalidation()
rtl::Reference< FormControllerHelper > m_pImpl
IControllerFeatureInvalidation * m_pInvalidationCallback
::cppu::WeakImplHelper< css::form::runtime::XFeatureInvalidation, css::sdb::XSQLErrorListener > FormControllerHelper_Base
void assign(const css::uno::Reference< css::form::runtime::XFormController > &_rxController)
assign to a controller
~ControllerFeatures()
dtor
void dispose()
clears the instance so that it cannot be used afterwards
static sal_Int32 getControllerFeatureSlotIdForURL(const OUString &_rMainURL)
retrieves the feature id for a given feature URL
const FormControllerHelper * operator->() const
ControllerFeatures(IControllerFeatureInvalidation *_pInvalidationCallback)
standard ctor
static sal_Int16 getFormFeatureForSlotId(sal_Int32 _nSlotId)
retrieves the css.form.runtime.FormFeature ID for a given slot ID
FormControllerHelper * operator->()
static sal_Int32 getSlotIdForFormFeature(sal_Int16 _nFormFeature)
retrieves the slot id for a given css.form.runtime.FormFeature ID
bool isAssigned() const
checks whether the instance is properly assigned to a form and/or controller