1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: chinese_translationdialog.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _TEXTCONVERSIONDLGS_CHINESE_TRANSLATIONDLG_HXX
32 #define _TEXTCONVERSIONDLGS_CHINESE_TRANSLATIONDLG_HXX
34 #include <vcl/dialog.hxx>
35 // header for class FixedLine
36 #include <vcl/fixed.hxx>
37 // header for class RadioButton
38 #ifndef _SV_BUTTON_HXX
39 #include <vcl/button.hxx>
42 //.............................................................................
43 namespace textconversiondlgs
45 //.............................................................................
47 //-----------------------------------------------------------------------------
50 class ChineseDictionaryDialog
;
52 class ChineseTranslationDialog
: public ModalDialog
55 ChineseTranslationDialog( Window
* pParent
);
56 virtual ~ChineseTranslationDialog();
58 void getSettings( sal_Bool
& rbDirectionToSimplified
59 , sal_Bool
& rbUseCharacterVariants
60 , sal_Bool
& rbTranslateCommonTerms
) const;
63 DECL_LINK( DictionaryHdl
, void* );
64 DECL_LINK( DirectionHdl
, void* );
65 DECL_LINK( CommonTermsHdl
, void* );
66 DECL_LINK( OkHdl
, void* );
67 void impl_UpdateVariantsCheckBox();
70 FixedLine m_aFL_Direction
;
72 RadioButton m_aRB_To_Simplified
;
73 RadioButton m_aRB_To_Traditional
;
74 CheckBox m_aCB_Use_Variants
;
76 FixedLine m_aFL_Commonterms
;
78 CheckBox m_aCB_Translate_Commonterms
;
79 PushButton m_aPB_Editterms
;
81 FixedLine m_aFL_Bottomline
;
84 CancelButton m_aBP_Cancel
;
85 HelpButton m_aBP_Help
;
87 ChineseDictionaryDialog
* m_pDictionaryDialog
;
90 //.............................................................................
92 //.............................................................................