Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / chart2 / source / controller / chartapiwrapper / MinMaxLineWrapper.hxx
blob72966ee04a8fe846d8429d811f39945e9f4550a5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_CHARTAPIWRAPPER_MINMAXLINEWRAPPER_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_CHARTAPIWRAPPER_MINMAXLINEWRAPPER_HXX
22 #include <MutexContainer.hxx>
23 #include <WrappedIgnoreProperty.hxx>
24 #include <comphelper/interfacecontainer2.hxx>
26 #include <cppuhelper/implbase.hxx>
27 #include <com/sun/star/beans/XMultiPropertySet.hpp>
28 #include <com/sun/star/beans/XMultiPropertyStates.hpp>
29 #include <com/sun/star/beans/XPropertyState.hpp>
30 #include <com/sun/star/beans/XPropertySet.hpp>
31 #include <com/sun/star/lang/XComponent.hpp>
32 #include <com/sun/star/lang/XServiceInfo.hpp>
34 #include <memory>
36 namespace chart
39 namespace wrapper
42 class Chart2ModelContact;
44 class MinMaxLineWrapper : public MutexContainer
45 , public ::cppu::WeakImplHelper
46 < css::lang::XComponent
47 , css::lang::XServiceInfo
48 , css::beans::XPropertySet
49 , css::beans::XMultiPropertySet
50 , css::beans::XPropertyState
51 , css::beans::XMultiPropertyStates
54 public:
55 explicit MinMaxLineWrapper(const std::shared_ptr<Chart2ModelContact>& spChart2ModelContact);
56 virtual ~MinMaxLineWrapper() override;
58 /// XServiceInfo declarations
59 virtual OUString SAL_CALL getImplementationName() override;
60 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
61 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
63 // ____ XComponent ____
64 virtual void SAL_CALL dispose() override;
65 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
66 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
68 //XPropertySet
69 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
71 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
72 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
74 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
75 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
76 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
77 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
79 //XMultiPropertySet
80 //getPropertySetInfo() already declared in XPropertySet
81 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
82 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames ) override;
83 virtual void SAL_CALL addPropertiesChangeListener( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
84 virtual void SAL_CALL removePropertiesChangeListener( const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
85 virtual void SAL_CALL firePropertiesChangeEvent( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) override;
87 //XPropertyState
88 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
89 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates( const css::uno::Sequence< OUString >& aPropertyName ) override;
90 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
91 virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
93 //XMultiPropertyStates
94 //getPropertyStates() already declared in XPropertyState
95 virtual void SAL_CALL setAllPropertiesToDefault( ) override;
96 virtual void SAL_CALL setPropertiesToDefault( const css::uno::Sequence< OUString >& aPropertyNames ) override;
97 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyDefaults( const css::uno::Sequence< OUString >& aPropertyNames ) override;
99 private: //member
100 std::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
101 ::comphelper::OInterfaceContainerHelper2 m_aEventListenerContainer;
103 WrappedIgnoreProperty m_aWrappedLineJointProperty;
106 } // namespace wrapper
107 } // namespace chart
109 // INCLUDED_CHART2_SOURCE_CONTROLLER_CHARTAPIWRAPPER_MINMAXLINEWRAPPER_HXX
110 #endif
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */