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