xref: /aoo42x/main/sd/source/ui/unoidl/unopage.hxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir #ifndef _SD_UNOPAGE_HXX
28*cdf0e10cSrcweir #define _SD_UNOPAGE_HXX
29*cdf0e10cSrcweir 
30*cdf0e10cSrcweir #include <com/sun/star/document/XLinkTargetSupplier.hpp>
31*cdf0e10cSrcweir #include <com/sun/star/container/XIndexAccess.hpp>
32*cdf0e10cSrcweir #include <com/sun/star/container/XNamed.hpp>
33*cdf0e10cSrcweir #include <com/sun/star/drawing/XMasterPageTarget.hpp>
34*cdf0e10cSrcweir #include <com/sun/star/presentation/XPresentationPage.hpp>
35*cdf0e10cSrcweir #include <com/sun/star/animations/XAnimationNodeSupplier.hpp>
36*cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertySet.hpp>
37*cdf0e10cSrcweir #include <com/sun/star/office/XAnnotationAccess.hpp>
38*cdf0e10cSrcweir 
39*cdf0e10cSrcweir #include <svl/itemprop.hxx>
40*cdf0e10cSrcweir 
41*cdf0e10cSrcweir #ifndef _SVX_UNOPAGE_HXX
42*cdf0e10cSrcweir #include <svx/unopage.hxx>
43*cdf0e10cSrcweir #endif
44*cdf0e10cSrcweir #include <svx/fmdpage.hxx>
45*cdf0e10cSrcweir #include <svx/svdpool.hxx>
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir #include <comphelper/servicehelper.hxx>
48*cdf0e10cSrcweir 
49*cdf0e10cSrcweir #include "unosrch.hxx"
50*cdf0e10cSrcweir 
51*cdf0e10cSrcweir class SdPage;
52*cdf0e10cSrcweir class SvxShape;
53*cdf0e10cSrcweir class SdrObject;
54*cdf0e10cSrcweir struct SfxItemPropertySimpleEntry;
55*cdf0e10cSrcweir 
56*cdf0e10cSrcweir #ifdef SVX_LIGHT
57*cdf0e10cSrcweir #define SvxFmDrawPage SvxDrawPage
58*cdf0e10cSrcweir #endif
59*cdf0e10cSrcweir 
60*cdf0e10cSrcweir /***********************************************************************
61*cdf0e10cSrcweir *                                                                      *
62*cdf0e10cSrcweir ***********************************************************************/
63*cdf0e10cSrcweir class SdGenericDrawPage : public SvxFmDrawPage,
64*cdf0e10cSrcweir 						  public SdUnoSearchReplaceShape,
65*cdf0e10cSrcweir 						  public ::com::sun::star::drawing::XShapeCombiner,
66*cdf0e10cSrcweir 						  public ::com::sun::star::drawing::XShapeBinder,
67*cdf0e10cSrcweir 						  public ::com::sun::star::container::XNamed,
68*cdf0e10cSrcweir 						  public ::com::sun::star::beans::XPropertySet,
69*cdf0e10cSrcweir 						  public ::com::sun::star::beans::XMultiPropertySet,
70*cdf0e10cSrcweir 						  public ::com::sun::star::animations::XAnimationNodeSupplier,
71*cdf0e10cSrcweir            			      public ::com::sun::star::office::XAnnotationAccess,
72*cdf0e10cSrcweir 						  public ::com::sun::star::document::XLinkTargetSupplier
73*cdf0e10cSrcweir {
74*cdf0e10cSrcweir private:
75*cdf0e10cSrcweir 	SdXImpressDocument* mpModel;
76*cdf0e10cSrcweir 	SdrModel* mpSdrModel;
77*cdf0e10cSrcweir 	sal_Int16 mnTempPageNumber; // for printing handouts
78*cdf0e10cSrcweir 
79*cdf0e10cSrcweir protected:
80*cdf0e10cSrcweir 	friend class SdXImpressDocument;
81*cdf0e10cSrcweir 
82*cdf0e10cSrcweir 	const SvxItemPropertySet*	mpPropSet;
83*cdf0e10cSrcweir 
84*cdf0e10cSrcweir 	virtual void setBackground( const ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::lang::IllegalArgumentException);
85*cdf0e10cSrcweir 	virtual void getBackground( ::com::sun::star::uno::Any& rValue ) throw();
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir 	rtl::OUString getBookmarkURL() const;
88*cdf0e10cSrcweir 	void setBookmarkURL( rtl::OUString& rURL );
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir 	void SetLftBorder( sal_Int32 nValue );
91*cdf0e10cSrcweir 	void SetRgtBorder( sal_Int32 nValue );
92*cdf0e10cSrcweir 	void SetUppBorder( sal_Int32 nValue );
93*cdf0e10cSrcweir 	void SetLwrBorder( sal_Int32 nValue );
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir 	void SetWidth( sal_Int32 nWidth );
96*cdf0e10cSrcweir 	void SetHeight( sal_Int32 nHeight );
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir 	bool	 mbIsImpressDocument;
99*cdf0e10cSrcweir 
100*cdf0e10cSrcweir 	virtual void disposing() throw();
101*cdf0e10cSrcweir 
102*cdf0e10cSrcweir 	::com::sun::star::uno::Any getNavigationOrder();
103*cdf0e10cSrcweir 	void setNavigationOrder( const ::com::sun::star::uno::Any& rValue );
104*cdf0e10cSrcweir 
105*cdf0e10cSrcweir 	void throwIfDisposed() const throw (::com::sun::star::uno::RuntimeException );
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir public:
108*cdf0e10cSrcweir 	SdGenericDrawPage( SdXImpressDocument* pModel, SdPage* pInPage, const SvxItemPropertySet* pSet ) throw();
109*cdf0e10cSrcweir 	virtual ~SdGenericDrawPage() throw();
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir 	// intern
112*cdf0e10cSrcweir 	sal_Bool isValid() { return (SvxDrawPage::mpPage != NULL) && (mpModel != NULL); }
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir 	SdPage* GetPage() const { return (SdPage*)SvxDrawPage::mpPage; }
115*cdf0e10cSrcweir 	SdXImpressDocument* GetModel() const;
116*cdf0e10cSrcweir 
117*cdf0e10cSrcweir 	static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw();
118*cdf0e10cSrcweir 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
119*cdf0e10cSrcweir 
120*cdf0e10cSrcweir 	// this is called whenever a SdrObject must be created for a empty api shape wrapper
121*cdf0e10cSrcweir 	virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw();
122*cdf0e10cSrcweir 
123*cdf0e10cSrcweir 	// SvxFmDrawPage
124*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >  _CreateShape( SdrObject *pObj ) const throw ();
125*cdf0e10cSrcweir 
126*cdf0e10cSrcweir 	// XInterface
127*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
128*cdf0e10cSrcweir 	virtual void SAL_CALL release() throw();
129*cdf0e10cSrcweir 
130*cdf0e10cSrcweir 	// XShapeCombiner
131*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > SAL_CALL combine( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xShapes ) throw(::com::sun::star::uno::RuntimeException);
132*cdf0e10cSrcweir     virtual void SAL_CALL split( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xGroup ) throw(::com::sun::star::uno::RuntimeException);
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir 	// XShapeBinder
135*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > SAL_CALL bind( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xShapes ) throw(::com::sun::star::uno::RuntimeException);
136*cdf0e10cSrcweir     virtual void SAL_CALL unbind( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
137*cdf0e10cSrcweir 
138*cdf0e10cSrcweir 	// XPropertySet
139*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
140*cdf0e10cSrcweir     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);
141*cdf0e10cSrcweir     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);
142*cdf0e10cSrcweir     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);
143*cdf0e10cSrcweir     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);
144*cdf0e10cSrcweir     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);
145*cdf0e10cSrcweir     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);
146*cdf0e10cSrcweir 
147*cdf0e10cSrcweir 	// XMultiPropertySet
148*cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
149*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::uno::RuntimeException);
150*cdf0e10cSrcweir     virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
151*cdf0e10cSrcweir     virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
152*cdf0e10cSrcweir     virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
153*cdf0e10cSrcweir 
154*cdf0e10cSrcweir 	// XLinkTargetSupplier
155*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > SAL_CALL getLinks(  ) throw(::com::sun::star::uno::RuntimeException);
156*cdf0e10cSrcweir 
157*cdf0e10cSrcweir 	// XServiceInfo
158*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
159*cdf0e10cSrcweir 
160*cdf0e10cSrcweir 	// XAnimationNodeSupplier
161*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > SAL_CALL getAnimationNode(  ) throw (::com::sun::star::uno::RuntimeException);
162*cdf0e10cSrcweir 
163*cdf0e10cSrcweir 	// XAnnotationAccess:
164*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotation > SAL_CALL createAndInsertAnnotation() throw (::com::sun::star::uno::RuntimeException);
165*cdf0e10cSrcweir     virtual void SAL_CALL removeAnnotation(const ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotation > & annotation) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IllegalArgumentException);
166*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotationEnumeration > SAL_CALL createAnnotationEnumeration() throw (::com::sun::star::uno::RuntimeException);
167*cdf0e10cSrcweir };
168*cdf0e10cSrcweir 
169*cdf0e10cSrcweir /***********************************************************************
170*cdf0e10cSrcweir *                                                                      *
171*cdf0e10cSrcweir ***********************************************************************/
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir class SdDrawPage : public ::com::sun::star::drawing::XMasterPageTarget,
174*cdf0e10cSrcweir 				   public ::com::sun::star::presentation::XPresentationPage,
175*cdf0e10cSrcweir 				   public SdGenericDrawPage
176*cdf0e10cSrcweir {
177*cdf0e10cSrcweir private:
178*cdf0e10cSrcweir 	::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > maTypeSequence;
179*cdf0e10cSrcweir 
180*cdf0e10cSrcweir protected:
181*cdf0e10cSrcweir 	virtual void setBackground( const ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::lang::IllegalArgumentException);
182*cdf0e10cSrcweir 	virtual void getBackground( ::com::sun::star::uno::Any& rValue ) throw();
183*cdf0e10cSrcweir public:
184*cdf0e10cSrcweir 	SdDrawPage( SdXImpressDocument* pModel, SdPage* pInPage ) throw();
185*cdf0e10cSrcweir 	virtual ~SdDrawPage() throw();
186*cdf0e10cSrcweir 
187*cdf0e10cSrcweir 	UNO3_GETIMPLEMENTATION_DECL( SdDrawPage )
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir 	static ::rtl::OUString getPageApiName( SdPage* pPage );
190*cdf0e10cSrcweir 	static ::rtl::OUString getPageApiNameFromUiName( const String& rUIName );
191*cdf0e10cSrcweir 	static String getUiNameFromPageApiName( const ::rtl::OUString& rApiName );
192*cdf0e10cSrcweir 
193*cdf0e10cSrcweir 	// XInterface
194*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
195*cdf0e10cSrcweir 	virtual void SAL_CALL acquire() throw();
196*cdf0e10cSrcweir 	virtual void SAL_CALL release() throw();
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir 	// XTypeProvider
199*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
200*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
201*cdf0e10cSrcweir 
202*cdf0e10cSrcweir 	// XServiceInfo
203*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
204*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
205*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
206*cdf0e10cSrcweir 
207*cdf0e10cSrcweir 	// XMasterPageTarget
208*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL getMasterPage(  ) throw(::com::sun::star::uno::RuntimeException);
209*cdf0e10cSrcweir     virtual void SAL_CALL setMasterPage( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xMasterPage ) throw(::com::sun::star::uno::RuntimeException);
210*cdf0e10cSrcweir 
211*cdf0e10cSrcweir 	// XPresentationPage
212*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL getNotesPage(  ) throw(::com::sun::star::uno::RuntimeException);
213*cdf0e10cSrcweir 
214*cdf0e10cSrcweir 	// XNamed
215*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getName(  ) throw(::com::sun::star::uno::RuntimeException);
216*cdf0e10cSrcweir     virtual void SAL_CALL setName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir 	// XIndexAccess
219*cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException) ;
220*cdf0e10cSrcweir     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);
221*cdf0e10cSrcweir 
222*cdf0e10cSrcweir 	// XElementAccess
223*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
224*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
225*cdf0e10cSrcweir 
226*cdf0e10cSrcweir 	// XShapes
227*cdf0e10cSrcweir     virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
228*cdf0e10cSrcweir     virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
229*cdf0e10cSrcweir };
230*cdf0e10cSrcweir 
231*cdf0e10cSrcweir /***********************************************************************
232*cdf0e10cSrcweir *                                                                      *
233*cdf0e10cSrcweir ***********************************************************************/
234*cdf0e10cSrcweir 
235*cdf0e10cSrcweir class SdMasterPage : public ::com::sun::star::presentation::XPresentationPage,
236*cdf0e10cSrcweir 					 public SdGenericDrawPage
237*cdf0e10cSrcweir {
238*cdf0e10cSrcweir private:
239*cdf0e10cSrcweir 	::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > maTypeSequence;
240*cdf0e10cSrcweir protected:
241*cdf0e10cSrcweir 	virtual void setBackground( const ::com::sun::star::uno::Any& rValue ) throw( ::com::sun::star::lang::IllegalArgumentException  );
242*cdf0e10cSrcweir 	virtual void getBackground( ::com::sun::star::uno::Any& rValue ) throw();
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir public:
245*cdf0e10cSrcweir 	SdMasterPage( SdXImpressDocument* pModel, SdPage* pInPage ) throw();
246*cdf0e10cSrcweir 	virtual ~SdMasterPage() throw();
247*cdf0e10cSrcweir 
248*cdf0e10cSrcweir 	UNO3_GETIMPLEMENTATION_DECL(SdMasterPage)
249*cdf0e10cSrcweir 
250*cdf0e10cSrcweir 	// XInterface
251*cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
252*cdf0e10cSrcweir 	virtual void SAL_CALL acquire() throw();
253*cdf0e10cSrcweir 	virtual void SAL_CALL release() throw();
254*cdf0e10cSrcweir 
255*cdf0e10cSrcweir 	// XTypeProvider
256*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
257*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
258*cdf0e10cSrcweir 
259*cdf0e10cSrcweir 	// XServiceInfo
260*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
261*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
262*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
263*cdf0e10cSrcweir 
264*cdf0e10cSrcweir 	// XIndexAccess
265*cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException) ;
266*cdf0e10cSrcweir     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);
267*cdf0e10cSrcweir 
268*cdf0e10cSrcweir 	// XElementAccess
269*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
270*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
271*cdf0e10cSrcweir 
272*cdf0e10cSrcweir 	// XPresentationPage
273*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > SAL_CALL getNotesPage(  ) throw(::com::sun::star::uno::RuntimeException);
274*cdf0e10cSrcweir 
275*cdf0e10cSrcweir 	// XNamed
276*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getName(  ) throw(::com::sun::star::uno::RuntimeException);
277*cdf0e10cSrcweir     virtual void SAL_CALL setName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);
278*cdf0e10cSrcweir 
279*cdf0e10cSrcweir 	// XShapes
280*cdf0e10cSrcweir     virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
281*cdf0e10cSrcweir     virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
282*cdf0e10cSrcweir };
283*cdf0e10cSrcweir 
284*cdf0e10cSrcweir 
285*cdf0e10cSrcweir /***********************************************************************
286*cdf0e10cSrcweir *                                                                      *
287*cdf0e10cSrcweir ***********************************************************************/
288*cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx>
289*cdf0e10cSrcweir 
290*cdf0e10cSrcweir class SdPageLinkTargets : public ::cppu::WeakImplHelper2< ::com::sun::star::container::XNameAccess,
291*cdf0e10cSrcweir 												  ::com::sun::star::lang::XServiceInfo >
292*cdf0e10cSrcweir {
293*cdf0e10cSrcweir private:
294*cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > mxPage;
295*cdf0e10cSrcweir 	SdGenericDrawPage* mpUnoPage;
296*cdf0e10cSrcweir 
297*cdf0e10cSrcweir public:
298*cdf0e10cSrcweir 	SdPageLinkTargets( SdGenericDrawPage* pUnoPage ) throw();
299*cdf0e10cSrcweir 	virtual ~SdPageLinkTargets() throw();
300*cdf0e10cSrcweir 
301*cdf0e10cSrcweir 	// intern
302*cdf0e10cSrcweir 	SdrObject* FindObject( const String& rName ) const throw();
303*cdf0e10cSrcweir 
304*cdf0e10cSrcweir 	// XServiceInfo
305*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
306*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
307*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
308*cdf0e10cSrcweir 
309*cdf0e10cSrcweir 	// XNameAccess
310*cdf0e10cSrcweir     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);
311*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() throw(::com::sun::star::uno::RuntimeException);
312*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);
313*cdf0e10cSrcweir 
314*cdf0e10cSrcweir 	// XElementAccess
315*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
316*cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
317*cdf0e10cSrcweir };
318*cdf0e10cSrcweir 
319*cdf0e10cSrcweir #endif // _SD_UNOPAGE_HXX
320