1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_TEMPLATE_NETCHARTTYPE_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_TEMPLATE_NETCHARTTYPE_HXX
22 #include "ChartType.hxx"
27 class NetChartType_Base
: public ChartType
30 NetChartType_Base( ::com::sun::star::uno::Reference
<
31 ::com::sun::star::uno::XComponentContext
> const & xContext
);
32 virtual ~NetChartType_Base();
35 explicit NetChartType_Base( const NetChartType_Base
& rOther
);
37 // ____ XChartType ____
38 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XCoordinateSystem
> SAL_CALL
39 createCoordinateSystem( ::sal_Int32 DimensionCount
)
40 throw (::com::sun::star::lang::IllegalArgumentException
,
41 ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
43 // ____ OPropertySet ____
44 virtual ::com::sun::star::uno::Any
GetDefaultValue( sal_Int32 nHandle
) const
45 throw(::com::sun::star::beans::UnknownPropertyException
) SAL_OVERRIDE
;
47 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() SAL_OVERRIDE
;
49 // ____ XPropertySet ____
50 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
52 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
55 class NetChartType
: public NetChartType_Base
58 NetChartType( ::com::sun::star::uno::Reference
<
59 ::com::sun::star::uno::XComponentContext
> const & xContext
);
60 virtual ~NetChartType();
62 virtual OUString SAL_CALL
63 getImplementationName()
64 throw( ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
65 virtual sal_Bool SAL_CALL
66 supportsService( const OUString
& ServiceName
)
67 throw( ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
68 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
69 getSupportedServiceNames()
70 throw( ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
71 static OUString
getImplementationName_Static();
72 static ::com::sun::star::uno::Sequence
< OUString
>
73 getSupportedServiceNames_Static();
75 /// establish methods for factory instatiation
76 static css::uno::Reference
< css::uno::XInterface
> SAL_CALL
create( css::uno::Reference
< css::uno::XComponentContext
> const & xContext
)
77 throw(css::uno::Exception
)
79 return (::cppu::OWeakObject
*)new NetChartType( xContext
);
83 explicit NetChartType( const NetChartType
& rOther
);
85 // ____ XChartType ____
86 virtual OUString SAL_CALL
getChartType()
87 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
89 // ____ XCloneable ____
90 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloneable
> SAL_CALL
createClone()
91 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
96 // INCLUDED_CHART2_SOURCE_MODEL_TEMPLATE_NETCHARTTYPE_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */