LibreOffice Module sc (master) 1
|
#include <scuiimoptdlg.hxx>
Public Member Functions | |
ScImportOptionsDlg (weld::Window *pParent, bool bAscii, const ScImportOptions *pOptions, const OUString *pStrTitle, bool bMultiByte, bool bOnlyDbtoolsEncodings, bool bImport) | |
virtual | ~ScImportOptionsDlg () override |
void | GetImportOptions (ScImportOptions &rOptions) const |
void | SaveImportOptions () const |
Public Member Functions inherited from weld::GenericDialogController | |
GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false) | |
virtual Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () const |
virtual short | run () |
void | set_title (const OUString &rTitle) |
OUString | get_title () const |
void | set_help_id (const OUString &rHelpId) |
OUString | get_help_id () const |
void | response (int nResponse) |
virtual | ~DialogController () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
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, weld::Toggleable &, void) | |
DECL_LINK (DoubleClickHdl, weld::TreeView &, bool) | |
Private Attributes | |
std::unique_ptr< ScDelimiterTable > | pFieldSepTab |
std::unique_ptr< ScDelimiterTable > | pTextSepTab |
bool | 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< SvxTextEncodingBox > | m_xLbCharset |
std::unique_ptr< SvxTextEncodingTreeView > | m_xTvCharset |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::DialogController | |
static bool | runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &) |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 29 of file scuiimoptdlg.hxx.
ScImportOptionsDlg::ScImportOptionsDlg | ( | weld::Window * | pParent, |
bool | bAscii, | ||
const ScImportOptions * | pOptions, | ||
const OUString * | pStrTitle, | ||
bool | bMultiByte, | ||
bool | bOnlyDbtoolsEncodings, | ||
bool | bImport | ||
) |
TODO: Unicode would need work in each filter
Definition at line 108 of file scuiimoptdlg.cxx.
References aStr, ScImportOptions::eCharSet, FillFromDbTextEncodingMap(), FillFromTextEncodingTable(), LINK, m_xCbFixed, m_xCbFormulas, m_xCbQuoteAll, m_xCbShown, weld::GenericDialogController::m_xDialog, m_xEdFieldSep, m_xEdTextSep, m_xEncGrid, m_xFieldFrame, m_xFtCharset, m_xFtFieldSep, m_xFtTextSep, m_xLbCharset, m_xTvCharset, ScImportOptions::nFieldSepCode, ScImportOptions::nTextSepCode, pFieldSepTab, pTextSepTab, ScResId(), SCSTR_FIELDSEP, and SCSTR_TEXTSEP.
|
overridevirtual |
Definition at line 263 of file scuiimoptdlg.cxx.
|
private |
|
private |
|
private |
Definition at line 99 of file scuiimoptdlg.cxx.
References m_bIsAsciiImport, m_xLbCharset, and m_xTvCharset.
Referenced by ScImportOptionsDlg().
|
private |
Definition at line 91 of file scuiimoptdlg.cxx.
References m_bIsAsciiImport, m_xLbCharset, and m_xTvCharset.
Referenced by ScImportOptionsDlg().
|
private |
Definition at line 283 of file scuiimoptdlg.cxx.
References aStr, weld::ComboBox::get_active_text(), ScDelimiterTable::GetCode(), m_xEdTextSep, pFieldSepTab, and pTextSepTab.
Referenced by GetImportOptions().
void ScImportOptionsDlg::GetImportOptions | ( | ScImportOptions & | rOptions | ) | const |
Definition at line 267 of file scuiimoptdlg.cxx.
References ScImportOptions::bFixedWidth, ScImportOptions::bQuoteAllText, ScImportOptions::bSaveAsShown, ScImportOptions::bSaveFormulas, GetCodeFromCombo(), m_bIsAsciiImport, m_xCbFixed, m_xCbFormulas, m_xCbQuoteAll, m_xCbShown, m_xEdFieldSep, m_xEdTextSep, m_xLbCharset, m_xTvCharset, ScImportOptions::nFieldSepCode, ScImportOptions::nTextSepCode, and ScImportOptions::SetTextEncoding().
void ScImportOptionsDlg::SaveImportOptions | ( | ) | const |
Definition at line 326 of file scuiimoptdlg.cxx.
References comphelper::ConfigurationChanges::create(), m_bIsAsciiImport, m_xCbFixed, m_xCbFormulas, m_xCbQuoteAll, m_xCbShown, m_xEdFieldSep, m_xEdTextSep, m_xLbCharset, and m_xTvCharset.
|
private |
Definition at line 49 of file scuiimoptdlg.hxx.
Referenced by FillFromDbTextEncodingMap(), FillFromTextEncodingTable(), GetImportOptions(), and SaveImportOptions().
|
private |
Definition at line 61 of file scuiimoptdlg.hxx.
Referenced by GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 59 of file scuiimoptdlg.hxx.
Referenced by GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 60 of file scuiimoptdlg.hxx.
Referenced by GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 58 of file scuiimoptdlg.hxx.
Referenced by GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 55 of file scuiimoptdlg.hxx.
Referenced by GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 57 of file scuiimoptdlg.hxx.
Referenced by GetCodeFromCombo(), GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 53 of file scuiimoptdlg.hxx.
Referenced by ScImportOptionsDlg().
|
private |
Definition at line 51 of file scuiimoptdlg.hxx.
Referenced by ScImportOptionsDlg().
|
private |
Definition at line 52 of file scuiimoptdlg.hxx.
Referenced by ScImportOptionsDlg().
|
private |
Definition at line 54 of file scuiimoptdlg.hxx.
Referenced by ScImportOptionsDlg().
|
private |
Definition at line 56 of file scuiimoptdlg.hxx.
Referenced by ScImportOptionsDlg().
|
private |
Definition at line 62 of file scuiimoptdlg.hxx.
Referenced by FillFromDbTextEncodingMap(), FillFromTextEncodingTable(), GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 63 of file scuiimoptdlg.hxx.
Referenced by FillFromDbTextEncodingMap(), FillFromTextEncodingTable(), GetImportOptions(), SaveImportOptions(), and ScImportOptionsDlg().
|
private |
Definition at line 46 of file scuiimoptdlg.hxx.
Referenced by GetCodeFromCombo(), and ScImportOptionsDlg().
|
private |
Definition at line 47 of file scuiimoptdlg.hxx.
Referenced by GetCodeFromCombo(), and ScImportOptionsDlg().