23#include <com/sun/star/beans/PropertyAttribute.hpp>
33 enum class ModelPropertyId
35 HAS_HELP_SECTION = 2000,
36 MIN_HELP_TEXT_LINES = 2001,
37 MAX_HELP_TEXT_LINES = 2002,
41 using ::com::sun::star::uno::Reference;
42 using ::com::sun::star::beans::XPropertySetInfo;
43 using ::com::sun::star::uno::Any;
44 using ::com::sun::star::uno::Sequence;
45 using ::com::sun::star::beans::Property;
47 namespace PropertyAttribute = ::com::sun::star::beans::PropertyAttribute;
63 std::unique_ptr< ::cppu::IPropertyArrayHelper >
69 using ::comphelper::OPropertyContainerHelper::convertFastPropertyValue;
70 using ::comphelper::OPropertyContainerHelper::setFastPropertyValue;
71 using ::comphelper::OPropertyContainerHelper::getFastPropertyValue;
79 css::uno::Reference< css::beans::XPropertySetInfo >
93 ,m_bHasHelpSection( false )
94 ,m_nMinHelpTextLines( 3 )
95 ,m_nMaxHelpTextLines( 8 )
96 ,m_bIsReadOnly( false )
100 static_cast<sal_Int32
>(ModelPropertyId::HAS_HELP_SECTION),
101 PropertyAttribute::READONLY,
106 static_cast<sal_Int32
>(ModelPropertyId::MIN_HELP_TEXT_LINES),
107 PropertyAttribute::READONLY,
112 static_cast<sal_Int32
>(ModelPropertyId::MAX_HELP_TEXT_LINES),
113 PropertyAttribute::READONLY,
118 static_cast<sal_Int32
>(ModelPropertyId::IS_READ_ONLY),
119 PropertyAttribute::BOUND,
137 ::osl::MutexGuard aGuard(
m_rMutex );
151 return ::cppu::OPropertySetHelper::createPropertySetInfo(
getInfoHelper() );
242 m_pProperties->constructWithHelpSection( _nMinHelpTextLines, _nMaxHelpTextLines );
PropertiesInfo aProperties
void describeProperties(css::uno::Sequence< css::beans::Property > &_rProps) const
void registerProperty(const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType)
virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const css::uno::Any &rValue) SAL_OVERRIDE
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ::sal_Int32 SAL_CALL getMinHelpTextLines() override
virtual ~ImplInspectorModel() override
virtual ::sal_Int32 SAL_CALL getMaxHelpTextLines() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual void SAL_CALL setIsReadOnly(sal_Bool IsReadOnly) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
std::unique_ptr< InspectorModelProperties > m_pProperties
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
void enableHelpSectionProperties(sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines)
virtual sal_Bool SAL_CALL getHasHelpSection() override
virtual sal_Bool SAL_CALL getIsReadOnly() override
helper class for implementing the property set related functionality of an ImplInspectorModel
sal_Int32 m_nMinHelpTextLines
bool hasHelpSection() const
InspectorModelProperties(::osl::Mutex &_rMutex)
void constructWithHelpSection(sal_Int32 _nMinHelpTextLines, sal_Int32 _nMaxHelpTextLines)
sal_Int32 getMinHelpTextLines() const
sal_Int32 m_nMaxHelpTextLines
::cppu::IPropertyArrayHelper & getInfoHelper()
sal_Int32 getMaxHelpTextLines() const
css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo()
std::unique_ptr< ::cppu::IPropertyArrayHelper > m_pPropertyInfo
constexpr OUStringLiteral IsReadOnly(u"IsReadOnly")
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
a property handler for any virtual string properties
::cppu::WeakImplHelper< css::inspection::XObjectInspectorModel, css::lang::XInitialization, css::lang::XServiceInfo > ImplInspectorModel_Base
IMPLEMENT_FORWARD_XTYPEPROVIDER2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)