Kaydet (Commit) 651d68fd authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: Ieaaf39833367de54973163cae581e69292bd26e7
üst 0793a830
......@@ -28,7 +28,7 @@ ScPrintRangeData::ScPrintRangeData()
nPagesX = nPagesY = 0;
pPageEndX = NULL;
pPageEndY = NULL;
bTopDown = bAutomatic = sal_True;
bTopDown = bAutomatic = true;
nFirstPage = 1;
}
......@@ -94,7 +94,7 @@ ScPrintRangeData& ScPageBreakData::GetData(size_t nPos)
return pData[nPos];
}
sal_Bool ScPageBreakData::IsEqual( const ScPageBreakData& rOther ) const
bool ScPageBreakData::operator==( const ScPageBreakData& rOther ) const
{
if ( nUsed != rOther.nUsed )
return false;
......@@ -105,7 +105,7 @@ sal_Bool ScPageBreakData::IsEqual( const ScPageBreakData& rOther ) const
//! ScPrintRangeData komplett vergleichen ??
return sal_True;
return true;
}
void ScPageBreakData::AddPages()
......
......@@ -34,8 +34,8 @@ private:
size_t nPagesY;
SCROW* pPageEndY;
long nFirstPage;
sal_Bool bTopDown;
sal_Bool bAutomatic;
bool bTopDown;
bool bAutomatic;
public:
ScPrintRangeData();
......@@ -54,10 +54,10 @@ public:
void SetFirstPage( long nNew ) { nFirstPage = nNew; }
long GetFirstPage() const { return nFirstPage; }
void SetTopDown( sal_Bool bSet ) { bTopDown = bSet; }
sal_Bool IsTopDown() const { return bTopDown; }
void SetAutomatic( sal_Bool bSet ) { bAutomatic = bSet; }
sal_Bool IsAutomatic() const { return bAutomatic; }
void SetTopDown( bool bSet ) { bTopDown = bSet; }
bool IsTopDown() const { return bTopDown; }
void SetAutomatic( bool bSet ) { bAutomatic = bSet; }
bool IsAutomatic() const { return bAutomatic; }
};
class ScPageBreakData
......@@ -74,7 +74,7 @@ public:
size_t GetCount() const { return nUsed; }
ScPrintRangeData& GetData(size_t i);
sal_Bool IsEqual( const ScPageBreakData& rOther ) const;
bool operator==( const ScPageBreakData& rOther ) const;
void AddPages();
};
......
......@@ -1471,7 +1471,7 @@ void ScTabView::UpdatePageBreakData( bool bForcePaint )
}
// Druckbereiche veraendert?
if ( bForcePaint || ( pPageBreakData && !pPageBreakData->IsEqual( *pNewData ) ) )
if ( bForcePaint || ( pPageBreakData && !( *pPageBreakData == *pNewData ) ) )
PaintGrid();
}
......
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