LibreOffice Module sc (master)  1
Enumerations | 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 dependency graph for scuiasciiopt.cxx:

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)
 
static constexpr OUStringLiteral gaTextSepList (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
 
const OUString aSep_Path = "Office.Calc/Dialogs/CSVImport"
 
const OUString aSep_Path_Clpbrd = "Office.Calc/Dialogs/ClipboardTextImport"
 
const OUString aSep_Path_Text2Col = "Office.Calc/Dialogs/TextToColumnsImport"
 

Enumeration Type Documentation

Definition at line 48 of file scuiasciiopt.cxx.

Function Documentation

static constexpr OUStringLiteral gaTextSepList ( SCSTR_TEXTSEP  )
static
IMPL_LINK ( ScImportAsciiDlg  ,
RbSepFixHdl  ,
weld::Button ,
rButton  ,
void   
)

Definition at line 692 of file scuiasciiopt.cxx.

References m_xDialog.

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

Definition at line 705 of file scuiasciiopt.cxx.

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

Definition at line 710 of file scuiasciiopt.cxx.

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

Definition at line 715 of file scuiasciiopt.cxx.

References rEdit.

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

Definition at line 759 of file scuiasciiopt.cxx.

References CSVCMD_SETFIRSTIMPORTLINE.

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

Definition at line 764 of file scuiasciiopt.cxx.

References CSVCMD_SETCOLUMNTYPE.

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

Definition at line 815 of file scuiasciiopt.cxx.

References CSV_TYPE_MULTI, and nType.

IMPL_LINK_NOARG ( ScImportAsciiDlg  ,
CharSetHdl  ,
weld::ComboBox ,
void   
)

Definition at line 744 of file scuiasciiopt.cxx.

References CSVCMD_NEWCELLTEXTS, and m_xDialog.

IMPL_LINK_NOARG ( ScImportAsciiDlg  ,
UpdateTextHdl  ,
ScCsvTableBox ,
void   
)

Definition at line 770 of file scuiasciiopt.cxx.

References CSV_PREVIEW_LINES, CSVCMD_SETLINECOUNT, and i.

static sal_Unicode lcl_CharFromCombo ( const weld::ComboBox rCombo,
const OUString &  rList 
)
static
static void lcl_CreatePropertiesNames ( OUString &  rSepPath,
Sequence< OUString > &  rNames,
ScImportAsciiCall  eCall 
)
static
static void lcl_FillCombo ( weld::ComboBox rCombo,
const OUString &  rList,
sal_Unicode  cSelect 
)
static
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
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 
)
static

Variable Documentation

const SCSIZE ASCIIDLG_MAXROWS = MAXROWCOUNT

TODO make dynamic.

Definition at line 41 of file scuiasciiopt.cxx.

Referenced by ScImportAsciiDlg::GetLine().

const OUString aSep_Path = "Office.Calc/Dialogs/CSVImport"

Definition at line 80 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().

const OUString aSep_Path_Clpbrd = "Office.Calc/Dialogs/ClipboardTextImport"

Definition at line 81 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().

const OUString aSep_Path_Text2Col = "Office.Calc/Dialogs/TextToColumnsImport"

Definition at line 82 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().

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

Definition at line 66 of file scuiasciiopt.cxx.

Referenced by lcl_CreatePropertiesNames().