Kaydet (Commit) 985c6b45 authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: I7176217c4b9593386209db2fba8f26f45c39c5ca
üst cc66810d
...@@ -39,28 +39,28 @@ class SC_DLLPUBLIC ScDocOptions ...@@ -39,28 +39,28 @@ class SC_DLLPUBLIC ScDocOptions
sal_uInt16 nYear; sal_uInt16 nYear;
sal_uInt16 nYear2000; ///< earlier 19YY is assumed, 20YY otherwise (if only YY of year is given) sal_uInt16 nYear2000; ///< earlier 19YY is assumed, 20YY otherwise (if only YY of year is given)
sal_uInt16 nTabDistance; ///< distance of standard tabs sal_uInt16 nTabDistance; ///< distance of standard tabs
sal_Bool bIsIgnoreCase; ///< ignore case for comparisons? bool bIsIgnoreCase; ///< ignore case for comparisons?
sal_Bool bIsIter; ///< iterations for circular refs bool bIsIter; ///< iterations for circular refs
sal_Bool bCalcAsShown; ///< calculate as shown (wrt precision) bool bCalcAsShown; ///< calculate as shown (wrt precision)
sal_Bool bMatchWholeCell; ///< search criteria must match the whole cell bool bMatchWholeCell; ///< search criteria must match the whole cell
sal_Bool bDoAutoSpell; ///< auto-spelling bool bDoAutoSpell; ///< auto-spelling
sal_Bool bLookUpColRowNames; ///< determine column-/row titles automagically bool bLookUpColRowNames; ///< determine column-/row titles automagically
sal_Bool bFormulaRegexEnabled; ///< regular expressions in formulas enabled bool bFormulaRegexEnabled; ///< regular expressions in formulas enabled
public: public:
ScDocOptions(); ScDocOptions();
ScDocOptions( const ScDocOptions& rCpy ); ScDocOptions( const ScDocOptions& rCpy );
~ScDocOptions(); ~ScDocOptions();
sal_Bool IsLookUpColRowNames() const { return bLookUpColRowNames; } bool IsLookUpColRowNames() const { return bLookUpColRowNames; }
void SetLookUpColRowNames( sal_Bool bVal ) { bLookUpColRowNames = bVal; } void SetLookUpColRowNames( bool bVal ) { bLookUpColRowNames = bVal; }
sal_Bool IsAutoSpell() const { return bDoAutoSpell; } bool IsAutoSpell() const { return bDoAutoSpell; }
void SetAutoSpell( sal_Bool bVal ) { bDoAutoSpell = bVal; } void SetAutoSpell( bool bVal ) { bDoAutoSpell = bVal; }
sal_Bool IsMatchWholeCell() const { return bMatchWholeCell; } bool IsMatchWholeCell() const { return bMatchWholeCell; }
void SetMatchWholeCell( sal_Bool bVal ){ bMatchWholeCell = bVal; } void SetMatchWholeCell( bool bVal ) { bMatchWholeCell = bVal; }
sal_Bool IsIgnoreCase() const { return bIsIgnoreCase; } bool IsIgnoreCase() const { return bIsIgnoreCase; }
void SetIgnoreCase( sal_Bool bVal ) { bIsIgnoreCase = bVal; } void SetIgnoreCase( bool bVal ) { bIsIgnoreCase = bVal; }
sal_Bool IsIter() const { return bIsIter; } bool IsIter() const { return bIsIter; }
void SetIter( sal_Bool bVal ) { bIsIter = bVal; } void SetIter( bool bVal ) { bIsIter = bVal; }
sal_uInt16 GetIterCount() const { return nIterCount; } sal_uInt16 GetIterCount() const { return nIterCount; }
void SetIterCount( sal_uInt16 nCount) { nIterCount = nCount; } void SetIterCount( sal_uInt16 nCount) { nIterCount = nCount; }
double GetIterEps() const { return fIterEps; } double GetIterEps() const { return fIterEps; }
...@@ -82,14 +82,14 @@ public: ...@@ -82,14 +82,14 @@ public:
sal_uInt16 GetStdPrecision() const { return nPrecStandardFormat; } sal_uInt16 GetStdPrecision() const { return nPrecStandardFormat; }
void SetStdPrecision( sal_uInt16 n ) { nPrecStandardFormat = n; } void SetStdPrecision( sal_uInt16 n ) { nPrecStandardFormat = n; }
sal_Bool IsCalcAsShown() const { return bCalcAsShown; } bool IsCalcAsShown() const { return bCalcAsShown; }
void SetCalcAsShown( sal_Bool bVal ) { bCalcAsShown = bVal; } void SetCalcAsShown( bool bVal ) { bCalcAsShown = bVal; }
void SetYear2000( sal_uInt16 nVal ) { nYear2000 = nVal; } void SetYear2000( sal_uInt16 nVal ) { nYear2000 = nVal; }
sal_uInt16 GetYear2000() const { return nYear2000; } sal_uInt16 GetYear2000() const { return nYear2000; }
void SetFormulaRegexEnabled( sal_Bool bVal ) { bFormulaRegexEnabled = bVal; } void SetFormulaRegexEnabled( bool bVal ) { bFormulaRegexEnabled = bVal; }
sal_Bool IsFormulaRegexEnabled() const { return bFormulaRegexEnabled; } bool IsFormulaRegexEnabled() const { return bFormulaRegexEnabled; }
}; };
......
...@@ -782,7 +782,7 @@ void ImportExcel::ReadUsesElfs() ...@@ -782,7 +782,7 @@ void ImportExcel::ReadUsesElfs()
if( maStrm.ReaduInt16() != 0 ) if( maStrm.ReaduInt16() != 0 )
{ {
ScDocOptions aDocOpt = GetDoc().GetDocOptions(); ScDocOptions aDocOpt = GetDoc().GetDocOptions();
aDocOpt.SetLookUpColRowNames( sal_True ); aDocOpt.SetLookUpColRowNames( true );
GetDoc().SetDocOptions( aDocOpt ); GetDoc().SetDocOptions( aDocOpt );
} }
} }
......
...@@ -2989,7 +2989,7 @@ sal_Bool ScViewData::UpdateFixY( SCTAB nTab ) // sal_True = Wert g ...@@ -2989,7 +2989,7 @@ sal_Bool ScViewData::UpdateFixY( SCTAB nTab ) // sal_True = Wert g
void ScViewData::UpdateOutlinerFlags( Outliner& rOutl ) const void ScViewData::UpdateOutlinerFlags( Outliner& rOutl ) const
{ {
ScDocument* pLocalDoc = GetDocument(); ScDocument* pLocalDoc = GetDocument();
sal_Bool bOnlineSpell = pLocalDoc->GetDocOptions().IsAutoSpell(); bool bOnlineSpell = pLocalDoc->GetDocOptions().IsAutoSpell();
sal_uLong nCntrl = rOutl.GetControlWord(); sal_uLong nCntrl = rOutl.GetControlWord();
nCntrl |= EE_CNTRL_URLSFXEXECUTE; nCntrl |= EE_CNTRL_URLSFXEXECUTE;
......
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