24#include <osl/diagnose.h>
29using ::com::sun::star::uno::Reference;
30using ::com::sun::star::uno::Sequence;
34class lcl_ColorPropertySetInfo :
public ::cppu::WeakImplHelper<
38 explicit lcl_ColorPropertySetInfo();
42 virtual Sequence< Property > SAL_CALL getProperties()
override;
43 virtual Property SAL_CALL getPropertyByName(
const OUString& aName )
override;
44 virtual sal_Bool SAL_CALL hasPropertyByName(
const OUString& Name )
override;
47 static constexpr OUStringLiteral g_aColorPropName =
u"FillColor";
51lcl_ColorPropertySetInfo::lcl_ColorPropertySetInfo() :
52 m_aColorProp( g_aColorPropName, -1,
53 cppu::UnoType<sal_Int32>::
get(), 0)
56Sequence< Property > SAL_CALL lcl_ColorPropertySetInfo::getProperties()
59 return Sequence< Property >( & m_aColorProp, 1 );
62Property SAL_CALL lcl_ColorPropertySetInfo::getPropertyByName(
const OUString& aName )
64 if( aName == g_aColorPropName )
66 throw UnknownPropertyException( g_aColorPropName, getXWeak());
69sal_Bool SAL_CALL lcl_ColorPropertySetInfo::hasPropertyByName(
const OUString& Name )
71 return Name == g_aColorPropName;
81 m_nDefaultColor( 0x0099ccff )
92 m_xInfo.set(
new lcl_ColorPropertySetInfo );
109 OSL_FAIL(
"Not Implemented" );
114 OSL_FAIL(
"Not Implemented" );
119 OSL_FAIL(
"Not Implemented" );
124 OSL_FAIL(
"Not Implemented" );
131 return PropertyState_DIRECT_VALUE;
136 PropertyState aState = PropertyState_DIRECT_VALUE;
138 return Sequence<PropertyState>(&aState, 1);
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
ColorPropertySet(::Color nColor)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo
static constexpr OUStringLiteral g_aColorPropName
virtual ~ColorPropertySet() override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)