LibreOffice Module sc (master) 1
Functions | Variables
scuiasciiopt.cxx File Reference
#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>
Include dependency graph for scuiasciiopt.cxx:

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"
 

Function Documentation

◆ IMPL_LINK() [1/8]

IMPL_LINK ( ScImportAsciiDlg  ,
ColTypeHdl  ,
ScCsvTableBox ,
rTableBox  ,
void   
)

Definition at line 960 of file scuiasciiopt.cxx.

References CSV_TYPE_MULTI, and nType.

◆ IMPL_LINK() [2/8]

IMPL_LINK ( ScImportAsciiDlg  ,
FirstRowHdl  ,
weld::SpinButton ,
rNumField  ,
void   
)

Definition at line 895 of file scuiasciiopt.cxx.

References CSVCMD_SETFIRSTIMPORTLINE.

◆ IMPL_LINK() [3/8]

IMPL_LINK ( ScImportAsciiDlg  ,
LbColTypeHdl  ,
weld::ComboBox ,
rListBox  ,
void   
)

Definition at line 900 of file scuiasciiopt.cxx.

References CSVCMD_SETCOLUMNTYPE.

◆ IMPL_LINK() [4/8]

IMPL_LINK ( ScImportAsciiDlg  ,
OtherOptionsClickHdl  ,
weld::Toggleable ,
rCtrl  ,
void   
)

Definition at line 841 of file scuiasciiopt.cxx.

◆ IMPL_LINK() [5/8]

IMPL_LINK ( ScImportAsciiDlg  ,
RbSepFixHdl  ,
weld::Toggleable ,
rButton  ,
void   
)

Definition at line 819 of file scuiasciiopt.cxx.

◆ IMPL_LINK() [6/8]

IMPL_LINK ( ScImportAsciiDlg  ,
SeparatorClickHdl  ,
weld::Toggleable ,
rCtrl  ,
void   
)

Definition at line 826 of file scuiasciiopt.cxx.

◆ IMPL_LINK() [7/8]

IMPL_LINK ( ScImportAsciiDlg  ,
SeparatorComboBoxHdl  ,
weld::ComboBox ,
rCtrl  ,
void   
)

Definition at line 831 of file scuiasciiopt.cxx.

◆ IMPL_LINK() [8/8]

IMPL_LINK ( ScImportAsciiDlg  ,
SeparatorEditHdl  ,
weld::Entry ,
rEdit  ,
void   
)

Definition at line 836 of file scuiasciiopt.cxx.

◆ IMPL_LINK_NOARG() [1/2]

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() [2/2]

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()

IMPL_STATIC_LINK_NOARG ( ScImportAsciiDlg  ,
InstallLOKNotifierHdl  ,
void *  ,
vcl::ILibreOfficeKitNotifier  
)

Definition at line 611 of file scuiasciiopt.cxx.

References GetpApp().

◆ lcl_CharFromCombo()

static sal_Unicode lcl_CharFromCombo ( const weld::ComboBox rCombo,
std::u16string_view  rList 
)
static

◆ lcl_CreatePropertiesNames()

static void lcl_CreatePropertiesNames ( OUString &  rSepPath,
Sequence< OUString > &  rNames,
ScImportAsciiCall  eCall 
)
static

◆ lcl_FillCombo()

static void lcl_FillCombo ( weld::ComboBox rCombo,
std::u16string_view  rList,
sal_Unicode  cSelect 
)
static

◆ lcl_LoadSeparators()

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

◆ lcl_SaveSeparators()

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 
)
static

Variable Documentation

◆ ASCIIDLG_MAXROWS

const SCSIZE ASCIIDLG_MAXROWS = MAXROWCOUNT

TODO make dynamic.

Definition at line 46 of file scuiasciiopt.cxx.

Referenced by ScImportAsciiDlg::GetLine().

◆ aSep_Path

constexpr OUStringLiteral aSep_Path = u"Office.Calc/Dialogs/CSVImport"
constexpr

Definition at line 104 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().

◆ aSep_Path_Clpbrd

constexpr OUStringLiteral aSep_Path_Clpbrd = u"Office.Calc/Dialogs/ClipboardTextImport"
constexpr

Definition at line 105 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().

◆ aSep_Path_Text2Col

constexpr OUStringLiteral aSep_Path_Text2Col = u"Office.Calc/Dialogs/TextToColumnsImport"
constexpr

Definition at line 106 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().

◆ CSVImportOptionNames

const ::std::vector<OUString> CSVImportOptionNames
Initial value:
=
{
"MergeDelimiters",
"Separators",
"TextSeparators",
"FixedWidth",
"RemoveSpace",
"EvaluateFormulas",
"FromRow",
"CharSet",
"QuotedFieldAsText",
"DetectSpecialNumbers",
"DetectScientificNumbers",
"Language",
"SkipEmptyCells"
}

Definition at line 88 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().

◆ kMaxEmbeddedLinefeeds

constexpr sal_uInt32 kMaxEmbeddedLinefeeds = 500
constexpr

Definition at line 54 of file scuiasciiopt.cxx.

Referenced by ScImportAsciiDlg::GetLine().