xref: /trunk/main/sc/source/ui/inc/scuiimoptdlg.hxx (revision 38d50f7b)
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 SCUI_IMOPTDLG_HXX
25 #define SCUI_IMOPTDLG_HXX
26 
27 #include "imoptdlg.hxx"
28 
29 //===================================================================
30 
31 
32 class ScDelimiterTable;
33 
34 class ScImportOptionsDlg : public ModalDialog
35 {
36 public:
37 				ScImportOptionsDlg( Window* 				pParent,
38                                     sal_Bool                    bAscii = sal_True,
39 									const ScImportOptions*	pOptions = NULL,
40 									const String*			pStrTitle = NULL,
41                                     sal_Bool                    bMultiByte = sal_False,
42                                     sal_Bool                    bOnlyDbtoolsEncodings = sal_False,
43                                     sal_Bool                    bImport = sal_True );
44 
45 				~ScImportOptionsDlg();
46 
47 	void GetImportOptions( ScImportOptions& rOptions ) const;
48 
49 private:
50     FixedLine           aFlFieldOpt;
51 	FixedText			aFtFont;
52 	SvxTextEncodingBox	aLbFont;
53 	FixedText			aFtFieldSep;
54 	ComboBox			aEdFieldSep;
55 	FixedText			aFtTextSep;
56 	ComboBox			aEdTextSep;
57     CheckBox            aCbQuoteAll;
58     CheckBox            aCbShown;
59     CheckBox            aCbFixed;
60 	OKButton			aBtnOk;
61 	CancelButton		aBtnCancel;
62 	HelpButton			aBtnHelp;
63 
64 	ScDelimiterTable*	pFieldSepTab;
65 	ScDelimiterTable*	pTextSepTab;
66 
67 private:
68 	sal_uInt16 GetCodeFromCombo( const ComboBox& rEd ) const;
69 
70     DECL_LINK( FixedWidthHdl, CheckBox* );
71     DECL_LINK( DoubleClickHdl, ListBox* );
72 };
73 
74 #endif
75 
76