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

Detailed Description

Definition at line 27 of file asciiopt.hxx.

Constructor & Destructor Documentation

◆ ScAsciiOptions()

ScAsciiOptions::ScAsciiOptions ( )

Definition at line 29 of file asciiopt.cxx.

References LANGUAGE_SYSTEM.

Member Function Documentation

◆ GetCharSet()

rtl_TextEncoding ScAsciiOptions::GetCharSet ( ) const
inline

Definition at line 58 of file asciiopt.hxx.

References eCharSet.

Referenced by ScDocShell::ConvertFrom().

◆ GetColFormat()

const sal_uInt8 * ScAsciiOptions::GetColFormat ( ) const
inline

Definition at line 72 of file asciiopt.hxx.

References mvColFormat.

◆ GetColStart()

const sal_Int32 * ScAsciiOptions::GetColStart ( ) const
inline

Definition at line 71 of file asciiopt.hxx.

References mvColStart.

◆ GetFieldSeps()

const OUString & ScAsciiOptions::GetFieldSeps ( ) const
inline

Definition at line 59 of file asciiopt.hxx.

References aFieldSeps.

Referenced by ScImportExport::SetExtOptions().

◆ GetIncludeBOM()

bool ScAsciiOptions::GetIncludeBOM ( ) const
inline

Definition at line 67 of file asciiopt.hxx.

References bIncludeBOM.

Referenced by ScFilterOptionsObj::execute().

◆ GetInfoCount()

sal_uInt16 ScAsciiOptions::GetInfoCount ( ) const
inline

Definition at line 70 of file asciiopt.hxx.

References mvColStart.

◆ GetLanguage()

LanguageType ScAsciiOptions::GetLanguage ( ) const
inline

Definition at line 74 of file asciiopt.hxx.

References eLang.

◆ GetStartRow()

sal_Int32 ScAsciiOptions::GetStartRow ( ) const
inline

Definition at line 73 of file asciiopt.hxx.

References nStartRow.

◆ GetTextSep()

sal_Unicode ScAsciiOptions::GetTextSep ( ) const
inline

Definition at line 68 of file asciiopt.hxx.

References cTextSep.

Referenced by ScImportExport::SetExtOptions().

◆ GetWeightedFieldSep()

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 287 of file asciiopt.cxx.

References aFieldSeps, bMergeFieldSeps, and lcl_decodeSepString().

Referenced by ScImportOptions::ScImportOptions(), and ScImportExport::SetExtOptions().

◆ IsDetectScientificNumber()

bool ScAsciiOptions::IsDetectScientificNumber ( ) const
inline

Definition at line 64 of file asciiopt.hxx.

References bDetectScientificNumber.

◆ IsDetectSpecialNumber()

bool ScAsciiOptions::IsDetectSpecialNumber ( ) const
inline

Definition at line 63 of file asciiopt.hxx.

References bDetectSpecialNumber.

◆ IsEvaluateFormulas()

bool ScAsciiOptions::IsEvaluateFormulas ( ) const
inline

Definition at line 65 of file asciiopt.hxx.

References bEvaluateFormulas.

◆ IsFixedLen()

bool ScAsciiOptions::IsFixedLen ( ) const
inline

Definition at line 69 of file asciiopt.hxx.

References bFixedLen.

◆ IsMergeSeps()

bool ScAsciiOptions::IsMergeSeps ( ) const
inline

Definition at line 60 of file asciiopt.hxx.

References bMergeFieldSeps.

◆ IsQuotedAsText()

bool ScAsciiOptions::IsQuotedAsText ( ) const
inline

Definition at line 62 of file asciiopt.hxx.

References bQuotedFieldAsText.

◆ IsRemoveSpace()

bool ScAsciiOptions::IsRemoveSpace ( ) const
inline

Definition at line 61 of file asciiopt.hxx.

References bRemoveSpace.

◆ IsSkipEmptyCells()

bool ScAsciiOptions::IsSkipEmptyCells ( ) const
inline

Definition at line 66 of file asciiopt.hxx.

References bSkipEmptyCells.

◆ ReadFromString()

void ScAsciiOptions::ReadFromString ( std::u16string_view  rString)

◆ SetCharSet()

void ScAsciiOptions::SetCharSet ( rtl_TextEncoding  eNew)
inline

Definition at line 76 of file asciiopt.hxx.

References eCharSet.

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

◆ SetCharSetSystem()

void ScAsciiOptions::SetCharSetSystem ( bool  bSet)
inline

Definition at line 77 of file asciiopt.hxx.

References bCharSetSystem.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetColumnInfo()

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

◆ SetDetectScientificNumber()

void ScAsciiOptions::SetDetectScientificNumber ( bool  bSet)
inline

Definition at line 84 of file asciiopt.hxx.

References bDetectScientificNumber.

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

◆ SetDetectSpecialNumber()

void ScAsciiOptions::SetDetectSpecialNumber ( bool  bSet)
inline

Definition at line 83 of file asciiopt.hxx.

References bDetectSpecialNumber.

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

◆ SetEvaluateFormulas()

