merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_sch / ChXChartAxis.hxx
blob6759f26c6dd11f3e545fd768e9fdf2d5dfe66f07
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ChXChartAxis.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CHXCHART_AXIS_HXX
32 #define _CHXCHART_AXIS_HXX
34 // header for SvNumberFormatsSupplierObj
35 #ifndef _NUMUNO_HXX
36 #include <bf_svtools/numuno.hxx>
37 #endif
39 #ifndef _COM_SUN_STAR_UTIL_XNUMBERFORMATSSUPPLIER_HPP_
40 #include <com/sun/star/util/XNumberFormatsSupplier.hpp>
41 #endif
43 #include "ChXChartObject.hxx"
44 namespace binfilter {
46 class ChXChartAxis :
47 public ::com::sun::star::util::XNumberFormatsSupplier,
48 public ChXChartObject
50 private:
51 ::com::sun::star::uno::Reference<
52 ::com::sun::star::util::XNumberFormatsSupplier > rNumberFormatter;
54 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > maTypeSequence;
56 public:
57 ChXChartAxis( ChartModel* _Model, long _WhichId );
58 virtual ~ChXChartAxis();
60 virtual void InitNumberFormatter() throw( ::com::sun::star::uno::RuntimeException );
62 static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
64 // XServiceInfo
65 virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
66 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
68 // XNumberFormatsSupplier
69 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL getNumberFormatSettings()
70 throw( ::com::sun::star::uno::RuntimeException );
71 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > SAL_CALL getNumberFormats()
72 throw( ::com::sun::star::uno::RuntimeException );
74 // XPropertySet
75 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
76 const ::com::sun::star::uno::Any& aValue )
77 throw( ::com::sun::star::beans::UnknownPropertyException,
78 ::com::sun::star::beans::PropertyVetoException,
79 ::com::sun::star::lang::IllegalArgumentException,
80 ::com::sun::star::lang::WrappedTargetException,
81 ::com::sun::star::uno::RuntimeException );
82 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
83 throw( ::com::sun::star::beans::UnknownPropertyException,
84 ::com::sun::star::lang::WrappedTargetException,
85 ::com::sun::star::uno::RuntimeException );
87 // XInterface
88 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType )
89 throw ( ::com::sun::star::uno::RuntimeException );
90 virtual void SAL_CALL acquire() throw();
91 virtual void SAL_CALL release() throw();
93 // XTypeProvider
94 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
95 throw( ::com::sun::star::uno::RuntimeException );
96 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
97 throw( ::com::sun::star::uno::RuntimeException );
99 // XShapeDescriptor
100 virtual ::rtl::OUString SAL_CALL getShapeType() throw( ::com::sun::star::uno::RuntimeException );
102 // XUnoTunnel
103 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier )
104 throw( ::com::sun::star::uno::RuntimeException );
106 // ChXChartObject::XMultiPropertySet
107 virtual void SAL_CALL setPropertyValues (
108 const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames,
109 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
110 throw ( ::com::sun::star::beans::PropertyVetoException,
111 ::com::sun::star::lang::IllegalArgumentException,
112 ::com::sun::star::lang::WrappedTargetException,
113 ::com::sun::star::uno::RuntimeException);
115 protected:
116 /** @descr Creates an item set with a which range specific to chart axes.
117 @return Returns a pointer to an item set. The caller is responsible for deleting it.
119 virtual SfxItemSet * CreateItemSet (void);
121 /** @descr Handle the axis special cases and call the base class method for all other.
122 See there for further documentation.
123 @see ChxChartObject::GetPropertyValue.
125 virtual void GetPropertyValue (const SfxItemPropertyMap & rProperty,
126 ::com::sun::star::uno::Any & rValue,
127 SfxItemSet & rAttributes);
130 } //namespace binfilter
131 #endif // _CHXCHART_AXIS_HXX