Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef SC_DOCUNO_HXX
30 : : #define SC_DOCUNO_HXX
31 : :
32 : : #include "address.hxx"
33 : : #include <sfx2/sfxbasemodel.hxx>
34 : : #include <svl/lstner.hxx>
35 : : #include <svx/fmdmod.hxx>
36 : : #include <com/sun/star/view/XRenderable.hpp>
37 : : #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
38 : : #include <com/sun/star/document/XActionLockable.hpp>
39 : : #include <com/sun/star/document/XLinkTargetSupplier.hpp>
40 : : #include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
41 : : #include <com/sun/star/drawing/XDrawPages.hpp>
42 : : #include <com/sun/star/sheet/XGoalSeek.hpp>
43 : : #include <com/sun/star/sheet/XCalculatable.hpp>
44 : : #include <com/sun/star/sheet/XScenarios.hpp>
45 : : #include <com/sun/star/sheet/XConsolidatable.hpp>
46 : : #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
47 : : #include <com/sun/star/sheet/XSpreadsheets2.hpp>
48 : : #include <com/sun/star/sheet/XDocumentAuditing.hpp>
49 : : #include <com/sun/star/lang/XServiceInfo.hpp>
50 : : #include <com/sun/star/util/XProtectable.hpp>
51 : : #include <com/sun/star/container/XEnumerationAccess.hpp>
52 : : #include <com/sun/star/table/XTableColumns.hpp>
53 : : #include <com/sun/star/table/XTableRows.hpp>
54 : : #include <com/sun/star/sheet/XSheetAnnotations.hpp>
55 : : #include <com/sun/star/beans/XPropertySet.hpp>
56 : : #include <com/sun/star/sheet/XCellRangesAccess.hpp>
57 : : #include <com/sun/star/util/XChangesNotifier.hpp>
58 : : #include <cppuhelper/implbase2.hxx>
59 : : #include <cppuhelper/implbase3.hxx>
60 : : #include <cppuhelper/implbase4.hxx>
61 : : #include <cppuhelper/implbase5.hxx>
62 : : #include <cppuhelper/interfacecontainer.h>
63 : : #include <svl/itemprop.hxx>
64 : : #include "drwlayer.hxx"
65 : :
66 : : class ScDocShell;
67 : : class ScAnnotationObj;
68 : : class ScMarkData;
69 : : class ScPrintFuncCache;
70 : : class ScPrintSelectionStatus;
71 : : class ScTableColumnObj;
72 : : class ScTableRowObj;
73 : : class ScTableSheetObj;
74 : : class ScRangeList;
75 : : class ScPrintUIOptions;
76 : : class ScSheetSaveData;
77 : :
78 : : class SC_DLLPUBLIC ScModelObj : public SfxBaseModel,
79 : : public com::sun::star::sheet::XSpreadsheetDocument,
80 : : public com::sun::star::document::XActionLockable,
81 : : public com::sun::star::sheet::XCalculatable,
82 : : public com::sun::star::util::XProtectable,
83 : : public com::sun::star::drawing::XDrawPagesSupplier,
84 : : public com::sun::star::sheet::XGoalSeek,
85 : : public com::sun::star::sheet::XConsolidatable,
86 : : public com::sun::star::sheet::XDocumentAuditing,
87 : : public com::sun::star::style::XStyleFamiliesSupplier,
88 : : public com::sun::star::view::XRenderable,
89 : : public com::sun::star::document::XLinkTargetSupplier,
90 : : public com::sun::star::beans::XPropertySet,
91 : : public SvxFmMSFactory, // derived from XMultiServiceFactory
92 : : public com::sun::star::lang::XServiceInfo,
93 : : public ::com::sun::star::util::XChangesNotifier
94 : : {
95 : : private:
96 : : SfxItemPropertySet aPropSet;
97 : : ScDocShell* pDocShell;
98 : : ScPrintFuncCache* pPrintFuncCache;
99 : : ScPrintUIOptions* pPrinterOptions;
100 : : com::sun::star::uno::Reference<com::sun::star::uno::XAggregation> xNumberAgg;
101 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawGradTab;
102 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawHatchTab;
103 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawBitmapTab;
104 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawTrGradTab;
105 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawMarkerTab;
106 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xDrawDashTab;
107 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xChartDataProv;
108 : : com::sun::star::uno::Reference<com::sun::star::uno::XInterface> xObjProvider;
109 : :
110 : : ::cppu::OInterfaceContainerHelper maChangesListeners;
111 : :
112 : : bool FillRenderMarkData( const com::sun::star::uno::Any& aSelection,
113 : : const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rOptions,
114 : : ScMarkData& rMark, ScPrintSelectionStatus& rStatus, String& rPagesStr ) const;
115 : : com::sun::star::uno::Reference<com::sun::star::uno::XAggregation> GetFormatter();
116 : : void HandleCalculateEvents();
117 : :
118 : : rtl::OUString maBuildId;
119 : : protected:
120 : 0 : const SfxItemPropertySet& GetPropertySet() const { return aPropSet; }
121 : :
122 : : public:
123 : : ScModelObj(ScDocShell* pDocSh);
124 : : virtual ~ScModelObj();
125 : :
126 : : // create ScModelObj and set at pDocSh (SetBaseModel)
127 : : static void CreateAndSet(ScDocShell* pDocSh);
128 : :
129 : : ScDocument* GetDocument() const;
130 : : SfxObjectShell* GetEmbeddedObject() const;
131 : :
132 : : void UpdateAllRowHeights( const ScMarkData* pTabMark = NULL );
133 : :
134 : : void BeforeXMLLoading();
135 : : void AfterXMLLoading(sal_Bool bRet);
136 : : ScSheetSaveData* GetSheetSaveData();
137 : :
138 : : void RepaintRange( const ScRange& rRange );
139 : :
140 : : bool HasChangesListeners() const;
141 : :
142 : : void NotifyChanges( const ::rtl::OUString& rOperation, const ScRangeList& rRanges,
143 : : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProperties =
144 : : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >() );
145 : :
146 : : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
147 : : const ::com::sun::star::uno::Type & rType )
148 : : throw(::com::sun::star::uno::RuntimeException);
149 : : virtual void SAL_CALL acquire() throw();
150 : : virtual void SAL_CALL release() throw();
151 : :
152 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
153 : :
154 : : // XSpreadsheetDocument
155 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheets > SAL_CALL
156 : : getSheets() throw(::com::sun::star::uno::RuntimeException);
157 : :
158 : : // XStyleFamiliesSupplier
159 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL
160 : : getStyleFamilies() throw(::com::sun::star::uno::RuntimeException);
161 : :
162 : : // XRenderable
163 : : virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& aSelection,
164 : : const ::com::sun::star::uno::Sequence<
165 : : ::com::sun::star::beans::PropertyValue >& xOptions )
166 : : throw (::com::sun::star::lang::IllegalArgumentException,
167 : : ::com::sun::star::uno::RuntimeException);
168 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
169 : : getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection,
170 : : const ::com::sun::star::uno::Sequence<
171 : : ::com::sun::star::beans::PropertyValue >& xOptions )
172 : : throw (::com::sun::star::lang::IllegalArgumentException,
173 : : ::com::sun::star::uno::RuntimeException);
174 : : virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection,
175 : : const ::com::sun::star::uno::Sequence<
176 : : ::com::sun::star::beans::PropertyValue >& xOptions )
177 : : throw (::com::sun::star::lang::IllegalArgumentException,
178 : : ::com::sun::star::uno::RuntimeException);
179 : :
180 : : // XLinkTargetSupplier
181 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL
182 : : getLinks() throw(::com::sun::star::uno::RuntimeException);
183 : :
184 : : // XActionLockable
185 : : virtual sal_Bool SAL_CALL isActionLocked() throw(::com::sun::star::uno::RuntimeException);
186 : : virtual void SAL_CALL addActionLock() throw(::com::sun::star::uno::RuntimeException);
187 : : virtual void SAL_CALL removeActionLock() throw(::com::sun::star::uno::RuntimeException);
188 : : virtual void SAL_CALL setActionLocks( sal_Int16 nLock )
189 : : throw(::com::sun::star::uno::RuntimeException);
190 : : virtual sal_Int16 SAL_CALL resetActionLocks() throw(::com::sun::star::uno::RuntimeException);
191 : :
192 : : virtual void SAL_CALL lockControllers() throw (::com::sun::star::uno::RuntimeException);
193 : : virtual void SAL_CALL unlockControllers() throw (::com::sun::star::uno::RuntimeException);
194 : :
195 : : // XCalculatable
196 : : virtual void SAL_CALL calculate() throw(::com::sun::star::uno::RuntimeException);
197 : : virtual void SAL_CALL calculateAll() throw(::com::sun::star::uno::RuntimeException);
198 : : virtual sal_Bool SAL_CALL isAutomaticCalculationEnabled()
199 : : throw(::com::sun::star::uno::RuntimeException);
200 : : virtual void SAL_CALL enableAutomaticCalculation( sal_Bool bEnabled )
201 : : throw(::com::sun::star::uno::RuntimeException);
202 : :
203 : : // XProtectable
204 : : virtual void SAL_CALL protect( const ::rtl::OUString& aPassword )
205 : : throw(::com::sun::star::uno::RuntimeException);
206 : : virtual void SAL_CALL unprotect( const ::rtl::OUString& aPassword )
207 : : throw(::com::sun::star::lang::IllegalArgumentException,
208 : : ::com::sun::star::uno::RuntimeException);
209 : : virtual sal_Bool SAL_CALL isProtected() throw(::com::sun::star::uno::RuntimeException);
210 : :
211 : : // XDrawPagesSupplier
212 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPages > SAL_CALL
213 : : getDrawPages() throw(::com::sun::star::uno::RuntimeException);
214 : :
215 : : // XGoalSeek
216 : : virtual ::com::sun::star::sheet::GoalResult SAL_CALL seekGoal(
217 : : const ::com::sun::star::table::CellAddress& aFormulaPosition,
218 : : const ::com::sun::star::table::CellAddress& aVariablePosition,
219 : : const ::rtl::OUString& aGoalValue )
220 : : throw(::com::sun::star::uno::RuntimeException);
221 : :
222 : : // XConsolidatable
223 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XConsolidationDescriptor >
224 : : SAL_CALL createConsolidationDescriptor( sal_Bool bEmpty )
225 : : throw(::com::sun::star::uno::RuntimeException);
226 : : virtual void SAL_CALL consolidate( const ::com::sun::star::uno::Reference<
227 : : ::com::sun::star::sheet::XConsolidationDescriptor >& xDescriptor )
228 : : throw(::com::sun::star::uno::RuntimeException);
229 : :
230 : : // XDocumentAuditing
231 : : virtual void SAL_CALL refreshArrows() throw(::com::sun::star::uno::RuntimeException);
232 : :
233 : : // XViewDataSupplier
234 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess > SAL_CALL getViewData( )
235 : : throw (::com::sun::star::uno::RuntimeException);
236 : :
237 : : // XPropertySet
238 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
239 : : SAL_CALL getPropertySetInfo()
240 : : throw(::com::sun::star::uno::RuntimeException);
241 : : virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
242 : : const ::com::sun::star::uno::Any& aValue )
243 : : throw(::com::sun::star::beans::UnknownPropertyException,
244 : : ::com::sun::star::beans::PropertyVetoException,
245 : : ::com::sun::star::lang::IllegalArgumentException,
246 : : ::com::sun::star::lang::WrappedTargetException,
247 : : ::com::sun::star::uno::RuntimeException);
248 : : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
249 : : const ::rtl::OUString& PropertyName )
250 : : throw(::com::sun::star::beans::UnknownPropertyException,
251 : : ::com::sun::star::lang::WrappedTargetException,
252 : : ::com::sun::star::uno::RuntimeException);
253 : : virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
254 : : const ::com::sun::star::uno::Reference<
255 : : ::com::sun::star::beans::XPropertyChangeListener >& xListener )
256 : : throw(::com::sun::star::beans::UnknownPropertyException,
257 : : ::com::sun::star::lang::WrappedTargetException,
258 : : ::com::sun::star::uno::RuntimeException);
259 : : virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
260 : : const ::com::sun::star::uno::Reference<
261 : : ::com::sun::star::beans::XPropertyChangeListener >& aListener )
262 : : throw(::com::sun::star::beans::UnknownPropertyException,
263 : : ::com::sun::star::lang::WrappedTargetException,
264 : : ::com::sun::star::uno::RuntimeException);
265 : : virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
266 : : const ::com::sun::star::uno::Reference<
267 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
268 : : throw(::com::sun::star::beans::UnknownPropertyException,
269 : : ::com::sun::star::lang::WrappedTargetException,
270 : : ::com::sun::star::uno::RuntimeException);
271 : : virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
272 : : const ::com::sun::star::uno::Reference<
273 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
274 : : throw(::com::sun::star::beans::UnknownPropertyException,
275 : : ::com::sun::star::lang::WrappedTargetException,
276 : : ::com::sun::star::uno::RuntimeException);
277 : :
278 : : // XMultiServiceFactory
279 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
280 : : createInstance( const ::rtl::OUString& aServiceSpecifier )
281 : : throw(::com::sun::star::uno::Exception,
282 : : ::com::sun::star::uno::RuntimeException);
283 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
284 : : createInstanceWithArguments( const ::rtl::OUString& ServiceSpecifier,
285 : : const ::com::sun::star::uno::Sequence<
286 : : ::com::sun::star::uno::Any >& Arguments )
287 : : throw(::com::sun::star::uno::Exception,
288 : : ::com::sun::star::uno::RuntimeException);
289 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableServiceNames()
290 : : throw(::com::sun::star::uno::RuntimeException);
291 : :
292 : : // XServiceInfo
293 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
294 : : throw(::com::sun::star::uno::RuntimeException);
295 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
296 : : throw(::com::sun::star::uno::RuntimeException);
297 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
298 : : throw(::com::sun::star::uno::RuntimeException);
299 : :
300 : : // XUnoTunnel
301 : : virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
302 : : sal_Int8 >& aIdentifier )
303 : : throw(::com::sun::star::uno::RuntimeException);
304 : :
305 : : static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
306 : : static ScModelObj* getImplementation( const com::sun::star::uno::Reference<
307 : : com::sun::star::uno::XInterface> xObj );
308 : :
309 : : // XTypeProvider
310 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
311 : : throw(::com::sun::star::uno::RuntimeException);
312 : : virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
313 : : throw(::com::sun::star::uno::RuntimeException);
314 : :
315 : : // XChangesNotifier
316 : : virtual void SAL_CALL addChangesListener( const ::com::sun::star::uno::Reference<
317 : : ::com::sun::star::util::XChangesListener >& aListener )
318 : : throw (::com::sun::star::uno::RuntimeException);
319 : : virtual void SAL_CALL removeChangesListener( const ::com::sun::star::uno::Reference<
320 : : ::com::sun::star::util::XChangesListener >& aListener )
321 : : throw (::com::sun::star::uno::RuntimeException);
322 : : };
323 : :
324 : :
325 : : class ScDrawPagesObj : public cppu::WeakImplHelper2<
326 : : com::sun::star::drawing::XDrawPages,
327 : : com::sun::star::lang::XServiceInfo>,
328 : : public SfxListener
329 : : {
330 : : private:
331 : : ScDocShell* pDocShell;
332 : :
333 : : ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >
334 : : GetObjectByIndex_Impl(sal_Int32 nIndex) const;
335 : :
336 : : public:
337 : : ScDrawPagesObj(ScDocShell* pDocSh);
338 : : virtual ~ScDrawPagesObj();
339 : :
340 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
341 : :
342 : : // XDrawPages
343 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL
344 : : insertNewByIndex( sal_Int32 nIndex )
345 : : throw(::com::sun::star::uno::RuntimeException);
346 : : virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference<
347 : : ::com::sun::star::drawing::XDrawPage >& xPage )
348 : : throw(::com::sun::star::uno::RuntimeException);
349 : :
350 : : // XIndexAccess
351 : : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
352 : : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
353 : : throw(::com::sun::star::lang::IndexOutOfBoundsException,
354 : : ::com::sun::star::lang::WrappedTargetException,
355 : : ::com::sun::star::uno::RuntimeException);
356 : :
357 : : // XElementAccess
358 : : virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
359 : : throw(::com::sun::star::uno::RuntimeException);
360 : : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
361 : :
362 : : // XServiceInfo
363 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
364 : : throw(::com::sun::star::uno::RuntimeException);
365 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
366 : : throw(::com::sun::star::uno::RuntimeException);
367 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
368 : : throw(::com::sun::star::uno::RuntimeException);
369 : : };
370 : :
371 : :
372 : : class ScTableSheetsObj : public cppu::WeakImplHelper5<
373 : : com::sun::star::sheet::XSpreadsheets2,
374 : : com::sun::star::sheet::XCellRangesAccess,
375 : : com::sun::star::container::XEnumerationAccess,
376 : : com::sun::star::container::XIndexAccess,
377 : : com::sun::star::lang::XServiceInfo>,
378 : : public SfxListener
379 : : {
380 : : private:
381 : : ScDocShell* pDocShell;
382 : :
383 : : ScTableSheetObj* GetObjectByIndex_Impl(sal_Int32 nIndex) const;
384 : : ScTableSheetObj* GetObjectByName_Impl(const ::rtl::OUString& aName) const;
385 : :
386 : : public:
387 : : ScTableSheetsObj(ScDocShell* pDocSh);
388 : : virtual ~ScTableSheetsObj();
389 : :
390 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
391 : :
392 : : // XSpreadsheets
393 : : virtual void SAL_CALL insertNewByName( const ::rtl::OUString& aName, sal_Int16 nPosition )
394 : : throw(::com::sun::star::uno::RuntimeException);
395 : : virtual void SAL_CALL moveByName( const ::rtl::OUString& aName, sal_Int16 nDestination )
396 : : throw(::com::sun::star::uno::RuntimeException);
397 : : virtual void SAL_CALL copyByName( const ::rtl::OUString& aName,
398 : : const ::rtl::OUString& aCopy, sal_Int16 nDestination )
399 : : throw(::com::sun::star::uno::RuntimeException);
400 : :
401 : : // XSpreadsheets2
402 : : virtual sal_Int32 SAL_CALL importSheet(
403 : : const ::com::sun::star::uno::Reference <
404 : : ::com::sun::star::sheet::XSpreadsheetDocument > & xDocSrc,
405 : : const rtl::OUString& srcName,
406 : : const sal_Int32 nDestPosition)
407 : : throw(::com::sun::star::lang::IllegalArgumentException,
408 : : ::com::sun::star::lang::IndexOutOfBoundsException,
409 : : ::com::sun::star::uno::RuntimeException);
410 : :
411 : : // XCellRangesAccess
412 : :
413 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCell >
414 : : SAL_CALL getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow, sal_Int32 nSheet )
415 : : throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
416 : :
417 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange >
418 : : SAL_CALL getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom, sal_Int32 nSheet )
419 : : throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
420 : :
421 : : virtual ::com::sun::star::uno::Sequence < ::com::sun::star::uno::Reference< ::com::sun::star::table::XCellRange > >
422 : : SAL_CALL getCellRangesByName( const ::rtl::OUString& aRange )
423 : : throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
424 : :
425 : : // XNameContainer
426 : : virtual void SAL_CALL insertByName( const ::rtl::OUString& aName,
427 : : const ::com::sun::star::uno::Any& aElement )
428 : : throw(::com::sun::star::lang::IllegalArgumentException,
429 : : ::com::sun::star::container::ElementExistException,
430 : : ::com::sun::star::lang::WrappedTargetException,
431 : : ::com::sun::star::uno::RuntimeException);
432 : : virtual void SAL_CALL removeByName( const ::rtl::OUString& Name )
433 : : throw(::com::sun::star::container::NoSuchElementException,
434 : : ::com::sun::star::lang::WrappedTargetException,
435 : : ::com::sun::star::uno::RuntimeException);
436 : :
437 : : // XNameReplace
438 : : virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName,
439 : : const ::com::sun::star::uno::Any& aElement )
440 : : throw(::com::sun::star::lang::IllegalArgumentException,
441 : : ::com::sun::star::container::NoSuchElementException,
442 : : ::com::sun::star::lang::WrappedTargetException,
443 : : ::com::sun::star::uno::RuntimeException);
444 : :
445 : : // XEnumerationAccess
446 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
447 : : createEnumeration() throw(::com::sun::star::uno::RuntimeException);
448 : :
449 : : // XElementAccess
450 : : virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
451 : : throw(::com::sun::star::uno::RuntimeException);
452 : : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
453 : :
454 : : // XIndexAccess
455 : : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
456 : : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
457 : : throw(::com::sun::star::lang::IndexOutOfBoundsException,
458 : : ::com::sun::star::lang::WrappedTargetException,
459 : : ::com::sun::star::uno::RuntimeException);
460 : :
461 : : // XNameAccess
462 : : virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
463 : : throw(::com::sun::star::container::NoSuchElementException,
464 : : ::com::sun::star::lang::WrappedTargetException,
465 : : ::com::sun::star::uno::RuntimeException);
466 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
467 : : throw(::com::sun::star::uno::RuntimeException);
468 : : virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
469 : : throw(::com::sun::star::uno::RuntimeException);
470 : :
471 : : // XServiceInfo
472 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
473 : : throw(::com::sun::star::uno::RuntimeException);
474 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
475 : : throw(::com::sun::star::uno::RuntimeException);
476 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
477 : : throw(::com::sun::star::uno::RuntimeException);
478 : : };
479 : :
480 : :
481 : : class ScTableColumnsObj : public cppu::WeakImplHelper5<
482 : : com::sun::star::table::XTableColumns,
483 : : com::sun::star::container::XEnumerationAccess,
484 : : com::sun::star::container::XNameAccess,
485 : : com::sun::star::beans::XPropertySet,
486 : : com::sun::star::lang::XServiceInfo>,
487 : : public SfxListener
488 : : {
489 : : private:
490 : : ScDocShell* pDocShell;
491 : : SCTAB nTab;
492 : : SCCOL nStartCol;
493 : : SCCOL nEndCol;
494 : :
495 : : ScTableColumnObj* GetObjectByIndex_Impl(sal_Int32 nIndex) const;
496 : : ScTableColumnObj* GetObjectByName_Impl(const ::rtl::OUString& aName) const;
497 : :
498 : : public:
499 : : ScTableColumnsObj(ScDocShell* pDocSh, SCTAB nT,
500 : : SCCOL nSC, SCCOL nEC);
501 : : virtual ~ScTableColumnsObj();
502 : :
503 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
504 : :
505 : : // XTableColumns
506 : : virtual void SAL_CALL insertByIndex( sal_Int32 nIndex, sal_Int32 nCount )
507 : : throw(::com::sun::star::uno::RuntimeException);
508 : : virtual void SAL_CALL removeByIndex( sal_Int32 nIndex, sal_Int32 nCount )
509 : : throw(::com::sun::star::uno::RuntimeException);
510 : :
511 : : // XNameAccess
512 : : virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
513 : : throw(::com::sun::star::container::NoSuchElementException,
514 : : ::com::sun::star::lang::WrappedTargetException,
515 : : ::com::sun::star::uno::RuntimeException);
516 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
517 : : throw(::com::sun::star::uno::RuntimeException);
518 : : virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
519 : : throw(::com::sun::star::uno::RuntimeException);
520 : :
521 : : // XIndexAccess
522 : : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
523 : : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
524 : : throw(::com::sun::star::lang::IndexOutOfBoundsException,
525 : : ::com::sun::star::lang::WrappedTargetException,
526 : : ::com::sun::star::uno::RuntimeException);
527 : :
528 : : // XEnumerationAccess
529 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
530 : : createEnumeration() throw(::com::sun::star::uno::RuntimeException);
531 : :
532 : : // XElementAccess
533 : : virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
534 : : throw(::com::sun::star::uno::RuntimeException);
535 : : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
536 : :
537 : : // XPropertySet
538 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
539 : : SAL_CALL getPropertySetInfo()
540 : : throw(::com::sun::star::uno::RuntimeException);
541 : : virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
542 : : const ::com::sun::star::uno::Any& aValue )
543 : : throw(::com::sun::star::beans::UnknownPropertyException,
544 : : ::com::sun::star::beans::PropertyVetoException,
545 : : ::com::sun::star::lang::IllegalArgumentException,
546 : : ::com::sun::star::lang::WrappedTargetException,
547 : : ::com::sun::star::uno::RuntimeException);
548 : : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
549 : : const ::rtl::OUString& PropertyName )
550 : : throw(::com::sun::star::beans::UnknownPropertyException,
551 : : ::com::sun::star::lang::WrappedTargetException,
552 : : ::com::sun::star::uno::RuntimeException);
553 : : virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
554 : : const ::com::sun::star::uno::Reference<
555 : : ::com::sun::star::beans::XPropertyChangeListener >& xListener )
556 : : throw(::com::sun::star::beans::UnknownPropertyException,
557 : : ::com::sun::star::lang::WrappedTargetException,
558 : : ::com::sun::star::uno::RuntimeException);
559 : : virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
560 : : const ::com::sun::star::uno::Reference<
561 : : ::com::sun::star::beans::XPropertyChangeListener >& aListener )
562 : : throw(::com::sun::star::beans::UnknownPropertyException,
563 : : ::com::sun::star::lang::WrappedTargetException,
564 : : ::com::sun::star::uno::RuntimeException);
565 : : virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
566 : : const ::com::sun::star::uno::Reference<
567 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
568 : : throw(::com::sun::star::beans::UnknownPropertyException,
569 : : ::com::sun::star::lang::WrappedTargetException,
570 : : ::com::sun::star::uno::RuntimeException);
571 : : virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
572 : : const ::com::sun::star::uno::Reference<
573 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
574 : : throw(::com::sun::star::beans::UnknownPropertyException,
575 : : ::com::sun::star::lang::WrappedTargetException,
576 : : ::com::sun::star::uno::RuntimeException);
577 : :
578 : : // XServiceInfo
579 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
580 : : throw(::com::sun::star::uno::RuntimeException);
581 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
582 : : throw(::com::sun::star::uno::RuntimeException);
583 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
584 : : throw(::com::sun::star::uno::RuntimeException);
585 : : };
586 : :
587 : :
588 : : class ScTableRowsObj : public cppu::WeakImplHelper4<
589 : : com::sun::star::table::XTableRows,
590 : : com::sun::star::container::XEnumerationAccess,
591 : : com::sun::star::beans::XPropertySet,
592 : : com::sun::star::lang::XServiceInfo>,
593 : : public SfxListener
594 : : {
595 : : private:
596 : : ScDocShell* pDocShell;
597 : : SCTAB nTab;
598 : : SCROW nStartRow;
599 : : SCROW nEndRow;
600 : :
601 : : ScTableRowObj* GetObjectByIndex_Impl(sal_Int32 nIndex) const;
602 : :
603 : : public:
604 : : ScTableRowsObj(ScDocShell* pDocSh, SCTAB nT,
605 : : SCROW nSR, SCROW nER);
606 : : virtual ~ScTableRowsObj();
607 : :
608 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
609 : :
610 : : // XTableRows
611 : : virtual void SAL_CALL insertByIndex( sal_Int32 nIndex, sal_Int32 nCount )
612 : : throw(::com::sun::star::uno::RuntimeException);
613 : : virtual void SAL_CALL removeByIndex( sal_Int32 nIndex, sal_Int32 nCount )
614 : : throw(::com::sun::star::uno::RuntimeException);
615 : :
616 : : // XIndexAccess
617 : : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
618 : : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
619 : : throw(::com::sun::star::lang::IndexOutOfBoundsException,
620 : : ::com::sun::star::lang::WrappedTargetException,
621 : : ::com::sun::star::uno::RuntimeException);
622 : :
623 : : // XEnumerationAccess
624 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
625 : : createEnumeration() throw(::com::sun::star::uno::RuntimeException);
626 : :
627 : : // XElementAccess
628 : : virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
629 : : throw(::com::sun::star::uno::RuntimeException);
630 : : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
631 : :
632 : : // XPropertySet
633 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
634 : : SAL_CALL getPropertySetInfo()
635 : : throw(::com::sun::star::uno::RuntimeException);
636 : : virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
637 : : const ::com::sun::star::uno::Any& aValue )
638 : : throw(::com::sun::star::beans::UnknownPropertyException,
639 : : ::com::sun::star::beans::PropertyVetoException,
640 : : ::com::sun::star::lang::IllegalArgumentException,
641 : : ::com::sun::star::lang::WrappedTargetException,
642 : : ::com::sun::star::uno::RuntimeException);
643 : : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
644 : : const ::rtl::OUString& PropertyName )
645 : : throw(::com::sun::star::beans::UnknownPropertyException,
646 : : ::com::sun::star::lang::WrappedTargetException,
647 : : ::com::sun::star::uno::RuntimeException);
648 : : virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
649 : : const ::com::sun::star::uno::Reference<
650 : : ::com::sun::star::beans::XPropertyChangeListener >& xListener )
651 : : throw(::com::sun::star::beans::UnknownPropertyException,
652 : : ::com::sun::star::lang::WrappedTargetException,
653 : : ::com::sun::star::uno::RuntimeException);
654 : : virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
655 : : const ::com::sun::star::uno::Reference<
656 : : ::com::sun::star::beans::XPropertyChangeListener >& aListener )
657 : : throw(::com::sun::star::beans::UnknownPropertyException,
658 : : ::com::sun::star::lang::WrappedTargetException,
659 : : ::com::sun::star::uno::RuntimeException);
660 : : virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
661 : : const ::com::sun::star::uno::Reference<
662 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
663 : : throw(::com::sun::star::beans::UnknownPropertyException,
664 : : ::com::sun::star::lang::WrappedTargetException,
665 : : ::com::sun::star::uno::RuntimeException);
666 : : virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
667 : : const ::com::sun::star::uno::Reference<
668 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
669 : : throw(::com::sun::star::beans::UnknownPropertyException,
670 : : ::com::sun::star::lang::WrappedTargetException,
671 : : ::com::sun::star::uno::RuntimeException);
672 : :
673 : : // XServiceInfo
674 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
675 : : throw(::com::sun::star::uno::RuntimeException);
676 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
677 : : throw(::com::sun::star::uno::RuntimeException);
678 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
679 : : throw(::com::sun::star::uno::RuntimeException);
680 : : };
681 : :
682 : :
683 : : class ScSpreadsheetSettingsObj : public cppu::WeakImplHelper2<
684 : : com::sun::star::beans::XPropertySet,
685 : : com::sun::star::lang::XServiceInfo>,
686 : : public SfxListener
687 : : {
688 : : private:
689 : : ScDocShell* pDocShell;
690 : :
691 : : public:
692 : : virtual ~ScSpreadsheetSettingsObj();
693 : :
694 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
695 : :
696 : : // XPropertySet
697 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
698 : : SAL_CALL getPropertySetInfo()
699 : : throw(::com::sun::star::uno::RuntimeException);
700 : : virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
701 : : const ::com::sun::star::uno::Any& aValue )
702 : : throw(::com::sun::star::beans::UnknownPropertyException,
703 : : ::com::sun::star::beans::PropertyVetoException,
704 : : ::com::sun::star::lang::IllegalArgumentException,
705 : : ::com::sun::star::lang::WrappedTargetException,
706 : : ::com::sun::star::uno::RuntimeException);
707 : : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
708 : : const ::rtl::OUString& PropertyName )
709 : : throw(::com::sun::star::beans::UnknownPropertyException,
710 : : ::com::sun::star::lang::WrappedTargetException,
711 : : ::com::sun::star::uno::RuntimeException);
712 : : virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
713 : : const ::com::sun::star::uno::Reference<
714 : : ::com::sun::star::beans::XPropertyChangeListener >& xListener )
715 : : throw(::com::sun::star::beans::UnknownPropertyException,
716 : : ::com::sun::star::lang::WrappedTargetException,
717 : : ::com::sun::star::uno::RuntimeException);
718 : : virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
719 : : const ::com::sun::star::uno::Reference<
720 : : ::com::sun::star::beans::XPropertyChangeListener >& aListener )
721 : : throw(::com::sun::star::beans::UnknownPropertyException,
722 : : ::com::sun::star::lang::WrappedTargetException,
723 : : ::com::sun::star::uno::RuntimeException);
724 : : virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
725 : : const ::com::sun::star::uno::Reference<
726 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
727 : : throw(::com::sun::star::beans::UnknownPropertyException,
728 : : ::com::sun::star::lang::WrappedTargetException,
729 : : ::com::sun::star::uno::RuntimeException);
730 : : virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
731 : : const ::com::sun::star::uno::Reference<
732 : : ::com::sun::star::beans::XVetoableChangeListener >& aListener )
733 : : throw(::com::sun::star::beans::UnknownPropertyException,
734 : : ::com::sun::star::lang::WrappedTargetException,
735 : : ::com::sun::star::uno::RuntimeException);
736 : :
737 : : // XServiceInfo
738 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
739 : : throw(::com::sun::star::uno::RuntimeException);
740 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
741 : : throw(::com::sun::star::uno::RuntimeException);
742 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
743 : : throw(::com::sun::star::uno::RuntimeException);
744 : : };
745 : :
746 : :
747 : : class ScAnnotationsObj : public cppu::WeakImplHelper3<
748 : : com::sun::star::sheet::XSheetAnnotations,
749 : : com::sun::star::container::XEnumerationAccess,
750 : : com::sun::star::lang::XServiceInfo>,
751 : : public SfxListener
752 : : {
753 : : private:
754 : : ScDocShell* pDocShell;
755 : : SCTAB nTab; // Collection belongs to the sheet
756 : :
757 : : bool GetAddressByIndex_Impl( sal_Int32 nIndex, ScAddress& rPos ) const;
758 : : ScAnnotationObj* GetObjectByIndex_Impl( sal_Int32 nIndex ) const;
759 : :
760 : : public:
761 : : ScAnnotationsObj(ScDocShell* pDocSh, SCTAB nT);
762 : : virtual ~ScAnnotationsObj();
763 : :
764 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
765 : :
766 : : // XSheetAnnotations
767 : : virtual void SAL_CALL insertNew( const ::com::sun::star::table::CellAddress& aPosition,
768 : : const ::rtl::OUString& aText )
769 : : throw(::com::sun::star::uno::RuntimeException);
770 : : virtual void SAL_CALL removeByIndex( sal_Int32 nIndex )
771 : : throw(::com::sun::star::uno::RuntimeException);
772 : :
773 : : // XIndexAccess
774 : : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
775 : : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
776 : : throw(::com::sun::star::lang::IndexOutOfBoundsException,
777 : : ::com::sun::star::lang::WrappedTargetException,
778 : : ::com::sun::star::uno::RuntimeException);
779 : :
780 : : // XEnumerationAccess
781 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
782 : : createEnumeration() throw(::com::sun::star::uno::RuntimeException);
783 : :
784 : : // XElementAccess
785 : : virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
786 : : throw(::com::sun::star::uno::RuntimeException);
787 : : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
788 : :
789 : : // XServiceInfo
790 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
791 : : throw(::com::sun::star::uno::RuntimeException);
792 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
793 : : throw(::com::sun::star::uno::RuntimeException);
794 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
795 : : throw(::com::sun::star::uno::RuntimeException);
796 : : };
797 : :
798 : :
799 : : class ScScenariosObj : public cppu::WeakImplHelper4<
800 : : com::sun::star::sheet::XScenarios,
801 : : com::sun::star::container::XEnumerationAccess,
802 : : com::sun::star::container::XIndexAccess,
803 : : com::sun::star::lang::XServiceInfo>,
804 : : public SfxListener
805 : : {
806 : : private:
807 : : ScDocShell* pDocShell;
808 : : SCTAB nTab;
809 : :
810 : : sal_Bool GetScenarioIndex_Impl( const ::rtl::OUString& rName, SCTAB& rIndex );
811 : : ScTableSheetObj* GetObjectByIndex_Impl(sal_Int32 nIndex);
812 : : ScTableSheetObj* GetObjectByName_Impl(const ::rtl::OUString& aName);
813 : :
814 : : public:
815 : : ScScenariosObj(ScDocShell* pDocSh, SCTAB nT);
816 : : virtual ~ScScenariosObj();
817 : :
818 : : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
819 : :
820 : : // XScenarios
821 : : virtual void SAL_CALL addNewByName( const ::rtl::OUString& aName,
822 : : const ::com::sun::star::uno::Sequence<
823 : : ::com::sun::star::table::CellRangeAddress >& aRanges,
824 : : const ::rtl::OUString& aComment )
825 : : throw(::com::sun::star::uno::RuntimeException);
826 : : virtual void SAL_CALL removeByName( const ::rtl::OUString& aName )
827 : : throw(::com::sun::star::uno::RuntimeException);
828 : :
829 : : // XNameAccess
830 : : virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
831 : : throw(::com::sun::star::container::NoSuchElementException,
832 : : ::com::sun::star::lang::WrappedTargetException,
833 : : ::com::sun::star::uno::RuntimeException);
834 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
835 : : throw(::com::sun::star::uno::RuntimeException);
836 : : virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
837 : : throw(::com::sun::star::uno::RuntimeException);
838 : :
839 : : // XIndexAccess
840 : : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
841 : : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
842 : : throw(::com::sun::star::lang::IndexOutOfBoundsException,
843 : : ::com::sun::star::lang::WrappedTargetException,
844 : : ::com::sun::star::uno::RuntimeException);
845 : :
846 : : // XEnumerationAccess
847 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
848 : : createEnumeration() throw(::com::sun::star::uno::RuntimeException);
849 : :
850 : : // XElementAccess
851 : : virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
852 : : throw(::com::sun::star::uno::RuntimeException);
853 : : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
854 : :
855 : : // XServiceInfo
856 : : virtual ::rtl::OUString SAL_CALL getImplementationName()
857 : : throw(::com::sun::star::uno::RuntimeException);
858 : : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
859 : : throw(::com::sun::star::uno::RuntimeException);
860 : : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
861 : : throw(::com::sun::star::uno::RuntimeException);
862 : : };
863 : :
864 : :
865 : :
866 : :
867 : : #endif
868 : :
869 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|