LibreOffice Module oox (master) 1
ColorPropertySet.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef XMLOFF_COLORPROPERTYSET_HXX
21#define XMLOFF_COLORPROPERTYSET_HXX
22
23// FIXME? this file is identical to xmloff/source/chart/ColorPropertySet.hxx
24
26#include <tools/color.hxx>
27
28#include <com/sun/star/beans/XPropertySet.hpp>
29#include <com/sun/star/beans/XPropertyState.hpp>
30
31namespace oox::drawingml
32{
33
34class ColorPropertySet : public ::cppu::WeakImplHelper<
35 css::beans::XPropertySet,
36 css::beans::XPropertyState >
37{
38public:
39 // if bFillColor == false, the color is a LineColor
40 explicit ColorPropertySet( ::Color nColor, bool bFillColor = true );
41 virtual ~ColorPropertySet() override;
42
43protected:
44 // ____ XPropertySet ____
45 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
46 virtual void SAL_CALL setPropertyValue(
47 const OUString& aPropertyName,
48 const css::uno::Any& aValue ) override;
49 virtual css::uno::Any SAL_CALL getPropertyValue(
50 const OUString& PropertyName ) override;
51 virtual void SAL_CALL addPropertyChangeListener(
52 const OUString& aPropertyName,
53 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
54 virtual void SAL_CALL removePropertyChangeListener(
55 const OUString& aPropertyName,
56 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
57 virtual void SAL_CALL addVetoableChangeListener(
58 const OUString& PropertyName,
59 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
60 virtual void SAL_CALL removeVetoableChangeListener(
61 const OUString& PropertyName,
62 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
63
64 // ____ XPropertyState ____
65 virtual css::beans::PropertyState SAL_CALL getPropertyState(
66 const OUString& PropertyName ) override;
67 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(
68 const css::uno::Sequence< OUString >& aPropertyName ) override;
69 virtual void SAL_CALL setPropertyToDefault(
70 const OUString& PropertyName ) override;
71 virtual css::uno::Any SAL_CALL getPropertyDefault(
72 const OUString& aPropertyName ) override;
73
74private:
75 css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo;
80};
81
82} // namespace xmloff::chart
83
84// XMLOFF_COLORPROPERTYSET_HXX
85#endif
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::beans::XPropertySetInfo > m_xInfo
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(const css::uno::Sequence< OUString > &aPropertyName) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) 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, bool bFillColor=true)
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
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override