xref: /aoo41x/main/sw/source/ui/inc/ascfldlg.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 _ASCFLDLG_HXX
24 #define _ASCFLDLG_HXX
25 #include <vcl/fixed.hxx>
26 
27 #ifndef _SV_BUTTON_HXX
28 #include <vcl/button.hxx>
29 #endif
30 #include <vcl/lstbox.hxx>
31 #include <sfx2/basedlgs.hxx>
32 #include <svx/txencbox.hxx>
33 #include <svx/langbox.hxx>
34 
35 class SwAsciiOptions;
36 class SvStream;
37 class SwDocShell;
38 
39 class SwAsciiFilterDlg : public SfxModalDialog
40 {
41     FixedLine           aFL;
42 	FixedText			aCharSetFT;
43 	SvxTextEncodingBox	aCharSetLB;
44 	FixedText			aFontFT;
45 	ListBox				aFontLB;
46 	FixedText			aLanguageFT;
47 	SvxLanguageBox		aLanguageLB;
48 	FixedText			aCRLF_FT;
49 	RadioButton			aCRLF_RB, aCR_RB, aLF_RB;
50 	OKButton			aOkPB;
51 	CancelButton		aCancelPB;
52 	HelpButton			aHelpPB;
53 	String				sSystemCharSet;
54 	sal_Bool 				bSaveLineStatus;
55 
56 	DECL_LINK( CharSetSelHdl, SvxTextEncodingBox* );
57 	DECL_LINK( LineEndHdl, RadioButton* );
58 	void SetCRLF( LineEnd eEnd );
59 	LineEnd GetCRLF() const;
60 
61 public:
62 	// CTOR: 	for import - pStream is the inputstream
63 	// 			for export - pStream must be 0
64 	SwAsciiFilterDlg( Window* pParent, SwDocShell& rDocSh,
65 						SvStream* pStream );
66 	virtual ~SwAsciiFilterDlg();
67 
68 	void FillOptions( SwAsciiOptions& rOptions );
69 };
70 
71 
72 
73 #endif
74 
75