fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / model / inc / ChartTypeManager.hxx
blobc0be3882e490fb9c0c87f604d8c0b60b9b4fb333
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_MODEL_INC_CHARTTYPEMANAGER_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_INC_CHARTTYPEMANAGER_HXX
22 #include "OPropertySet.hxx"
23 #include "MutexContainer.hxx"
24 #include <cppuhelper/implbase3.hxx>
25 #include <comphelper/uno3.hxx>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <com/sun/star/lang/XServiceInfo.hpp>
30 #include <com/sun/star/chart2/XChartTypeManager.hpp>
32 namespace chart
35 class ChartTypeManager :
36 public ::cppu::WeakImplHelper3<
37 css::lang::XServiceInfo,
38 ::com::sun::star::lang::XMultiServiceFactory,
39 ::com::sun::star::chart2::XChartTypeManager >
41 public:
42 explicit ChartTypeManager(
43 ::com::sun::star::uno::Reference<
44 ::com::sun::star::uno::XComponentContext > const & xContext );
45 virtual ~ChartTypeManager();
47 virtual OUString SAL_CALL
48 getImplementationName()
49 throw( ::com::sun::star::uno::RuntimeException, std::exception )
50 SAL_OVERRIDE;
51 virtual sal_Bool SAL_CALL
52 supportsService( const OUString& ServiceName )
53 throw( ::com::sun::star::uno::RuntimeException, std::exception )
54 SAL_OVERRIDE;
55 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL
56 getSupportedServiceNames()
57 throw( ::com::sun::star::uno::RuntimeException, std::exception )
58 SAL_OVERRIDE;
59 static OUString getImplementationName_Static();
60 static ::com::sun::star::uno::Sequence< OUString >
61 getSupportedServiceNames_Static();
63 /// establish methods for factory instatiation
64 static css::uno::Reference< css::uno::XInterface > SAL_CALL create( css::uno::Reference< css::uno::XComponentContext > const & xContext)
65 throw(css::uno::Exception)
67 return (::cppu::OWeakObject *)new ChartTypeManager( xContext );
70 protected:
71 // ____ XMultiServiceFactory ____
72 virtual ::com::sun::star::uno::Reference<
73 ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier )
74 throw (::com::sun::star::uno::Exception,
75 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
76 virtual ::com::sun::star::uno::Reference<
77 ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments(
78 const OUString& ServiceSpecifier,
79 const ::com::sun::star::uno::Sequence<
80 ::com::sun::star::uno::Any >& Arguments )
81 throw (::com::sun::star::uno::Exception,
82 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
83 virtual ::com::sun::star::uno::Sequence<
84 OUString > SAL_CALL getAvailableServiceNames()
85 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
87 // ____ XChartTypeManager ____
88 // currently empty
90 private:
91 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
92 m_xContext;
95 } // namespace chart
97 // INCLUDED_CHART2_SOURCE_MODEL_INC_CHARTTYPEMANAGER_HXX
98 #endif
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */