summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-19 10:06:55 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 13:05:09 +0200
commite4841cd76cec8b9dd5392d39ff6584307c30a870 (patch)
tree47278c3b3b20aa6a8fe9a3a0e3e248436da11605 /sc
parent639f33fc5b0bd3d0a7f6387ae89cd2051ca799e5 (diff)
sal_Bool->bool
Change-Id: I832d517825f5090e8b645c12075226809f7e3ffc
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/undotab.hxx22
-rw-r--r--sc/source/ui/undo/undotab.cxx22
-rw-r--r--sc/source/ui/view/viewfun2.cxx2
3 files changed, 23 insertions, 23 deletions
diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx
index 9eda6cb060a7..b0276ca67ce5 100644
--- a/sc/source/ui/inc/undotab.hxx
+++ b/sc/source/ui/inc/undotab.hxx
@@ -51,7 +51,7 @@ public:
ScUndoInsertTab(
ScDocShell* pNewDocShell,
SCTAB nTabNum,
- sal_Bool bApp,
+ bool bApp,
const OUString& rNewName);
virtual ~ScUndoInsertTab();
@@ -67,7 +67,7 @@ private:
SdrUndoAction* pDrawUndo;
sal_uLong nEndChangeAction;
SCTAB nTab;
- sal_Bool bAppend;
+ bool bAppend;
void SetChangeTrack();
};
@@ -181,7 +181,7 @@ private:
::boost::shared_ptr< ::std::vector< OUString> > mpOldNames;
::boost::shared_ptr< ::std::vector< OUString> > mpNewNames;
- void DoChange( sal_Bool bUndo ) const;
+ void DoChange( bool bUndo ) const;
};
@@ -323,7 +323,7 @@ private:
sal_uInt8* pModes;
OUString* pTabNames;
- void DoChange( sal_Bool bLink ) const;
+ void DoChange( bool bLink ) const;
};
@@ -334,7 +334,7 @@ public:
ScUndoShowHideTab(
ScDocShell* pShell,
const std::vector<SCTAB>& newUndoTabs,
- sal_Bool bNewShow );
+ bool bNewShow );
virtual ~ScUndoShowHideTab();
virtual void Undo();
@@ -346,9 +346,9 @@ public:
private:
std::vector<SCTAB> undoTabs;
- sal_Bool bShow;
+ bool bShow;
- void DoChange( sal_Bool bShow ) const;
+ void DoChange( bool bShow ) const;
};
// ============================================================================
@@ -428,7 +428,7 @@ private:
ScPrintRangeSaver* pOldRanges;
ScPrintRangeSaver* pNewRanges;
- void DoChange( sal_Bool bUndo );
+ void DoChange( bool bUndo );
};
@@ -495,7 +495,7 @@ class ScUndoLayoutRTL : public ScSimpleUndo
{
public:
TYPEINFO();
- ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, sal_Bool bNewRTL );
+ ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, bool bNewRTL );
virtual ~ScUndoLayoutRTL();
virtual void Undo();
@@ -507,9 +507,9 @@ public:
private:
SCTAB nTab;
- sal_Bool bRTL;
+ bool bRTL;
- void DoChange( sal_Bool bNew );
+ void DoChange( bool bNew );
};
#endif
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index a92284804fe5..498d463fcc87 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -75,7 +75,7 @@ TYPEINIT1(ScUndoTabColor, SfxUndoAction);
ScUndoInsertTab::ScUndoInsertTab( ScDocShell* pNewDocShell,
SCTAB nTabNum,
- sal_Bool bApp,
+ bool bApp,
const OUString& rNewName) :
ScSimpleUndo( pNewDocShell ),
sNewName( rNewName ),
@@ -504,7 +504,7 @@ OUString ScUndoMoveTab::GetComment() const
return ScGlobal::GetRscString( STR_UNDO_MOVE_TAB );
}
-void ScUndoMoveTab::DoChange( sal_Bool bUndo ) const
+void ScUndoMoveTab::DoChange( bool bUndo ) const
{
ScDocument* pDoc = pDocShell->GetDocument();
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
@@ -566,7 +566,7 @@ void ScUndoMoveTab::DoChange( sal_Bool bUndo ) const
void ScUndoMoveTab::Undo()
{
- DoChange( sal_True );
+ DoChange( true );
}
void ScUndoMoveTab::Redo()
@@ -1086,7 +1086,7 @@ OUString ScUndoRemoveLink::GetComment() const
return ScGlobal::GetRscString( STR_UNDO_REMOVELINK );
}
-void ScUndoRemoveLink::DoChange( sal_Bool bLink ) const
+void ScUndoRemoveLink::DoChange( bool bLink ) const
{
ScDocument* pDoc = pDocShell->GetDocument();
OUString aEmpty;
@@ -1100,7 +1100,7 @@ void ScUndoRemoveLink::DoChange( sal_Bool bLink ) const
void ScUndoRemoveLink::Undo()
{
- DoChange( sal_True );
+ DoChange( true );
}
void ScUndoRemoveLink::Redo()
@@ -1118,7 +1118,7 @@ bool ScUndoRemoveLink::CanRepeat(SfxRepeatTarget& /* rTarget */) const
return false;
}
-ScUndoShowHideTab::ScUndoShowHideTab( ScDocShell* pShell, const std::vector<SCTAB>& newUndoTabs, sal_Bool bNewShow ) :
+ScUndoShowHideTab::ScUndoShowHideTab( ScDocShell* pShell, const std::vector<SCTAB>& newUndoTabs, bool bNewShow ) :
ScSimpleUndo( pShell ),
undoTabs( newUndoTabs ),
bShow( bNewShow )
@@ -1129,7 +1129,7 @@ ScUndoShowHideTab::~ScUndoShowHideTab()
{
}
-void ScUndoShowHideTab::DoChange( sal_Bool bShowP ) const
+void ScUndoShowHideTab::DoChange( bool bShowP ) const
{
ScDocument* pDoc = pDocShell->GetDocument();
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
@@ -1344,7 +1344,7 @@ ScUndoPrintRange::~ScUndoPrintRange()
delete pNewRanges;
}
-void ScUndoPrintRange::DoChange(sal_Bool bUndo)
+void ScUndoPrintRange::DoChange(bool bUndo)
{
ScDocument* pDoc = pDocShell->GetDocument();
if (bUndo)
@@ -1364,7 +1364,7 @@ void ScUndoPrintRange::DoChange(sal_Bool bUndo)
void ScUndoPrintRange::Undo()
{
BeginUndo();
- DoChange( sal_True );
+ DoChange( true );
EndUndo();
}
@@ -1536,7 +1536,7 @@ bool ScUndoRenameObject::CanRepeat(SfxRepeatTarget& /* rTarget */) const
return false;
}
-ScUndoLayoutRTL::ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, sal_Bool bNewRTL ) :
+ScUndoLayoutRTL::ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, bool bNewRTL ) :
ScSimpleUndo( pShell ),
nTab( nNewTab ),
bRTL( bNewRTL )
@@ -1547,7 +1547,7 @@ ScUndoLayoutRTL::~ScUndoLayoutRTL()
{
}
-void ScUndoLayoutRTL::DoChange( sal_Bool bNew )
+void ScUndoLayoutRTL::DoChange( bool bNew )
{
pDocShell->SetInUndo( true );
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 4a6403677c48..c5cba869dbf6 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -1999,7 +1999,7 @@ sal_Bool ScViewFunc::AppendTable( const OUString& rName, sal_Bool bRecord )
SCTAB nTab = pDoc->GetTableCount()-1;
if (bRecord)
pDocSh->GetUndoManager()->AddUndoAction(
- new ScUndoInsertTab( pDocSh, nTab, sal_True, rName));
+ new ScUndoInsertTab( pDocSh, nTab, true, rName));
GetViewData()->InsertTab( nTab );
SetTabNo( nTab, true );
pDocSh->PostPaintExtras();