LibreOffice Module sc (master) 1
|
#include <asciiopt.hxx>
Public Member Functions | |
ScAsciiOptions () | |
void | ReadFromString (std::u16string_view rString) |
OUString | WriteToString () const |
rtl_TextEncoding | GetCharSet () const |
const OUString & | GetFieldSeps () const |
bool | IsMergeSeps () const |
bool | IsRemoveSpace () const |
bool | IsQuotedAsText () const |
bool | IsDetectSpecialNumber () const |
bool | IsDetectScientificNumber () const |
bool | IsEvaluateFormulas () const |
bool | IsSkipEmptyCells () const |
bool | GetIncludeBOM () const |
sal_Unicode | GetTextSep () const |
bool | IsFixedLen () const |
sal_uInt16 | GetInfoCount () const |
const sal_Int32 * | GetColStart () const |
const sal_uInt8 * | GetColFormat () const |
sal_Int32 | GetStartRow () const |
LanguageType | GetLanguage () const |
void | SetCharSet (rtl_TextEncoding eNew) |
void | SetCharSetSystem (bool bSet) |
void | SetFixedLen (bool bSet) |
void | SetFieldSeps (const OUString &rStr) |
void | SetMergeSeps (bool bSet) |
void | SetRemoveSpace (bool bSet) |
void | SetQuotedAsText (bool bSet) |
void | SetDetectSpecialNumber (bool bSet) |
void | SetDetectScientificNumber (bool bSet) |
void | SetEvaluateFormulas (bool bSet) |
void | SetSkipEmptyCells (bool bSet) |
void | SetIncludeBOM (bool bVal) |
void | SetTextSep (sal_Unicode c) |
void | SetStartRow (sal_Int32 nRow) |
void | SetLanguage (LanguageType e) |
void | SetColumnInfo (const ScCsvExpDataVec &rDataVec) |
Static Public Member Functions | |
static sal_Unicode | GetWeightedFieldSep (const OUString &rFieldSeps, bool bDecodeNumbers) |
From the import field separators obtain the one most likely to be used for export, if multiple separators weighted comma, tab, semicolon, space and other. More... | |
Static Public Attributes | |
static const sal_Unicode | cDefaultTextSep = '"' |
Private Attributes | |
bool | bFixedLen |
OUString | aFieldSeps |
bool | bMergeFieldSeps |
bool | bRemoveSpace |
bool | bQuotedFieldAsText |
bool | bDetectSpecialNumber |
bool | bDetectScientificNumber |
bool | bEvaluateFormulas |
bool | bSkipEmptyCells |
bool | bSaveAsShown |
bool | bSaveFormulas |
bool | bIncludeBOM |
sal_Unicode | cTextSep |
rtl_TextEncoding | eCharSet |
LanguageType | eLang |
bool | bCharSetSystem |
sal_Int32 | nStartRow |
std::vector< sal_Int32 > | mvColStart |
std::vector< sal_uInt8 > | mvColFormat |
Definition at line 27 of file asciiopt.hxx.
ScAsciiOptions::ScAsciiOptions | ( | ) |
Definition at line 29 of file asciiopt.cxx.
References LANGUAGE_SYSTEM.
|
inline |
Definition at line 58 of file asciiopt.hxx.
References eCharSet.
Referenced by ScDocShell::ConvertFrom().
|
inline |
Definition at line 72 of file asciiopt.hxx.
References mvColFormat.
|
inline |
Definition at line 71 of file asciiopt.hxx.
References mvColStart.
|
inline |
Definition at line 59 of file asciiopt.hxx.
References aFieldSeps.
Referenced by ScImportExport::SetExtOptions().
|
inline |
Definition at line 67 of file asciiopt.hxx.
References bIncludeBOM.
Referenced by ScFilterOptionsObj::execute().
|
inline |
Definition at line 70 of file asciiopt.hxx.
References mvColStart.
|
inline |
Definition at line 74 of file asciiopt.hxx.
References eLang.
|
inline |
Definition at line 73 of file asciiopt.hxx.
References nStartRow.
|
inline |
Definition at line 68 of file asciiopt.hxx.
References cTextSep.
Referenced by ScImportExport::SetExtOptions().
|
static |
From the import field separators obtain the one most likely to be used for export, if multiple separators weighted comma, tab, semicolon, space and other.
bDecodeNumbers | If TRUE, the separators are encoded as numbers and need to be decoded before characters can be extracted, for example "59/44" to ";,". If FALSE, the string is taken as is and each character is expected to be one separator. |
Definition at line 287 of file asciiopt.cxx.
References aFieldSeps, bMergeFieldSeps, and lcl_decodeSepString().
Referenced by ScImportOptions::ScImportOptions(), and ScImportExport::SetExtOptions().
|
inline |
Definition at line 64 of file asciiopt.hxx.
References bDetectScientificNumber.
|
inline |
Definition at line 63 of file asciiopt.hxx.
References bDetectSpecialNumber.
|
inline |
Definition at line 65 of file asciiopt.hxx.
References bEvaluateFormulas.
|
inline |
Definition at line 69 of file asciiopt.hxx.
References bFixedLen.
|
inline |
Definition at line 60 of file asciiopt.hxx.
References bMergeFieldSeps.
|
inline |
Definition at line 62 of file asciiopt.hxx.
References bQuotedFieldAsText.
|
inline |
Definition at line 61 of file asciiopt.hxx.
References bRemoveSpace.
|
inline |
Definition at line 66 of file asciiopt.hxx.
References bSkipEmptyCells.
void ScAsciiOptions::ReadFromString | ( | std::u16string_view | rString | ) |
Definition at line 89 of file asciiopt.cxx.
References aFieldSeps, bDetectScientificNumber, bDetectSpecialNumber, bEvaluateFormulas, bFixedLen, bIncludeBOM, bMergeFieldSeps, bQuotedFieldAsText, bRemoveSpace, bSaveAsShown, bSaveFormulas, cTextSep, eCharSet, eLang, ScGlobal::GetCharsetValue(), o3tl::getToken(), comphelper::string::getTokenCount(), lcl_decodeSepString(), mvColFormat, mvColStart, nPos, nStartRow, pStrFix, o3tl::toInt32(), and u.
Referenced by ScDocShell::ConvertFrom(), and ScFilterOptionsObj::execute().
|
inline |
Definition at line 76 of file asciiopt.hxx.
References eCharSet.
Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 77 of file asciiopt.hxx.
References bCharSetSystem.
Referenced by ScImportAsciiDlg::GetOptions().
void ScAsciiOptions::SetColumnInfo | ( | const ScCsvExpDataVec & | rDataVec | ) |
Definition at line 50 of file asciiopt.cxx.
References mvColFormat, and mvColStart.
Referenced by ScCsvGrid::FillColumnDataFix(), and ScCsvGrid::FillColumnDataSep().
|
inline |
Definition at line 84 of file asciiopt.hxx.
References bDetectScientificNumber.
Referenced by ScImportAsciiDlg::GetOptions(), and ScViewFunc::PasteDataFormat().
|
inline |
Definition at line 83 of file asciiopt.hxx.
References bDetectSpecialNumber.
Referenced by ScImportAsciiDlg::GetOptions(), and ScViewFunc::PasteDataFormat().
|
inline |
Definition at line 85 of file asciiopt.hxx.
References bEvaluateFormulas.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 79 of file asciiopt.hxx.
References aFieldSeps.
Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 78 of file asciiopt.hxx.
References bFixedLen.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 87 of file asciiopt.hxx.
References bIncludeBOM.
Referenced by ScDocShell::ConvertFrom().
|
inline |
Definition at line 90 of file asciiopt.hxx.
References eLang.
Referenced by ScImportAsciiDlg::GetOptions(), and ScViewFunc::PasteDataFormat().
|
inline |
Definition at line 80 of file asciiopt.hxx.
References bMergeFieldSeps.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 82 of file asciiopt.hxx.
References bQuotedFieldAsText.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 81 of file asciiopt.hxx.
References bRemoveSpace.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 86 of file asciiopt.hxx.
References bSkipEmptyCells.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 89 of file asciiopt.hxx.
References nStartRow.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 88 of file asciiopt.hxx.
References cTextSep.
Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().
OUString ScAsciiOptions::WriteToString | ( | ) | const |
Definition at line 211 of file asciiopt.cxx.
References aFieldSeps, bCharSetSystem, bDetectScientificNumber, bDetectSpecialNumber, bEvaluateFormulas, bFixedLen, bIncludeBOM, bMergeFieldSeps, bQuotedFieldAsText, bRemoveSpace, bSaveAsShown, bSaveFormulas, cTextSep, eCharSet, eLang, ScGlobal::GetCharsetString(), i, mvColFormat, mvColStart, nStartRow, pStrFix, and pStrMrg.
Referenced by ScDocShell::ConvertFrom(), and ScFilterOptionsObj::execute().
|
private |
Definition at line 31 of file asciiopt.hxx.
Referenced by GetFieldSeps(), GetWeightedFieldSep(), ReadFromString(), SetFieldSeps(), and WriteToString().
|
private |
Definition at line 45 of file asciiopt.hxx.
Referenced by SetCharSetSystem(), and WriteToString().
|
private |
Definition at line 36 of file asciiopt.hxx.
Referenced by IsDetectScientificNumber(), ReadFromString(), SetDetectScientificNumber(), and WriteToString().
|
private |
Definition at line 35 of file asciiopt.hxx.
Referenced by IsDetectSpecialNumber(), ReadFromString(), SetDetectSpecialNumber(), and WriteToString().
|
private |
Definition at line 37 of file asciiopt.hxx.
Referenced by IsEvaluateFormulas(), ReadFromString(), SetEvaluateFormulas(), and WriteToString().
|
private |
Definition at line 30 of file asciiopt.hxx.
Referenced by IsFixedLen(), ReadFromString(), SetFixedLen(), and WriteToString().
|
private |
Definition at line 41 of file asciiopt.hxx.
Referenced by GetIncludeBOM(), ReadFromString(), SetIncludeBOM(), and WriteToString().
|
private |
Definition at line 32 of file asciiopt.hxx.
Referenced by GetWeightedFieldSep(), IsMergeSeps(), ReadFromString(), SetMergeSeps(), and WriteToString().
|
private |
Definition at line 34 of file asciiopt.hxx.
Referenced by IsQuotedAsText(), ReadFromString(), SetQuotedAsText(), and WriteToString().
|
private |
Definition at line 33 of file asciiopt.hxx.
Referenced by IsRemoveSpace(), ReadFromString(), SetRemoveSpace(), and WriteToString().
|
private |
Definition at line 39 of file asciiopt.hxx.
Referenced by ReadFromString(), and WriteToString().
|
private |
Definition at line 40 of file asciiopt.hxx.
Referenced by ReadFromString(), and WriteToString().
|
private |
Definition at line 38 of file asciiopt.hxx.
Referenced by IsSkipEmptyCells(), and SetSkipEmptyCells().
|
static |
Definition at line 53 of file asciiopt.hxx.
|
private |
Definition at line 42 of file asciiopt.hxx.
Referenced by GetTextSep(), ReadFromString(), SetTextSep(), and WriteToString().
|
private |
Definition at line 43 of file asciiopt.hxx.
Referenced by GetCharSet(), ReadFromString(), SetCharSet(), and WriteToString().
|
private |
Definition at line 44 of file asciiopt.hxx.
Referenced by GetLanguage(), ReadFromString(), SetLanguage(), and WriteToString().
|
private |
Definition at line 48 of file asciiopt.hxx.
Referenced by GetColFormat(), ReadFromString(), SetColumnInfo(), and WriteToString().
|
private |
Definition at line 47 of file asciiopt.hxx.
Referenced by GetColStart(), GetInfoCount(), ReadFromString(), SetColumnInfo(), and WriteToString().
|
private |
Definition at line 46 of file asciiopt.hxx.
Referenced by GetStartRow(), ReadFromString(), SetStartRow(), and WriteToString().