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 <unicode/ucsdet.h>
Go to the source code of this file.
Enumerations | |
enum | CSVImportOptionsIndex |
Functions | |
static void | lcl_FillCombo (weld::ComboBox &rCombo, const OUString &rList, sal_Unicode cSelect) |
static sal_Unicode | lcl_CharFromCombo (const weld::ComboBox &rCombo, const OUString &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 &rFixedWidth, sal_Int32 &rFromRow, sal_Int32 &rCharSet, sal_Int32 &rLanguage, bool &rSkipEmptyCells, bool &rRemoveSpace, ScImportAsciiCall eCall) |
static void | lcl_SaveSeparators (const OUString &sFieldSeparators, const OUString &sTextSeparators, bool bMergeDelimiters, bool bQuotedAsText, bool bDetectSpecialNum, bool bFixedWidth, sal_Int32 nFromRow, sal_Int32 nCharSet, sal_Int32 nLanguage, bool bSkipEmptyCells, bool bRemoveSpace, ScImportAsciiCall eCall) |
constexpr OUStringLiteral | gaTextSepList (u""SCSTR_TEXTSEP) |
IMPL_LINK (ScImportAsciiDlg, RbSepFixHdl, weld::Button &, rButton, void) | |
IMPL_LINK (ScImportAsciiDlg, SeparatorClickHdl, weld::Button &, rCtrl, void) | |
IMPL_LINK (ScImportAsciiDlg, SeparatorComboBoxHdl, weld::ComboBox &, rCtrl, void) | |
IMPL_LINK (ScImportAsciiDlg, SeparatorEditHdl, weld::Entry &, rEdit, 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... | |
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" |
Definition at line 50 of file scuiasciiopt.cxx.
constexpr OUStringLiteral gaTextSepList | ( | u"" | SCSTR_TEXTSEP | ) |
IMPL_LINK | ( | ScImportAsciiDlg | , |
RbSepFixHdl | , | ||
weld::Button & | , | ||
rButton | , | ||
void | |||
) |
Definition at line 699 of file scuiasciiopt.cxx.
References m_xDialog.
IMPL_LINK | ( | ScImportAsciiDlg | , |
SeparatorClickHdl | , | ||
weld::Button & | , | ||
rCtrl | , | ||
void | |||
) |
Definition at line 712 of file scuiasciiopt.cxx.
IMPL_LINK | ( | ScImportAsciiDlg | , |
SeparatorComboBoxHdl | , | ||
weld::ComboBox & | , | ||
rCtrl | , | ||
void | |||
) |
Definition at line 717 of file scuiasciiopt.cxx.
IMPL_LINK | ( | ScImportAsciiDlg | , |
SeparatorEditHdl | , | ||
weld::Entry & | , | ||
rEdit | , | ||
void | |||
) |
Definition at line 722 of file scuiasciiopt.cxx.
References rEdit.
IMPL_LINK | ( | ScImportAsciiDlg | , |
FirstRowHdl | , | ||
weld::SpinButton & | , | ||
rNumField | , | ||
void | |||
) |
Definition at line 766 of file scuiasciiopt.cxx.
References CSVCMD_SETFIRSTIMPORTLINE.
IMPL_LINK | ( | ScImportAsciiDlg | , |
LbColTypeHdl | , | ||
weld::ComboBox & | , | ||
rListBox | , | ||
void | |||
) |
Definition at line 771 of file scuiasciiopt.cxx.
References CSVCMD_SETCOLUMNTYPE.
IMPL_LINK | ( | ScImportAsciiDlg | , |
ColTypeHdl | , | ||
ScCsvTableBox & | , | ||
rTableBox | , | ||
void | |||
) |
Definition at line 822 of file scuiasciiopt.cxx.
References CSV_TYPE_MULTI, and nType.
IMPL_LINK_NOARG | ( | ScImportAsciiDlg | , |
CharSetHdl | , | ||
weld::ComboBox & | , | ||
void | |||
) |
Definition at line 751 of file scuiasciiopt.cxx.
References CSVCMD_NEWCELLTEXTS, and m_xDialog.
IMPL_LINK_NOARG | ( | ScImportAsciiDlg | , |
UpdateTextHdl | , | ||
ScCsvTableBox & | , | ||
void | |||
) |
Definition at line 777 of file scuiasciiopt.cxx.
References assert(), CSV_PREVIEW_LINES, CSVCMD_SETLINECOUNT, and i.
|
static |
Definition at line 118 of file scuiasciiopt.cxx.
References aStr, weld::ComboBox::get_active_text(), and ScGlobal::GetpTransliteration().
Referenced by ScImportAsciiDlg::GetOptions(), and ScImportAsciiDlg::SeparatorHdl().
|
static |
Definition at line 149 of file scuiasciiopt.cxx.
References aSep_Path, aSep_Path_Clpbrd, aSep_Path_Text2Col, assert(), CSVImportOptionNames, nProperties, SC_IMPORTFILE, SC_PASTETEXT, and SC_TEXTTOCOLUMNS.
Referenced by lcl_LoadSeparators(), and lcl_SaveSeparators().
|
static |
Definition at line 93 of file scuiasciiopt.cxx.
References weld::ComboBox::append_text(), aStr, and weld::ComboBox::set_entry_text().
Referenced by ScImportAsciiDlg::ScImportAsciiDlg().
|
static |
Definition at line 192 of file scuiasciiopt.cxx.
References Any, assert(), ScUnoHelpFunctions::GetBoolFromAny(), ScLinkConfigItem::GetProperties(), lcl_CreatePropertiesNames(), SC_IMPORTFILE, and SC_TEXTTOCOLUMNS.
Referenced by ScImportAsciiDlg::ScImportAsciiDlg().
|
static |
Definition at line 247 of file scuiasciiopt.cxx.
References Any, assert(), 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 43 of file scuiasciiopt.cxx.
Referenced by ScImportAsciiDlg::GetLine().
constexpr OUStringLiteral aSep_Path = u"Office.Calc/Dialogs/CSVImport" |
Definition at line 82 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().
constexpr OUStringLiteral aSep_Path_Clpbrd = u"Office.Calc/Dialogs/ClipboardTextImport" |
Definition at line 83 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().
constexpr OUStringLiteral aSep_Path_Text2Col = u"Office.Calc/Dialogs/TextToColumnsImport" |
Definition at line 84 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().
const ::std::vector<OUString> CSVImportOptionNames |
Definition at line 68 of file scuiasciiopt.cxx.
Referenced by lcl_CreatePropertiesNames().