LibreOffice Module sc (master) 1
|
#include <scuiasciiopt.hxx>
Public Member Functions | |
ScImportAsciiDlg (weld::Window *pParent, std::u16string_view aDatName, SvStream *pInStream, ScImportAsciiCall eCall) | |
virtual | ~ScImportAsciiDlg () override |
void | GetOptions (ScAsciiOptions &rOpt) |
void | SaveParameters () |
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 | |
void | SetSelectedCharSet () |
Sets the selected char set data to meCharSet and mbCharSetSystem. More... | |
void | SetSeparators (sal_Unicode cSep) |
Set separators in ui from maFieldSeparators or an optionally defined separator. More... | |
OUString | GetSeparators () const |
Returns all separator characters in a string. More... | |
void | SetupSeparatorCtrls () |
Enables or disables all separator checkboxes and edit fields. More... | |
bool | GetLine (sal_uLong nLine, OUString &rText, sal_Unicode &rcDetectSep) |
void | UpdateVertical () |
bool | Seek (sal_uLong nPos) |
void | RbSepFix () |
DECL_LINK (CharSetHdl, weld::ComboBox &, void) | |
DECL_LINK (FirstRowHdl, weld::SpinButton &, void) | |
DECL_LINK (RbSepFixHdl, weld::Toggleable &, void) | |
DECL_LINK (SeparatorEditHdl, weld::Entry &, void) | |
DECL_LINK (SeparatorClickHdl, weld::Toggleable &, void) | |
DECL_LINK (OtherOptionsClickHdl, weld::Toggleable &, void) | |
DECL_LINK (SeparatorComboBoxHdl, weld::ComboBox &, void) | |
void | SeparatorHdl (const weld::Widget *) |
DECL_LINK (LbColTypeHdl, weld::ComboBox &, void) | |
DECL_LINK (UpdateTextHdl, ScCsvTableBox &, void) | |
DECL_LINK (ColTypeHdl, ScCsvTableBox &, void) | |
DECL_STATIC_LINK (ScImportAsciiDlg, InstallLOKNotifierHdl, void *, vcl::ILibreOfficeKitNotifier *) | |
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 32 of file scuiasciiopt.hxx.
ScImportAsciiDlg::ScImportAsciiDlg | ( | weld::Window * | pParent, |
std::u16string_view | aDatName, | ||
SvStream * | pInStream, | ||
ScImportAsciiCall | eCall | ||
) |
Definition at line 318 of file scuiasciiopt.cxx.
References aName, CSVCMD_NEWCELLTEXTS, o3tl::endsWithIgnoreAsciiCase(), GetSeparators(), SvStream::GetStreamCharSet(), comphelper::LibreOfficeKit::isActive(), LANGUAGE_SYSTEM, lcl_CharFromCombo(), lcl_FillCombo(), lcl_LoadSeparators(), LINK, weld::GenericDialogController::m_xDialog, maFieldSeparators, match(), mcTextSep, meCall, mnStreamPos, mpDatStream, mxAltTitle, mxCbTextSep, mxCkbAsOnce, mxCkbComma, mxCkbDetectNumber, mxCkbDetectScientificNumber, mxCkbEvaluateFormulas, mxCkbOther, mxCkbQuotedAsText, mxCkbRemoveSpace, mxCkbSemicolon, mxCkbSkipEmptyCells, mxCkbSpace, mxCkbTab, mxEdOther, mxFtCharSet, mxFtCustomLang, mxFtRow, mxLbCharSet, mxLbCustomLang, mxLbType, mxNfRow, mxRbFixed, mxRbSeparated, mxTableBox, RbSepFix(), SvStream::ReadBytes(), SvStream::ReadUniOrByteStringLine(), SC_IMPORTFILE, SC_TEXTTOCOLUMNS, ScResId(), SCSTR_TEXTSEP, SvStream::Seek(), SvStream::SetEndian(), SetSelectedCharSet(), SetSeparators(), SetupSeparatorCtrls(), SvStream::StartReadingUnicodeText(), SvStream::Tell(), and UpdateVertical().
|
overridevirtual |
Definition at line 616 of file scuiasciiopt.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 620 of file scuiasciiopt.cxx.
References ASCIIDLG_MAXROWS, ScImportExport::EmbeddedNullTreatment(), SvStream::eof(), ERRCODE_IO_CANTSEEK, SvStream::GetError(), SvStream::GetStreamCharSet(), SvStream::good(), kMaxEmbeddedLinefeeds, maFieldSeparators, mcTextSep, mnRowPosCount, mnStreamPos, mpDatStream, mpRowPosArray, mxRbFixed, ReadCsvLine(), SvStream::ResetError(), Seek(), SvStream::StartReadingUnicodeText(), and SvStream::Tell().
void ScImportAsciiDlg::GetOptions | ( | ScAsciiOptions & | rOpt | ) |
Definition at line 684 of file scuiasciiopt.cxx.
References GetSeparators(), lcl_CharFromCombo(), mbCharSetSystem, meCharSet, mxCbTextSep, mxCkbAsOnce, mxCkbDetectNumber, mxCkbDetectScientificNumber, mxCkbEvaluateFormulas, mxCkbQuotedAsText, mxCkbRemoveSpace, mxCkbSkipEmptyCells, mxLbCustomLang, mxNfRow, mxRbFixed, mxRbSeparated, mxTableBox, SCSTR_TEXTSEP, ScAsciiOptions::SetCharSet(), ScAsciiOptions::SetCharSetSystem(), ScAsciiOptions::SetDetectScientificNumber(), ScAsciiOptions::SetDetectSpecialNumber(), ScAsciiOptions::SetEvaluateFormulas(), ScAsciiOptions::SetFieldSeps(), ScAsciiOptions::SetFixedLen(), ScAsciiOptions::SetLanguage(), ScAsciiOptions::SetMergeSeps(), ScAsciiOptions::SetQuotedAsText(), ScAsciiOptions::SetRemoveSpace(), ScAsciiOptions::SetSkipEmptyCells(), ScAsciiOptions::SetStartRow(), and ScAsciiOptions::SetTextSep().
|
private |
Returns all separator characters in a string.
Definition at line 771 of file scuiasciiopt.cxx.
References mxCkbComma, mxCkbOther, mxCkbSemicolon, mxCkbSpace, mxCkbTab, and mxEdOther.
Referenced by GetOptions(), ScImportAsciiDlg(), and SeparatorHdl().
|
private |
Definition at line 809 of file scuiasciiopt.cxx.
References weld::GenericDialogController::m_xDialog, mxRbFixed, mxTableBox, and SetupSeparatorCtrls().
Referenced by ScImportAsciiDlg().
void ScImportAsciiDlg::SaveParameters | ( | ) |
Definition at line 707 of file scuiasciiopt.cxx.
References lcl_SaveSeparators(), maFieldSeparators, meCall, mxCbTextSep, mxCkbAsOnce, mxCkbDetectNumber, mxCkbDetectScientificNumber, mxCkbEvaluateFormulas, mxCkbQuotedAsText, mxCkbRemoveSpace, mxCkbSkipEmptyCells, mxLbCharSet, mxLbCustomLang, mxNfRow, and mxRbFixed.
|
inlineprivate |
Definition at line 124 of file scuiasciiopt.hxx.
References mnStreamPos, mpDatStream, nPos, and SvStream::Seek().
Referenced by GetLine().
|
private |
Definition at line 856 of file scuiasciiopt.cxx.
References CSVCMD_NEWCELLTEXTS, GetSeparators(), lcl_CharFromCombo(), maFieldSeparators, mcTextSep, mxCbTextSep, mxCkbOther, mxEdOther, mxRbFixed, mxTableBox, SCSTR_TEXTSEP, and UpdateVertical().
|
private |
Sets the selected char set data to meCharSet and mbCharSetSystem.
Definition at line 763 of file scuiasciiopt.cxx.
References mbCharSetSystem, meCharSet, and mxLbCharSet.
Referenced by ScImportAsciiDlg().
|
private |
Set separators in ui from maFieldSeparators or an optionally defined separator.
Definition at line 719 of file scuiasciiopt.cxx.
References i, maFieldSeparators, mxCkbComma, mxCkbOther, mxCkbSemicolon, mxCkbSpace, mxCkbTab, and mxEdOther.
Referenced by ScImportAsciiDlg().
|
private |
Enables or disables all separator checkboxes and edit fields.
Definition at line 787 of file scuiasciiopt.cxx.
References mxCbTextSep, mxCkbAsOnce, mxCkbComma, mxCkbOther, mxCkbRemoveSpace, mxCkbSemicolon, mxCkbSpace, mxCkbTab, mxEdOther, mxFtTextSep, and mxRbSeparated.
Referenced by RbSepFix(), and ScImportAsciiDlg().
|
private |
Definition at line 802 of file scuiasciiopt.cxx.
References meCharSet, mnRowPosCount, mpDatStream, and SvStream::SetStreamCharSet().
Referenced by ScImportAsciiDlg(), and SeparatorHdl().
|
private |
Definition at line 41 of file scuiasciiopt.hxx.
Referenced by GetLine(), SaveParameters(), ScImportAsciiDlg(), SeparatorHdl(), and SetSeparators().
|
private |
Definition at line 39 of file scuiasciiopt.hxx.
|
private |
Selected char set.
Definition at line 45 of file scuiasciiopt.hxx.
Referenced by GetOptions(), and SetSelectedCharSet().
|
private |
How the dialog is called (see asciiopt.hxx)
Definition at line 47 of file scuiasciiopt.hxx.
|
private |
Definition at line 42 of file scuiasciiopt.hxx.
Referenced by GetLine(), ScImportAsciiDlg(), and SeparatorHdl().
|
private |
Is System char set selected?
Definition at line 46 of file scuiasciiopt.hxx.
Referenced by SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 44 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SetSelectedCharSet(), and UpdateVertical().
|
private |
Definition at line 37 of file scuiasciiopt.hxx.
Referenced by GetLine(), and UpdateVertical().
|
private |
Definition at line 35 of file scuiasciiopt.hxx.
Referenced by GetLine(), ScImportAsciiDlg(), and Seek().
|
private |
Definition at line 34 of file scuiasciiopt.hxx.
Referenced by GetLine(), ScImportAsciiDlg(), Seek(), and UpdateVertical().
|
private |
Definition at line 36 of file scuiasciiopt.hxx.
Referenced by GetLine().
|
private |
Definition at line 79 of file scuiasciiopt.hxx.
Referenced by ScImportAsciiDlg().
|
private |
Definition at line 70 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), ScImportAsciiDlg(), SeparatorHdl(), and SetupSeparatorCtrls().
|
private |
Definition at line 67 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), ScImportAsciiDlg(), and SetupSeparatorCtrls().
|
private |
Definition at line 62 of file scuiasciiopt.hxx.
Referenced by GetSeparators(), ScImportAsciiDlg(), SetSeparators(), and SetupSeparatorCtrls().
|
private |
Definition at line 73 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 74 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 75 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 65 of file scuiasciiopt.hxx.
Referenced by GetSeparators(), ScImportAsciiDlg(), SeparatorHdl(), SetSeparators(), and SetupSeparatorCtrls().
|
private |
Definition at line 72 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 63 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), ScImportAsciiDlg(), and SetupSeparatorCtrls().
|
private |
Definition at line 61 of file scuiasciiopt.hxx.
Referenced by GetSeparators(), ScImportAsciiDlg(), SetSeparators(), and SetupSeparatorCtrls().
|
private |
Definition at line 76 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 64 of file scuiasciiopt.hxx.
Referenced by GetSeparators(), ScImportAsciiDlg(), SetSeparators(), and SetupSeparatorCtrls().
|
private |
Definition at line 60 of file scuiasciiopt.hxx.
Referenced by GetSeparators(), ScImportAsciiDlg(), SetSeparators(), and SetupSeparatorCtrls().
|
private |
Definition at line 66 of file scuiasciiopt.hxx.
Referenced by GetSeparators(), ScImportAsciiDlg(), SeparatorHdl(), SetSeparators(), and SetupSeparatorCtrls().
|
private |
Whether to detect a possible separator.
Definition at line 49 of file scuiasciiopt.hxx.
Referenced by ScImportAsciiDlg().
|
private |
Definition at line 51 of file scuiasciiopt.hxx.
Referenced by ScImportAsciiDlg().
|
private |
Definition at line 54 of file scuiasciiopt.hxx.
Referenced by ScImportAsciiDlg().
|
private |
Definition at line 69 of file scuiasciiopt.hxx.
Referenced by SetupSeparatorCtrls().
|
private |
Definition at line 50 of file scuiasciiopt.hxx.
Referenced by SaveParameters(), ScImportAsciiDlg(), and SetSelectedCharSet().
|
private |
Definition at line 52 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 78 of file scuiasciiopt.hxx.
Referenced by ScImportAsciiDlg().
|
private |
Definition at line 55 of file scuiasciiopt.hxx.
Referenced by GetOptions(), SaveParameters(), and ScImportAsciiDlg().
|
private |
Definition at line 57 of file scuiasciiopt.hxx.
Referenced by GetLine(), GetOptions(), RbSepFix(), SaveParameters(), ScImportAsciiDlg(), and SeparatorHdl().
|
private |
Definition at line 58 of file scuiasciiopt.hxx.
Referenced by GetOptions(), ScImportAsciiDlg(), and SetupSeparatorCtrls().
|
private |
Definition at line 81 of file scuiasciiopt.hxx.
Referenced by GetOptions(), RbSepFix(), ScImportAsciiDlg(), and SeparatorHdl().