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