xref: /aoo4110/main/svx/inc/svx/fmdpage.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVX_FMDPAGE_HXX
24 #define _SVX_FMDPAGE_HXX
25 
26 #include <com/sun/star/form/XFormsSupplier2.hpp>
27 #include <svx/unopage.hxx>
28 #include <comphelper/uno3.hxx>
29 #include "svx/svxdllapi.h"
30 
31 //==================================================================
32 // SvxFmDrawPage
33 //==================================================================
34 class SVX_DLLPUBLIC SvxFmDrawPage   :public SvxDrawPage
35                                     ,public ::com::sun::star::form::XFormsSupplier2
36 {
37 protected:
38 
39 	// Erzeugen eines SdrObjects anhand einer Description. Kann von
40 	// abgeleiteten Klassen dazu benutzt werden, eigene ::com::sun::star::drawing::Shapes zu
41 	// unterstuetzen (z.B. Controls)
42 	virtual SdrObject *_CreateSdrObject( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > & xShape )throw ();
43 
44 	// Die folgende Methode wird gerufen, wenn ein SvxShape-Objekt angelegt
45 	// werden soll. abgeleitete Klassen koennen hier eine Ableitung oder
46 	// ein ein SvxShape aggregierendes Objekt anlegen.
47 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >  _CreateShape( SdrObject *pObj ) const throw ();
48 
49 public:
50 	SvxFmDrawPage( SdrPage* pPage );
51 	virtual ~SvxFmDrawPage() throw ();
52 
53 	// UNO Anbindung
54 	DECLARE_UNO3_AGG_DEFAULTS(SvxFmDrawPage, SvxDrawPage);
55 
56 	virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
57 	virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
58 
59 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
60 
61 	// XFormsSupplier
62 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > SAL_CALL getForms(void) throw( ::com::sun::star::uno::RuntimeException );
63 
64 	// XFormsSupplier2
65 	virtual sal_Bool SAL_CALL hasForms(void) throw( ::com::sun::star::uno::RuntimeException );
66 
67 	// ::com::sun::star::lang::XServiceInfo
68 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
69 };
70 
71 #endif // _SVX_FMDPAGE_HXX
72 
73