LibreOffice Module sc (master)  1
datauno.hxx
Go to the documentation of this file.
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 
20 #ifndef INCLUDED_SC_INC_DATAUNO_HXX
21 #define INCLUDED_SC_INC_DATAUNO_HXX
22 
23 #include "global.hxx"
24 #include "queryparam.hxx"
25 #include "subtotalparam.hxx"
26 
27 #include <com/sun/star/sheet/GeneralFunction.hpp>
28 #include <com/sun/star/sheet/XCellRangeReferrer.hpp>
29 #include <com/sun/star/sheet/XSheetFilterDescriptor.hpp>
30 #include <com/sun/star/sheet/XSheetFilterDescriptor2.hpp>
31 #include <com/sun/star/sheet/XSheetFilterDescriptor3.hpp>
32 #include <com/sun/star/sheet/XConsolidationDescriptor.hpp>
33 #include <com/sun/star/sheet/XDatabaseRanges.hpp>
34 #include <com/sun/star/sheet/XDatabaseRange.hpp>
35 #include <com/sun/star/sheet/XUnnamedDatabaseRanges.hpp>
36 #include <com/sun/star/sheet/XSubTotalDescriptor.hpp>
37 #include <com/sun/star/sheet/XSubTotalField.hpp>
38 #include <com/sun/star/lang/XServiceInfo.hpp>
39 #include <com/sun/star/container/XEnumerationAccess.hpp>
40 #include <com/sun/star/container/XIndexAccess.hpp>
41 #include <com/sun/star/beans/XPropertySet.hpp>
42 #include <com/sun/star/lang/XUnoTunnel.hpp>
43 #include <com/sun/star/container/XNamed.hpp>
44 #include <com/sun/star/util/XRefreshable.hpp>
46 #include <cppuhelper/implbase.hxx>
47 #include <rtl/ref.hxx>
48 #include <svl/itemprop.hxx>
49 #include <svl/lstner.hxx>
50 
51 #include <vector>
52 
53 namespace com::sun::star::sheet { struct TableFilterField2; }
54 namespace com::sun::star::sheet { struct TableFilterField3; }
55 namespace com::sun::star::sheet { struct TableFilterField; }
56 
57 class ScDBData;
58 class ScDocShell;
59 
60 class ScSubTotalFieldObj;
61 class ScDatabaseRangeObj;
63 
64 struct ScSortParam;
65 
67 {
68 public:
69  static css::sheet::GeneralFunction SubTotalToGeneral( ScSubTotalFunc eSubTotal );
70 };
71 
72 // ImportDescriptor is not available as Uno-object any longer, only Property-Sequence
73 
75 {
76 public:
77  static void FillImportParam(
78  ScImportParam& rParam,
79  const css::uno::Sequence<css::beans::PropertyValue>& rSeq );
80  static void FillProperties(
81  css::uno::Sequence<css::beans::PropertyValue>& rSeq,
82  const ScImportParam& rParam );
83  static long GetPropertyCount() { return 4; }
84 };
85 
86 // SortDescriptor is not available as Uno-object any longer, only Property-Sequence
87 
89 {
90 public:
91  static void FillSortParam(
92  ScSortParam& rParam,
93  const css::uno::Sequence<css::beans::PropertyValue>& rSeq );
94  static void FillProperties(
95  css::uno::Sequence<css::beans::PropertyValue>& rSeq,
96  const ScSortParam& rParam );
98  static long GetPropertyCount()
99  {
100  return 9; // TableSortDescriptor and SheetSortDescriptor
101  }
102 
103 };
104 
105 // ScSubTotalDescriptorBase - base class for SubTotalDescriptor stand alone and in DB area (context?)
106 
107 // to uno, both look the same
108 
109 class ScSubTotalDescriptorBase : public cppu::WeakImplHelper<
110  css::sheet::XSubTotalDescriptor,
111  css::container::XEnumerationAccess,
112  css::container::XIndexAccess,
113  css::beans::XPropertySet,
114  css::lang::XUnoTunnel,
115  css::lang::XServiceInfo >
116 {
117 private:
119 
120  ScSubTotalFieldObj* GetObjectByIndex_Impl(sal_uInt16 nIndex);
121 
122 public:
124  virtual ~ScSubTotalDescriptorBase() override;
125 
126  // in derived classes:
127  // (Fields are within the range)
128  virtual void GetData( ScSubTotalParam& rParam ) const = 0;
129  virtual void PutData( const ScSubTotalParam& rParam ) = 0;
130 
131  // XSubTotalDescriptor
132  virtual void SAL_CALL addNew( const css::uno::Sequence< css::sheet::SubTotalColumn >& aSubTotalColumns,
133  sal_Int32 nGroupColumn ) override;
134  virtual void SAL_CALL clear() override;
135 
136  // XIndexAccess
137  virtual sal_Int32 SAL_CALL getCount() override;
138  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
139 
140  // XEnumerationAccess
141  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
142  createEnumeration() override;
143 
144  // XElementAccess
145  virtual css::uno::Type SAL_CALL getElementType() override;
146  virtual sal_Bool SAL_CALL hasElements() override;
147 
148  // XPropertySet
149  virtual css::uno::Reference< css::beans::XPropertySetInfo >
150  SAL_CALL getPropertySetInfo() override;
151  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
152  const css::uno::Any& aValue ) override;
153  virtual css::uno::Any SAL_CALL getPropertyValue(
154  const OUString& PropertyName ) override;
155  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
156  const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
157  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
158  const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
159  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
160  const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
161  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
162  const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
163 
164  // XUnoTunnel
166 
167  // XServiceInfo
168  virtual OUString SAL_CALL getImplementationName() override;
169  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
170  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
171 };
172 
173 // ScSubTotalDescriptor - dummy container to use with XImportTarget
174 
176 {
177 private:
179 
180 public:
182  virtual ~ScSubTotalDescriptor() override;
183 
184  // from ScSubTotalDescriptorBase:
185  virtual void GetData( ScSubTotalParam& rParam ) const override;
186  virtual void PutData( const ScSubTotalParam& rParam ) override;
187 
188  // external access:
189  void SetParam( const ScSubTotalParam& rNew );
190 };
191 
192 // ScRangeSubTotalDescriptor - SubTotalDescriptor of a data base area
193 
195 {
196 private:
198 
199 public:
201  virtual ~ScRangeSubTotalDescriptor() override;
202 
203  // from ScSubTotalDescriptorBase:
204  virtual void GetData( ScSubTotalParam& rParam ) const override;
205  virtual void PutData( const ScSubTotalParam& rParam ) override;
206 };
207 
208 class ScSubTotalFieldObj : public cppu::WeakImplHelper<
209  css::sheet::XSubTotalField,
210  css::lang::XServiceInfo >
211 {
212 private:
214  sal_uInt16 nPos;
215 
216 public:
218  virtual ~ScSubTotalFieldObj() override;
219 
220  // XSubTotalField
221  virtual sal_Int32 SAL_CALL getGroupColumn() override;
222  virtual void SAL_CALL setGroupColumn( sal_Int32 nGroupColumn ) override;
223  virtual css::uno::Sequence< css::sheet::SubTotalColumn > SAL_CALL
224  getSubTotalColumns() override;
225  virtual void SAL_CALL setSubTotalColumns( const css::uno::Sequence<
226  css::sheet::SubTotalColumn >& aSubTotalColumns ) override;
227 
228  // XServiceInfo
229  virtual OUString SAL_CALL getImplementationName() override;
230  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
231  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
232 };
233 
234 class ScConsolidationDescriptor final : public cppu::WeakImplHelper<
235  css::sheet::XConsolidationDescriptor,
236  css::lang::XServiceInfo >
237 {
238 private:
240 
241 public:
243  virtual ~ScConsolidationDescriptor() override;
244 
245  void SetParam( const ScConsolidateParam& rNew );
246  const ScConsolidateParam& GetParam() const { return aParam; }
247 
248  // XConsolidationDescriptor
249  virtual css::sheet::GeneralFunction SAL_CALL getFunction() override;
250  virtual void SAL_CALL setFunction( css::sheet::GeneralFunction nFunction ) override;
251  virtual css::uno::Sequence< css::table::CellRangeAddress > SAL_CALL
252  getSources( ) override;
253  virtual void SAL_CALL setSources( const css::uno::Sequence< css::table::CellRangeAddress >& aSources ) override;
254  virtual css::table::CellAddress SAL_CALL getStartOutputPosition() override;
255  virtual void SAL_CALL setStartOutputPosition(
256  const css::table::CellAddress& aStartOutputPosition ) override;
257  virtual sal_Bool SAL_CALL getUseColumnHeaders() override;
258  virtual void SAL_CALL setUseColumnHeaders( sal_Bool bUseColumnHeaders ) override;
259  virtual sal_Bool SAL_CALL getUseRowHeaders() override;
260  virtual void SAL_CALL setUseRowHeaders( sal_Bool bUseRowHeaders ) override;
261  virtual sal_Bool SAL_CALL getInsertLinks() override;
262  virtual void SAL_CALL setInsertLinks( sal_Bool bInsertLinks ) override;
263 
264  // XServiceInfo
265  virtual OUString SAL_CALL getImplementationName() override;
266  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
267  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
268 };
269 
270 // ScFilterDescriptorBase - base class for FilterDescriptor
271 // stand alone, in a DB area (or context?) and in the DataPilot
272 
273 // to uno, all three look the same
274 
275 class ScFilterDescriptorBase : public cppu::WeakImplHelper<
276  css::sheet::XSheetFilterDescriptor,
277  css::sheet::XSheetFilterDescriptor2,
278  css::sheet::XSheetFilterDescriptor3,
279  css::beans::XPropertySet,
280  css::lang::XServiceInfo >,
281  public SfxListener
282 {
283 private:
286 
287 public:
289  virtual ~ScFilterDescriptorBase() override;
290 
291  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
292 
293  // in the derived classes(?):
294  // (nField[] here within the area)
295  virtual void GetData( ScQueryParam& rParam ) const = 0;
296  virtual void PutData( const ScQueryParam& rParam ) = 0;
297 
298  // XSheetFilterDescriptor
299  virtual css::uno::Sequence< css::sheet::TableFilterField > SAL_CALL
300  getFilterFields() override;
301  virtual void SAL_CALL setFilterFields( const css::uno::Sequence<
302  css::sheet::TableFilterField >& aFilterFields ) override;
303 
304  // XSheetFilterDescriptor2
305  virtual css::uno::Sequence< css::sheet::TableFilterField2 > SAL_CALL
306  getFilterFields2() override;
307  virtual void SAL_CALL setFilterFields2( const css::uno::Sequence<
308  css::sheet::TableFilterField2 >& aFilterFields ) override;
309 
310  // XSheetFilterDescriptor3
311  virtual css::uno::Sequence< css::sheet::TableFilterField3 > SAL_CALL
312  getFilterFields3() override;
313  virtual void SAL_CALL setFilterFields3( const css::uno::Sequence<
314  css::sheet::TableFilterField3 >& aFilterFields ) override;
315 
316  // XPropertySet
317  virtual css::uno::Reference< css::beans::XPropertySetInfo >
318  SAL_CALL getPropertySetInfo() override;
319  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
320  const css::uno::Any& aValue ) override;
321  virtual css::uno::Any SAL_CALL getPropertyValue(
322  const OUString& PropertyName ) override;
323  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
324  const css::uno::Reference<
325  css::beans::XPropertyChangeListener >& xListener ) override;
326  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
327  const css::uno::Reference<
328  css::beans::XPropertyChangeListener >& aListener ) override;
329  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
330  const css::uno::Reference<
331  css::beans::XVetoableChangeListener >& aListener ) override;
332  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
333  const css::uno::Reference<
334  css::beans::XVetoableChangeListener >& aListener ) override;
335 
336  // XServiceInfo
337  virtual OUString SAL_CALL getImplementationName() override;
338  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
339  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
340 };
341 
342 // ScFilterDescriptor - dummy container to use with XFilterable
343 
345 {
346 private:
347  ScQueryParam aStoredParam; // nField[] here within the area
348 
349 public:
351  virtual ~ScFilterDescriptor() override;
352 
353  // from ScFilterDescriptorBase:
354  virtual void GetData( ScQueryParam& rParam ) const override;
355  virtual void PutData( const ScQueryParam& rParam ) override;
356 
357  // external access:
358  void SetParam( const ScQueryParam& rNew );
359  const ScQueryParam& GetParam() const { return aStoredParam; }
360 };
361 
362 // ScRangeFilterDescriptor - FilterDescriptor of a data base area
363 
365 {
366 private:
368 
369 public:
371  virtual ~ScRangeFilterDescriptor() override;
372 
373  // from ScFilterDescriptorBase:
374  virtual void GetData( ScQueryParam& rParam ) const override;
375  virtual void PutData( const ScQueryParam& rParam ) override;
376 };
377 
378 // ScDataPilotFilterDescriptor - FilterDescriptor of a DataPilotDescriptors
379 
381 {
382 private:
384 
385 public:
387  virtual ~ScDataPilotFilterDescriptor() override;
388 
389  // from ScFilterDescriptorBase:
390  virtual void GetData( ScQueryParam& rParam ) const override;
391  virtual void PutData( const ScQueryParam& rParam ) override;
392 };
393 
394 class ScDatabaseRangeObj : public cppu::WeakImplHelper<
395  css::sheet::XDatabaseRange,
396  css::util::XRefreshable,
397  css::container::XNamed,
398  css::sheet::XCellRangeReferrer,
399  css::beans::XPropertySet,
400  css::lang::XServiceInfo >,
401  public SfxListener
402 {
403 private:
405  OUString aName;
407  std::vector< css::uno::Reference< css::util::XRefreshListener > >
411 
412 private:
413  ScDBData* GetDBData_Impl() const;
414  void Refreshed_Impl();
415 
416 public:
417  ScDatabaseRangeObj(ScDocShell* pDocSh, const OUString& rNm);
418  SC_DLLPUBLIC ScDatabaseRangeObj(ScDocShell* pDocSh, const SCTAB nTab);
419  virtual ~ScDatabaseRangeObj() override;
420 
421  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
422 
423  // nField[] here within the area:
424  void GetQueryParam(ScQueryParam& rQueryParam) const;
425  void SetQueryParam(const ScQueryParam& rQueryParam);
426  void GetSubTotalParam(ScSubTotalParam& rSubTotalParam) const;
427  void SetSubTotalParam(const ScSubTotalParam& rSubTotalParam);
428 
429  // XNamed
430  virtual OUString SAL_CALL getName() override;
431  virtual void SAL_CALL setName( const OUString& aName ) override;
432 
433  // XDatabaseRange
434  virtual css::table::CellRangeAddress SAL_CALL getDataArea() override;
435  virtual void SAL_CALL setDataArea( const css::table::CellRangeAddress& aDataArea ) override;
436  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
437  getSortDescriptor() override;
438  virtual css::uno::Reference< css::sheet::XSheetFilterDescriptor > SAL_CALL
439  getFilterDescriptor() override;
440  virtual css::uno::Reference< css::sheet::XSubTotalDescriptor > SAL_CALL
441  getSubTotalDescriptor() override;
442  virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
443  getImportDescriptor() override;
444 
445  // XRefreshable
446  virtual void SAL_CALL refresh() override;
447  virtual void SAL_CALL addRefreshListener( const css::uno::Reference<
448  css::util::XRefreshListener >& l ) override;
449  virtual void SAL_CALL removeRefreshListener( const css::uno::Reference<
450  css::util::XRefreshListener >& l ) override;
451 
452  // XCellRangeReferrer
453  virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
454  getReferredCells() override;
455 
456  // XPropertySet
457  virtual css::uno::Reference< css::beans::XPropertySetInfo >
458  SAL_CALL getPropertySetInfo() override;
459  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
460  const css::uno::Any& aValue ) override;
461  virtual css::uno::Any SAL_CALL getPropertyValue(
462  const OUString& PropertyName ) override;
463  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
464  const css::uno::Reference<
465  css::beans::XPropertyChangeListener >& xListener ) override;
466  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
467  const css::uno::Reference<
468  css::beans::XPropertyChangeListener >& aListener ) override;
469  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
470  const css::uno::Reference<
471  css::beans::XVetoableChangeListener >& aListener ) override;
472  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
473  const css::uno::Reference<
474  css::beans::XVetoableChangeListener >& aListener ) override;
475 
476  // XServiceInfo
477  virtual OUString SAL_CALL getImplementationName() override;
478  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
479  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
480 };
481 
482 class ScDatabaseRangesObj final : public cppu::WeakImplHelper<
483  css::sheet::XDatabaseRanges,
484  css::container::XEnumerationAccess,
485  css::container::XIndexAccess,
486  css::lang::XServiceInfo >,
487  public SfxListener
488 {
489 private:
491 
493  ScDatabaseRangeObj* GetObjectByName_Impl(const OUString& aName);
494 
495 public:
497  virtual ~ScDatabaseRangesObj() override;
498 
499  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
500 
501  // XDatabaseRanges
502  virtual void SAL_CALL addNewByName( const OUString& aName,
503  const css::table::CellRangeAddress& aRange ) override;
504  virtual void SAL_CALL removeByName( const OUString& aName ) override;
505 
506  // XEnumerationAccess
507  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
508  createEnumeration() override;
509 
510  // XIndexAccess
511  virtual sal_Int32 SAL_CALL getCount() override;
512  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
513 
514  // XElementAccess
515  virtual css::uno::Type SAL_CALL getElementType() override;
516  virtual sal_Bool SAL_CALL hasElements() override;
517 
518  // XNameAccess
519  virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
520  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
521  virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
522 
523  // XServiceInfo
524  virtual OUString SAL_CALL getImplementationName() override;
525  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
526  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
527 };
528 
529 class ScUnnamedDatabaseRangesObj final : public cppu::WeakImplHelper<
530  css::sheet::XUnnamedDatabaseRanges>,
531  public SfxListener
532 {
533 private:
535 
536 public:
538  virtual ~ScUnnamedDatabaseRangesObj() override;
539 
540  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
541 
542  // XUnnamedDatabaseRanges
543  virtual void SAL_CALL setByTable( const css::table::CellRangeAddress& aRange ) override;
544  virtual css::uno::Any SAL_CALL getByTable( sal_Int32 nTab ) override;
545  virtual sal_Bool SAL_CALL hasByTable( sal_Int32 nTab ) override;
546 };
547 
548 #endif
549 
550 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScDocShell * pDocShell
Definition: datauno.hxx:404
static void FillProperties(css::uno::Sequence< css::beans::PropertyValue > &rSeq, const ScSortParam &rParam)
Definition: datauno.cxx:259
SfxItemPropertySet aPropSet
Definition: datauno.hxx:118
std::vector< css::uno::Reference< css::util::XRefreshListener > > aRefreshListeners
Definition: datauno.hxx:408
static void FillProperties(css::uno::Sequence< css::beans::PropertyValue > &rSeq, const ScImportParam &rParam)
Definition: datauno.cxx:164
SfxItemPropertySet aPropSet
Definition: datauno.hxx:284
virtual void PutData(const ScSubTotalParam &rParam)=0
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: datauno.cxx:630
virtual void SAL_CALL addNew(const css::uno::Sequence< css::sheet::SubTotalColumn > &aSubTotalColumns, sal_Int32 nGroupColumn) override
Definition: datauno.cxx:559
virtual css::uno::Type SAL_CALL getElementType() override
Definition: datauno.cxx:640
sal_uInt16 char char * pDesc
Definition: callform.cxx:58
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
SfxItemPropertySet aPropSet
Definition: datauno.hxx:406
#define UNO3_GETIMPLEMENTATION_DECL(classname)
ScQueryParam aStoredParam
Definition: datauno.hxx:347
sal_uInt16 nPos
Definition: datauno.hxx:214
static long GetPropertyCount()
Definition: datauno.hxx:83
const ScQueryParam & GetParam() const
Definition: datauno.hxx:359
virtual OUString SAL_CALL getImplementationName() override
ScDocShell * pDocShell
Definition: datauno.hxx:490
virtual sal_Bool SAL_CALL hasElements() override
Definition: datauno.cxx:646
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL clear() override
Definition: datauno.cxx:545
void Notify(ScModelObj &rModelObj, const ScRangeList &rChangeRanges, const OUString &rType=OUString("cell-change"), const css::uno::Sequence< css::beans::PropertyValue > &rProperties=css::uno::Sequence< css::beans::PropertyValue >())
Definition: docsh.hxx:477
static long GetPropertyCount()
SortAscending needs to get out of the SheetSortDescriptor service description.
Definition: datauno.hxx:98
unsigned char sal_Bool
ScSubTotalParam aStoredParam
Definition: datauno.hxx:178
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: datauno.cxx:610
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static void FillSortParam(ScSortParam &rParam, const css::uno::Sequence< css::beans::PropertyValue > &rSeq)
Definition: datauno.cxx:321
static css::sheet::GeneralFunction SubTotalToGeneral(ScSubTotalFunc eSubTotal)
Definition: datauno.cxx:139
rtl::Reference< ScDatabaseRangeObj > mxParent
Definition: datauno.hxx:367
ScSubTotalFieldObj * GetObjectByIndex_Impl(sal_uInt16 nIndex)
Definition: datauno.cxx:538
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: datauno.cxx:654
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: datauno.cxx:701
rtl::Reference< ScDatabaseRangeObj > mxParent
Definition: datauno.hxx:197
static void FillImportParam(ScImportParam &rParam, const css::uno::Sequence< css::beans::PropertyValue > &rSeq)
Definition: datauno.cxx:204
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
ScConsolidateParam aParam
Definition: datauno.hxx:239
ScDocShell * pDocSh
Definition: datauno.hxx:285
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
const ScConsolidateParam & GetParam() const
Definition: datauno.hxx:246
virtual ~ScSubTotalDescriptorBase() override
Definition: datauno.cxx:532
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void GetData(ScSubTotalParam &rParam) const =0
ScSubTotalFunc
Definition: global.hxx:847
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: datauno.cxx:662
virtual sal_Int32 SAL_CALL getCount() override
Definition: datauno.cxx:618
struct _ADOIndex Index
#define SC_DLLPUBLIC
Definition: scdllapi.h:28
rtl::Reference< ScSubTotalDescriptorBase > xParent
Definition: datauno.hxx:213
rtl::Reference< ScDataPilotDescriptorBase > mxParent
Definition: datauno.hxx:383
sal_Int16 SCTAB
Definition: types.hxx:23