diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-15 12:58:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-15 15:54:39 +0100 |
commit | 36af12e74f4fa20712a3671c1be2a3a4b5a54e7d (patch) | |
tree | 4a342fc225f91d425be05085cb4b80711cea24d4 /sc/source/ui/inc | |
parent | 03b4d8f486d9ecdfe21a05d6bf65c396a35772f6 (diff) |
weld ScImportOptionsDlg
Change-Id: Ib8ea4726d20f0bd7f40283983fec2d5890fac382
Reviewed-on: https://gerrit.libreoffice.org/67869
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/scuiimoptdlg.hxx | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/sc/source/ui/inc/scuiimoptdlg.hxx b/sc/source/ui/inc/scuiimoptdlg.hxx index d97524a6dec6..8d9699c20375 100644 --- a/sc/source/ui/inc/scuiimoptdlg.hxx +++ b/sc/source/ui/inc/scuiimoptdlg.hxx @@ -20,57 +20,56 @@ #ifndef INCLUDED_SC_SOURCE_UI_INC_SCUIIMOPTDLG_HXX #define INCLUDED_SC_SOURCE_UI_INC_SCUIIMOPTDLG_HXX -#include <vcl/layout.hxx> -#include <vcl/dialog.hxx> +#include <vcl/weld.hxx> #include <svx/txencbox.hxx> class ScDelimiterTable; class ScImportOptions; -class ScImportOptionsDlg : public ModalDialog +class ScImportOptionsDlg : public weld::GenericDialogController { public: - ScImportOptionsDlg( vcl::Window* pParent, - bool bAscii, - const ScImportOptions* pOptions, - const OUString* pStrTitle, - bool bMultiByte, - bool bOnlyDbtoolsEncodings, - bool bImport ); + ScImportOptionsDlg(weld::Window* pParent, + bool bAscii, + const ScImportOptions* pOptions, + const OUString* pStrTitle, + bool bMultiByte, + bool bOnlyDbtoolsEncodings, + bool bImport); virtual ~ScImportOptionsDlg() override; - virtual void dispose() override; void GetImportOptions( ScImportOptions& rOptions ) const; void SaveImportOptions() const; - virtual OString GetScreenshotId() const override; private: - VclPtr<VclFrame> m_pFieldFrame; - VclPtr<FixedText> m_pFtCharset; - VclPtr<VclContainer> m_pEncGrid; - VclPtr<SvxTextEncodingBox> m_pLbCharset; - VclPtr<FixedText> m_pFtFieldSep; - VclPtr<ComboBox> m_pEdFieldSep; - VclPtr<FixedText> m_pFtTextSep; - VclPtr<ComboBox> m_pEdTextSep; - VclPtr<CheckBox> m_pCbShown; - VclPtr<CheckBox> m_pCbFormulas; - VclPtr<CheckBox> m_pCbQuoteAll; - VclPtr<CheckBox> m_pCbFixed; - VclPtr<OKButton> m_pBtnOk; - - std::unique_ptr<ScDelimiterTable> pFieldSepTab; std::unique_ptr<ScDelimiterTable> pTextSepTab; bool const m_bIsAsciiImport; + std::unique_ptr<weld::Frame> m_xFieldFrame; + std::unique_ptr<weld::Label> m_xFtCharset; + std::unique_ptr<weld::Widget> m_xEncGrid; + std::unique_ptr<weld::Label> m_xFtFieldSep; + std::unique_ptr<weld::ComboBox> m_xEdFieldSep; + std::unique_ptr<weld::Label> m_xFtTextSep; + std::unique_ptr<weld::ComboBox> m_xEdTextSep; + std::unique_ptr<weld::CheckButton> m_xCbShown; + std::unique_ptr<weld::CheckButton> m_xCbFormulas; + std::unique_ptr<weld::CheckButton> m_xCbQuoteAll; + std::unique_ptr<weld::CheckButton> m_xCbFixed; + std::unique_ptr<weld::Button> m_xBtnOk; + std::unique_ptr<TextEncodingBox> m_xLbCharset; + std::unique_ptr<TextEncodingTreeView> m_xTvCharset; + private: - sal_uInt16 GetCodeFromCombo( const ComboBox& rEd ) const; + sal_uInt16 GetCodeFromCombo( const weld::ComboBox& rEd ) const; + void FillFromTextEncodingTable(bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags = 0); + void FillFromDbTextEncodingMap(bool bExcludeImportSubsets, sal_uInt32 nExcludeInfoFlags = 0); - DECL_LINK( FixedWidthHdl, Button*, void ); - DECL_LINK( DoubleClickHdl, ListBox&, void ); + DECL_LINK(FixedWidthHdl, weld::ToggleButton&, void); + DECL_LINK(DoubleClickHdl, weld::TreeView&, void); }; #endif |