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

sal_Bool->bool

Change-Id: Ie96737c3e6d354bcdd82b2539f6b62eab65565fa
üst d7f99137
...@@ -297,12 +297,12 @@ void ScDocShell::SetLockCount(sal_uInt16 nNew) ...@@ -297,12 +297,12 @@ void ScDocShell::SetLockCount(sal_uInt16 nNew)
{ {
if ( !pPaintLockData ) if ( !pPaintLockData )
pPaintLockData = new ScPaintLockData; pPaintLockData = new ScPaintLockData;
pPaintLockData->SetLevel(nNew-1, sal_True); pPaintLockData->SetLevel(nNew-1, true);
LockDocument_Impl(nNew); LockDocument_Impl(nNew);
} }
else if (pPaintLockData) // loeschen else if (pPaintLockData) // loeschen
{ {
pPaintLockData->SetLevel(0, sal_True); // bei Unlock sofort ausfuehren pPaintLockData->SetLevel(0, true); // bei Unlock sofort ausfuehren
UnlockPaint_Impl(true); // jetzt UnlockPaint_Impl(true); // jetzt
UnlockDocument_Impl(0); UnlockDocument_Impl(0);
} }
......
...@@ -26,10 +26,10 @@ class ScPaintLockData ...@@ -26,10 +26,10 @@ class ScPaintLockData
{ {
private: private:
ScRangeListRef xRangeList; ScRangeListRef xRangeList;
sal_uInt16 nLevel; sal_uInt16 nLevel;
sal_uInt16 nDocLevel; sal_uInt16 nDocLevel;
sal_uInt16 nParts; sal_uInt16 nParts;
sal_Bool bModified; bool bModified;
public: public:
ScPaintLockData(); ScPaintLockData();
...@@ -37,20 +37,20 @@ public: ...@@ -37,20 +37,20 @@ public:
void AddRange( const ScRange& rRange, sal_uInt16 nP ); void AddRange( const ScRange& rRange, sal_uInt16 nP );
void SetModified() { bModified = sal_True; } void SetModified() { bModified = true; }
void IncLevel(sal_Bool bDoc) void IncLevel(bool bDoc)
{ if (bDoc) ++nDocLevel; else ++nLevel; } { if (bDoc) ++nDocLevel; else ++nLevel; }
void DecLevel(sal_Bool bDoc) void DecLevel(bool bDoc)
{ if (bDoc) --nDocLevel; else --nLevel; } { if (bDoc) --nDocLevel; else --nLevel; }
const ScRangeListRef& GetRangeList() const { return xRangeList; } const ScRangeListRef& GetRangeList() const { return xRangeList; }
sal_uInt16 GetParts() const { return nParts; } sal_uInt16 GetParts() const { return nParts; }
sal_uInt16 GetLevel(sal_Bool bDoc) const sal_uInt16 GetLevel(bool bDoc) const
{ return bDoc ? nDocLevel : nLevel; } { return bDoc ? nDocLevel : nLevel; }
sal_Bool GetModified() const { return bModified; } bool GetModified() const { return bModified; }
/** for recovery after reset */ /** for recovery after reset */
void SetLevel(sal_uInt16 nNew, sal_Bool bDoc) void SetLevel(sal_uInt16 nNew, bool bDoc)
{ if (bDoc) nDocLevel = nNew; else nLevel = nNew; } { if (bDoc) nDocLevel = nNew; else nLevel = nNew; }
}; };
......
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