chartuno.hxx (38d50f7b) chartuno.hxx (7d1ce60b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 5 unchanged lines hidden (view full) ---

14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 5 unchanged lines hidden (view full) ---

14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef SC_CHARTUNO_HXX
25#define SC_CHARTUNO_HXX
26
27#include "address.hxx"
28#include <svl/lstner.hxx>
29#include <tools/string.hxx>
30#include <comphelper/proparrhlp.hxx>
31#include <comphelper/propertycontainer.hxx>
32
33#include <com/sun/star/table/XTableChart.hpp>
34#include <com/sun/star/table/XTableCharts.hpp>
35#include <com/sun/star/document/XEmbeddedObjectSupplier.hpp>
36#include <com/sun/star/lang/XServiceInfo.hpp>
37#include <com/sun/star/container/XEnumerationAccess.hpp>
38#include <com/sun/star/container/XIndexAccess.hpp>
22#ifndef SC_CHARTUNO_HXX
23#define SC_CHARTUNO_HXX
24
25#include "address.hxx"
26#include <svl/lstner.hxx>
27#include <tools/string.hxx>
28#include <comphelper/proparrhlp.hxx>
29#include <comphelper/propertycontainer.hxx>
30
31#include <com/sun/star/table/XTableChart.hpp>
32#include <com/sun/star/table/XTableCharts.hpp>
33#include <com/sun/star/document/XEmbeddedObjectSupplier.hpp>
34#include <com/sun/star/lang/XServiceInfo.hpp>
35#include <com/sun/star/container/XEnumerationAccess.hpp>
36#include <com/sun/star/container/XIndexAccess.hpp>
39#include <com/sun/star/container/XNamed.hpp>
37#include <com/sun/star/container/XNamedEx.hpp>
40#include <cppuhelper/compbase4.hxx>
41#include <cppuhelper/implbase4.hxx>
42
43
44class ScDocShell;
45class ScRangeListRef;
46class ScChartObj;
47

--- 62 unchanged lines hidden (view full) ---

110 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
111 throw(::com::sun::star::uno::RuntimeException);
112};
113
114
115typedef ::cppu::WeakComponentImplHelper4<
116 ::com::sun::star::table::XTableChart,
117 ::com::sun::star::document::XEmbeddedObjectSupplier,
38#include <cppuhelper/compbase4.hxx>
39#include <cppuhelper/implbase4.hxx>
40
41
42class ScDocShell;
43class ScRangeListRef;
44class ScChartObj;
45

--- 62 unchanged lines hidden (view full) ---

108 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
109 throw(::com::sun::star::uno::RuntimeException);
110};
111
112
113typedef ::cppu::WeakComponentImplHelper4<
114 ::com::sun::star::table::XTableChart,
115 ::com::sun::star::document::XEmbeddedObjectSupplier,
118 ::com::sun::star::container::XNamed,
116 ::com::sun::star::container::XNamedEx, // #i121178#: support displaying name
119 ::com::sun::star::lang::XServiceInfo > ScChartObj_Base;
120
121typedef ::comphelper::OPropertyContainer ScChartObj_PBase;
122typedef ::comphelper::OPropertyArrayUsageHelper< ScChartObj > ScChartObj_PABase;
123
124class ScChartObj : public ::comphelper::OBaseMutex
125 ,public ScChartObj_Base
126 ,public ScChartObj_PBase
127 ,public ScChartObj_PABase
128 ,public SfxListener
129{
130private:
131 ScDocShell* pDocShell;
132 SCTAB nTab; // Charts sind pro Sheet
133 String aChartName;
117 ::com::sun::star::lang::XServiceInfo > ScChartObj_Base;
118
119typedef ::comphelper::OPropertyContainer ScChartObj_PBase;
120typedef ::comphelper::OPropertyArrayUsageHelper< ScChartObj > ScChartObj_PABase;
121
122class ScChartObj : public ::comphelper::OBaseMutex
123 ,public ScChartObj_Base
124 ,public ScChartObj_PBase
125 ,public ScChartObj_PABase
126 ,public SfxListener
127{
128private:
129 ScDocShell* pDocShell;
130 SCTAB nTab; // Charts sind pro Sheet
131 String aChartName;
132 String aObjectName; // #i121178#: the OLE object's name(displaying name)
134
135 void Update_Impl( const ScRangeListRef& rRanges, bool bColHeaders, bool bRowHeaders );
136 void GetData_Impl( ScRangeListRef& rRanges, bool& rColHeaders, bool& rRowHeaders ) const;
137
138protected:
139 // ::comphelper::OPropertySetHelper
140 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
141 virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )

--- 36 unchanged lines hidden (view full) ---

178 virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > SAL_CALL
179 getEmbeddedObject() throw(::com::sun::star::uno::RuntimeException);
180
181 // XNamed
182 virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
183 virtual void SAL_CALL setName( const ::rtl::OUString& aName )
184 throw(::com::sun::star::uno::RuntimeException);
185
133
134 void Update_Impl( const ScRangeListRef& rRanges, bool bColHeaders, bool bRowHeaders );
135 void GetData_Impl( ScRangeListRef& rRanges, bool& rColHeaders, bool& rRowHeaders ) const;
136
137protected:
138 // ::comphelper::OPropertySetHelper
139 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
140 virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )

--- 36 unchanged lines hidden (view full) ---

177 virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > SAL_CALL
178 getEmbeddedObject() throw(::com::sun::star::uno::RuntimeException);
179
180 // XNamed
181 virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
182 virtual void SAL_CALL setName( const ::rtl::OUString& aName )
183 throw(::com::sun::star::uno::RuntimeException);
184
185 // XNamedEx
186 virtual ::rtl::OUString SAL_CALL getDisplayName() throw(::com::sun::star::uno::RuntimeException);
187 virtual void SAL_CALL setDisplayName( const ::rtl::OUString& aName )
188 throw(::com::sun::star::uno::RuntimeException);
189
186 // XServiceInfo
187 virtual ::rtl::OUString SAL_CALL getImplementationName()
188 throw(::com::sun::star::uno::RuntimeException);
189 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
190 throw(::com::sun::star::uno::RuntimeException);
191 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
192 throw(::com::sun::star::uno::RuntimeException);
193
194 // XPropertySet
195 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
196 throw (::com::sun::star::uno::RuntimeException);
197};
198
199#endif
200
190 // XServiceInfo
191 virtual ::rtl::OUString SAL_CALL getImplementationName()
192 throw(::com::sun::star::uno::RuntimeException);
193 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
194 throw(::com::sun::star::uno::RuntimeException);
195 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
196 throw(::com::sun::star::uno::RuntimeException);
197
198 // XPropertySet
199 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
200 throw (::com::sun::star::uno::RuntimeException);
201};
202
203#endif
204