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_SCATTERCHARTTYPE_HXX
20 #define INCLUDED_CHART2_SOURCE_MODEL_TEMPLATE_SCATTERCHARTTYPE_HXX
22 #include "ChartType.hxx"
23 #include <com/sun/star/chart2/CurveStyle.hpp>
28 class ScatterChartType
: public ChartType
32 ::com::sun::star::uno::Reference
<
33 ::com::sun::star::uno::XComponentContext
> const & xContext
,
34 ::com::sun::star::chart2::CurveStyle eCurveStyle
=
35 ::com::sun::star::chart2::CurveStyle_LINES
,
36 sal_Int32 nResolution
= 20,
37 sal_Int32 nOrder
= 3 );
38 virtual ~ScatterChartType();
40 virtual OUString SAL_CALL
41 getImplementationName()
42 throw( ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
43 virtual sal_Bool SAL_CALL
44 supportsService( const OUString
& ServiceName
)
45 throw( ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
46 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
47 getSupportedServiceNames()
48 throw( ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
49 static OUString
getImplementationName_Static();
50 static ::com::sun::star::uno::Sequence
< OUString
>
51 getSupportedServiceNames_Static();
53 /// establish methods for factory instatiation
54 static css::uno::Reference
< css::uno::XInterface
> SAL_CALL
create( css::uno::Reference
< css::uno::XComponentContext
> const & xContext
)
55 throw(css::uno::Exception
)
57 return (::cppu::OWeakObject
*)new ScatterChartType( xContext
);
61 explicit ScatterChartType( const ScatterChartType
& rOther
);
63 // ____ XChartType ____
64 virtual OUString SAL_CALL
getChartType()
65 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
66 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
67 getSupportedMandatoryRoles()
68 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
69 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::XCoordinateSystem
> SAL_CALL
70 createCoordinateSystem( ::sal_Int32 DimensionCount
)
71 throw (::com::sun::star::lang::IllegalArgumentException
,
72 ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
74 // ____ OPropertySet ____
75 virtual ::com::sun::star::uno::Any
GetDefaultValue( sal_Int32 nHandle
) const
76 throw(::com::sun::star::beans::UnknownPropertyException
) SAL_OVERRIDE
;
78 // ____ OPropertySet ____
79 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() SAL_OVERRIDE
;
81 // ____ XPropertySet ____
82 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
84 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
86 // ____ XCloneable ____
87 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloneable
> SAL_CALL
createClone()
88 throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
93 // INCLUDED_CHART2_SOURCE_MODEL_TEMPLATE_SCATTERCHARTTYPE_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */