Line data Source code
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 : #ifndef SD_UNO_MODEL_HXX
20 : #define SD_UNO_MODEL_HXX
21 :
22 : #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
23 : #include <com/sun/star/document/XLinkTargetSupplier.hpp>
24 : #include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
25 : #include <com/sun/star/drawing/XDrawPageSummarizer.hpp>
26 : #include <com/sun/star/drawing/XDrawPageDuplicator.hpp>
27 : #include <com/sun/star/drawing/XLayerSupplier.hpp>
28 : #include <com/sun/star/drawing/XMasterPagesSupplier.hpp>
29 : #include <com/sun/star/presentation/XPresentationSupplier.hpp>
30 : #include <com/sun/star/presentation/XCustomPresentationSupplier.hpp>
31 : #include <com/sun/star/drawing/XLayerManager.hpp>
32 : #include <com/sun/star/container/XNameContainer.hpp>
33 : #include <com/sun/star/presentation/XPresentation.hpp>
34 : #include <com/sun/star/lang/XServiceInfo.hpp>
35 : #include <com/sun/star/drawing/XDrawPages.hpp>
36 : #include <com/sun/star/ucb/XAnyCompareFactory.hpp>
37 : #include <com/sun/star/i18n/XForbiddenCharacters.hpp>
38 : #include <com/sun/star/presentation/XHandoutMasterSupplier.hpp>
39 : #include <com/sun/star/view/XRenderable.hpp>
40 : #include <com/sun/star/util/MeasureUnit.hpp>
41 :
42 : #include <rtl/ref.hxx>
43 :
44 : #include <svl/lstner.hxx>
45 : #include <sfx2/sfxbasemodel.hxx>
46 : #include <svx/fmdmod.hxx>
47 :
48 : #include <editeng/unoipset.hxx>
49 :
50 : #include <comphelper/servicehelper.hxx>
51 :
52 : class SdDrawDocument;
53 : class SdPage;
54 :
55 : namespace sd {
56 : class DrawDocShell;
57 : }
58 :
59 : extern ::rtl::OUString getPageApiName( SdPage* pPage );
60 : extern ::rtl::OUString getPageApiNameFromUiName( const String& rUIName );
61 :
62 : /***********************************************************************
63 : * *
64 : ***********************************************************************/
65 : class SdXImpressDocument : public SfxBaseModel, // implements SfxListener, OWEAKOBJECT & other
66 : public SvxFmMSFactory,
67 : public ::com::sun::star::drawing::XDrawPageDuplicator,
68 : public ::com::sun::star::drawing::XLayerSupplier,
69 : public ::com::sun::star::drawing::XMasterPagesSupplier,
70 : public ::com::sun::star::drawing::XDrawPagesSupplier,
71 : public ::com::sun::star::presentation::XPresentationSupplier,
72 : public ::com::sun::star::presentation::XCustomPresentationSupplier,
73 : public ::com::sun::star::document::XLinkTargetSupplier,
74 : public ::com::sun::star::beans::XPropertySet,
75 : public ::com::sun::star::style::XStyleFamiliesSupplier,
76 : public ::com::sun::star::lang::XServiceInfo,
77 : public ::com::sun::star::ucb::XAnyCompareFactory,
78 : public ::com::sun::star::presentation::XHandoutMasterSupplier,
79 : public ::com::sun::star::view::XRenderable
80 : {
81 : friend class SdDrawPagesAccess;
82 : friend class SdMasterPagesAccess;
83 : friend class SdLayerManager;
84 :
85 : private:
86 : ::sd::DrawDocShell* mpDocShell;
87 : SdDrawDocument* mpDoc;
88 : bool mbDisposed;
89 :
90 : SdPage* InsertSdPage( sal_uInt16 nPage, sal_Bool bDuplicate = sal_False ) throw();
91 :
92 : const sal_Bool mbImpressDoc;
93 : bool mbClipBoard;
94 :
95 : ::com::sun::star::uno::WeakReference< ::com::sun::star::drawing::XDrawPages > mxDrawPagesAccess;
96 : ::com::sun::star::uno::WeakReference< ::com::sun::star::drawing::XDrawPages > mxMasterPagesAccess;
97 : ::com::sun::star::uno::WeakReference< ::com::sun::star::container::XNameAccess > mxLayerManager;
98 : ::com::sun::star::uno::WeakReference< ::com::sun::star::container::XNameContainer > mxCustomPresentationAccess;
99 : ::com::sun::star::uno::WeakReference< ::com::sun::star::container::XNameAccess > mxStyleFamilies;
100 : ::com::sun::star::uno::WeakReference< ::com::sun::star::presentation::XPresentation > mxPresentation;
101 : ::com::sun::star::uno::WeakReference< ::com::sun::star::i18n::XForbiddenCharacters > mxForbidenCharacters;
102 : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > mxLinks;
103 :
104 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxDashTable;
105 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxGradientTable;
106 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxHatchTable;
107 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxBitmapTable;
108 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxTransGradientTable;
109 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxMarkerTable;
110 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxDrawingPool;
111 :
112 : const SvxItemPropertySet* mpPropSet;
113 :
114 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > maTypeSequence;
115 :
116 : rtl::OUString maBuildId;
117 :
118 : void initializeDocument();
119 : public:
120 : SdXImpressDocument( ::sd::DrawDocShell* pShell, bool bClipBoard = false ) throw();
121 : SdXImpressDocument( SdDrawDocument* pDoc, bool bClipBoard = false ) throw();
122 : virtual ~SdXImpressDocument() throw();
123 :
124 : static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument* pDoc );
125 :
126 : // intern
127 0 : virtual int operator==( const SdXImpressDocument& rModel ) const { return mpDoc == rModel.mpDoc; }
128 0 : virtual int operator!=( const SdXImpressDocument& rModel ) const { return mpDoc != rModel.mpDoc; }
129 :
130 69 : ::sd::DrawDocShell* GetDocShell() const { return mpDocShell; }
131 142 : SdDrawDocument* GetDoc() const { return mpDoc; }
132 9491 : sal_Bool IsImpressDocument() const { return mbImpressDoc; }
133 :
134 : void SetModified( sal_Bool bModified = sal_True ) throw();
135 :
136 : ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XForbiddenCharacters > getForbiddenCharsTable();
137 :
138 : // SfxListener
139 : virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
140 :
141 : UNO3_GETIMPLEMENTATION_DECL(SdXImpressDocument)
142 :
143 : // XInterface
144 : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
145 : virtual void SAL_CALL acquire() throw();
146 : virtual void SAL_CALL release() throw();
147 :
148 : // XModel
149 : virtual void SAL_CALL lockControllers( ) throw(::com::sun::star::uno::RuntimeException);
150 : virtual void SAL_CALL unlockControllers( ) throw(::com::sun::star::uno::RuntimeException);
151 : virtual sal_Bool SAL_CALL hasControllersLocked( ) throw(::com::sun::star::uno::RuntimeException);
152 : virtual ::com::sun::star::uno::Reference < ::com::sun::star::container::XIndexAccess > SAL_CALL getViewData() throw(::com::sun::star::uno::RuntimeException);
153 : virtual void SAL_CALL setViewData( const ::com::sun::star::uno::Reference < ::com::sun::star::container::XIndexAccess >& aData ) throw(::com::sun::star::uno::RuntimeException);
154 :
155 : // XTypeProvider
156 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
157 : virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
158 :
159 : // XDrawPageDuplicator
160 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL duplicate( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage ) throw(::com::sun::star::uno::RuntimeException);
161 :
162 : // XDrawPagesSupplier
163 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPages > SAL_CALL getDrawPages( ) throw(::com::sun::star::uno::RuntimeException);
164 :
165 : // XMasterPagesSupplier
166 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPages > SAL_CALL getMasterPages( ) throw(::com::sun::star::uno::RuntimeException);
167 :
168 : // XLayerManagerSupplier
169 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getLayerManager( ) throw(::com::sun::star::uno::RuntimeException);
170 :
171 : // XCustomPresentationSupplier
172 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SAL_CALL getCustomPresentations( ) throw(::com::sun::star::uno::RuntimeException);
173 :
174 : // XHandoutMasterSupplier
175 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL getHandoutMasterPage( ) throw (::com::sun::star::uno::RuntimeException);
176 :
177 : // XPresentationSupplier
178 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::presentation::XPresentation > SAL_CALL getPresentation( ) throw(::com::sun::star::uno::RuntimeException);
179 :
180 : // XMultiServiceFactory ( SvxFmMSFactory )
181 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const ::rtl::OUString& aServiceSpecifier ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
182 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
183 :
184 : // XServiceInfo
185 : virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
186 : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
187 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
188 :
189 : // XPropertySet
190 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
191 : virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
192 : virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
193 : virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
194 : virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
195 : virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
196 : virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
197 :
198 : // XLinkTargetSupplier
199 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getLinks( ) throw(::com::sun::star::uno::RuntimeException);
200 :
201 : // XStyleFamiliesSupplier
202 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getStyleFamilies( ) throw(::com::sun::star::uno::RuntimeException);
203 :
204 : // XAnyCompareFactory
205 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XAnyCompare > SAL_CALL createAnyCompareByName( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
206 :
207 : // XRenderable
208 : virtual sal_Int32 SAL_CALL getRendererCount( const ::com::sun::star::uno::Any& aSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
209 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getRenderer( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
210 : virtual void SAL_CALL render( sal_Int32 nRenderer, const ::com::sun::star::uno::Any& aSelection, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& xOptions ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
211 :
212 : // XComponent
213 :
214 : /** This dispose implementation releases the resources held by the
215 : called object and forwards the call to its base class.
216 : When close() has not yet been called then this is done first. As a
217 : consequence the implementation has to cope with being called twice
218 : and still has to forward the second call to the base class.
219 : See also comments of issue 27847.
220 : */
221 : virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
222 : };
223 :
224 : /***********************************************************************
225 : * *
226 : ***********************************************************************/
227 :
228 : #include <cppuhelper/implbase4.hxx>
229 :
230 : class SdDrawPagesAccess : public ::cppu::WeakImplHelper4< ::com::sun::star::drawing::XDrawPages, ::com::sun::star::container::XNameAccess, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::lang::XComponent >
231 : {
232 : private:
233 : SdXImpressDocument* mpModel;
234 :
235 : public:
236 : SdDrawPagesAccess( SdXImpressDocument& rMyModel ) throw();
237 : virtual ~SdDrawPagesAccess() throw();
238 :
239 : // XDrawPages
240 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL insertNewByIndex( sal_Int32 nIndex ) throw(::com::sun::star::uno::RuntimeException);
241 : virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage ) throw(::com::sun::star::uno::RuntimeException);
242 :
243 : // XNameAccess
244 : virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
245 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() throw(::com::sun::star::uno::RuntimeException);
246 : virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);
247 :
248 : // XIndexAccess
249 : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException) ;
250 : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
251 :
252 : // XElementAccess
253 : virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
254 : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
255 :
256 : // XServiceInfo
257 : virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
258 : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
259 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
260 :
261 : // XComponent
262 : virtual void SAL_CALL dispose( ) throw (::com::sun::star::uno::RuntimeException);
263 : virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
264 : virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
265 : };
266 :
267 : /***********************************************************************
268 : * *
269 : ***********************************************************************/
270 :
271 : #include <cppuhelper/implbase3.hxx>
272 :
273 : class SdMasterPagesAccess : public ::cppu::WeakImplHelper3< ::com::sun::star::drawing::XDrawPages, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::lang::XComponent >
274 : {
275 : private:
276 : SdXImpressDocument* mpModel;
277 :
278 : public:
279 : SdMasterPagesAccess( SdXImpressDocument& rMyModel ) throw();
280 : virtual ~SdMasterPagesAccess() throw();
281 :
282 : // XDrawPages
283 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL insertNewByIndex( sal_Int32 nIndex ) throw(::com::sun::star::uno::RuntimeException);
284 : virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage ) throw(::com::sun::star::uno::RuntimeException);
285 :
286 : // XIndexAccess
287 : virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException) ;
288 : virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
289 :
290 : // XElementAccess
291 : virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
292 : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
293 :
294 : // XServiceInfo
295 : virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
296 : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
297 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
298 :
299 : // XComponent
300 : virtual void SAL_CALL dispose( ) throw (::com::sun::star::uno::RuntimeException);
301 : virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
302 : virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
303 : };
304 :
305 : /***********************************************************************
306 : * *
307 : ***********************************************************************/
308 :
309 : class SdDocLinkTargets : public ::cppu::WeakImplHelper3< ::com::sun::star::container::XNameAccess,
310 : ::com::sun::star::lang::XServiceInfo , ::com::sun::star::lang::XComponent >
311 : {
312 : private:
313 : SdXImpressDocument* mpModel;
314 :
315 : public:
316 : SdDocLinkTargets( SdXImpressDocument& rMyModel ) throw();
317 : virtual ~SdDocLinkTargets() throw();
318 :
319 : // XNameAccess
320 : virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
321 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() throw(::com::sun::star::uno::RuntimeException);
322 : virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);
323 :
324 : // XElementAccess
325 : virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
326 : virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
327 :
328 : // XServiceInfo
329 : virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
330 : virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
331 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
332 :
333 : // XComponent
334 : virtual void SAL_CALL dispose( ) throw (::com::sun::star::uno::RuntimeException);
335 : virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
336 : virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
337 :
338 : // intern
339 : SdPage* FindPage( const ::rtl::OUString& rName ) const throw();
340 : };
341 :
342 : #endif
343 :
344 :
345 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|