xref: /AOO41X/main/svx/inc/svx/fmdpage.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SVX_FMDPAGE_HXX
28 #define _SVX_FMDPAGE_HXX
29 
30 #include <com/sun/star/form/XFormsSupplier2.hpp>
31 #include <svx/unopage.hxx>
32 #include <comphelper/uno3.hxx>
33 #include "svx/svxdllapi.h"
34 
35 //==================================================================
36 // SvxFmDrawPage
37 //==================================================================
38 class SVX_DLLPUBLIC SvxFmDrawPage   :public SvxDrawPage
39                                     ,public ::com::sun::star::form::XFormsSupplier2
40 {
41 protected:
42 
43 	// Erzeugen eines SdrObjects anhand einer Description. Kann von
44 	// abgeleiteten Klassen dazu benutzt werden, eigene ::com::sun::star::drawing::Shapes zu
45 	// unterstuetzen (z.B. Controls)
46 	virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape )throw ();
47 
48 	// Die folgende Methode wird gerufen, wenn ein SvxShape-Objekt angelegt
49 	// werden soll. abgeleitete Klassen koennen hier eine Ableitung oder
50 	// ein ein SvxShape aggregierendes Objekt anlegen.
51 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >  _CreateShape( SdrObject *pObj ) const throw ();
52 
53 public:
54 	SvxFmDrawPage( SdrPage* pPage );
55 	virtual ~SvxFmDrawPage() throw ();
56 
57 	// UNO Anbindung
58 	DECLARE_UNO3_AGG_DEFAULTS(SvxFmDrawPage, SvxDrawPage);
59 
60 	virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
61 	virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
62 
63 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
64 
65 	// XFormsSupplier
66 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SAL_CALL getForms(void) throw( ::com::sun::star::uno::RuntimeException );
67 
68 	// XFormsSupplier2
69 	virtual sal_Bool SAL_CALL hasForms(void) throw( ::com::sun::star::uno::RuntimeException );
70 
71 	// ::com::sun::star::lang::XServiceInfo
72 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
73 };
74 
75 #endif // _SVX_FMDPAGE_HXX
76 
77