25#include <com/sun/star/form/inspection/FormComponentPropertyHandler.hpp>
53 return "com.sun.star.comp.extensions.ButtonNavigationHandler";
59 return {
"com.sun.star.form.inspection.ButtonNavigationHandler" };
72 ::osl::MutexGuard aGuard(
m_aMutex );
74 PropertyState eState = PropertyState_DIRECT_VALUE;
80 eState =
aHelper.getCurrentButtonTypeState();
86 eState =
aHelper.getCurrentTargetURLState();
91 OSL_FAIL(
"ButtonNavigationHandler::getPropertyState: cannot handle this property!" );
101 ::osl::MutexGuard aGuard(
m_aMutex );
110 aReturn =
aHelper.getCurrentButtonType();
117 aReturn =
aHelper.getCurrentTargetURL();
122 OSL_FAIL(
"ButtonNavigationHandler::getPropertyValue: cannot handle this property!" );
132 ::osl::MutexGuard aGuard(
m_aMutex );
139 aHelper.setCurrentButtonType( _rValue );
146 aHelper.setCurrentTargetURL( _rValue );
151 OSL_FAIL(
"ButtonNavigationHandler::setPropertyValue: cannot handle this id!" );
158 Reference< XPropertySetInfo > xPSI;
159 if ( _rxComponent.is() )
160 xPSI = _rxComponent->getPropertySetInfo();
179 return Sequence< Property >();
193 ::osl::MutexGuard aGuard(
m_aMutex );
196 InteractiveSelectionResult eReturn( InteractiveSelectionResult_Cancelled );
201 eReturn =
m_xSlaveHandler->onInteractivePropertySelection( _rPropertyName, _bPrimary, _rData, _rxInspectorUI );
214 ::osl::MutexGuard aGuard(
m_aMutex );
233 OSL_FAIL(
"ButtonNavigationHandler::actuatingPropertyChanged: cannot handle this id!" );
240 ::osl::MutexGuard aGuard(
m_aMutex );
243 LineDescriptor aReturn;
248 aReturn =
m_xSlaveHandler->describePropertyLine( _rPropertyName, _rxControlFactory );
261extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
263 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any>
const&)
PropertiesInfo aProperties
mutable::osl::Mutex m_aMutex
PropertyHandler implementation which additionally supports XServiceInfo.
css::uno::Reference< css::uno::XComponentContext > m_xContext
the context in which the instance was created
void addStringPropertyDescription(std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName) const
adds a description for the given string property to the given property vector Most probably to be cal...
virtual void SAL_CALL inspect(const css::uno::Reference< css::uno::XInterface > &_rxIntrospectee) override
PropertyId impl_getPropertyId_throwUnknownProperty(const OUString &_rPropertyName) const
retrieves the property id for a given property name
virtual css::inspection::InteractiveSelectionResult SAL_CALL onInteractivePropertySelection(const OUString &_rPropertyName, sal_Bool _bPrimary, css::uno::Any &_rData, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI) override
css::uno::Reference< css::beans::XPropertySet > m_xComponent
the component we're inspecting
PropertyId impl_getPropertyId_throwRuntime(const OUString &_rPropertyName) const
retrieves the property id for a given property name
void implAddPropertyDescription(std::vector< css::beans::Property > &_rProperties, const OUString &_rPropertyName, const css::uno::Type &_rType, sal_Int16 _nAttribs=0) const
adds a Property, given by name only, to a given vector of Properties
virtual css::inspection::LineDescriptor SAL_CALL describePropertyLine(const OUString &_rPropertyName, const css::uno::Reference< css::inspection::XPropertyControlFactory > &_rxControlFactory) override
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
a property handler for any virtual string properties