Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
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/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : : #ifndef _CHART_MODEL_HXX
20 : : #define _CHART_MODEL_HXX
21 : :
22 : : #include "LifeTime.hxx"
23 : : #include "ServiceMacros.hxx"
24 : :
25 : : #include <com/sun/star/frame/XModel.hpp>
26 : : #include <com/sun/star/frame/XStorable2.hpp>
27 : : #include <com/sun/star/util/XModifiable.hpp>
28 : : #include <com/sun/star/util/XCloseable.hpp>
29 : : #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
30 : : #include <com/sun/star/document/XUndoManagerSupplier.hpp>
31 : : #include <com/sun/star/document/XFilter.hpp>
32 : : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
33 : : #include <com/sun/star/lang/XServiceInfo.hpp>
34 : : #include <com/sun/star/lang/XInitialization.hpp>
35 : : #include <com/sun/star/uno/XComponentContext.hpp>
36 : : #include <com/sun/star/util/XCloneable.hpp>
37 : : #include <com/sun/star/embed/XVisualObject.hpp>
38 : : #include <com/sun/star/document/XStorageBasedDocument.hpp>
39 : : #include <com/sun/star/lang/XUnoTunnel.hpp>
40 : : #include <com/sun/star/util/XNumberFormatsSupplier.hpp>
41 : : #include <com/sun/star/container/XChild.hpp>
42 : : #include <com/sun/star/chart2/data/XDataSource.hpp>
43 : : #include <com/sun/star/chart2/XChartTypeTemplate.hpp>
44 : : #include <com/sun/star/container/XNameContainer.hpp>
45 : : #include <com/sun/star/qa/XDumper.hpp>
46 : :
47 : : // public API
48 : : #include <com/sun/star/chart2/data/XDataProvider.hpp>
49 : : #include <com/sun/star/chart2/data/XDataReceiver.hpp>
50 : :
51 : : #include <com/sun/star/chart2/XChartDocument.hpp>
52 : : #include <com/sun/star/chart2/XTitled.hpp>
53 : :
54 : : #include <com/sun/star/frame/XLoadable.hpp>
55 : : #include <com/sun/star/embed/XEmbeddedObject.hpp>
56 : : #include <com/sun/star/embed/XStorage.hpp>
57 : : #include <com/sun/star/datatransfer/XTransferable.hpp>
58 : :
59 : : #ifndef INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_22
60 : : #define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_22
61 : : #define COMPHELPER_IMPLBASE_INTERFACE_NUMBER 22
62 : : #include "comphelper/implbase_var.hxx"
63 : : #endif
64 : : #include <osl/mutex.hxx>
65 : : #include <rtl/ref.hxx>
66 : : #include <cppuhelper/interfacecontainer.hxx>
67 : : #include <svtools/grfmgr.hxx>
68 : :
69 : : // for auto_ptr
70 : : #include <memory>
71 : :
72 : : class SvNumberFormatter;
73 : :
74 : : //=============================================================================
75 : :
76 : : namespace chart
77 : : {
78 : :
79 : : namespace impl
80 : : {
81 : :
82 : : // Note: needed for queryInterface (if it calls the base-class implementation)
83 : : typedef ::comphelper::WeakImplHelper22<
84 : : // ::com::sun::star::frame::XModel //comprehends XComponent (required interface), base of XChartDocument
85 : : ::com::sun::star::util::XCloseable //comprehends XCloseBroadcaster
86 : : ,::com::sun::star::frame::XStorable2 //(extension of XStorable)
87 : : ,::com::sun::star::util::XModifiable //comprehends XModifyBroadcaster (required interface)
88 : : ,::com::sun::star::lang::XServiceInfo
89 : : ,::com::sun::star::lang::XInitialization
90 : : ,::com::sun::star::chart2::XChartDocument // derived from XModel
91 : : ,::com::sun::star::chart2::data::XDataReceiver // public API
92 : : ,::com::sun::star::chart2::XTitled
93 : : ,::com::sun::star::frame::XLoadable
94 : : ,::com::sun::star::util::XCloneable
95 : : ,::com::sun::star::embed::XVisualObject
96 : : ,::com::sun::star::lang::XMultiServiceFactory
97 : : ,::com::sun::star::document::XStorageBasedDocument
98 : : ,::com::sun::star::lang::XUnoTunnel
99 : : ,::com::sun::star::util::XNumberFormatsSupplier
100 : : ,::com::sun::star::container::XChild
101 : : ,::com::sun::star::util::XModifyListener
102 : : ,::com::sun::star::datatransfer::XTransferable
103 : : ,::com::sun::star::document::XDocumentPropertiesSupplier
104 : : ,::com::sun::star::chart2::data::XDataSource
105 : : ,::com::sun::star::document::XUndoManagerSupplier
106 : : ,::com::sun::star::qa::XDumper
107 : : >
108 : : ChartModel_Base;
109 : : }
110 : :
111 : : class UndoManager;
112 : :
113 : : class ChartModel : public impl::ChartModel_Base
114 : : {
115 : :
116 : : private:
117 : : mutable ::apphelper::CloseableLifeTimeManager m_aLifeTimeManager;
118 : :
119 : : mutable ::osl::Mutex m_aModelMutex;
120 : : sal_Bool volatile m_bReadOnly;
121 : : sal_Bool volatile m_bModified;
122 : : sal_Int32 m_nInLoad;
123 : : sal_Bool volatile m_bUpdateNotificationsPending;
124 : :
125 : : ::rtl::OUString m_aResource;
126 : : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aMediaDescriptor;
127 : : ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties > m_xDocumentProperties;
128 : : ::rtl::Reference< UndoManager > m_pUndoManager;
129 : :
130 : : ::cppu::OInterfaceContainerHelper m_aControllers;
131 : : ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > m_xCurrentController;
132 : : sal_uInt16 m_nControllerLockCount;
133 : :
134 : : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
135 : : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation > m_xOldModelAgg;
136 : :
137 : : ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xStorage;
138 : : //the content of this should be always synchronized with the current m_xViewWindow size. The variable is necessary to hold the information as long as no view window exists.
139 : : ::com::sun::star::awt::Size m_aVisualAreaSize;
140 : : ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > m_xParent;
141 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XRangeHighlighter > m_xRangeHighlighter;
142 : : ::std::vector< GraphicObject > m_aGraphicObjectVector;
143 : :
144 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > m_xDataProvider;
145 : : /** is only valid if m_xDataProvider is set. If m_xDataProvider is set to an
146 : : external data provider this reference must be set to 0
147 : : */
148 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > m_xInternalDataProvider;
149 : :
150 : : ::com::sun::star::uno::Reference< com::sun::star::util::XNumberFormatsSupplier >
151 : : m_xOwnNumberFormatsSupplier;
152 : : ::com::sun::star::uno::Reference< com::sun::star::util::XNumberFormatsSupplier >
153 : : m_xNumberFormatsSupplier;
154 : : std::auto_ptr< SvNumberFormatter > m_apSvNumberFormatter; // #i113784# avoid memory leak
155 : :
156 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartTypeManager >
157 : : m_xChartTypeManager;
158 : :
159 : : // Diagram Access
160 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >
161 : : m_xDiagram;
162 : :
163 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XTitle >
164 : : m_xTitle;
165 : :
166 : : bool m_bIsDisposed;
167 : : ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
168 : : m_xPageBackground;
169 : :
170 : : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xXMLNamespaceMap;
171 : :
172 : : ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyListener;
173 : :
174 : : private:
175 : : //private methods
176 : :
177 : : ::rtl::OUString impl_g_getLocation();
178 : :
179 : : sal_Bool
180 : : impl_isControllerConnected( const com::sun::star::uno::Reference<
181 : : com::sun::star::frame::XController >& xController );
182 : :
183 : : com::sun::star::uno::Reference< com::sun::star::frame::XController >
184 : : impl_getCurrentController()
185 : : throw( com::sun::star::uno::RuntimeException);
186 : :
187 : : void SAL_CALL
188 : : impl_notifyModifiedListeners()
189 : : throw( com::sun::star::uno::RuntimeException);
190 : : void SAL_CALL
191 : : impl_notifyCloseListeners()
192 : : throw( com::sun::star::uno::RuntimeException);
193 : : void SAL_CALL
194 : : impl_notifyStorageChangeListeners()
195 : : throw(::com::sun::star::uno::RuntimeException);
196 : :
197 : : void impl_killInternalData() throw( com::sun::star::util::CloseVetoException );
198 : :
199 : : void impl_store(
200 : : const ::com::sun::star::uno::Sequence<
201 : : ::com::sun::star::beans::PropertyValue >& rMediaDescriptor,
202 : : const ::com::sun::star::uno::Reference<
203 : : ::com::sun::star::embed::XStorage > & xStorage );
204 : : void impl_load(
205 : : const ::com::sun::star::uno::Sequence<
206 : : ::com::sun::star::beans::PropertyValue >& rMediaDescriptor,
207 : : const ::com::sun::star::uno::Reference<
208 : : ::com::sun::star::embed::XStorage >& xStorage );
209 : : void impl_loadGraphics(
210 : : const ::com::sun::star::uno::Reference<
211 : : ::com::sun::star::embed::XStorage >& xStorage );
212 : : ::com::sun::star::uno::Reference<
213 : : ::com::sun::star::document::XFilter >
214 : : impl_createFilter( const ::com::sun::star::uno::Sequence<
215 : : ::com::sun::star::beans::PropertyValue > & rMediaDescriptor );
216 : :
217 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartTypeTemplate > impl_createDefaultChartTypeTemplate();
218 : : ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource > impl_createDefaultData();
219 : :
220 : : void impl_adjustAdditionalShapesPositionAndSize(
221 : : const ::com::sun::star::awt::Size& aVisualAreaSize );
222 : :
223 : : ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier >
224 : : impl_getNumberFormatsSupplier();
225 : :
226 : : public:
227 : : //no default constructor
228 : : ChartModel(::com::sun::star::uno::Reference<
229 : : ::com::sun::star::uno::XComponentContext > const & xContext);
230 : : explicit ChartModel( const ChartModel & rOther );
231 : : virtual ~ChartModel();
232 : :
233 : : //-----------------------------------------------------------------
234 : : // ::com::sun::star::lang::XServiceInfo
235 : : //-----------------------------------------------------------------
236 : :
237 : : APPHELPER_XSERVICEINFO_DECL()
238 [ + - ]: 56 : APPHELPER_SERVICE_FACTORY_HELPER(ChartModel)
239 : :
240 : : //-----------------------------------------------------------------
241 : : // ::com::sun::star::lang::XInitialization
242 : : //-----------------------------------------------------------------
243 : : virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
244 : : throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
245 : :
246 : : //-----------------------------------------------------------------
247 : : // ::com::sun::star::frame::XModel (required interface)
248 : : //-----------------------------------------------------------------
249 : :
250 : : virtual sal_Bool SAL_CALL
251 : : attachResource( const ::rtl::OUString& rURL
252 : : , const ::com::sun::star::uno::Sequence<
253 : : ::com::sun::star::beans::PropertyValue >& rMediaDescriptor )
254 : : throw (::com::sun::star::uno::RuntimeException);
255 : :
256 : : virtual ::rtl::OUString SAL_CALL
257 : : getURL() throw (::com::sun::star::uno::RuntimeException);
258 : :
259 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
260 : : getArgs() throw (::com::sun::star::uno::RuntimeException);
261 : :
262 : : virtual void SAL_CALL
263 : : connectController( const ::com::sun::star::uno::Reference<
264 : : ::com::sun::star::frame::XController >& xController )
265 : : throw (::com::sun::star::uno::RuntimeException);
266 : :
267 : : virtual void SAL_CALL
268 : : disconnectController( const ::com::sun::star::uno::Reference<
269 : : ::com::sun::star::frame::XController >& xController )
270 : : throw (::com::sun::star::uno::RuntimeException);
271 : :
272 : : virtual void SAL_CALL
273 : : lockControllers() throw (::com::sun::star::uno::RuntimeException);
274 : :
275 : : virtual void SAL_CALL
276 : : unlockControllers() throw (::com::sun::star::uno::RuntimeException);
277 : :
278 : : virtual sal_Bool SAL_CALL
279 : : hasControllersLocked()
280 : : throw (::com::sun::star::uno::RuntimeException);
281 : :
282 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > SAL_CALL
283 : : getCurrentController()
284 : : throw (::com::sun::star::uno::RuntimeException);
285 : :
286 : : virtual void SAL_CALL
287 : : setCurrentController( const ::com::sun::star::uno::Reference<
288 : : ::com::sun::star::frame::XController >& xController )
289 : : throw (::com::sun::star::container::NoSuchElementException
290 : : , ::com::sun::star::uno::RuntimeException);
291 : :
292 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
293 : : getCurrentSelection()
294 : : throw (::com::sun::star::uno::RuntimeException);
295 : :
296 : :
297 : : //-----------------------------------------------------------------
298 : : // ::com::sun::star::lang::XComponent (base of XModel)
299 : : //-----------------------------------------------------------------
300 : : virtual void SAL_CALL
301 : : dispose() throw (::com::sun::star::uno::RuntimeException);
302 : :
303 : : virtual void SAL_CALL
304 : : addEventListener( const ::com::sun::star::uno::Reference<
305 : : ::com::sun::star::lang::XEventListener > & xListener )
306 : : throw (::com::sun::star::uno::RuntimeException);
307 : :
308 : : virtual void SAL_CALL
309 : : removeEventListener( const ::com::sun::star::uno::Reference<
310 : : ::com::sun::star::lang::XEventListener > & xListener )
311 : : throw (::com::sun::star::uno::RuntimeException);
312 : :
313 : : //-----------------------------------------------------------------
314 : : // ::com::sun::star::util::XCloseable
315 : : //-----------------------------------------------------------------
316 : : virtual void SAL_CALL
317 : : close( sal_Bool bDeliverOwnership )
318 : : throw(::com::sun::star::util::CloseVetoException,
319 : : ::com::sun::star::uno::RuntimeException);
320 : :
321 : : //-----------------------------------------------------------------
322 : : // ::com::sun::star::util::XCloseBroadcaster (base of XCloseable)
323 : : //-----------------------------------------------------------------
324 : : virtual void SAL_CALL
325 : : addCloseListener( const ::com::sun::star::uno::Reference<
326 : : ::com::sun::star::util::XCloseListener > & xListener )
327 : : throw (::com::sun::star::uno::RuntimeException);
328 : :
329 : : virtual void SAL_CALL
330 : : removeCloseListener( const ::com::sun::star::uno::Reference<
331 : : ::com::sun::star::util::XCloseListener > & xListener )
332 : : throw (::com::sun::star::uno::RuntimeException);
333 : :
334 : : //-----------------------------------------------------------------
335 : : // ::com::sun::star::frame::XStorable2 (extension of XStorable)
336 : : //-----------------------------------------------------------------
337 : : virtual void SAL_CALL storeSelf(
338 : : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rMediaDescriptor )
339 : : throw (::com::sun::star::lang::IllegalArgumentException,
340 : : ::com::sun::star::io::IOException,
341 : : ::com::sun::star::uno::RuntimeException);
342 : :
343 : : //-----------------------------------------------------------------
344 : : // ::com::sun::star::frame::XStorable (required interface)
345 : : //-----------------------------------------------------------------
346 : : virtual sal_Bool SAL_CALL
347 : : hasLocation() throw (::com::sun::star::uno::RuntimeException);
348 : :
349 : : virtual ::rtl::OUString SAL_CALL
350 : : getLocation() throw (::com::sun::star::uno::RuntimeException);
351 : :
352 : : virtual sal_Bool SAL_CALL
353 : : isReadonly() throw (::com::sun::star::uno::RuntimeException);
354 : :
355 : : virtual void SAL_CALL
356 : : store() throw (::com::sun::star::io::IOException
357 : : , ::com::sun::star::uno::RuntimeException);
358 : :
359 : : virtual void SAL_CALL
360 : : storeAsURL( const ::rtl::OUString& rURL
361 : : , const ::com::sun::star::uno::Sequence<
362 : : ::com::sun::star::beans::PropertyValue >& rMediaDescriptor )
363 : : throw (::com::sun::star::io::IOException
364 : : , ::com::sun::star::uno::RuntimeException);
365 : :
366 : : virtual void SAL_CALL
367 : : storeToURL( const ::rtl::OUString& rURL
368 : : , const ::com::sun::star::uno::Sequence<
369 : : ::com::sun::star::beans::PropertyValue >& rMediaDescriptor )
370 : : throw (::com::sun::star::io::IOException
371 : : , ::com::sun::star::uno::RuntimeException);
372 : :
373 : : //-----------------------------------------------------------------
374 : : // ::com::sun::star::util::XModifiable (required interface)
375 : : //-----------------------------------------------------------------
376 : : virtual sal_Bool SAL_CALL
377 : : isModified() throw (::com::sun::star::uno::RuntimeException);
378 : :
379 : : virtual void SAL_CALL
380 : : setModified( sal_Bool bModified )
381 : : throw (::com::sun::star::beans::PropertyVetoException
382 : : , ::com::sun::star::uno::RuntimeException);
383 : :
384 : : //-----------------------------------------------------------------
385 : : // ::com::sun::star::util::XModifyBroadcaster (base of XModifiable)
386 : : //-----------------------------------------------------------------
387 : : virtual void SAL_CALL
388 : : addModifyListener( const ::com::sun::star::uno::Reference<
389 : : ::com::sun::star::util::XModifyListener >& xListener )
390 : : throw (::com::sun::star::uno::RuntimeException);
391 : :
392 : : virtual void SAL_CALL
393 : : removeModifyListener( const ::com::sun::star::uno::Reference<
394 : : ::com::sun::star::util::XModifyListener >& xListener )
395 : : throw (::com::sun::star::uno::RuntimeException);
396 : :
397 : : // ____ XModifyListener ____
398 : : virtual void SAL_CALL modified(
399 : : const ::com::sun::star::lang::EventObject& aEvent )
400 : : throw (::com::sun::star::uno::RuntimeException);
401 : :
402 : : // ____ XEventListener (base of XModifyListener) ____
403 : : virtual void SAL_CALL disposing(
404 : : const ::com::sun::star::lang::EventObject& Source )
405 : : throw (::com::sun::star::uno::RuntimeException);
406 : :
407 : : // ____ datatransferable::XTransferable ____
408 : : virtual ::com::sun::star::uno::Any SAL_CALL getTransferData(
409 : : const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
410 : : throw (::com::sun::star::datatransfer::UnsupportedFlavorException,
411 : : ::com::sun::star::io::IOException,
412 : : ::com::sun::star::uno::RuntimeException);
413 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors()
414 : : throw (::com::sun::star::uno::RuntimeException);
415 : : virtual ::sal_Bool SAL_CALL isDataFlavorSupported(
416 : : const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
417 : : throw (::com::sun::star::uno::RuntimeException);
418 : :
419 : : //-----------------------------------------------------------------
420 : : // lang::XTypeProvider (overloaded method of WeakImplHelper)
421 : : //-----------------------------------------------------------------
422 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
423 : : getTypes() throw (::com::sun::star::uno::RuntimeException);
424 : :
425 : : // ____ document::XDocumentPropertiesSupplier ____
426 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties > SAL_CALL
427 : : getDocumentProperties( ) throw (::com::sun::star::uno::RuntimeException);
428 : :
429 : : // ____ document::XUndoManagerSupplier ____
430 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoManager > SAL_CALL
431 : : getUndoManager( ) throw (::com::sun::star::uno::RuntimeException);
432 : :
433 : : //-----------------------------------------------------------------
434 : : // ::com::sun::star::chart2::XChartDocument
435 : : //-----------------------------------------------------------------
436 : : virtual ::com::sun::star::uno::Reference<
437 : : ::com::sun::star::chart2::XDiagram > SAL_CALL
438 : : getFirstDiagram() throw (::com::sun::star::uno::RuntimeException);
439 : : virtual void SAL_CALL setFirstDiagram(
440 : : const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& xDiagram )
441 : : throw (::com::sun::star::uno::RuntimeException);
442 : : virtual void SAL_CALL
443 : : createInternalDataProvider( sal_Bool bCloneExistingData )
444 : : throw (::com::sun::star::util::CloseVetoException,
445 : : ::com::sun::star::uno::RuntimeException);
446 : : virtual ::sal_Bool SAL_CALL hasInternalDataProvider()
447 : : throw (::com::sun::star::uno::RuntimeException);
448 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataProvider > SAL_CALL
449 : : getDataProvider()
450 : : throw (::com::sun::star::uno::RuntimeException);
451 : : virtual void SAL_CALL
452 : : setChartTypeManager( const ::com::sun::star::uno::Reference<
453 : : ::com::sun::star::chart2::XChartTypeManager >& xNewManager )
454 : : throw (::com::sun::star::uno::RuntimeException);
455 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartTypeManager > SAL_CALL
456 : : getChartTypeManager()
457 : : throw (::com::sun::star::uno::RuntimeException);
458 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
459 : : getPageBackground()
460 : : throw (::com::sun::star::uno::RuntimeException);
461 : :
462 : : // ____ XDataReceiver (public API) ____
463 : : virtual void SAL_CALL
464 : : attachDataProvider( const ::com::sun::star::uno::Reference<
465 : : ::com::sun::star::chart2::data::XDataProvider >& xProvider )
466 : : throw (::com::sun::star::uno::RuntimeException);
467 : : virtual void SAL_CALL setArguments(
468 : : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments )
469 : : throw (::com::sun::star::lang::IllegalArgumentException,
470 : : ::com::sun::star::uno::RuntimeException);
471 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getUsedRangeRepresentations()
472 : : throw (::com::sun::star::uno::RuntimeException);
473 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource > SAL_CALL getUsedData()
474 : : throw (::com::sun::star::uno::RuntimeException);
475 : : virtual void SAL_CALL attachNumberFormatsSupplier( const ::com::sun::star::uno::Reference<
476 : : ::com::sun::star::util::XNumberFormatsSupplier >& xSupplier )
477 : : throw (::com::sun::star::uno::RuntimeException);
478 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XRangeHighlighter > SAL_CALL getRangeHighlighter()
479 : : throw (::com::sun::star::uno::RuntimeException);
480 : :
481 : : // ____ XTitled ____
482 : : virtual ::com::sun::star::uno::Reference<
483 : : ::com::sun::star::chart2::XTitle > SAL_CALL getTitleObject()
484 : : throw (::com::sun::star::uno::RuntimeException);
485 : : virtual void SAL_CALL setTitleObject( const ::com::sun::star::uno::Reference<
486 : : ::com::sun::star::chart2::XTitle >& Title )
487 : : throw (::com::sun::star::uno::RuntimeException);
488 : :
489 : : // ____ XInterface (for old API wrapper) ____
490 : : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
491 : : throw (::com::sun::star::uno::RuntimeException);
492 : :
493 : : // ____ XLoadable ____
494 : : virtual void SAL_CALL initNew()
495 : : throw (::com::sun::star::frame::DoubleInitializationException,
496 : : ::com::sun::star::io::IOException,
497 : : ::com::sun::star::uno::Exception,
498 : : ::com::sun::star::uno::RuntimeException);
499 : : virtual void SAL_CALL load( const ::com::sun::star::uno::Sequence<
500 : : ::com::sun::star::beans::PropertyValue >& rMediaDescriptor )
501 : : throw (::com::sun::star::frame::DoubleInitializationException,
502 : : ::com::sun::star::io::IOException,
503 : : ::com::sun::star::uno::Exception,
504 : : ::com::sun::star::uno::RuntimeException);
505 : :
506 : : // ____ XCloneable ____
507 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
508 : : throw (::com::sun::star::uno::RuntimeException);
509 : :
510 : : // ____ XVisualObject ____
511 : : virtual void SAL_CALL setVisualAreaSize(
512 : : ::sal_Int64 nAspect,
513 : : const ::com::sun::star::awt::Size& aSize )
514 : : throw (::com::sun::star::lang::IllegalArgumentException,
515 : : ::com::sun::star::embed::WrongStateException,
516 : : ::com::sun::star::uno::Exception,
517 : : ::com::sun::star::uno::RuntimeException);
518 : : virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize(
519 : : ::sal_Int64 nAspect )
520 : : throw (::com::sun::star::lang::IllegalArgumentException,
521 : : ::com::sun::star::embed::WrongStateException,
522 : : ::com::sun::star::uno::Exception,
523 : : ::com::sun::star::uno::RuntimeException);
524 : : virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation(
525 : : ::sal_Int64 nAspect )
526 : : throw (::com::sun::star::lang::IllegalArgumentException,
527 : : ::com::sun::star::embed::WrongStateException,
528 : : ::com::sun::star::uno::Exception,
529 : : ::com::sun::star::uno::RuntimeException);
530 : : virtual ::sal_Int32 SAL_CALL getMapUnit(
531 : : ::sal_Int64 nAspect )
532 : : throw (::com::sun::star::uno::Exception,
533 : : ::com::sun::star::uno::RuntimeException);
534 : :
535 : : // ____ XMultiServiceFactory ____
536 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
537 : : createInstance( const ::rtl::OUString& aServiceSpecifier )
538 : : throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
539 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
540 : : createInstanceWithArguments( const ::rtl::OUString& ServiceSpecifier
541 : : , const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Arguments )
542 : : throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
543 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
544 : : getAvailableServiceNames() throw (::com::sun::star::uno::RuntimeException);
545 : :
546 : : // ____ XStorageBasedDocument ____
547 : : virtual void SAL_CALL loadFromStorage(
548 : : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
549 : : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rMediaDescriptor )
550 : : throw (::com::sun::star::lang::IllegalArgumentException,
551 : : ::com::sun::star::frame::DoubleInitializationException,
552 : : ::com::sun::star::io::IOException,
553 : : ::com::sun::star::uno::Exception,
554 : : ::com::sun::star::uno::RuntimeException);
555 : : virtual void SAL_CALL storeToStorage(
556 : : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
557 : : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rMediaDescriptor )
558 : : throw (::com::sun::star::lang::IllegalArgumentException,
559 : : ::com::sun::star::io::IOException,
560 : : ::com::sun::star::uno::Exception,
561 : : ::com::sun::star::uno::RuntimeException);
562 : : virtual void SAL_CALL switchToStorage(
563 : : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage )
564 : : throw (::com::sun::star::lang::IllegalArgumentException,
565 : : ::com::sun::star::io::IOException,
566 : : ::com::sun::star::uno::Exception,
567 : : ::com::sun::star::uno::RuntimeException);
568 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > SAL_CALL getDocumentStorage()
569 : : throw (::com::sun::star::io::IOException,
570 : : ::com::sun::star::uno::Exception,
571 : : ::com::sun::star::uno::RuntimeException);
572 : : virtual void SAL_CALL addStorageChangeListener(
573 : : const ::com::sun::star::uno::Reference< ::com::sun::star::document::XStorageChangeListener >& xListener )
574 : : throw (::com::sun::star::uno::RuntimeException);
575 : : virtual void SAL_CALL removeStorageChangeListener(
576 : : const ::com::sun::star::uno::Reference< ::com::sun::star::document::XStorageChangeListener >& xListener )
577 : : throw (::com::sun::star::uno::RuntimeException);
578 : :
579 : : // for SvNumberFormatsSupplierObj
580 : : // ____ XUnoTunnel ___
581 : : virtual ::sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& aIdentifier )
582 : : throw (::com::sun::star::uno::RuntimeException);
583 : :
584 : : // ____ XNumberFormatsSupplier ____
585 : : virtual ::com::sun::star::uno::Reference<
586 : : ::com::sun::star::beans::XPropertySet > SAL_CALL getNumberFormatSettings()
587 : : throw (::com::sun::star::uno::RuntimeException);
588 : : virtual ::com::sun::star::uno::Reference<
589 : : ::com::sun::star::util::XNumberFormats > SAL_CALL getNumberFormats()
590 : : throw (::com::sun::star::uno::RuntimeException);
591 : :
592 : : // ____ XChild ____
593 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent()
594 : : throw (::com::sun::star::uno::RuntimeException);
595 : : virtual void SAL_CALL setParent(
596 : : const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent )
597 : : throw (::com::sun::star::lang::NoSupportException,
598 : : ::com::sun::star::uno::RuntimeException);
599 : :
600 : : // ____ XDataSource ____ allows access to the curently used data and data ranges
601 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences()
602 : : throw (::com::sun::star::uno::RuntimeException);
603 : :
604 : : // XDumper
605 : : virtual rtl::OUString SAL_CALL dump()
606 : : throw (com::sun::star::uno::RuntimeException);
607 : : };
608 : :
609 : : } // namespace chart
610 : :
611 : : #endif
612 : :
613 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|