xref: /aoo41x/main/sw/source/ui/inc/frmdlg.hxx (revision 1d2dbeb0)
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 _FRMDLG_HXX
25 #define _FRMDLG_HXX
26 
27 #include "globals.hrc"
28 #include <sfx2/tabdlg.hxx>
29 class SwWrtShell;
30 
31 /*--------------------------------------------------------------------
32    Beschreibung:	Rahmendialog
33  --------------------------------------------------------------------*/
34 
35 class SwFrmDlg : public SfxTabDialog
36 {
37     sal_Bool                m_bFormat;
38     sal_Bool                m_bNew;
39     sal_Bool                m_bHTMLMode;
40     bool                m_bEnableVertPos;
41     const SfxItemSet&   m_rSet;
42     sal_uInt16              m_nDlgType;
43     SwWrtShell*         m_pWrtShell;
44 
45 
46 	virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
47 
48 public:
49 	SwFrmDlg(	SfxViewFrame *pFrame, Window *pParent,
50 				const SfxItemSet& rCoreSet,
51 				sal_Bool			bNewFrm  = sal_True,
52 				sal_uInt16			nResType = DLG_FRM_STD,
53 				sal_Bool			bFmt 	 = sal_False,
54 				sal_uInt16			nDefPage = 0,
55 				const String* 	pFmtStr  = 0);
56 
57 	~SwFrmDlg();
58 
GetWrtShell()59     inline SwWrtShell*  GetWrtShell()   { return m_pWrtShell; }
60 };
61 
62 
63 #endif // _FRMDLG_HXX
64