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 _TEXTCONVERSIONDLGS_CHINESE_TRANSLATIONDLG_HXX
25 #define _TEXTCONVERSIONDLGS_CHINESE_TRANSLATIONDLG_HXX
26 
27 #include <vcl/dialog.hxx>
28 // header for class FixedLine
29 #include <vcl/fixed.hxx>
30 // header for class RadioButton
31 #ifndef _SV_BUTTON_HXX
32 #include <vcl/button.hxx>
33 #endif
34 
35 //.............................................................................
36 namespace textconversiondlgs
37 {
38 //.............................................................................
39 
40 //-----------------------------------------------------------------------------
41 /**
42 */
43 class ChineseDictionaryDialog;
44 
45 class ChineseTranslationDialog : public ModalDialog
46 {
47 public:
48     ChineseTranslationDialog( Window* pParent );
49     virtual ~ChineseTranslationDialog();
50 
51     void getSettings( sal_Bool& rbDirectionToSimplified
52                     , sal_Bool& rbUseCharacterVariants
53                     , sal_Bool& rbTranslateCommonTerms ) const;
54 
55 private:
56     DECL_LINK( DictionaryHdl, void* );
57     DECL_LINK( DirectionHdl, void* );
58     DECL_LINK( CommonTermsHdl, void* );
59     DECL_LINK( OkHdl, void* );
60     void impl_UpdateVariantsCheckBox();
61 
62 private:
63     FixedLine   m_aFL_Direction;
64 
65     RadioButton	m_aRB_To_Simplified;
66     RadioButton	m_aRB_To_Traditional;
67     CheckBox    m_aCB_Use_Variants;
68 
69     FixedLine   m_aFL_Commonterms;
70 
71     CheckBox    m_aCB_Translate_Commonterms;
72     PushButton	m_aPB_Editterms;
73 
74     FixedLine   m_aFL_Bottomline;
75 
76     OKButton	    m_aBP_OK;
77 	CancelButton    m_aBP_Cancel;
78 	HelpButton		m_aBP_Help;
79 
80     ChineseDictionaryDialog* m_pDictionaryDialog;
81 };
82 
83 //.............................................................................
84 } //end namespace
85 //.............................................................................
86 #endif
87