xref: /trunk/main/sw/source/ui/inc/srtdlg.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 _SRTDLG_HXX
24 #define _SRTDLG_HXX
25 
26 #ifndef _FIXED_HXX
27 #include <vcl/fixed.hxx>
28 #endif
29 #ifndef _BUTTON_HXX
30 #include <vcl/button.hxx>
31 #endif
32 #ifndef _FIELD_HXX
33 #include <vcl/field.hxx>
34 #endif
35 #ifndef _LSTBOX_HXX
36 #include <vcl/lstbox.hxx>
37 #endif
38 #include <svx/stddlg.hxx>
39 #include <svx/langbox.hxx>
40 
41 class SwWrtShell;
42 class CollatorRessource;
43 
44 class SwSortDlg : public SvxStandardDialog
45 {
46 	FixedText			aColLbl;
47 	FixedText			aTypLbl;
48 	FixedText 			aDirLbl;
49 
50 	FixedLine           aSortFL;
51 
52 	CheckBox			aKeyCB1;
53 	NumericField		aColEdt1;
54 	ListBox				aTypDLB1;
55 	RadioButton			aSortUpRB;
56 	RadioButton			aSortDnRB;
57 
58 	CheckBox			aKeyCB2;
59 	NumericField		aColEdt2;
60 	ListBox				aTypDLB2;
61 	RadioButton			aSortUp2RB;
62 	RadioButton			aSortDn2RB;
63 
64 	CheckBox			aKeyCB3;
65 	NumericField		aColEdt3;
66 	ListBox				aTypDLB3;
67 	RadioButton			aSortUp3RB;
68 	RadioButton			aSortDn3RB;
69 
70 	FixedLine           aDirFL;
71 	RadioButton			aColumnRB;
72 	RadioButton			aRowRB;
73 
74     FixedLine           aDelimFL;
75 	RadioButton			aDelimTabRB;
76 	RadioButton			aDelimFreeRB;
77 	Edit				aDelimEdt;
78     PushButton          aDelimPB;
79 
80     FixedLine           aLangFL;
81     SvxLanguageBox      aLangLB;
82 
83     FixedLine           aSortOptFL;
84     CheckBox            aCaseCB;
85 
86 	OKButton			aOkBtn;
87 	CancelButton		aCancelBtn;
88 	HelpButton			aHelpBtn;
89 
90 	String aColTxt;
91 	String aRowTxt;
92 	String aNumericTxt;
93 
94 	SwWrtShell			&rSh;
95 	CollatorRessource* pColRes;
96 
97 	sal_uInt16 nX;
98 	sal_uInt16 nY;
99 
100 	virtual void		Apply();
101 	sal_Unicode			GetDelimChar() const;
102 
103 	DECL_LINK( CheckHdl, CheckBox * );
104 	DECL_LINK( DelimHdl, RadioButton* );
105 	DECL_LINK( LanguageHdl, ListBox* );
106 	DECL_LINK( DelimCharHdl, PushButton* );
107 
108 public:
109 	SwSortDlg(Window * pParent, SwWrtShell &rSh);
110 	~SwSortDlg();
111 };
112 
113 #endif
114 
115