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#pragma once
21
22#include "global.hxx"
23#include "queryparam.hxx"
24#include "subtotalparam.hxx"
25
26#include <com/sun/star/sheet/GeneralFunction.hpp>
27#include <com/sun/star/sheet/XCellRangeReferrer.hpp>
28#include <com/sun/star/sheet/XSheetFilterDescriptor.hpp>
29#include <com/sun/star/sheet/XSheetFilterDescriptor2.hpp>
30#include <com/sun/star/sheet/XSheetFilterDescriptor3.hpp>
31#include <com/sun/star/sheet/XConsolidationDescriptor.hpp>
32#include <com/sun/star/sheet/XDatabaseRanges.hpp>
33#include <com/sun/star/sheet/XDatabaseRange.hpp>
34#include <com/sun/star/sheet/XUnnamedDatabaseRanges.hpp>
35#include <com/sun/star/sheet/XSubTotalDescriptor.hpp>
36#include <com/sun/star/sheet/XSubTotalField.hpp>
37#include <com/sun/star/lang/XServiceInfo.hpp>
38#include <com/sun/star/container/XEnumerationAccess.hpp>
39#include <com/sun/star/container/XIndexAccess.hpp>
40#include <com/sun/star/beans/XPropertySet.hpp>
41#include <com/sun/star/container/XNamed.hpp>
42#include <com/sun/star/util/XRefreshable.hpp>
45#include <rtl/ref.hxx>
46#include <svl/itemprop.hxx>
47#include <svl/lstner.hxx>
48
49#include <vector>
50
51namespace com::sun::star::sheet { struct TableFilterField2; }
52namespace com::sun::star::sheet { struct TableFilterField3; }
53namespace com::sun::star::sheet { struct TableFilterField; }
54
55class ScDBData;
56class ScDocShell;
57
61
62struct ScSortParam;
63
65{
66public:
67 static css::sheet::GeneralFunction SubTotalToGeneral( ScSubTotalFunc eSubTotal );
68};
69
70// ImportDescriptor is not available as Uno-object any longer, only Property-Sequence
71
73{
74public:
75 static void FillImportParam(
76 ScImportParam& rParam,
77 const css::uno::Sequence<css::beans::PropertyValue>& rSeq );
78 static void FillProperties(
79 css::uno::Sequence<css::beans::PropertyValue>& rSeq,
80 const ScImportParam& rParam );
81 static tools::Long GetPropertyCount() { return 4; }
82};
83
84// SortDescriptor is not available as Uno-object any longer, only Property-Sequence
85
87{
88public:
89 static void FillSortParam(
90 ScSortParam& rParam,
91 const css::uno::Sequence<css::beans::PropertyValue>& rSeq );
92 static void FillProperties(
93 css::uno::Sequence<css::beans::PropertyValue>& rSeq,
94 const ScSortParam& rParam );
97 {
98 return 9; // TableSortDescriptor and SheetSortDescriptor
99 }
100
101};
102
103// ScSubTotalDescriptorBase - base class for SubTotalDescriptor stand alone and in DB area (context?)
104
105// to uno, both look the same
106
107class ScSubTotalDescriptorBase : public cppu::WeakImplHelper<
108 css::sheet::XSubTotalDescriptor,
109 css::container::XEnumerationAccess,
110 css::container::XIndexAccess,
111 css::beans::XPropertySet,
112 css::lang::XServiceInfo >
113{
114private:
116
118
119public:
121 virtual ~ScSubTotalDescriptorBase() override;
122
123 // in derived classes:
124 // (Fields are within the range)
125 virtual void GetData( ScSubTotalParam& rParam ) const = 0;
126 virtual void PutData( const ScSubTotalParam& rParam ) = 0;
127
128 // XSubTotalDescriptor
129 virtual void SAL_CALL addNew( const css::uno::Sequence< css::sheet::SubTotalColumn >& aSubTotalColumns,
130 sal_Int32 nGroupColumn ) override;
131 virtual void SAL_CALL clear() override;
132
133 // XIndexAccess
134 virtual sal_Int32 SAL_CALL getCount() override;
135 virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
136
137 // XEnumerationAccess
138 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
139 createEnumeration() override;
140
141 // XElementAccess
142 virtual css::uno::Type SAL_CALL getElementType() override;
143 virtual sal_Bool SAL_CALL hasElements() override;
144
145 // XPropertySet
146 virtual css::uno::Reference< css::beans::XPropertySetInfo >
147 SAL_CALL getPropertySetInfo() override;
148 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
149 const css::uno::Any& aValue ) override;
150 virtual css::uno::Any SAL_CALL getPropertyValue(
151 const OUString& PropertyName ) override;
152 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
153 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
154 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
155 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
156 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
157 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
158 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
159 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
160
161 // XServiceInfo
162 virtual OUString SAL_CALL getImplementationName() override;
163 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
164 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
165};
166
167// ScSubTotalDescriptor - dummy container to use with XImportTarget
168
170{
171private:
173
174public:
176 virtual ~ScSubTotalDescriptor() override;
177
178 // from ScSubTotalDescriptorBase:
179 virtual void GetData( ScSubTotalParam& rParam ) const override;
180 virtual void PutData( const ScSubTotalParam& rParam ) override;
181
182 // external access:
183 void SetParam( const ScSubTotalParam& rNew );
184};
185
186// ScRangeSubTotalDescriptor - SubTotalDescriptor of a data base area
187
189{
190private:
192
193public:
195 virtual ~ScRangeSubTotalDescriptor() override;
196
197 // from ScSubTotalDescriptorBase:
198 virtual void GetData( ScSubTotalParam& rParam ) const override;
199 virtual void PutData( const ScSubTotalParam& rParam ) override;
200};
201
202class ScSubTotalFieldObj final : public cppu::WeakImplHelper<
203 css::sheet::XSubTotalField,
204 css::lang::XServiceInfo >
205{
206private:
208 sal_uInt16 nPos;
209
210public:
211 ScSubTotalFieldObj( ScSubTotalDescriptorBase* pDesc, sal_uInt16 nP );
212 virtual ~ScSubTotalFieldObj() override;
213
214 // XSubTotalField
215 virtual sal_Int32 SAL_CALL getGroupColumn() override;
216 virtual void SAL_CALL setGroupColumn( sal_Int32 nGroupColumn ) override;
217 virtual css::uno::Sequence< css::sheet::SubTotalColumn > SAL_CALL
218 getSubTotalColumns() override;
219 virtual void SAL_CALL setSubTotalColumns( const css::uno::Sequence<
220 css::sheet::SubTotalColumn >& aSubTotalColumns ) override;
221
222 // XServiceInfo
223 virtual OUString SAL_CALL getImplementationName() override;
224 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
225 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
226};
227
228class ScConsolidationDescriptor final : public cppu::WeakImplHelper<
229 css::sheet::XConsolidationDescriptor,
230 css::lang::XServiceInfo >
231{
232private:
234
235public:
237 virtual ~ScConsolidationDescriptor() override;
238
239 void SetParam( const ScConsolidateParam& rNew );
240 const ScConsolidateParam& GetParam() const { return aParam; }
241
242 // XConsolidationDescriptor
243 virtual css::sheet::GeneralFunction SAL_CALL getFunction() override;
244 virtual void SAL_CALL setFunction( css::sheet::GeneralFunction nFunction ) override;
245 virtual css::uno::Sequence< css::table::CellRangeAddress > SAL_CALL
246 getSources( ) override;
247 virtual void SAL_CALL setSources( const css::uno::Sequence< css::table::CellRangeAddress >& aSources ) override;
248 virtual css::table::CellAddress SAL_CALL getStartOutputPosition() override;
249 virtual void SAL_CALL setStartOutputPosition(
250 const css::table::CellAddress& aStartOutputPosition ) override;
251 virtual sal_Bool SAL_CALL getUseColumnHeaders() override;
252 virtual void SAL_CALL setUseColumnHeaders( sal_Bool bUseColumnHeaders ) override;
253 virtual sal_Bool SAL_CALL getUseRowHeaders() override;
254 virtual void SAL_CALL setUseRowHeaders( sal_Bool bUseRowHeaders ) override;
255 virtual sal_Bool SAL_CALL getInsertLinks() override;
256 virtual void SAL_CALL setInsertLinks( sal_Bool bInsertLinks ) override;
257
258 // XServiceInfo
259 virtual OUString SAL_CALL getImplementationName() override;
260 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
261 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
262};
263
264// ScFilterDescriptorBase - base class for FilterDescriptor
265// stand alone, in a DB area (or context?) and in the DataPilot
266
267// to uno, all three look the same
268
269class ScFilterDescriptorBase : public cppu::WeakImplHelper<
270 css::sheet::XSheetFilterDescriptor,
271 css::sheet::XSheetFilterDescriptor2,
272 css::sheet::XSheetFilterDescriptor3,
273 css::beans::XPropertySet,
274 css::lang::XServiceInfo >,
275 public SfxListener
276{
277private:
280
281public:
283 virtual ~ScFilterDescriptorBase() override;
284
285 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
286
287 // in the derived classes(?):
288 // (nField[] here within the area)
289 virtual void GetData( ScQueryParam& rParam ) const = 0;
290 virtual void PutData( const ScQueryParam& rParam ) = 0;
291
292 // XSheetFilterDescriptor
293 virtual css::uno::Sequence< css::sheet::TableFilterField > SAL_CALL
294 getFilterFields() override;
295 virtual void SAL_CALL setFilterFields( const css::uno::Sequence<
296 css::sheet::TableFilterField >& aFilterFields ) override;
297
298 // XSheetFilterDescriptor2
299 virtual css::uno::Sequence< css::sheet::TableFilterField2 > SAL_CALL
300 getFilterFields2() override;
301 virtual void SAL_CALL setFilterFields2( const css::uno::Sequence<
302 css::sheet::TableFilterField2 >& aFilterFields ) override;
303
304 // XSheetFilterDescriptor3
305 virtual css::uno::Sequence< css::sheet::TableFilterField3 > SAL_CALL
306 getFilterFields3() override;
307 virtual void SAL_CALL setFilterFields3( const css::uno::Sequence<
308 css::sheet::TableFilterField3 >& aFilterFields ) override;
309
310 // XPropertySet
311 virtual css::uno::Reference< css::beans::XPropertySetInfo >
312 SAL_CALL getPropertySetInfo() override;
313 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
314 const css::uno::Any& aValue ) override;
315 virtual css::uno::Any SAL_CALL getPropertyValue(
316 const OUString& PropertyName ) override;
317 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
318 const css::uno::Reference<
319 css::beans::XPropertyChangeListener >& xListener ) override;
320 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
321 const css::uno::Reference<
322 css::beans::XPropertyChangeListener >& aListener ) override;
323 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
324 const css::uno::Reference<
325 css::beans::XVetoableChangeListener >& aListener ) override;
326 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
327 const css::uno::Reference<
328 css::beans::XVetoableChangeListener >& aListener ) override;
329
330 // XServiceInfo
331 virtual OUString SAL_CALL getImplementationName() override;
332 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
333 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
334};
335
336// ScFilterDescriptor - dummy container to use with XFilterable
337
339{
340private:
341 ScQueryParam aStoredParam; // nField[] here within the area
342
343public:
345 virtual ~ScFilterDescriptor() override;
346
347 // from ScFilterDescriptorBase:
348 virtual void GetData( ScQueryParam& rParam ) const override;
349 virtual void PutData( const ScQueryParam& rParam ) override;
350
351 // external access:
352 void SetParam( const ScQueryParam& rNew );
353 const ScQueryParam& GetParam() const { return aStoredParam; }
354};
355
356// ScRangeFilterDescriptor - FilterDescriptor of a data base area
357
359{
360private:
362
363public:
365 virtual ~ScRangeFilterDescriptor() override;
366
367 // from ScFilterDescriptorBase:
368 virtual void GetData( ScQueryParam& rParam ) const override;
369 virtual void PutData( const ScQueryParam& rParam ) override;
370};
371
372// ScDataPilotFilterDescriptor - FilterDescriptor of a DataPilotDescriptors
373
375{
376private:
378
379public:
381 virtual ~ScDataPilotFilterDescriptor() override;
382
383 // from ScFilterDescriptorBase:
384 virtual void GetData( ScQueryParam& rParam ) const override;
385 virtual void PutData( const ScQueryParam& rParam ) override;
386};
387
388class ScDatabaseRangeObj final : public cppu::WeakImplHelper<
389 css::sheet::XDatabaseRange,
390 css::util::XRefreshable,
391 css::container::XNamed,
392 css::sheet::XCellRangeReferrer,
393 css::beans::XPropertySet,
394 css::lang::XServiceInfo >,
395 public SfxListener
396{
397private:
399 OUString aName;
401 std::vector< css::uno::Reference< css::util::XRefreshListener > >
405
406private:
407 ScDBData* GetDBData_Impl() const;
408 void Refreshed_Impl();
409
410public:
411 ScDatabaseRangeObj(ScDocShell* pDocSh, OUString aNm);
412 SC_DLLPUBLIC ScDatabaseRangeObj(ScDocShell* pDocSh, const SCTAB nTab);
413 virtual ~ScDatabaseRangeObj() override;
414
415 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
416
417 // nField[] here within the area:
418 void GetQueryParam(ScQueryParam& rQueryParam) const;
419 void SetQueryParam(const ScQueryParam& rQueryParam);
420 void GetSubTotalParam(ScSubTotalParam& rSubTotalParam) const;
421 void SetSubTotalParam(const ScSubTotalParam& rSubTotalParam);
422
423 // XNamed
424 virtual OUString SAL_CALL getName() override;
425 virtual void SAL_CALL setName( const OUString& aName ) override;
426
427 // XDatabaseRange
428 virtual css::table::CellRangeAddress SAL_CALL getDataArea() override;
429 virtual void SAL_CALL setDataArea( const css::table::CellRangeAddress& aDataArea ) override;
430 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
431 getSortDescriptor() override;
432 virtual css::uno::Reference< css::sheet::XSheetFilterDescriptor > SAL_CALL
433 getFilterDescriptor() override;
434 virtual css::uno::Reference< css::sheet::XSubTotalDescriptor > SAL_CALL
435 getSubTotalDescriptor() override;
436 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
437 getImportDescriptor() override;
438
439 // XRefreshable
440 virtual void SAL_CALL refresh() override;
441 virtual void SAL_CALL addRefreshListener( const css::uno::Reference<
442 css::util::XRefreshListener >& l ) override;
443 virtual void SAL_CALL removeRefreshListener( const css::uno::Reference<
444 css::util::XRefreshListener >& l ) override;
445
446 // XCellRangeReferrer
447 virtual css::uno::Reference< css::table::XCellRange > SAL_CALL
448 getReferredCells() override;
449
450 // XPropertySet
451 virtual css::uno::Reference< css::beans::XPropertySetInfo >
452 SAL_CALL getPropertySetInfo() override;
453 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
454 const css::uno::Any& aValue ) override;
455 virtual css::uno::Any SAL_CALL getPropertyValue(
456 const OUString& PropertyName ) override;
457 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
458 const css::uno::Reference<
459 css::beans::XPropertyChangeListener >& xListener ) override;
460 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
461 const css::uno::Reference<
462 css::beans::XPropertyChangeListener >& aListener ) override;
463 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
464 const css::uno::Reference<
465 css::beans::XVetoableChangeListener >& aListener ) override;
466 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
467 const css::uno::Reference<
468 css::beans::XVetoableChangeListener >& aListener ) override;
469
470 // XServiceInfo
471 virtual OUString SAL_CALL getImplementationName() override;
472 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
473 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
474};
475
476class ScDatabaseRangesObj final : public cppu::WeakImplHelper<
477 css::sheet::XDatabaseRanges,
478 css::container::XEnumerationAccess,
479 css::container::XIndexAccess,
480 css::lang::XServiceInfo >,
481 public SfxListener
482{
483private:
485
488
489public:
491 virtual ~ScDatabaseRangesObj() override;
492
493 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
494
495 // XDatabaseRanges
496 virtual void SAL_CALL addNewByName( const OUString& aName,
497 const css::table::CellRangeAddress& aRange ) override;
498 virtual void SAL_CALL removeByName( const OUString& aName ) override;
499
500 // XEnumerationAccess
501 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
502 createEnumeration() override;
503
504 // XIndexAccess
505 virtual sal_Int32 SAL_CALL getCount() override;
506 virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
507
508 // XElementAccess
509 virtual css::uno::Type SAL_CALL getElementType() override;
510 virtual sal_Bool SAL_CALL hasElements() override;
511
512 // XNameAccess
513 virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
514 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
515 virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
516
517 // XServiceInfo
518 virtual OUString SAL_CALL getImplementationName() override;
519 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
520 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
521};
522
523class ScUnnamedDatabaseRangesObj final : public cppu::WeakImplHelper<
524 css::sheet::XUnnamedDatabaseRanges>,
525 public SfxListener
526{
527private:
529
530public:
532 virtual ~ScUnnamedDatabaseRangesObj() override;
533
534 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
535
536 // XUnnamedDatabaseRanges
537 virtual void SAL_CALL setByTable( const css::table::CellRangeAddress& aRange ) override;
538 virtual css::uno::Any SAL_CALL getByTable( sal_Int32 nTab ) override;
539 virtual sal_Bool SAL_CALL hasByTable( sal_Int32 nTab ) override;
540};
541
542/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
struct _ADOIndex Index
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Bool SAL_CALL getUseColumnHeaders() override
Definition: datauno.cxx:867
virtual css::table::CellAddress SAL_CALL getStartOutputPosition() override
Definition: datauno.cxx:848
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL getUseRowHeaders() override
Definition: datauno.cxx:879
ScConsolidateParam aParam
Definition: datauno.hxx:233
virtual ~ScConsolidationDescriptor() override
Definition: datauno.cxx:782
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< css::table::CellRangeAddress > SAL_CALL getSources() override
Definition: datauno.cxx:805
virtual void SAL_CALL setUseRowHeaders(sal_Bool bUseRowHeaders) override
Definition: datauno.cxx:885
virtual sal_Bool SAL_CALL getInsertLinks() override
Definition: datauno.cxx:891
virtual void SAL_CALL setFunction(css::sheet::GeneralFunction nFunction) override
Definition: datauno.cxx:799
virtual void SAL_CALL setSources(const css::uno::Sequence< css::table::CellRangeAddress > &aSources) override
Definition: datauno.cxx:827
virtual void SAL_CALL setUseColumnHeaders(sal_Bool bUseColumnHeaders) override
Definition: datauno.cxx:873
virtual void SAL_CALL setInsertLinks(sal_Bool bInsertLinks) override
Definition: datauno.cxx:897
virtual void SAL_CALL setStartOutputPosition(const css::table::CellAddress &aStartOutputPosition) override
Definition: datauno.cxx:858
virtual css::sheet::GeneralFunction SAL_CALL getFunction() override
Definition: datauno.cxx:793
void SetParam(const ScConsolidateParam &rNew)
Definition: datauno.cxx:786
const ScConsolidateParam & GetParam() const
Definition: datauno.hxx:240
ScDataPilotFilterDescriptor(ScDocShell *pDocSh, ScDataPilotDescriptorBase *pPar)
Definition: datauno.cxx:1525
virtual void GetData(ScQueryParam &rParam) const override
Definition: datauno.cxx:1535
virtual void PutData(const ScQueryParam &rParam) override
Definition: datauno.cxx:1545
virtual ~ScDataPilotFilterDescriptor() override
Definition: datauno.cxx:1531
rtl::Reference< ScDataPilotDescriptorBase > mxParent
Definition: datauno.hxx:377
static css::sheet::GeneralFunction SubTotalToGeneral(ScSubTotalFunc eSubTotal)
Definition: datauno.cxx:140
ScDocShell * pDocShell
Definition: datauno.hxx:398
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getImportDescriptor() override
Definition: datauno.cxx:1821
virtual css::uno::Reference< css::sheet::XSubTotalDescriptor > SAL_CALL getSubTotalDescriptor() override
Definition: datauno.cxx:1815
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
void SetQueryParam(const ScQueryParam &rQueryParam)
Definition: datauno.cxx:1729
ScDBData * GetDBData_Impl() const
Definition: datauno.cxx:1607
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getSortDescriptor() override
Definition: datauno.cxx:1685
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: datauno.cxx:2112
virtual void SAL_CALL setName(const OUString &aName) override
Definition: datauno.cxx:1638
std::vector< css::uno::Reference< css::util::XRefreshListener > > aRefreshListeners
Definition: datauno.hxx:402
void GetSubTotalParam(ScSubTotalParam &rSubTotalParam) const
Definition: datauno.cxx:1762
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: datauno.cxx:1930
virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: datauno.cxx:1874
void SetSubTotalParam(const ScSubTotalParam &rSubTotalParam)
Definition: datauno.cxx:1788
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL refresh() override
Definition: datauno.cxx:1836
virtual OUString SAL_CALL getName() override
Definition: datauno.cxx:1632
ScDatabaseRangeObj(ScDocShell *pDocSh, OUString aNm)
Definition: datauno.cxx:1562
virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: datauno.cxx:1863
virtual OUString SAL_CALL getImplementationName() override
Definition: datauno.cxx:2107
virtual ~ScDatabaseRangeObj() override
Definition: datauno.cxx:1582
virtual css::table::CellRangeAddress SAL_CALL getDataArea() override
Definition: datauno.cxx:1652
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: datauno.cxx:2117
SfxItemPropertySet aPropSet
Definition: datauno.hxx:400
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: datauno.cxx:1590
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: datauno.cxx:1922
virtual css::uno::Reference< css::table::XCellRange > SAL_CALL getReferredCells() override
Definition: datauno.cxx:1902
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: datauno.cxx:2024
void GetQueryParam(ScQueryParam &rQueryParam) const
Definition: datauno.cxx:1708
virtual css::uno::Reference< css::sheet::XSheetFilterDescriptor > SAL_CALL getFilterDescriptor() override
Definition: datauno.cxx:1756
virtual void SAL_CALL setDataArea(const css::table::CellRangeAddress &aDataArea) override
Definition: datauno.cxx:1670
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: datauno.cxx:2231
virtual ~ScDatabaseRangesObj() override
Definition: datauno.cxx:2129
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
ScDatabaseRangesObj(ScDocShell *pDocSh)
Definition: datauno.cxx:2123
virtual css::uno::Type SAL_CALL getElementType() override
Definition: datauno.cxx:2244
ScDocShell * pDocShell
Definition: datauno.hxx:484
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: datauno.cxx:2257
virtual void SAL_CALL addNewByName(const OUString &aName, const css::table::CellRangeAddress &aRange) override
Definition: datauno.cxx:2176
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: datauno.cxx:2294
rtl::Reference< ScDatabaseRangeObj > GetObjectByIndex_Impl(size_t nIndex)
Definition: datauno.cxx:2149
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL hasElements() override
Definition: datauno.cxx:2249
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: datauno.cxx:2208
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: datauno.cxx:2267
virtual sal_Int32 SAL_CALL getCount() override
Definition: datauno.cxx:2216
virtual void SAL_CALL removeByName(const OUString &aName) override
Definition: datauno.cxx:2193
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: datauno.cxx:2137
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
rtl::Reference< ScDatabaseRangeObj > GetObjectByName_Impl(const OUString &aName)
Definition: datauno.cxx:2167
ScFilterDescriptorBase(ScDocShell *pDocShell)
Definition: datauno.cxx:903
ScDocShell * pDocSh
Definition: datauno.hxx:279
virtual void GetData(ScQueryParam &rParam) const =0
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL setFilterFields3(const css::uno::Sequence< css::sheet::TableFilterField3 > &aFilterFields) override
Definition: datauno.cxx:1370
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ~ScFilterDescriptorBase() override
Definition: datauno.cxx:911
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: datauno.cxx:919
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: datauno.cxx:1384
virtual css::uno::Sequence< css::sheet::TableFilterField3 > SAL_CALL getFilterFields3() override
Definition: datauno.cxx:1235
virtual void SAL_CALL setFilterFields2(const css::uno::Sequence< css::sheet::TableFilterField2 > &aFilterFields) override
Definition: datauno.cxx:1360
virtual OUString SAL_CALL getImplementationName() override
SfxItemPropertySet aPropSet
Definition: datauno.hxx:278
virtual void PutData(const ScQueryParam &rParam)=0
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: datauno.cxx:1436
virtual css::uno::Sequence< css::sheet::TableFilterField2 > SAL_CALL getFilterFields2() override
Definition: datauno.cxx:1185
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Sequence< css::sheet::TableFilterField > SAL_CALL getFilterFields() override
Definition: datauno.cxx:929
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setFilterFields(const css::uno::Sequence< css::sheet::TableFilterField > &aFilterFields) override
Definition: datauno.cxx:1295
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: datauno.cxx:1392
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
void SetParam(const ScQueryParam &rNew)
Definition: datauno.cxx:1498
virtual void PutData(const ScQueryParam &rParam) override
Definition: datauno.cxx:1493
ScFilterDescriptor(ScDocShell *pDocSh)
Definition: datauno.cxx:1478
ScQueryParam aStoredParam
Definition: datauno.hxx:341
virtual ~ScFilterDescriptor() override
Definition: datauno.cxx:1484
virtual void GetData(ScQueryParam &rParam) const override
Definition: datauno.cxx:1488
const ScQueryParam & GetParam() const
Definition: datauno.hxx:353
static void FillImportParam(ScImportParam &rParam, const css::uno::Sequence< css::beans::PropertyValue > &rSeq)
Definition: datauno.cxx:205
static void FillProperties(css::uno::Sequence< css::beans::PropertyValue > &rSeq, const ScImportParam &rParam)
Definition: datauno.cxx:165
static tools::Long GetPropertyCount()
Definition: datauno.hxx:81
virtual void PutData(const ScQueryParam &rParam) override
Definition: datauno.cxx:1519
rtl::Reference< ScDatabaseRangeObj > mxParent
Definition: datauno.hxx:361
virtual void GetData(ScQueryParam &rParam) const override
Definition: datauno.cxx:1513
virtual ~ScRangeFilterDescriptor() override
Definition: datauno.cxx:1509
ScRangeFilterDescriptor(ScDocShell *pDocSh, ScDatabaseRangeObj *pPar)
Definition: datauno.cxx:1503
virtual void GetData(ScSubTotalParam &rParam) const override
Definition: datauno.cxx:766
virtual ~ScRangeSubTotalDescriptor() override
Definition: datauno.cxx:762
virtual void PutData(const ScSubTotalParam &rParam) override
Definition: datauno.cxx:772
rtl::Reference< ScDatabaseRangeObj > mxParent
Definition: datauno.hxx:191
ScRangeSubTotalDescriptor(ScDatabaseRangeObj *pPar)
Definition: datauno.cxx:757
static void FillProperties(css::uno::Sequence< css::beans::PropertyValue > &rSeq, const ScSortParam &rParam)
Definition: datauno.cxx:260
static void FillSortParam(ScSortParam &rParam, const css::uno::Sequence< css::beans::PropertyValue > &rSeq)
Definition: datauno.cxx:322
static tools::Long GetPropertyCount()
SortAscending needs to get out of the SheetSortDescriptor service description.
Definition: datauno.hxx:96
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: datauno.cxx:655
virtual void GetData(ScSubTotalParam &rParam) const =0
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual ~ScSubTotalDescriptorBase() override
Definition: datauno.cxx:534
virtual void PutData(const ScSubTotalParam &rParam)=0
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL clear() override
Definition: datauno.cxx:547
virtual void SAL_CALL addNew(const css::uno::Sequence< css::sheet::SubTotalColumn > &aSubTotalColumns, sal_Int32 nGroupColumn) override
Definition: datauno.cxx:561
virtual sal_Int32 SAL_CALL getCount() override
Definition: datauno.cxx:620
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: datauno.cxx:632
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: datauno.cxx:663
SfxItemPropertySet aPropSet
Definition: datauno.hxx:115
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL hasElements() override
Definition: datauno.cxx:647
virtual css::uno::Type SAL_CALL getElementType() override
Definition: datauno.cxx:642
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: datauno.cxx:702
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: datauno.cxx:612
rtl::Reference< ScSubTotalFieldObj > GetObjectByIndex_Impl(sal_uInt16 nIndex)
Definition: datauno.cxx:540
virtual ~ScSubTotalDescriptor() override
Definition: datauno.cxx:738
virtual void PutData(const ScSubTotalParam &rParam) override
Definition: datauno.cxx:747
void SetParam(const ScSubTotalParam &rNew)
Definition: datauno.cxx:752
ScSubTotalParam aStoredParam
Definition: datauno.hxx:172
virtual void GetData(ScSubTotalParam &rParam) const override
Definition: datauno.cxx:742
ScSubTotalFieldObj(ScSubTotalDescriptorBase *pDesc, sal_uInt16 nP)
Definition: datauno.cxx:443
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< css::sheet::SubTotalColumn > SAL_CALL getSubTotalColumns() override
Definition: datauno.cxx:476
virtual ~ScSubTotalFieldObj() override
Definition: datauno.cxx:450
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL setSubTotalColumns(const css::uno::Sequence< css::sheet::SubTotalColumn > &aSubTotalColumns) override
Definition: datauno.cxx:494
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setGroupColumn(sal_Int32 nGroupColumn) override
Definition: datauno.cxx:465
sal_uInt16 nPos
Definition: datauno.hxx:208
rtl::Reference< ScSubTotalDescriptorBase > xParent
Definition: datauno.hxx:207
virtual sal_Int32 SAL_CALL getGroupColumn() override
Definition: datauno.cxx:456
ScUnnamedDatabaseRangesObj(ScDocShell *pDocSh)
Definition: datauno.cxx:2309
virtual css::uno::Any SAL_CALL getByTable(sal_Int32 nTab) override
Definition: datauno.cxx:2353
virtual sal_Bool SAL_CALL hasByTable(sal_Int32 nTab) override
Definition: datauno.cxx:2369
virtual void SAL_CALL setByTable(const css::table::CellRangeAddress &aRange) override
Definition: datauno.cxx:2335
virtual ~ScUnnamedDatabaseRangesObj() override
Definition: datauno.cxx:2315
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: datauno.cxx:2323
ScSubTotalFunc
Definition: global.hxx:860
long Long
#define SC_DLLPUBLIC
Definition: scdllapi.h:27
unsigned char sal_Bool
sal_Int16 SCTAB
Definition: types.hxx:22