xref: /aoo41x/main/svx/inc/svx/fmpage.hxx (revision 3334a7e6)
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 
24 #ifndef _SVX_FMPAGE_HXX
25 #define _SVX_FMPAGE_HXX
26 
27 #include <svx/svdpage.hxx>
28 #include <comphelper/uno3.hxx>
29 #include "svx/svxdllapi.h"
30 
31 class StarBASIC;
32 class FmFormModel;
33 class FmFormPageImpl;	// haelt die Liste aller Forms
34 
35 FORWARD_DECLARE_INTERFACE(container,XNameContainer)
36 
37 class SdrView;
38 class SfxJSArray;
39 class HelpEvent;
40 
41 class SVX_DLLPUBLIC FmFormPage : public SdrPage
42 {
43 	friend class FmFormObj;
44 	FmFormPageImpl*     m_pImpl;
45 	String				m_sPageName;
46 	StarBASIC* 			m_pBasic;
47 
48 public:
49 	TYPEINFO();
50 
51 	FmFormPage(FmFormModel& rModel,StarBASIC*, FASTBOOL bMasterPage=sal_False);
52 	FmFormPage(const FmFormPage& rPage);
53 	~FmFormPage();
54 
55 	virtual void  	SetModel(SdrModel* pNewModel);
56 
57 	virtual SdrPage* Clone() const;
58     using SdrPage::Clone;
59 
60 	virtual void	InsertObject(SdrObject* pObj, sal_uLong nPos = CONTAINER_APPEND,
61 									const SdrInsertReason* pReason=NULL);
62 
63 	virtual SdrObject* RemoveObject(sal_uLong nObjNum);
64 
65 	// Zugriff auf alle Formulare
66 	const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer>& GetForms( bool _bForceCreate = true ) const;
67 
68 #ifndef SVX_LIGHT
GetImpl() const69 	FmFormPageImpl& GetImpl() const { return *m_pImpl; }
70 #endif // SVX_LIGHT
71 
72 public:
GetName() const73 	const String& 		GetName() const { return m_sPageName; }
SetName(const String & rName)74 	void 				SetName( const String& rName ) { m_sPageName = rName; }
GetBasic() const75 	StarBASIC*      	GetBasic() const { return m_pBasic; }
76 	sal_Bool			RequestHelp(
77 							Window* pWin,
78 							SdrView* pView,
79 							const HelpEvent& rEvt );
80 };
81 
82 #endif          // _SVX_FMPAGE_HXX
83 
84