LibreOffice Module sc (master)  1
linkuno.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 <svl/lstner.hxx>
23 #include <svl/itemprop.hxx>
24 #include <com/sun/star/sheet/XDDELink.hpp>
25 #include <com/sun/star/sheet/XDDELinkResults.hpp>
26 #include <com/sun/star/sheet/XDDELinks.hpp>
27 #include <com/sun/star/sheet/XExternalDocLink.hpp>
28 #include <com/sun/star/sheet/XExternalDocLinks.hpp>
29 #include <com/sun/star/sheet/XExternalSheetCache.hpp>
30 #include <com/sun/star/sheet/XAreaLink.hpp>
31 #include <com/sun/star/sheet/XAreaLinks.hpp>
32 #include <com/sun/star/util/XRefreshable.hpp>
33 #include <com/sun/star/lang/XServiceInfo.hpp>
34 #include <com/sun/star/beans/XPropertySet.hpp>
35 #include <com/sun/star/container/XEnumerationAccess.hpp>
36 #include <com/sun/star/container/XNameAccess.hpp>
37 #include <com/sun/star/container/XIndexAccess.hpp>
38 #include <com/sun/star/container/XNamed.hpp>
39 #include <cppuhelper/implbase.hxx>
40 
41 #include "externalrefmgr.hxx"
42 
43 #include <vector>
44 
45 class ScDocShell;
47 
48 typedef std::vector< css::uno::Reference< css::util::XRefreshListener > > XRefreshListenerArr_Impl;
49 
50 class ScSheetLinkObj final : public cppu::WeakImplHelper<
51  css::container::XNamed,
52  css::util::XRefreshable,
53  css::beans::XPropertySet,
54  css::lang::XServiceInfo >,
55  public SfxListener
56 {
57 private:
60  OUString aFileName;
62 
63  ScTableLink* GetLink_Impl() const;
64  void Refreshed_Impl();
65  void ModifyRefreshDelay_Impl( sal_Int32 nRefresh );
66 
67 public:
68  ScSheetLinkObj(ScDocShell* pDocSh, const OUString& rName);
69  virtual ~ScSheetLinkObj() override;
70 
71  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
72 
73  // XNamed
74  virtual OUString SAL_CALL getName() override;
75  virtual void SAL_CALL setName( const OUString& aName ) override;
76 
77  // XRefreshable
78  virtual void SAL_CALL refresh() override;
79  virtual void SAL_CALL addRefreshListener( const css::uno::Reference< css::util::XRefreshListener >& l ) override;
80  virtual void SAL_CALL removeRefreshListener( const css::uno::Reference< css::util::XRefreshListener >& l ) override;
81 
82  // XPropertySet
83  virtual css::uno::Reference< css::beans::XPropertySetInfo >
84  SAL_CALL getPropertySetInfo( ) override;
85  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
86  const css::uno::Any& aValue ) override;
87  virtual css::uno::Any SAL_CALL getPropertyValue(
88  const OUString& PropertyName ) override;
89  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
90  const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
91  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
92  const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
93  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
94  const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
95  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
96  const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
97 
98  // called from get/setPropertyValue:
99  OUString getFileName() const;
100  void setFileName(const OUString& FileName);
101  OUString getFilter() const;
102  void setFilter(const OUString& Filter);
103  OUString getFilterOptions() const;
104  void setFilterOptions(const OUString& FilterOptions);
105  sal_Int32 getRefreshDelay() const;
106  void setRefreshDelay(sal_Int32 nRefreshDelay);
107 
108  // XServiceInfo
109  virtual OUString SAL_CALL getImplementationName() override;
110  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
111  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
112 };
113 
114 class ScSheetLinksObj final : public cppu::WeakImplHelper<
115  css::container::XNameAccess,
116  css::container::XEnumerationAccess,
117  css::container::XIndexAccess,
118  css::lang::XServiceInfo >,
119  public SfxListener
120 {
121 private:
123 
126 
127 public:
128  ScSheetLinksObj(ScDocShell* pDocSh);
129  virtual ~ScSheetLinksObj() override;
130 
131  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
132 
133  // XNameAccess
134  virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
135  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
136  virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
137 
138  // XIndexAccess
139  virtual sal_Int32 SAL_CALL getCount() override;
140  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
141 
142  // XEnumerationAccess
143  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
144  createEnumeration() override;
145 
146  // XElementAccess
147  virtual css::uno::Type SAL_CALL getElementType() override;
148  virtual sal_Bool SAL_CALL hasElements() override;
149 
150  // XServiceInfo
151  virtual OUString SAL_CALL getImplementationName() override;
152  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
153  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
154 };
155 
156 class ScAreaLinkObj final : public cppu::WeakImplHelper<
157  css::sheet::XAreaLink,
158  css::util::XRefreshable,
159  css::beans::XPropertySet,
160  css::lang::XServiceInfo >,
161  public SfxListener
162 {
163 private:
166  size_t nPos;
168 
169  void Modify_Impl( const OUString* pNewFile, const OUString* pNewFilter,
170  const OUString* pNewOptions, const OUString* pNewSource,
171  const css::table::CellRangeAddress* pNewDest );
172  void ModifyRefreshDelay_Impl( sal_Int32 nRefresh );
173  void Refreshed_Impl();
174 
175 public:
176  ScAreaLinkObj(ScDocShell* pDocSh, size_t nP);
177  virtual ~ScAreaLinkObj() override;
178 
179  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
180 
181  // XRefreshable
182  virtual void SAL_CALL refresh() override;
183  virtual void SAL_CALL addRefreshListener( const css::uno::Reference< css::util::XRefreshListener >& l ) override;
184  virtual void SAL_CALL removeRefreshListener( const css::uno::Reference< css::util::XRefreshListener >& l ) override;
185 
186  // XPropertySet
187  virtual css::uno::Reference< css::beans::XPropertySetInfo >
188  SAL_CALL getPropertySetInfo( ) override;
189  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
190  const css::uno::Any& aValue ) override;
191  virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
192  virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
193  const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
194  virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
195  const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
196  virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
197  const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
198  virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
199  const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
200 
201  // called from get/setPropertyValue:
202  OUString getFileName() const;
203  void setFileName(const OUString& FileName);
204  OUString getFilter() const;
205  void setFilter(const OUString& Filter);
206  OUString getFilterOptions() const;
207  void setFilterOptions(const OUString& FilterOptions);
208  sal_Int32 getRefreshDelay() const;
209  void setRefreshDelay(sal_Int32 nRefreshDelay);
210 
211  // XAreaLink
212  virtual OUString SAL_CALL getSourceArea() override;
213  virtual void SAL_CALL setSourceArea( const OUString& aSourceArea ) override;
214  virtual css::table::CellRangeAddress SAL_CALL getDestArea() override;
215  virtual void SAL_CALL setDestArea( const css::table::CellRangeAddress& aDestArea ) override;
216 
217  // XServiceInfo
218  virtual OUString SAL_CALL getImplementationName() override;
219  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
220  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
221 };
222 
223 class ScAreaLinksObj final : public cppu::WeakImplHelper<
224  css::sheet::XAreaLinks,
225  css::container::XEnumerationAccess,
226  css::lang::XServiceInfo >,
227  public SfxListener
228 {
229 private:
231 
233 
234 public:
235  ScAreaLinksObj(ScDocShell* pDocSh);
236  virtual ~ScAreaLinksObj() override;
237 
238  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
239 
240  // XAreaLinks
241  virtual void SAL_CALL insertAtPosition( const css::table::CellAddress& aDestPos,
242  const OUString& aFileName,
243  const OUString& aSourceArea,
244  const OUString& aFilter,
245  const OUString& aFilterOptions ) override;
246  virtual void SAL_CALL removeByIndex( sal_Int32 nIndex ) override;
247 
248  // XIndexAccess
249  virtual sal_Int32 SAL_CALL getCount() override;
250  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
251 
252  // XEnumerationAccess
253  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
254  createEnumeration() override;
255 
256  // XElementAccess
257  virtual css::uno::Type SAL_CALL getElementType() override;
258  virtual sal_Bool SAL_CALL hasElements() override;
259 
260  // XServiceInfo
261  virtual OUString SAL_CALL getImplementationName() override;
262  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
263  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
264 };
265 
267 
268 class ScDDELinkObj final : public cppu::WeakImplHelper<
269  css::sheet::XDDELink,
270  css::container::XNamed,
271  css::util::XRefreshable,
272  css::sheet::XDDELinkResults,
273  css::lang::XServiceInfo >,
274  public SfxListener
275 {
276 private:
278  OUString aAppl;
279  OUString aTopic;
280  OUString aItem;
282 
283  void Refreshed_Impl();
284 
285 public:
286  ScDDELinkObj(ScDocShell* pDocSh, const OUString& rA,
287  const OUString& rT, const OUString& rI);
288  virtual ~ScDDELinkObj() override;
289 
290  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
291 
292  // XNamed
293  virtual OUString SAL_CALL getName() override;
294  virtual void SAL_CALL setName( const OUString& aName ) override;
295 
296  // XDDELink
297  virtual OUString SAL_CALL getApplication() override;
298  virtual OUString SAL_CALL getTopic() override;
299  virtual OUString SAL_CALL getItem() override;
300 
301  // XRefreshable
302  virtual void SAL_CALL refresh() override;
303  virtual void SAL_CALL addRefreshListener( const css::uno::Reference< css::util::XRefreshListener >& l ) override;
304  virtual void SAL_CALL removeRefreshListener( const css::uno::Reference< css::util::XRefreshListener >& l ) override;
305 
306  // XDDELinkResults
307  virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > >
308  SAL_CALL getResults( ) override;
309  virtual void SAL_CALL setResults(
310  const css::uno::Sequence< css::uno::Sequence< css::uno::Any > >& aResults ) override;
311 
312  // XServiceInfo
313  virtual OUString SAL_CALL getImplementationName() override;
314  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
315  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
316 };
317 
318 class ScDDELinksObj final : public cppu::WeakImplHelper<
319  css::container::XEnumerationAccess,
320  css::container::XIndexAccess,
321  css::sheet::XDDELinks,
322  css::lang::XServiceInfo >,
323  public SfxListener
324 {
325 private:
327 
329  rtl::Reference<ScDDELinkObj> GetObjectByName_Impl(std::u16string_view aName);
330 
331 public:
332  ScDDELinksObj(ScDocShell* pDocSh);
333  virtual ~ScDDELinksObj() override;
334 
335  virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
336 
337  // XNameAccess
338  virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
339  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
340  virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
341 
342  // XIndexAccess
343  virtual sal_Int32 SAL_CALL getCount() override;
344  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
345 
346  // XEnumerationAccess
347  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
348  createEnumeration() override;
349 
350  // XElementAccess
351  virtual css::uno::Type SAL_CALL getElementType() override;
352  virtual sal_Bool SAL_CALL hasElements() override;
353 
354  // XDDELinks
355  virtual css::uno::Reference< css::sheet::XDDELink > SAL_CALL addDDELink(
356  const OUString& aApplication, const OUString& aTopic,
357  const OUString& aItem, css::sheet::DDELinkMode nMode ) override;
358 
359  // XServiceInfo
360  virtual OUString SAL_CALL getImplementationName() override;
361  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
362  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
363 };
364 
365 class ScExternalSheetCacheObj final : public cppu::WeakImplHelper< css::sheet::XExternalSheetCache >
366 {
367 public:
368  explicit ScExternalSheetCacheObj(ScDocShell* pDocShell, ScExternalRefCache::TableTypeRef const & pTable, size_t nIndex);
369  virtual ~ScExternalSheetCacheObj() override;
370 
371  // XExternalSheetCache
372  virtual void SAL_CALL setCellValue(
373  sal_Int32 nCol, sal_Int32 nRow, const css::uno::Any& rAny) override;
374 
375  virtual css::uno::Any SAL_CALL getCellValue(sal_Int32 nCol, sal_Int32 nRow) override;
376 
377  virtual css::uno::Sequence< sal_Int32 > SAL_CALL getAllRows() override;
378 
379  virtual css::uno::Sequence< sal_Int32 > SAL_CALL getAllColumns(sal_Int32 nRow) override;
380 
381  // Attributes
382  virtual sal_Int32 SAL_CALL getTokenIndex() override;
383 
384 private:
386 
387 private:
390  size_t mnIndex;
391 };
392 
393 class ScExternalDocLinkObj final : public cppu::WeakImplHelper< css::sheet::XExternalDocLink >
394 {
395 public:
396  ScExternalDocLinkObj(ScDocShell* pDocShell, ScExternalRefManager* pRefMgr, sal_uInt16 nFileId);
397  virtual ~ScExternalDocLinkObj() override;
398 
399  // XExternalDocLink
400  virtual css::uno::Reference< css::sheet::XExternalSheetCache >
401  SAL_CALL addSheetCache( const OUString& aSheetName, sal_Bool bDynamicCache ) override;
402 
403  // XNameAccess
404  virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
405  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
406  virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
407 
408  // XIndexAccess
409  virtual sal_Int32 SAL_CALL getCount() override;
410  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 nIndex ) override;
411 
412  // XEnumerationAccess
413  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
414  createEnumeration() override;
415 
416  // XElementAccess
417  virtual css::uno::Type SAL_CALL getElementType() override;
418  virtual sal_Bool SAL_CALL hasElements() override;
419 
420  // Attributes
421  virtual sal_Int32 SAL_CALL getTokenIndex() override;
422 
423 private:
426  sal_uInt16 mnFileId;
427 };
428 
430 class ScExternalDocLinksObj final : public cppu::WeakImplHelper< css::sheet::XExternalDocLinks >
431 {
432 public:
433  ScExternalDocLinksObj(ScDocShell* pDocShell);
434  virtual ~ScExternalDocLinksObj() override;
435 
436  // XExternalDocLinks
437  virtual css::uno::Reference< css::sheet::XExternalDocLink >
438  SAL_CALL addDocLink( const OUString& aDocName ) override;
439 
440  // XNameAccess
441  virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
442  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
443  virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
444 
445  // XIndexAccess
446  virtual sal_Int32 SAL_CALL getCount() override;
447  virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 nIndex ) override;
448 
449  // XEnumerationAccess
450  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL
451  createEnumeration() override;
452 
453  // XElementAccess
454  virtual css::uno::Type SAL_CALL getElementType() override;
455  virtual sal_Bool SAL_CALL hasElements() override;
456 
457 private:
459 
460 private:
463 };
464 
465 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
size_t nPos
Definition: linkuno.hxx:166
virtual css::uno::Any SAL_CALL getCellValue(sal_Int32 nCol, sal_Int32 nRow) override
Definition: linkuno.cxx:1419
virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: linkuno.cxx:152
ScDocShell * mpDocShell
Definition: linkuno.hxx:424
ScDocShell * pDocShell
Definition: linkuno.hxx:59
virtual OUString SAL_CALL getItem() override
Definition: linkuno.cxx:1069
XRefreshListenerArr_Impl aRefreshListeners
Definition: linkuno.hxx:61
virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: linkuno.cxx:683
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: linkuno.cxx:756
void setRefreshDelay(sal_Int32 nRefreshDelay)
Definition: linkuno.cxx:354
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
ScSheetLinkObj(ScDocShell *pDocSh, const OUString &rName)
Definition: linkuno.cxx:76
virtual css::uno::Reference< css::sheet::XDDELink > SAL_CALL addDDELink(const OUString &aApplication, const OUString &aTopic, const OUString &aItem, css::sheet::DDELinkMode nMode) override
Definition: linkuno.cxx:1334
sal_Int32 nIndex
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: linkuno.cxx:500
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: linkuno.cxx:1658
void setFilter(const OUString &Filter)
Definition: linkuno.cxx:313
ScDocShell * pDocShell
Definition: linkuno.hxx:230
ScDocShell * pDocShell
Definition: linkuno.hxx:277
OUString aItem
Definition: linkuno.hxx:280
OUString aTopic
Definition: linkuno.hxx:279
virtual ~ScDDELinksObj() override
Definition: linkuno.cxx:1191
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: linkuno.cxx:589
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: linkuno.cxx:1199
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: linkuno.cxx:672
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: linkuno.cxx:206
sal_Int32 getRefreshDelay() const
Definition: linkuno.cxx:344
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: linkuno.cxx:92
rtl::Reference< ScDDELinkObj > GetObjectByIndex_Impl(sal_Int32 nIndex)
Definition: linkuno.cxx:1211
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: linkuno.cxx:889
ScDocShell * mpDocShell
Definition: linkuno.hxx:461
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: linkuno.cxx:969
virtual ~ScAreaLinksObj() override
Definition: linkuno.cxx:881
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: linkuno.cxx:163
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: linkuno.cxx:1535
void setFileName(const OUString &FileName)
Definition: linkuno.cxx:267
virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: linkuno.cxx:1089
virtual void SAL_CALL insertAtPosition(const css::table::CellAddress &aDestPos, const OUString &aFileName, const OUString &aSourceArea, const OUString &aFilter, const OUString &aFilterOptions) override
Definition: linkuno.cxx:909
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: linkuno.cxx:490
order of XNamed and DDELink changed to avoid "duplicate comdat" symbols
Definition: linkuno.hxx:268
void setFilterOptions(const OUString &FilterOptions)
Definition: linkuno.cxx:819
rtl::Reference< ScAreaLinkObj > GetObjectByIndex_Impl(sal_Int32 nIndex)
Definition: linkuno.cxx:901
virtual sal_Bool SAL_CALL hasElements() override
Definition: linkuno.cxx:1687
ScDocShell * pDocShell
Definition: linkuno.hxx:122
virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &l) override
Definition: linkuno.cxx:1100
OUString getFilterOptions() const
Definition: linkuno.cxx:809
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: linkuno.cxx:943
XRefreshListenerArr_Impl aRefreshListeners
Definition: linkuno.hxx:167
XRefreshListenerArr_Impl aRefreshListeners
Definition: linkuno.hxx:281
ScDocShell * pDocShell
Definition: linkuno.hxx:165
virtual OUString SAL_CALL getApplication() override
Definition: linkuno.cxx:1053
virtual OUString SAL_CALL getImplementationName() override
virtual ~ScSheetLinksObj() override
Definition: linkuno.cxx:366
virtual sal_Int32 SAL_CALL getCount() override
Definition: linkuno.cxx:1652
void Refreshed_Impl()
Definition: linkuno.cxx:1177
virtual sal_Bool SAL_CALL hasElements() override
Definition: linkuno.cxx:986
OUString getFileName() const
Definition: linkuno.cxx:777
virtual css::uno::Reference< css::sheet::XExternalSheetCache > SAL_CALL addSheetCache(const OUString &aSheetName, sal_Bool bDynamicCache) override
Definition: linkuno.cxx:1493
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: linkuno.cxx:1632
void setFilter(const OUString &Filter)
Definition: linkuno.cxx:803
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: linkuno.cxx:521
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Type SAL_CALL getElementType() override
Definition: linkuno.cxx:1580
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
rtl::Reference< ScDDELinkObj > GetObjectByName_Impl(std::u16string_view aName)
Definition: linkuno.cxx:1222
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: linkuno.cxx:468
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: linkuno.cxx:436
virtual sal_Int32 SAL_CALL getTokenIndex() override
Definition: linkuno.cxx:1479
OUString getFileName() const
Definition: linkuno.cxx:261
virtual ~ScExternalDocLinkObj() override
Definition: linkuno.cxx:1489
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
void setFileName(const OUString &FileName)
Definition: linkuno.cxx:787
virtual css::uno::Type SAL_CALL getElementType() override
Definition: linkuno.cxx:1681
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: linkuno.cxx:1572
ScDDELinkObj(ScDocShell *pDocSh, const OUString &rA, const OUString &rT, const OUString &rI)
Definition: linkuno.cxx:992
virtual OUString SAL_CALL getTopic() override
Definition: linkuno.cxx:1061
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Type SAL_CALL getElementType() override
Definition: linkuno.cxx:980
OUString aFileName
Definition: linkuno.hxx:60
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
rtl::Reference< ScSheetLinkObj > GetObjectByIndex_Impl(sal_Int32 nIndex)
Definition: linkuno.cxx:386
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: linkuno.cxx:1281
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: linkuno.cxx:1313
virtual ~ScExternalSheetCacheObj() override
Definition: linkuno.cxx:1391
SfxItemPropertySet aPropSet
Definition: linkuno.hxx:58
ScDDELinksObj(ScDocShell *pDocSh)
Definition: linkuno.cxx:1185
ScDocShell * pDocShell
Definition: linkuno.hxx:326
OUString getFilter() const
Definition: linkuno.cxx:793
rtl::Reference< ScSheetLinkObj > GetObjectByName_Impl(const OUString &aName)
Definition: linkuno.cxx:414
virtual void SAL_CALL setName(const OUString &aName) override
Definition: linkuno.cxx:136
virtual css::table::CellRangeAddress SAL_CALL getDestArea() override
Definition: linkuno.cxx:859
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
unsigned char sal_Bool
virtual sal_Int32 SAL_CALL getCount() override
Definition: linkuno.cxx:1544
virtual css::uno::Reference< css::sheet::XExternalDocLink > SAL_CALL addDocLink(const OUString &aDocName) override
Definition: linkuno.cxx:1609
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: linkuno.cxx:1673
virtual void SAL_CALL setSourceArea(const OUString &aSourceArea) override
Definition: linkuno.cxx:853
OUString getFilter() const
Definition: linkuno.cxx:303
virtual sal_Bool SAL_CALL hasElements() override
Definition: linkuno.cxx:484
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Bool SAL_CALL hasElements() override
Definition: linkuno.cxx:1275
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: linkuno.cxx:198
std::vector< css::uno::Reference< css::util::XRefreshListener > > XRefreshListenerArr_Impl
Definition: linkuno.hxx:46
void setRefreshDelay(sal_Int32 nRefreshDelay)
Definition: linkuno.cxx:835
void ModifyRefreshDelay_Impl(sal_Int32 nRefresh)
Definition: linkuno.cxx:189
virtual sal_Int32 SAL_CALL getCount() override
Definition: linkuno.cxx:951
virtual void SAL_CALL refresh() override
Definition: linkuno.cxx:144
virtual ~ScExternalDocLinksObj() override
Definition: linkuno.cxx:1605
virtual void SAL_CALL setName(const OUString &aName) override
Definition: linkuno.cxx:1045
virtual ~ScDDELinkObj() override
Definition: linkuno.cxx:1002
virtual ~ScAreaLinkObj() override
Definition: linkuno.cxx:581
void Refreshed_Impl()
Definition: linkuno.cxx:704
virtual void SAL_CALL setCellValue(sal_Int32 nCol, sal_Int32 nRow, const css::uno::Any &rAny) override
Definition: linkuno.cxx:1395
void ModifyRefreshDelay_Impl(sal_Int32 nRefresh)
Definition: linkuno.cxx:655
virtual css::uno::Type SAL_CALL getElementType() override
Definition: linkuno.cxx:478
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: linkuno.cxx:1242
SfxItemPropertySet aPropSet
Definition: linkuno.hxx:164
virtual sal_Bool SAL_CALL hasElements() override
Definition: linkuno.cxx:1586
virtual OUString SAL_CALL getSourceArea() override
Definition: linkuno.cxx:843
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getAllRows() override
Definition: linkuno.cxx:1450
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL getResults() override
Definition: linkuno.cxx:1120
OUString aName
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
std::shared_ptr< Table > TableTypeRef
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: linkuno.cxx:1291
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
Definition: linkuno.cxx:1646
ScExternalDocLinksObj(ScDocShell *pDocShell)
Definition: linkuno.cxx:1599
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: linkuno.cxx:714
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL refresh() override
Definition: linkuno.cxx:1079
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: linkuno.cxx:722
ScDocShell * mpDocShell
Definition: linkuno.hxx:388
OUString getFilterOptions() const
Definition: linkuno.cxx:323
ScExternalDocLinkObj(ScDocShell *pDocShell, ScExternalRefManager *pRefMgr, sal_uInt16 nFileId)
Definition: linkuno.cxx:1484
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
ScExternalRefCache::TableTypeRef mpTable
Definition: linkuno.hxx:389
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: linkuno.cxx:374
virtual ~ScSheetLinkObj() override
Definition: linkuno.cxx:84
sal_Int32 getRefreshDelay() const
Definition: linkuno.cxx:825
virtual void SAL_CALL setDestArea(const css::table::CellRangeAddress &aDestArea) override
Definition: linkuno.cxx:869
ScTableLink * GetLink_Impl() const
Definition: linkuno.cxx:109
ScExternalSheetCacheObj(ScDocShell *pDocShell, ScExternalRefCache::TableTypeRef const &pTable, size_t nIndex)
Definition: linkuno.cxx:1384
This is the UNO API equivalent of ScExternalRefManager.
Definition: linkuno.hxx:430
virtual sal_Int32 SAL_CALL getCount() override
Definition: linkuno.cxx:1250
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: linkuno.cxx:240
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: linkuno.cxx:1507
virtual void SAL_CALL refresh() override
Definition: linkuno.cxx:664
virtual void SAL_CALL setResults(const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aResults) override
Definition: linkuno.cxx:1154
void setFilterOptions(const OUString &FilterOptions)
Definition: linkuno.cxx:333
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
Definition: linkuno.cxx:1619
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
ScExternalRefManager * mpRefMgr
Definition: linkuno.hxx:425
sal_uInt16 mnFileId
Definition: linkuno.hxx:426
ScAreaLinksObj(ScDocShell *pDocSh)
Definition: linkuno.cxx:875
virtual sal_Int32 SAL_CALL getCount() override
Definition: linkuno.cxx:443
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: linkuno.cxx:1010
ScSheetLinksObj(ScDocShell *pDocSh)
Definition: linkuno.cxx:360
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
void Refreshed_Impl()
Definition: linkuno.cxx:181
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual OUString SAL_CALL getName() override
Definition: linkuno.cxx:1039
OUString aAppl
Definition: linkuno.hxx:278
virtual css::uno::Type SAL_CALL getElementType() override
Definition: linkuno.cxx:1269
struct _ADOIndex Index
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getAllColumns(sal_Int32 nRow) override
Definition: linkuno.cxx:1463
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: linkuno.cxx:1520
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: linkuno.cxx:1552
ScAreaLinkObj(ScDocShell *pDocSh, size_t nP)
Definition: linkuno.cxx:573
virtual void SAL_CALL removeByIndex(sal_Int32 nIndex) override
Definition: linkuno.cxx:928
void Modify_Impl(const OUString *pNewFile, const OUString *pNewFilter, const OUString *pNewOptions, const OUString *pNewSource, const css::table::CellRangeAddress *pNewDest)
Definition: linkuno.cxx:613
virtual sal_Int32 SAL_CALL getTokenIndex() override
Definition: linkuno.cxx:1594
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
Definition: linkuno.cxx:1259
virtual OUString SAL_CALL getName() override
Definition: linkuno.cxx:130
ScExternalRefManager * mpRefMgr
Definition: linkuno.hxx:462