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