void ScAsciiOptions::SetEvaluateFormulas ( bool  bSet)
inline

Definition at line 85 of file asciiopt.hxx.

References bEvaluateFormulas.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetFieldSeps()

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

Definition at line 79 of file asciiopt.hxx.

References aFieldSeps.

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

◆ SetFixedLen()

void ScAsciiOptions::SetFixedLen ( bool  bSet)
inline

Definition at line 78 of file asciiopt.hxx.

References bFixedLen.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetIncludeBOM()

void ScAsciiOptions::SetIncludeBOM ( bool  bVal)
inline

Definition at line 87 of file asciiopt.hxx.

References bIncludeBOM.

Referenced by ScDocShell::ConvertFrom().

◆ SetLanguage()

void ScAsciiOptions::SetLanguage ( LanguageType  e)
inline

Definition at line 90 of file asciiopt.hxx.

References eLang.

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

◆ SetMergeSeps()

void ScAsciiOptions::SetMergeSeps ( bool  bSet)
inline

Definition at line 80 of file asciiopt.hxx.

References bMergeFieldSeps.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetQuotedAsText()

void ScAsciiOptions::SetQuotedAsText ( bool  bSet)
inline

Definition at line 82 of file asciiopt.hxx.

References bQuotedFieldAsText.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetRemoveSpace()

void ScAsciiOptions::SetRemoveSpace ( bool  bSet)
inline

Definition at line 81 of file asciiopt.hxx.

References bRemoveSpace.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetSkipEmptyCells()

void ScAsciiOptions::SetSkipEmptyCells ( bool  bSet)
inline

Definition at line 86 of file asciiopt.hxx.

References bSkipEmptyCells.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetStartRow()

void ScAsciiOptions::SetStartRow ( sal_Int32  nRow)
inline

Definition at line 89 of file asciiopt.hxx.

References nStartRow.

Referenced by ScImportAsciiDlg::GetOptions().

◆ SetTextSep()

void ScAsciiOptions::SetTextSep ( sal_Unicode  c)
inline

Definition at line 88 of file asciiopt.hxx.

References cTextSep.

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

◆ WriteToString()

OUString ScAsciiOptions::WriteToString ( ) const

Member Data Documentation

◆ aFieldSeps

OUString ScAsciiOptions::aFieldSeps
private

◆ bCharSetSystem

bool ScAsciiOptions::bCharSetSystem
private

Definition at line 45 of file asciiopt.hxx.

Referenced by SetCharSetSystem(), and WriteToString().

◆ bDetectScientificNumber

bool ScAsciiOptions::bDetectScientificNumber
private

◆ bDetectSpecialNumber

bool ScAsciiOptions::bDetectSpecialNumber
private

◆ bEvaluateFormulas

bool ScAsciiOptions::bEvaluateFormulas
private

◆ bFixedLen

bool ScAsciiOptions::bFixedLen
private

Definition at line 30 of file asciiopt.hxx.

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

◆ bIncludeBOM

bool ScAsciiOptions::bIncludeBOM
private

Definition at line 41 of file asciiopt.hxx.

Referenced by GetIncludeBOM(), ReadFromString(), SetIncludeBOM(), and WriteToString().

◆ bMergeFieldSeps

bool ScAsciiOptions::bMergeFieldSeps
private

◆ bQuotedFieldAsText

bool ScAsciiOptions::bQuotedFieldAsText
private

Definition at line 34 of file asciiopt.hxx.

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

◆ bRemoveSpace

bool ScAsciiOptions::bRemoveSpace
private

Definition at line 33 of file asciiopt.hxx.

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

◆ bSaveAsShown

bool ScAsciiOptions::bSaveAsShown
private

Definition at line 39 of file asciiopt.hxx.

Referenced by ReadFromString(), and WriteToString().

◆ bSaveFormulas

bool ScAsciiOptions::bSaveFormulas
private

Definition at line 40 of file asciiopt.hxx.

Referenced by ReadFromString(), and WriteToString().

◆ bSkipEmptyCells

bool ScAsciiOptions::bSkipEmptyCells
private

Definition at line 38 of file asciiopt.hxx.

Referenced by IsSkipEmptyCells(), and SetSkipEmptyCells().

◆ cDefaultTextSep

const sal_Unicode ScAsciiOptions::cDefaultTextSep = '"'
static

Definition at line 53 of file asciiopt.hxx.

◆ cTextSep

sal_Unicode ScAsciiOptions::cTextSep
private

Definition at line 42 of file asciiopt.hxx.

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

◆ eCharSet

rtl_TextEncoding ScAsciiOptions::eCharSet
private

Definition at line 43 of file asciiopt.hxx.

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

◆ eLang

LanguageType ScAsciiOptions::eLang
private

Definition at line 44 of file asciiopt.hxx.

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

◆ mvColFormat

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

Definition at line 48 of file asciiopt.hxx.

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

◆ mvColStart

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

Definition at line 47 of file asciiopt.hxx.

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

◆ nStartRow

sal_Int32 ScAsciiOptions::nStartRow
private

Definition at line 46 of file asciiopt.hxx.

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


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