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