LibreOffice Module sc (master)  1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ScAsciiOptions Class Reference

#include <asciiopt.hxx>

Collaboration diagram for ScAsciiOptions:
[legend]

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_uInt8GetColFormat () const
 
long 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 (long 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
 
long nStartRow
 
std::vector< sal_Int32 > mvColStart
 
std::vector< sal_uInt8mvColFormat
 

Detailed Description

Definition at line 28 of file asciiopt.hxx.

Constructor & Destructor Documentation

ScAsciiOptions::ScAsciiOptions ( )

Definition at line 28 of file asciiopt.cxx.

References LANGUAGE_SYSTEM.

Member Function Documentation

rtl_TextEncoding ScAsciiOptions::GetCharSet ( ) const
inline

Definition at line 56 of file asciiopt.hxx.

References eCharSet.

Referenced by ScDocShell::ConvertFrom().

const sal_uInt8* ScAsciiOptions::GetColFormat ( ) const
inline

Definition at line 67 of file asciiopt.hxx.

const sal_Int32* ScAsciiOptions::GetColStart ( ) const
inline

Definition at line 66 of file asciiopt.hxx.

const OUString& ScAsciiOptions::GetFieldSeps ( ) const
inline

Definition at line 57 of file asciiopt.hxx.

References aFieldSeps.

Referenced by ScImportExport::SetExtOptions().

sal_uInt16 ScAsciiOptions::GetInfoCount ( ) const
inline

Definition at line 65 of file asciiopt.hxx.

LanguageType ScAsciiOptions::GetLanguage ( ) const
inline

Definition at line 69 of file asciiopt.hxx.

References eLang.

long ScAsciiOptions::GetStartRow ( ) const
inline

Definition at line 68 of file asciiopt.hxx.

References nStartRow.

sal_Unicode ScAsciiOptions::GetTextSep ( ) const
inline

Definition at line 63 of file asciiopt.hxx.

References cTextSep.

Referenced by ScImportExport::SetExtOptions().

sal_Unicode ScAsciiOptions::GetWeightedFieldSep ( const OUString &  rFieldSeps,
bool  bDecodeNumbers 
)
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.

Parameters
bDecodeNumbersIf 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().

bool ScAsciiOptions::IsDetectSpecialNumber ( ) const
inline

Definition at line 61 of file asciiopt.hxx.

References bDetectSpecialNumber.

bool ScAsciiOptions::IsFixedLen ( ) const
inline

Definition at line 64 of file asciiopt.hxx.

References bFixedLen.

bool ScAsciiOptions::IsMergeSeps ( ) const
inline

Definition at line 58 of file asciiopt.hxx.

References bMergeFieldSeps.

bool ScAsciiOptions::IsQuotedAsText ( ) const
inline

Definition at line 60 of file asciiopt.hxx.

References bQuotedFieldAsText.

bool ScAsciiOptions::IsRemoveSpace ( ) const
inline

Definition at line 59 of file asciiopt.hxx.

References bRemoveSpace.

bool ScAsciiOptions::IsSkipEmptyCells ( ) const
inline

Definition at line 62 of file asciiopt.hxx.

References bSkipEmptyCells.

void ScAsciiOptions::ReadFromString ( const OUString &  rString)
void ScAsciiOptions::SetCharSet ( rtl_TextEncoding  eNew)
inline

Definition at line 71 of file asciiopt.hxx.

Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetCharSetSystem ( bool  bSet)
inline

Definition at line 72 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().

void ScAsciiOptions::SetDetectSpecialNumber ( bool  bSet)
inline

Definition at line 78 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions(), and ScViewFunc::PasteDataFormat().

void ScAsciiOptions::SetFieldSeps ( const OUString &  rStr)
inline

Definition at line 74 of file asciiopt.hxx.

Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetFixedLen ( bool  bSet)
inline

Definition at line 73 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetLanguage ( LanguageType  e)
inline

Definition at line 82 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions(), and ScViewFunc::PasteDataFormat().

void ScAsciiOptions::SetMergeSeps ( bool  bSet)
inline

Definition at line 75 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetQuotedAsText ( bool  bSet)
inline

Definition at line 77 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetRemoveSpace ( bool  bSet)
inline

Definition at line 76 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetSkipEmptyCells ( bool  bSet)
inline

Definition at line 79 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetStartRow ( long  nRow)
inline

Definition at line 81 of file asciiopt.hxx.

Referenced by ScImportAsciiDlg::GetOptions().

void ScAsciiOptions::SetTextSep ( sal_Unicode  c)
inline

Definition at line 80 of file asciiopt.hxx.

Referenced by ScDocShell::ConvertFrom(), and ScImportAsciiDlg::GetOptions().

OUString ScAsciiOptions::WriteToString ( ) const

Member Data Documentation

OUString ScAsciiOptions::aFieldSeps
private

Definition at line 32 of file asciiopt.hxx.

Referenced by GetFieldSeps(), GetWeightedFieldSep(), ReadFromString(), and WriteToString().

bool ScAsciiOptions::bCharSetSystem
private

Definition at line 43 of file asciiopt.hxx.

Referenced by WriteToString().

bool ScAsciiOptions::bDetectSpecialNumber
private

Definition at line 36 of file asciiopt.hxx.

Referenced by IsDetectSpecialNumber(), ReadFromString(), and WriteToString().

bool ScAsciiOptions::bFixedLen
private

Definition at line 31 of file asciiopt.hxx.

Referenced by IsFixedLen(), ReadFromString(), and WriteToString().

bool ScAsciiOptions::bMergeFieldSeps
private

Definition at line 33 of file asciiopt.hxx.

Referenced by GetWeightedFieldSep(), IsMergeSeps(), ReadFromString(), and WriteToString().

bool ScAsciiOptions::bQuotedFieldAsText
private

Definition at line 35 of file asciiopt.hxx.

Referenced by IsQuotedAsText(), ReadFromString(), and WriteToString().

bool ScAsciiOptions::bRemoveSpace
private

Definition at line 34 of file asciiopt.hxx.

Referenced by IsRemoveSpace(), ReadFromString(), and WriteToString().

bool ScAsciiOptions::bSaveAsShown
private

Definition at line 38 of file asciiopt.hxx.

Referenced by ReadFromString(), and WriteToString().

bool ScAsciiOptions::bSaveFormulas
private

Definition at line 39 of file asciiopt.hxx.

Referenced by ReadFromString(), and WriteToString().

bool ScAsciiOptions::bSkipEmptyCells
private

Definition at line 37 of file asciiopt.hxx.

Referenced by IsSkipEmptyCells().

const sal_Unicode ScAsciiOptions::cDefaultTextSep = '"'
static

Definition at line 51 of file asciiopt.hxx.

sal_Unicode ScAsciiOptions::cTextSep
private

Definition at line 40 of file asciiopt.hxx.

Referenced by GetTextSep(), ReadFromString(), and WriteToString().

rtl_TextEncoding ScAsciiOptions::eCharSet
private

Definition at line 41 of file asciiopt.hxx.

Referenced by GetCharSet(), ReadFromString(), and WriteToString().

LanguageType ScAsciiOptions::eLang
private

Definition at line 42 of file asciiopt.hxx.

Referenced by GetLanguage(), ReadFromString(), and WriteToString().

std::vector<sal_uInt8> ScAsciiOptions::mvColFormat
private

Definition at line 46 of file asciiopt.hxx.

Referenced by ReadFromString(), SetColumnInfo(), and WriteToString().

std::vector<sal_Int32> ScAsciiOptions::mvColStart
private

Definition at line 45 of file asciiopt.hxx.

Referenced by ReadFromString(), SetColumnInfo(), and WriteToString().

long ScAsciiOptions::nStartRow
private

Definition at line 44 of file asciiopt.hxx.

Referenced by GetStartRow(), ReadFromString(), and WriteToString().


The documentation for this class was generated from the following files: