Kaydet (Commit) 52810eb4 authored tarafından Eike Rathke's avatar Eike Rathke

sal_Bool to bool

Change-Id: I3ba3a2074495d01f7877f449ed9b8723161fdd2f
üst 84bbcab3
...@@ -155,7 +155,7 @@ ScAsciiOptions& ScAsciiOptions::operator=( const ScAsciiOptions& rCpy ) ...@@ -155,7 +155,7 @@ ScAsciiOptions& ScAsciiOptions::operator=( const ScAsciiOptions& rCpy )
} }
sal_Bool ScAsciiOptions::operator==( const ScAsciiOptions& rCmp ) const bool ScAsciiOptions::operator==( const ScAsciiOptions& rCmp ) const
{ {
if ( bFixedLen == rCmp.bFixedLen && if ( bFixedLen == rCmp.bFixedLen &&
aFieldSeps == rCmp.aFieldSeps && aFieldSeps == rCmp.aFieldSeps &&
...@@ -174,7 +174,7 @@ sal_Bool ScAsciiOptions::operator==( const ScAsciiOptions& rCmp ) const ...@@ -174,7 +174,7 @@ sal_Bool ScAsciiOptions::operator==( const ScAsciiOptions& rCmp ) const
pColFormat[i] != rCmp.pColFormat[i] ) pColFormat[i] != rCmp.pColFormat[i] )
return false; return false;
return sal_True; return true;
} }
return false; return false;
} }
...@@ -203,13 +203,13 @@ void ScAsciiOptions::ReadFromString( const String& rString ) ...@@ -203,13 +203,13 @@ void ScAsciiOptions::ReadFromString( const String& rString )
aToken = rString.GetToken(0,','); aToken = rString.GetToken(0,',');
if ( aToken.EqualsAscii(pStrFix) ) if ( aToken.EqualsAscii(pStrFix) )
bFixedLen = sal_True; bFixedLen = true;
nSub = comphelper::string::getTokenCount(aToken, '/'); nSub = comphelper::string::getTokenCount(aToken, '/');
for ( i=0; i<nSub; i++ ) for ( i=0; i<nSub; i++ )
{ {
String aCode = aToken.GetToken( i, '/' ); String aCode = aToken.GetToken( i, '/' );
if ( aCode.EqualsAscii(pStrMrg) ) if ( aCode.EqualsAscii(pStrMrg) )
bMergeFieldSeps = sal_True; bMergeFieldSeps = true;
else else
{ {
sal_Int32 nVal = aCode.ToInt32(); sal_Int32 nVal = aCode.ToInt32();
...@@ -300,7 +300,7 @@ void ScAsciiOptions::ReadFromString( const String& rString ) ...@@ -300,7 +300,7 @@ void ScAsciiOptions::ReadFromString( const String& rString )
bDetectSpecialNumber = aToken.EqualsAscii("true") ? true : false; bDetectSpecialNumber = aToken.EqualsAscii("true") ? true : false;
} }
else else
bDetectSpecialNumber = sal_True; // default of versions that didn't add the parameter bDetectSpecialNumber = true; // default of versions that didn't add the parameter
// 9th token is used for "Save as shown" in export options // 9th token is used for "Save as shown" in export options
// 10th token is used for "Save cell formulas" in export options // 10th token is used for "Save cell formulas" in export options
......
...@@ -39,15 +39,15 @@ ...@@ -39,15 +39,15 @@
class ScAsciiOptions class ScAsciiOptions
{ {
private: private:
sal_Bool bFixedLen; bool bFixedLen;
String aFieldSeps; String aFieldSeps;
sal_Bool bMergeFieldSeps; bool bMergeFieldSeps;
bool bQuotedFieldAsText; bool bQuotedFieldAsText;
bool bDetectSpecialNumber; bool bDetectSpecialNumber;
sal_Unicode cTextSep; sal_Unicode cTextSep;
CharSet eCharSet; CharSet eCharSet;
LanguageType eLang; LanguageType eLang;
sal_Bool bCharSetSystem; bool bCharSetSystem;
long nStartRow; long nStartRow;
sal_uInt16 nInfoCount; sal_uInt16 nInfoCount;
sal_Int32* pColStart; //! TODO replace with vector sal_Int32* pColStart; //! TODO replace with vector
...@@ -62,7 +62,7 @@ public: ...@@ -62,7 +62,7 @@ public:
ScAsciiOptions& operator=( const ScAsciiOptions& rCpy ); ScAsciiOptions& operator=( const ScAsciiOptions& rCpy );
sal_Bool operator==( const ScAsciiOptions& rCmp ) const; bool operator==( const ScAsciiOptions& rCmp ) const;
void ReadFromString( const String& rString ); void ReadFromString( const String& rString );
String WriteToString() const; String WriteToString() const;
...@@ -70,24 +70,24 @@ public: ...@@ -70,24 +70,24 @@ public:
void InterpretColumnList( const String& rString ); void InterpretColumnList( const String& rString );
CharSet GetCharSet() const { return eCharSet; } CharSet GetCharSet() const { return eCharSet; }
sal_Bool GetCharSetSystem() const { return bCharSetSystem; } bool GetCharSetSystem() const { return bCharSetSystem; }
const String& GetFieldSeps() const { return aFieldSeps; } const String& GetFieldSeps() const { return aFieldSeps; }
sal_Bool IsMergeSeps() const { return bMergeFieldSeps; } bool IsMergeSeps() const { return bMergeFieldSeps; }
bool IsQuotedAsText() const { return bQuotedFieldAsText; } bool IsQuotedAsText() const { return bQuotedFieldAsText; }
bool IsDetectSpecialNumber() const { return bDetectSpecialNumber; } bool IsDetectSpecialNumber() const { return bDetectSpecialNumber; }
sal_Unicode GetTextSep() const { return cTextSep; } sal_Unicode GetTextSep() const { return cTextSep; }
sal_Bool IsFixedLen() const { return bFixedLen; } bool IsFixedLen() const { return bFixedLen; }
sal_uInt16 GetInfoCount() const { return nInfoCount; } sal_uInt16 GetInfoCount() const { return nInfoCount; }
const sal_Int32* GetColStart() const { return pColStart; } const sal_Int32* GetColStart() const { return pColStart; }
const sal_uInt8* GetColFormat() const { return pColFormat; } const sal_uInt8* GetColFormat() const { return pColFormat; }
long GetStartRow() const { return nStartRow; } long GetStartRow() const { return nStartRow; }
LanguageType GetLanguage() const { return eLang; } LanguageType GetLanguage() const { return eLang; }
void SetCharSet( CharSet eNew ) { eCharSet = eNew; } void SetCharSet( CharSet eNew ) { eCharSet = eNew; }
void SetCharSetSystem( sal_Bool bSet ) { bCharSetSystem = bSet; } void SetCharSetSystem( bool bSet ) { bCharSetSystem = bSet; }
void SetFixedLen( sal_Bool bSet ) { bFixedLen = bSet; } void SetFixedLen( bool bSet ) { bFixedLen = bSet; }
void SetFieldSeps( const String& rStr ) { aFieldSeps = rStr; } void SetFieldSeps( const String& rStr ) { aFieldSeps = rStr; }
void SetMergeSeps( sal_Bool bSet ) { bMergeFieldSeps = bSet; } void SetMergeSeps( bool bSet ) { bMergeFieldSeps = bSet; }
void SetQuotedAsText(bool bSet) { bQuotedFieldAsText = bSet; } void SetQuotedAsText(bool bSet) { bQuotedFieldAsText = bSet; }
void SetDetectSpecialNumber(bool bSet) { bDetectSpecialNumber = bSet; } void SetDetectSpecialNumber(bool bSet) { bDetectSpecialNumber = bSet; }
void SetTextSep( sal_Unicode c ) { cTextSep = c; } void SetTextSep( sal_Unicode c ) { cTextSep = c; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment