LibreOffice Module sc (master)
1
|
#include <asciiopt.hxx>
Public Member Functions | |
ScAsciiOptions () | |
void | ReadFromString (const OUString &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 | IsSkipEmptyCells () 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 | SetSkipEmptyCells (bool bSet) |
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 | bSkipEmptyCells |
bool | bSaveAsShown |
bool | bSaveFormulas |
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 28 of file asciiopt.cxx.
References LANGUAGE_SYSTEM.
|
inline |
Definition at line 55 of file asciiopt.hxx.
References eCharSet.
Referenced by ScDocShell::ConvertFrom().
|
inline |
Definition at line 66 of file asciiopt.hxx.
|
inline |
Definition at line 65 of file asciiopt.hxx.
|
inline |
Definition at line 56 of file asciiopt.hxx.
References aFieldSeps.
Referenced by ScImportExport::SetExtOptions().
|
inline |
Definition at line 64 of file asciiopt.hxx.
|
inline |
Definition at line 68 of file asciiopt.hxx.
References eLang.
|
inline |
Definition at line 67 of file asciiopt.hxx.
References nStartRow.
|
inline |
Definition at line 62 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 246 of file asciiopt.cxx.
References aFieldSeps, bMergeFieldSeps, and lcl_decodeSepString().
Referenced by ScImportOptions::ScImportOptions(), and ScImportExport::SetExtOptions().
|
inline |
Definition at line 60 of file asciiopt.hxx.
References bDetectSpecialNumber.
|
inline |
Definition at line 63 of file asciiopt.hxx.
References bFixedLen.
|
inline |
Definition at line 57 of file asciiopt.hxx.
References bMergeFieldSeps.
|
inline |
Definition at line 59 of file asciiopt.hxx.
References bQuotedFieldAsText.
|
inline |
Definition at line 58 of file asciiopt.hxx.
References bRemoveSpace.
|
inline |
Definition at line 61 of file asciiopt.hxx.
References bSkipEmptyCells.
void ScAsciiOptions::ReadFromString | ( | const OUString & | rString | ) |
Definition at line 85 of file asciiopt.cxx.
References aFieldSeps, bDetectSpecialNumber, bFixedLen, bMergeFieldSeps, bQuotedFieldAsText, bRemoveSpace, bSaveAsShown, bSaveFormulas, cTextSep, eCharSet, eLang, ScGlobal::GetCharsetValue(), comphelper::string::getTokenCount(), lcl_decodeSepString(), mvColFormat, mvColStart, nPos, nStartRow, and pStrFix.
Referenced by ScDocShell::ConvertFrom().
|
inline |
Definition at line 70 of file asciiopt.hxx.
Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 71 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions().
void ScAsciiOptions::SetColumnInfo | ( | const ScCsvExpDataVec & | rDataVec | ) |
Definition at line 46 of file asciiopt.cxx.
References mvColFormat, and mvColStart.
Referenced by ScCsvGrid::FillColumnDataFix(), and ScCsvGrid::FillColumnDataSep().
|
inline |
Definition at line 77 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions(), and ScViewFunc::PasteDataFormat().
|
inline |
Definition at line 73 of file asciiopt.hxx.
Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 72 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 81 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions(), and ScViewFunc::PasteDataFormat().
|
inline |
Definition at line 74 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 76 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 75 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 78 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 80 of file asciiopt.hxx.
Referenced by ScImportAsciiDlg::GetOptions().
|
inline |
Definition at line 79 of file asciiopt.hxx.
Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().
OUString ScAsciiOptions::WriteToString | ( | ) | const |
Definition at line 179 of file asciiopt.cxx.
References aFieldSeps, bCharSetSystem, bDetectSpecialNumber, bFixedLen, bMergeFieldSeps, bQuotedFieldAsText, bRemoveSpace, bSaveAsShown, bSaveFormulas, cTextSep, eCharSet, eLang, ScGlobal::GetCharsetString(), i, mvColFormat, mvColStart, nStartRow, pStrFix, and pStrMrg.
Referenced by ScFilterOptionsObj::execute().
|
private |
Definition at line 31 of file asciiopt.hxx.
Referenced by GetFieldSeps(), GetWeightedFieldSep(), ReadFromString(), and WriteToString().
|
private |
Definition at line 42 of file asciiopt.hxx.
Referenced by WriteToString().
|
private |
Definition at line 35 of file asciiopt.hxx.
Referenced by IsDetectSpecialNumber(), ReadFromString(), and WriteToString().
|
private |
Definition at line 30 of file asciiopt.hxx.
Referenced by IsFixedLen(), ReadFromString(), and WriteToString().
|
private |
Definition at line 32 of file asciiopt.hxx.
Referenced by GetWeightedFieldSep(), IsMergeSeps(), ReadFromString(), and WriteToString().
|
private |
Definition at line 34 of file asciiopt.hxx.
Referenced by IsQuotedAsText(), ReadFromString(), and WriteToString().
|
private |
Definition at line 33 of file asciiopt.hxx.
Referenced by IsRemoveSpace(), ReadFromString(), and WriteToString().
|
private |
Definition at line 37 of file asciiopt.hxx.
Referenced by ReadFromString(), and WriteToString().
|
private |
Definition at line 38 of file asciiopt.hxx.
Referenced by ReadFromString(), and WriteToString().
|
private |
Definition at line 36 of file asciiopt.hxx.
Referenced by IsSkipEmptyCells().
|
static |
Definition at line 50 of file asciiopt.hxx.
|
private |
Definition at line 39 of file asciiopt.hxx.
Referenced by GetTextSep(), ReadFromString(), and WriteToString().
|
private |
Definition at line 40 of file asciiopt.hxx.
Referenced by GetCharSet(), ReadFromString(), and WriteToString().
|
private |
Definition at line 41 of file asciiopt.hxx.
Referenced by GetLanguage(), ReadFromString(), and WriteToString().
|
private |
Definition at line 45 of file asciiopt.hxx.
Referenced by ReadFromString(), SetColumnInfo(), and WriteToString().
|
private |
Definition at line 44 of file asciiopt.hxx.
Referenced by ReadFromString(), SetColumnInfo(), and WriteToString().
|
private |
Definition at line 43 of file asciiopt.hxx.
Referenced by GetStartRow(), ReadFromString(), and WriteToString().