xref: /aoo42x/main/sw/source/ui/inc/formedt.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 #ifndef _FORMEDT_HXX
24 #define _FORMEDT_HXX
25 
26 #include <svx/stddlg.hxx>
27 
28 #ifndef _LSTBOX_HXX //autogen
29 #include <vcl/lstbox.hxx>
30 #endif
31 
32 #ifndef _BUTTON_HXX //autogen
33 #include <vcl/button.hxx>
34 #endif
35 
36 #ifndef _FIXED_HXX //autogen
37 #include <vcl/fixed.hxx>
38 #endif
39 
40 #ifndef _EDIT_HXX //autogen
41 #include <vcl/edit.hxx>
42 #endif
43 
44 #include "toxe.hxx"
45 
46 class SwWrtShell;
47 class SwForm;
48 
49 /*--------------------------------------------------------------------
50 	 Beschreibung:	Markierung fuer Verzeichniseintrag einfuegen
51  --------------------------------------------------------------------*/
52 
53 class SwIdxFormDlg : public SvxStandardDialog
54 {
55 	DECL_LINK( EntryHdl, Button * );
56 	DECL_LINK( PageHdl, Button * );
57 	DECL_LINK( TabHdl, Button * );
58 	DECL_LINK( JumpHdl, Button * );
59 	DECL_LINK( StdHdl, Button * );
60 	DECL_LINK( SelectHdl, ListBox * );
61 	DECL_LINK( EnableSelectHdl, ListBox * );
62 	DECL_LINK( DoubleClickHdl, Button * );
63 	DECL_LINK( ModifyHdl, Edit * );
64 	DECL_LINK( AssignHdl, Button * );
65 	void			UpdatePattern();
66 	void			Apply();
67 
68 	ListBox 		aEntryLB;
69 	OKButton		aOKBtn;
70 	CancelButton	aCancelBT;
71 	FixedText		aLevelFT;
72 	Edit			aEntryED;
73 	PushButton		aEntryBT;
74 	PushButton		aTabBT;
75 	PushButton		aPageBT;
76 	PushButton		aJumpBT;
77     FixedLine       aEntryFL;
78 	FixedText		aLevelFT2;
79 	ListBox 		aLevelLB;
80 	FixedText		aTemplateFT;
81 	ListBox 		aParaLayLB;
82 	PushButton		aStdBT;
83 	PushButton		aAssignBT;
84     FixedLine       aFormatFL;
85 
86 	SwWrtShell	   &rSh;
87 	SwForm		   *pForm;
88 	sal_uInt16			nAktLevel;
89 	sal_Bool			bLastLinkIsEnd;
90 
91 public:
92 	SwIdxFormDlg( Window* pParent, SwWrtShell &rShell, const SwForm& rForm );
93 	~SwIdxFormDlg();
94 
95 	static sal_Bool		IsNoNum(SwWrtShell& rSh, const String& rName);
96 	const SwForm&	GetTOXForm();
97 };
98 
GetTOXForm()99 inline const SwForm& SwIdxFormDlg::GetTOXForm()
100 {
101 	return *pForm;
102 }
103 
104 #endif
105