|
LibreOffice Module sc (master) 1
|
#include <svx/txencbox.hxx>#include <global.hxx>#include <scresid.hxx>#include <impex.hxx>#include <scuiasciiopt.hxx>#include <strings.hrc>#include <strings.hxx>#include <csvtablebox.hxx>#include <osl/thread.h>#include <unotools/transliterationwrapper.hxx>#include <optutil.hxx>#include <com/sun/star/uno/Any.hxx>#include <com/sun/star/uno/Sequence.hxx>#include <miscuno.hxx>#include <osl/diagnose.h>#include <vcl/svapp.hxx>#include <comphelper/lok.hxx>#include <o3tl/string_view.hxx>#include <unicode/ucsdet.h>Go to the source code of this file.
Functions | |
| static void | lcl_FillCombo (weld::ComboBox &rCombo, std::u16string_view rList, sal_Unicode cSelect) |
| static sal_Unicode | lcl_CharFromCombo (const weld::ComboBox &rCombo, std::u16string_view rList) |
| static void | lcl_CreatePropertiesNames (OUString &rSepPath, Sequence< OUString > &rNames, ScImportAsciiCall eCall) |
| static void | lcl_LoadSeparators (OUString &rFieldSeparators, OUString &rTextSeparators, bool &rMergeDelimiters, bool &rQuotedAsText, bool &rDetectSpecialNum, bool &rDetectScientificNum, bool &rFixedWidth, sal_Int32 &rFromRow, sal_Int32 &rCharSet, sal_Int32 &rLanguage, bool &rSkipEmptyCells, bool &rRemoveSpace, bool &rEvaluateFormulas, ScImportAsciiCall eCall) |
| static void | lcl_SaveSeparators (const OUString &sFieldSeparators, const OUString &sTextSeparators, bool bMergeDelimiters, bool bQuotedAsText, bool bDetectSpecialNum, bool bDetectScientificNum, bool bFixedWidth, sal_Int32 nFromRow, sal_Int32 nCharSet, sal_Int32 nLanguage, bool bSkipEmptyCells, bool bRemoveSpace, bool bEvaluateFormulas, ScImportAsciiCall eCall) |
| IMPL_STATIC_LINK_NOARG (ScImportAsciiDlg, InstallLOKNotifierHdl, void *, vcl::ILibreOfficeKitNotifier *) | |
| IMPL_LINK (ScImportAsciiDlg, RbSepFixHdl, weld::Toggleable &, rButton, void) | |
| IMPL_LINK (ScImportAsciiDlg, SeparatorClickHdl, weld::Toggleable &, rCtrl, void) | |
| IMPL_LINK (ScImportAsciiDlg, SeparatorComboBoxHdl, weld::ComboBox &, rCtrl, void) | |
| IMPL_LINK (ScImportAsciiDlg, SeparatorEditHdl, weld::Entry &, rEdit, void) | |
| IMPL_LINK (ScImportAsciiDlg, OtherOptionsClickHdl, weld::Toggleable &, rCtrl, void) | |
| IMPL_LINK_NOARG (ScImportAsciiDlg, CharSetHdl, weld::ComboBox &, void) | |
| IMPL_LINK (ScImportAsciiDlg, FirstRowHdl, weld::SpinButton &, rNumField, void) | |
| IMPL_LINK (ScImportAsciiDlg, LbColTypeHdl, weld::ComboBox &, rListBox, void) | |
| IMPL_LINK_NOARG (ScImportAsciiDlg, UpdateTextHdl, ScCsvTableBox &, void) | |
| IMPL_LINK (ScImportAsciiDlg, ColTypeHdl, ScCsvTableBox &, rTableBox, void) | |
Variables | |
| const SCSIZE | ASCIIDLG_MAXROWS = MAXROWCOUNT |
| TODO make dynamic. More... | |
| constexpr sal_uInt32 | kMaxEmbeddedLinefeeds = 500 |
| const ::std::vector< OUString > | CSVImportOptionNames |
| constexpr OUStringLiteral | aSep_Path = u"Office.Calc/Dialogs/CSVImport" |
| constexpr OUStringLiteral | aSep_Path_Clpbrd = u"Office.Calc/Dialogs/ClipboardTextImport" |
| constexpr OUStringLiteral | aSep_Path_Text2Col = u"Office.Calc/Dialogs/TextToColumnsImport" |
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| ColTypeHdl | , | ||
| ScCsvTableBox & | , | ||
| rTableBox | , | ||
| void | |||
| ) |
Definition at line 960 of file scuiasciiopt.cxx.
References CSV_TYPE_MULTI, and nType.
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| FirstRowHdl | , | ||
| weld::SpinButton & | , | ||
| rNumField | , | ||
| void | |||
| ) |
Definition at line 895 of file scuiasciiopt.cxx.
References CSVCMD_SETFIRSTIMPORTLINE.
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| LbColTypeHdl | , | ||
| weld::ComboBox & | , | ||
| rListBox | , | ||
| void | |||
| ) |
Definition at line 900 of file scuiasciiopt.cxx.
References CSVCMD_SETCOLUMNTYPE.
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| OtherOptionsClickHdl | , | ||
| weld::Toggleable & | , | ||
| rCtrl | , | ||
| void | |||
| ) |
Definition at line 841 of file scuiasciiopt.cxx.
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| RbSepFixHdl | , | ||
| weld::Toggleable & | , | ||
| rButton | , | ||
| void | |||
| ) |
Definition at line 819 of file scuiasciiopt.cxx.
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| SeparatorClickHdl | , | ||
| weld::Toggleable & | , | ||
| rCtrl | , | ||
| void | |||
| ) |
Definition at line 826 of file scuiasciiopt.cxx.
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| SeparatorComboBoxHdl | , | ||
| weld::ComboBox & | , | ||
| rCtrl | , | ||
| void | |||
| ) |
Definition at line 831 of file scuiasciiopt.cxx.
| IMPL_LINK | ( | ScImportAsciiDlg | , |
| SeparatorEditHdl | , | ||
| weld::Entry & | , | ||
| rEdit | , | ||
| void | |||
| ) |
Definition at line 836 of file scuiasciiopt.cxx.
| IMPL_LINK_NOARG | ( | ScImportAsciiDlg | , |
| CharSetHdl | , | ||
| weld::ComboBox & | , | ||
| void | |||
| ) |
Definition at line 880 of file scuiasciiopt.cxx.
References CSVCMD_NEWCELLTEXTS, and m_xDialog.
| IMPL_LINK_NOARG | ( | ScImportAsciiDlg | , |
| UpdateTextHdl | , | ||
| ScCsvTableBox & | , | ||
| void | |||
| ) |
Definition at line 906 of file scuiasciiopt.cxx.
References CSV_PREVIEW_LINES, CSVCMD_SETLINECOUNT, and i.
| IMPL_STATIC_LINK_NOARG | ( | ScImportAsciiDlg | , |
| InstallLOKNotifierHdl | , | ||
| void * | , | ||
| vcl::ILibreOfficeKitNotifier * | |||
| ) |
Definition at line 611 of file scuiasciiopt.cxx.
References GetpApp().
|
static |
Definition at line 140 of file scuiasciiopt.cxx.
References aStr, weld::ComboBox::get_active_text(), o3tl::getToken(), ScGlobal::GetTransliteration(), and o3tl::toInt32().
Referenced by ScImportAsciiDlg::GetOptions(), ScImportAsciiDlg::ScImportAsciiDlg(), and ScImportAsciiDlg::SeparatorHdl().
|
static |
Definition at line 171 of file scuiasciiopt.cxx.
References aSep_Path, aSep_Path_Clpbrd, aSep_Path_Text2Col, CSVImportOptionNames, nProperties, SC_IMPORTFILE, SC_PASTETEXT, and SC_TEXTTOCOLUMNS.
Referenced by lcl_LoadSeparators(), and lcl_SaveSeparators().
|
static |
Definition at line 115 of file scuiasciiopt.cxx.
References weld::ComboBox::append_text(), aStr, o3tl::getToken(), weld::ComboBox::set_entry_text(), and o3tl::toInt32().
Referenced by ScImportAsciiDlg::ScImportAsciiDlg().
|
static |
Definition at line 216 of file scuiasciiopt.cxx.
References Any, ScUnoHelpFunctions::GetBoolFromAny(), ScLinkConfigItem::GetProperties(), lcl_CreatePropertiesNames(), SC_IMPORTFILE, and SC_TEXTTOCOLUMNS.
Referenced by ScImportAsciiDlg::ScImportAsciiDlg().
|
static |
Definition at line 278 of file scuiasciiopt.cxx.
References Any, ScLinkConfigItem::GetProperties(), lcl_CreatePropertiesNames(), ScLinkConfigItem::PutProperties(), SC_IMPORTFILE, and SC_TEXTTOCOLUMNS.
Referenced by ScImportAsciiDlg::SaveParameters().
| const SCSIZE ASCIIDLG_MAXROWS = MAXROWCOUNT |
TODO make dynamic.
Definition at line 46 of file scuiasciiopt.cxx.
Referenced by ScImportAsciiDlg::GetLine().
|
constexpr |
Definition at line 104 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().
|
constexpr |
Definition at line 105 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().
|
constexpr |
Definition at line 106 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().
| const ::std::vector<OUString> CSVImportOptionNames |
Definition at line 88 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().
|
constexpr |
Definition at line 54 of file scuiasciiopt.cxx.
Referenced by ScImportAsciiDlg::GetLine().