1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SD_SOURCE_UI_INC_UNOMODEL_HXX
20 #define INCLUDED_SD_SOURCE_UI_INC_UNOMODEL_HXX
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>
42 #include <rtl/ref.hxx>
44 #include <svl/lstner.hxx>
45 #include <sfx2/sfxbasemodel.hxx>
46 #include <svx/fmdmod.hxx>
48 #include <vcl/ITiledRenderable.hxx>
50 #include <editeng/unoipset.hxx>
52 #include <comphelper/servicehelper.hxx>
63 extern OUString
getPageApiName( SdPage
* pPage
);
64 extern OUString
getPageApiNameFromUiName( const OUString
& rUIName
);
66 /***********************************************************************
68 ***********************************************************************/
69 class SD_DLLPUBLIC SdXImpressDocument
: public SfxBaseModel
, // implements SfxListener, OWEAKOBJECT & other
70 public SvxFmMSFactory
,
71 public ::com::sun::star::drawing::XDrawPageDuplicator
,
72 public ::com::sun::star::drawing::XLayerSupplier
,
73 public ::com::sun::star::drawing::XMasterPagesSupplier
,
74 public ::com::sun::star::drawing::XDrawPagesSupplier
,
75 public ::com::sun::star::presentation::XPresentationSupplier
,
76 public ::com::sun::star::presentation::XCustomPresentationSupplier
,
77 public ::com::sun::star::document::XLinkTargetSupplier
,
78 public ::com::sun::star::beans::XPropertySet
,
79 public ::com::sun::star::style::XStyleFamiliesSupplier
,
80 public ::com::sun::star::lang::XServiceInfo
,
81 public ::com::sun::star::ucb::XAnyCompareFactory
,
82 public ::com::sun::star::presentation::XHandoutMasterSupplier
,
83 public ::com::sun::star::view::XRenderable
,
84 public vcl::ITiledRenderable
86 friend class SdDrawPagesAccess
;
87 friend class SdMasterPagesAccess
;
88 friend class SdLayerManager
;
91 ::sd::DrawDocShell
* mpDocShell
;
92 SdDrawDocument
* mpDoc
;
95 css::uno::Reference
<css::uno::XInterface
> create(
96 OUString
const & aServiceSpecifier
, OUString
const & referer
);
98 SdPage
* InsertSdPage( sal_uInt16 nPage
, bool bDuplicate
= false )
99 throw (css::uno::RuntimeException
, std::exception
);
101 const bool mbImpressDoc
;
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
;
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
;
121 const SvxItemPropertySet
* mpPropSet
;
123 ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> maTypeSequence
;
127 void initializeDocument();
129 sd::DrawViewShell
* GetViewShell();
132 SdXImpressDocument( ::sd::DrawDocShell
* pShell
, bool bClipBoard
= false ) throw();
133 SdXImpressDocument( SdDrawDocument
* pDoc
, bool bClipBoard
= false ) throw();
134 virtual ~SdXImpressDocument() throw();
136 static rtl::Reference
< SdXImpressDocument
> GetModel( SdDrawDocument
* pDoc
);
139 bool operator==( const SdXImpressDocument
& rModel
) const { return mpDoc
== rModel
.mpDoc
; }
140 bool operator!=( const SdXImpressDocument
& rModel
) const { return mpDoc
!= rModel
.mpDoc
; }
142 ::sd::DrawDocShell
* GetDocShell() const { return mpDocShell
; }
143 SdDrawDocument
* GetDoc() const { return mpDoc
; }
144 bool IsImpressDocument() const { return mbImpressDoc
; }
146 void SetModified( bool bModified
= true ) throw();
148 ::com::sun::star::uno::Reference
< ::com::sun::star::i18n::XForbiddenCharacters
> getForbiddenCharsTable();
151 virtual void Notify( SfxBroadcaster
& rBC
, const SfxHint
& rHint
) SAL_OVERRIDE
;
153 UNO3_GETIMPLEMENTATION_DECL(SdXImpressDocument
)
156 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
;
157 virtual void SAL_CALL
acquire() throw() SAL_OVERRIDE
;
158 virtual void SAL_CALL
release() throw() SAL_OVERRIDE
;
161 virtual void SAL_CALL
lockControllers( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
162 virtual void SAL_CALL
unlockControllers( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
163 virtual sal_Bool SAL_CALL
hasControllersLocked( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
164 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
> SAL_CALL
getViewData() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
165 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
;
168 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Type
> SAL_CALL
getTypes( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
169 virtual ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getImplementationId( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
171 // XDrawPageDuplicator
172 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
;
174 // XDrawPagesSupplier
175 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::drawing::XDrawPages
> SAL_CALL
getDrawPages( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
177 // XMasterPagesSupplier
178 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::drawing::XDrawPages
> SAL_CALL
getMasterPages( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
180 // XLayerManagerSupplier
181 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> SAL_CALL
getLayerManager( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
183 // XCustomPresentationSupplier
184 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameContainer
> SAL_CALL
getCustomPresentations( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
186 // XHandoutMasterSupplier
187 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::drawing::XDrawPage
> SAL_CALL
getHandoutMasterPage( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
189 // XPresentationSupplier
190 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::presentation::XPresentation
> SAL_CALL
getPresentation( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
192 // XMultiServiceFactory ( SvxFmMSFactory )
193 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
;
194 virtual css::uno::Reference
<css::uno::XInterface
> SAL_CALL
195 createInstanceWithArguments(
196 OUString
const & ServiceSpecifier
,
197 css::uno::Sequence
<css::uno::Any
> const & Arguments
)
198 throw (css::uno::Exception
, css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
199 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getAvailableServiceNames( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
202 virtual OUString SAL_CALL
getImplementationName() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
203 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
204 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
207 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
208 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
;
209 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
;
210 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
;
211 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
;
212 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
;
213 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
;
215 // XLinkTargetSupplier
216 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> SAL_CALL
getLinks( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
218 // XStyleFamiliesSupplier
219 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> SAL_CALL
getStyleFamilies( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
221 // XAnyCompareFactory
222 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
;
225 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
;
226 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
;
227 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
;
230 virtual void paintTile( VirtualDevice
& rDevice
,
236 long nTileHeight
) SAL_OVERRIDE
;
237 virtual Size
getDocumentSize() SAL_OVERRIDE
;
238 virtual void setPart( int nPart
) SAL_OVERRIDE
;
239 virtual int getPart() SAL_OVERRIDE
;
240 virtual int getParts() SAL_OVERRIDE
;
241 virtual OUString
getPartName( int nPart
) SAL_OVERRIDE
;
242 virtual void setPartMode( int nPartMode
) SAL_OVERRIDE
;
244 /// @see vcl::ITiledRenderable::initializeForTiledRendering().
245 virtual void initializeForTiledRendering() SAL_OVERRIDE
;
246 /// @see vcl::ITiledRenderable::registerCallback().
247 virtual void registerCallback(LibreOfficeKitCallback pCallback
, void* pData
) SAL_OVERRIDE
;
248 /// @see vcl::ITiledRenderable::postKeyEvent().
249 virtual void postKeyEvent(int nType
, int nCharCode
, int nKeyCode
) SAL_OVERRIDE
;
250 /// @see vcl::ITiledRenderable::postMouseEvent().
251 virtual void postMouseEvent(int nType
, int nX
, int nY
, int nCount
) SAL_OVERRIDE
;
252 /// @see vcl::ITiledRenderable::setTextSelection().
253 virtual void setTextSelection(int nType
, int nX
, int nY
) SAL_OVERRIDE
;
254 /// @see vcl::ITiledRenderable::getTextSelection().
255 virtual OString
getTextSelection(const char* pMimeType
, OString
& rUsedMimeType
) SAL_OVERRIDE
;
256 /// @see vcl::ITiledRenderable::setGraphicSelection().
257 virtual void setGraphicSelection(int nType
, int nX
, int nY
) SAL_OVERRIDE
;
258 /// @see lok::Document::resetSelection().
259 virtual void resetSelection() SAL_OVERRIDE
;
263 /** This dispose implementation releases the resources held by the
264 called object and forwards the call to its base class.
265 When close() has not yet been called then this is done first. As a
266 consequence the implementation has to cope with being called twice
267 and still has to forward the second call to the base class.
268 See also comments of issue 27847.
270 virtual void SAL_CALL
dispose() throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
273 /***********************************************************************
275 ***********************************************************************/
277 #include <cppuhelper/implbase4.hxx>
279 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
>
282 SdXImpressDocument
* mpModel
;
285 SdDrawPagesAccess( SdXImpressDocument
& rMyModel
) throw();
286 virtual ~SdDrawPagesAccess() throw();
289 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
;
290 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
;
293 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
;
294 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getElementNames() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
295 virtual sal_Bool SAL_CALL
hasByName( const OUString
& aName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
298 virtual sal_Int32 SAL_CALL
getCount() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
299 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
;
302 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
303 virtual sal_Bool SAL_CALL
hasElements() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
306 virtual OUString SAL_CALL
getImplementationName( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
307 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
308 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
311 virtual void SAL_CALL
dispose( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
312 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
;
313 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
;
316 /***********************************************************************
318 ***********************************************************************/
320 #include <cppuhelper/implbase3.hxx>
322 class SdMasterPagesAccess
: public ::cppu::WeakImplHelper3
< ::com::sun::star::drawing::XDrawPages
, ::com::sun::star::lang::XServiceInfo
, ::com::sun::star::lang::XComponent
>
325 SdXImpressDocument
* mpModel
;
328 SdMasterPagesAccess( SdXImpressDocument
& rMyModel
) throw();
329 virtual ~SdMasterPagesAccess() throw();
332 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::drawing::XDrawPage
> SAL_CALL
insertNewByIndex( sal_Int32 nIndex
)
333 throw (::com::sun::star::uno::RuntimeException
,
334 std::exception
) SAL_OVERRIDE
;
335 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
;
338 virtual sal_Int32 SAL_CALL
getCount() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
339 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
;
342 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
343 virtual sal_Bool SAL_CALL
hasElements() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
346 virtual OUString SAL_CALL
getImplementationName( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
347 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
348 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
351 virtual void SAL_CALL
dispose( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
352 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
;
353 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
;
356 /***********************************************************************
358 ***********************************************************************/
360 class SdDocLinkTargets
: public ::cppu::WeakImplHelper3
< ::com::sun::star::container::XNameAccess
,
361 ::com::sun::star::lang::XServiceInfo
, ::com::sun::star::lang::XComponent
>
364 SdXImpressDocument
* mpModel
;
367 SdDocLinkTargets( SdXImpressDocument
& rMyModel
) throw();
368 virtual ~SdDocLinkTargets() throw();
371 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
;
372 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getElementNames() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
373 virtual sal_Bool SAL_CALL
hasByName( const OUString
& aName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
376 virtual ::com::sun::star::uno::Type SAL_CALL
getElementType() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
377 virtual sal_Bool SAL_CALL
hasElements() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
380 virtual OUString SAL_CALL
getImplementationName() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
381 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
382 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
385 virtual void SAL_CALL
dispose( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
386 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
;
387 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
;
390 SdPage
* FindPage( const OUString
& rName
) const throw();
395 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */