summaryrefslogtreecommitdiff
path: root/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx')
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx31
1 files changed, 11 insertions, 20 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx
index 4fb45c93ee20..7d0d0180022a 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx
@@ -20,44 +20,35 @@
#ifndef INCLUDED_SVX_SOURCE_UNODIALOGS_TEXTCONVERSIONDLGS_CHINESE_TRANSLATIONDIALOG_HXX
#define INCLUDED_SVX_SOURCE_UNODIALOGS_TEXTCONVERSIONDLGS_CHINESE_TRANSLATIONDIALOG_HXX
-#include <vcl/dialog.hxx>
-#include <vcl/fixed.hxx>
-#include <vcl/button.hxx>
-
+#include <vcl/weld.hxx>
namespace textconversiondlgs
{
-
class ChineseDictionaryDialog;
-class ChineseTranslationDialog : public ModalDialog
+class ChineseTranslationDialog : public weld::GenericDialogController
{
public:
- explicit ChineseTranslationDialog( vcl::Window* pParent );
+ explicit ChineseTranslationDialog(weld::Window* pParent);
virtual ~ChineseTranslationDialog() override;
- virtual void dispose() override;
void getSettings( bool& rbDirectionToSimplified
, bool& rbTranslateCommonTerms ) const;
private:
- DECL_LINK( DictionaryHdl, Button*, void );
- DECL_LINK( OkHdl, Button*, void );
+ DECL_LINK( DictionaryHdl, weld::Button&, void );
+ DECL_LINK( OkHdl, weld::Button&, void );
private:
- VclPtr<RadioButton> m_pRB_To_Simplified;
- VclPtr<RadioButton> m_pRB_To_Traditional;
-
- VclPtr<CheckBox> m_pCB_Translate_Commonterms;
- VclPtr<PushButton> m_pPB_Editterms;
-
- VclPtr<OKButton> m_pBP_OK;
-
- VclPtr<ChineseDictionaryDialog> m_pDictionaryDialog;
+ std::unique_ptr<weld::Button> m_xBP_OK;
+ std::unique_ptr<weld::Button> m_xPB_Editterms;
+ std::unique_ptr<weld::RadioButton> m_xRB_To_Simplified;
+ std::unique_ptr<weld::RadioButton> m_xRB_To_Traditional;
+ std::unique_ptr<weld::CheckButton> m_xCB_Translate_Commonterms;
+ std::unique_ptr<ChineseDictionaryDialog> m_xDictionaryDialog;
};
-
} //end namespace
#endif