summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshb.cxx
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2011-02-07 18:01:48 +0100
committerMikhail Voytenko <mav@openoffice.org>2011-02-07 18:01:48 +0100
commit981b1b3d5a9bcdad2a267bedcc5da22266103a0b (patch)
treef993fa9a1ab8c36ee014e8f9021d7e5e3139a1e4 /sc/source/ui/view/tabvwshb.cxx
parente1d7ba29323a12fe05f5bf2aa40a822055f7d065 (diff)
removetooltypes01: #i112600# adjust rebase in chart2, starmath, sc, sd
Diffstat (limited to 'sc/source/ui/view/tabvwshb.cxx')
-rw-r--r--sc/source/ui/view/tabvwshb.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index e21d4d14189c..2001ba165531 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -499,28 +499,28 @@ void ScTabViewShell::ExecuteUndo(SfxRequest& rReq)
const SfxItemSet* pReqArgs = rReq.GetArgs();
ScDocShell* pDocSh = GetViewData()->GetDocShell();
- USHORT nSlot = rReq.GetSlot();
+ sal_uInt16 nSlot = rReq.GetSlot();
switch ( nSlot )
{
case SID_UNDO:
case SID_REDO:
if ( pUndoManager )
{
- BOOL bIsUndo = ( nSlot == SID_UNDO );
+ sal_Bool bIsUndo = ( nSlot == SID_UNDO );
- USHORT nCount = 1;
+ sal_uInt16 nCount = 1;
const SfxPoolItem* pItem;
- if ( pReqArgs && pReqArgs->GetItemState( nSlot, TRUE, &pItem ) == SFX_ITEM_SET )
+ if ( pReqArgs && pReqArgs->GetItemState( nSlot, sal_True, &pItem ) == SFX_ITEM_SET )
nCount = ((const SfxUInt16Item*)pItem)->GetValue();
// lock paint for more than one cell undo action (not for editing within a cell)
- BOOL bLockPaint = ( nCount > 1 && pUndoManager == GetUndoManager() );
+ sal_Bool bLockPaint = ( nCount > 1 && pUndoManager == GetUndoManager() );
if ( bLockPaint )
pDocSh->LockPaint();
try
{
- for (USHORT i=0; i<nCount; i++)
+ for (sal_uInt16 i=0; i<nCount; i++)
{
if ( bIsUndo )
pUndoManager->Undo();
@@ -551,7 +551,7 @@ void ScTabViewShell::GetUndoState(SfxItemSet &rSet)
::svl::IUndoManager* pUndoManager = pSh->GetUndoManager();
SfxWhichIter aIter(rSet);
- USHORT nWhich = aIter.FirstWhich();
+ sal_uInt16 nWhich = aIter.FirstWhich();
while ( nWhich )
{
switch (nWhich)
@@ -563,7 +563,7 @@ void ScTabViewShell::GetUndoState(SfxItemSet &rSet)
if ( pUndoManager )
{
List* pList = aStrLst.GetList();
- BOOL bIsUndo = ( nWhich == SID_GETUNDOSTRINGS );
+ sal_Bool bIsUndo = ( nWhich == SID_GETUNDOSTRINGS );
size_t nCount = bIsUndo ? pUndoManager->GetUndoActionCount() : pUndoManager->GetRedoActionCount();
for (size_t i=0; i<nCount; i++)
pList->Insert( new String( bIsUndo ? pUndoManager->GetUndoActionComment(i) :