fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / chartapiwrapper / WallFloorWrapper.hxx
blob58d43b2056de40ba61b7cde5b59ef42da97eead3
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_WALLFLOORWRAPPER_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_CHARTAPIWRAPPER_WALLFLOORWRAPPER_HXX
22 #include "WrappedPropertySet.hxx"
23 #include <cppuhelper/implbase2.hxx>
24 #include <comphelper/uno3.hxx>
25 #include <cppuhelper/interfacecontainer.hxx>
26 #include <com/sun/star/lang/XComponent.hpp>
27 #include <com/sun/star/lang/XServiceInfo.hpp>
28 #include <com/sun/star/uno/XComponentContext.hpp>
30 #include <boost/shared_ptr.hpp>
32 namespace chart
35 namespace wrapper
38 class Chart2ModelContact;
40 class WallFloorWrapper : public ::cppu::ImplInheritanceHelper2<
41 WrappedPropertySet
42 , com::sun::star::lang::XComponent
43 , com::sun::star::lang::XServiceInfo
46 public:
47 WallFloorWrapper( bool bWall, ::boost::shared_ptr< Chart2ModelContact > spChart2ModelContact );
48 virtual ~WallFloorWrapper();
50 /// XServiceInfo declarations
51 virtual OUString SAL_CALL getImplementationName()
52 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
53 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
54 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
55 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
56 throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
58 static OUString getImplementationName_Static();
59 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
61 // ____ XComponent ____
62 virtual void SAL_CALL dispose()
63 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
64 virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference<
65 ::com::sun::star::lang::XEventListener >& xListener )
66 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
67 virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference<
68 ::com::sun::star::lang::XEventListener >& aListener )
69 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
71 protected:
72 // ____ WrappedPropertySet ____
73 virtual const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& getPropertySequence() SAL_OVERRIDE;
74 virtual const std::vector< WrappedProperty* > createWrappedProperties() SAL_OVERRIDE;
75 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getInnerPropertySet() SAL_OVERRIDE;
77 private:
78 ::boost::shared_ptr< Chart2ModelContact > m_spChart2ModelContact;
79 ::cppu::OInterfaceContainerHelper m_aEventListenerContainer;
81 bool m_bWall;
84 } // namespace wrapper
85 } // namespace chart
87 // INCLUDED_CHART2_SOURCE_CONTROLLER_CHARTAPIWRAPPER_WALLFLOORWRAPPER_HXX
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */