diff options
Diffstat (limited to 'sc/source/ui/view/select.cxx')
-rw-r--r-- | sc/source/ui/view/select.cxx | 202 |
1 files changed, 101 insertions, 101 deletions
diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx index b2c9ffdc1395..ab0cb8248813 100644 --- a/sc/source/ui/view/select.cxx +++ b/sc/source/ui/view/select.cxx @@ -46,14 +46,14 @@ #include "docsh.hxx" #include "tabprotection.hxx" -extern USHORT nScFillModeMouseModifier; // global.cxx +extern sal_uInt16 nScFillModeMouseModifier; // global.cxx using namespace com::sun::star; // STATIC DATA ----------------------------------------------------------- static Point aSwitchPos; //! Member -static BOOL bDidSwitch = FALSE; +static sal_Bool bDidSwitch = sal_False; // ----------------------------------------------------------------------- @@ -64,8 +64,8 @@ static BOOL bDidSwitch = FALSE; ScViewFunctionSet::ScViewFunctionSet( ScViewData* pNewViewData ) : pViewData( pNewViewData ), pEngine( NULL ), - bAnchor( FALSE ), - bStarted( FALSE ) + bAnchor( sal_False ), + bStarted( sal_False ) { DBG_ASSERT(pViewData, "ViewData==0 bei FunctionSet"); } @@ -103,19 +103,19 @@ void __EXPORT ScViewFunctionSet::BeginDrag() } ScModule* pScMod = SC_MOD(); - BOOL bRefMode = pScMod->IsFormulaMode(); + sal_Bool bRefMode = pScMod->IsFormulaMode(); if (!bRefMode) { pViewData->GetView()->FakeButtonUp( GetWhich() ); // ButtonUp wird verschluckt ScMarkData& rMark = pViewData->GetMarkData(); -// rMark.SetMarking(FALSE); // es fehlt ein ButtonUp +// rMark.SetMarking(sal_False); // es fehlt ein ButtonUp rMark.MarkToSimple(); if ( rMark.IsMarked() && !rMark.IsMultiMarked() ) { ScDocument* pClipDoc = new ScDocument( SCDOCMODE_CLIP ); - // bApi = TRUE -> no error mesages - BOOL bCopied = pViewData->GetView()->CopyToClip( pClipDoc, FALSE, TRUE ); + // bApi = sal_True -> no error mesages + sal_Bool bCopied = pViewData->GetView()->CopyToClip( pClipDoc, sal_False, sal_True ); if ( bCopied ) { sal_Int8 nDragActions = pViewData->GetView()->SelectionEditable() ? @@ -165,7 +165,7 @@ void __EXPORT ScViewFunctionSet::CreateAnchor() { if (bAnchor) return; - BOOL bRefMode = SC_MOD()->IsFormulaMode(); + sal_Bool bRefMode = SC_MOD()->IsFormulaMode(); if (bRefMode) SetAnchor( pViewData->GetRefStartX(), pViewData->GetRefStartY() ); else @@ -174,22 +174,22 @@ void __EXPORT ScViewFunctionSet::CreateAnchor() void ScViewFunctionSet::SetAnchor( SCCOL nPosX, SCROW nPosY ) { - BOOL bRefMode = SC_MOD()->IsFormulaMode(); + sal_Bool bRefMode = SC_MOD()->IsFormulaMode(); ScTabView* pView = pViewData->GetView(); SCTAB nTab = pViewData->GetTabNo(); if (bRefMode) { - pView->DoneRefMode( FALSE ); + pView->DoneRefMode( sal_False ); aAnchorPos.Set( nPosX, nPosY, nTab ); pView->InitRefMode( aAnchorPos.Col(), aAnchorPos.Row(), aAnchorPos.Tab(), SC_REFTYPE_REF ); - bStarted = TRUE; + bStarted = sal_True; } else if (pViewData->IsAnyFillMode()) { aAnchorPos.Set( nPosX, nPosY, nTab ); - bStarted = TRUE; + bStarted = sal_True; } else { @@ -200,46 +200,46 @@ void ScViewFunctionSet::SetAnchor( SCCOL nPosX, SCROW nPosY ) } else { - pView->DoneBlockMode( TRUE ); + pView->DoneBlockMode( sal_True ); aAnchorPos.Set( nPosX, nPosY, nTab ); ScMarkData& rMark = pViewData->GetMarkData(); if ( rMark.IsMarked() || rMark.IsMultiMarked() ) { pView->InitBlockMode( aAnchorPos.Col(), aAnchorPos.Row(), - aAnchorPos.Tab(), TRUE ); - bStarted = TRUE; + aAnchorPos.Tab(), sal_True ); + bStarted = sal_True; } else - bStarted = FALSE; + bStarted = sal_False; } } - bAnchor = TRUE; + bAnchor = sal_True; } void __EXPORT ScViewFunctionSet::DestroyAnchor() { - BOOL bRefMode = SC_MOD()->IsFormulaMode(); + sal_Bool bRefMode = SC_MOD()->IsFormulaMode(); if (bRefMode) - pViewData->GetView()->DoneRefMode( TRUE ); + pViewData->GetView()->DoneRefMode( sal_True ); else - pViewData->GetView()->DoneBlockMode( TRUE ); + pViewData->GetView()->DoneBlockMode( sal_True ); - bAnchor = FALSE; + bAnchor = sal_False; } -void ScViewFunctionSet::SetAnchorFlag( BOOL bSet ) +void ScViewFunctionSet::SetAnchorFlag( sal_Bool bSet ) { bAnchor = bSet; } -BOOL __EXPORT ScViewFunctionSet::SetCursorAtPoint( const Point& rPointPixel, BOOL /* bDontSelectAtCursor */ ) +sal_Bool __EXPORT ScViewFunctionSet::SetCursorAtPoint( const Point& rPointPixel, sal_Bool /* bDontSelectAtCursor */ ) { if ( bDidSwitch ) { if ( rPointPixel == aSwitchPos ) - return FALSE; // nicht auf falschem Fenster scrollen + return sal_False; // nicht auf falschem Fenster scrollen else - bDidSwitch = FALSE; + bDidSwitch = sal_False; } aSwitchPos = rPointPixel; // nur wichtig, wenn bDidSwitch @@ -256,21 +256,21 @@ BOOL __EXPORT ScViewFunctionSet::SetCursorAtPoint( const Point& rPointPixel, BOO // Scrolling Size aWinSize = pEngine->GetWindow()->GetOutputSizePixel(); - BOOL bRightScroll = ( aEffPos.X() >= aWinSize.Width() ); - BOOL bBottomScroll = ( aEffPos.Y() >= aWinSize.Height() ); - BOOL bNegScroll = ( aEffPos.X() < 0 || aEffPos.Y() < 0 ); - BOOL bScroll = bRightScroll || bBottomScroll || bNegScroll; + sal_Bool bRightScroll = ( aEffPos.X() >= aWinSize.Width() ); + sal_Bool bBottomScroll = ( aEffPos.Y() >= aWinSize.Height() ); + sal_Bool bNegScroll = ( aEffPos.X() < 0 || aEffPos.Y() < 0 ); + sal_Bool bScroll = bRightScroll || bBottomScroll || bNegScroll; SCsCOL nPosX; SCsROW nPosY; pViewData->GetPosFromPixel( aEffPos.X(), aEffPos.Y(), GetWhich(), - nPosX, nPosY, TRUE, TRUE ); // mit Repair + nPosX, nPosY, sal_True, sal_True ); // mit Repair // fuer AutoFill in der Mitte der Zelle umschalten // dabei aber nicht das Scrolling nach rechts/unten verhindern if ( pViewData->IsFillMode() || pViewData->GetFillMode() == SC_FILL_MATRIX ) { - BOOL bLeft, bTop; + sal_Bool bLeft, bTop; pViewData->GetMouseQuadrant( aEffPos, GetWhich(), nPosX, nPosY, bLeft, bTop ); ScDocument* pDoc = pViewData->GetDocument(); SCTAB nTab = pViewData->GetTabNo(); @@ -297,18 +297,18 @@ BOOL __EXPORT ScViewFunctionSet::SetCursorAtPoint( const Point& rPointPixel, BOO if ( aEffPos.X() >= aWinSize.Width() ) { if ( eWhich == SC_SPLIT_TOPLEFT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_TOPRIGHT ), bScroll = FALSE, bDidSwitch = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_TOPRIGHT ), bScroll = sal_False, bDidSwitch = sal_True; else if ( eWhich == SC_SPLIT_BOTTOMLEFT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bScroll = FALSE, bDidSwitch = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bScroll = sal_False, bDidSwitch = sal_True; } if ( pViewData->GetVSplitMode() == SC_SPLIT_FIX ) if ( aEffPos.Y() >= aWinSize.Height() ) { if ( eWhich == SC_SPLIT_TOPLEFT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMLEFT ), bScroll = FALSE, bDidSwitch = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMLEFT ), bScroll = sal_False, bDidSwitch = sal_True; else if ( eWhich == SC_SPLIT_TOPRIGHT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bScroll = FALSE, bDidSwitch = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bScroll = sal_False, bDidSwitch = sal_True; } } @@ -316,7 +316,7 @@ BOOL __EXPORT ScViewFunctionSet::SetCursorAtPoint( const Point& rPointPixel, BOO return SetCursorAtCell( nPosX, nPosY, bScroll ); } -BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScroll ) +sal_Bool ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, sal_Bool bScroll ) { ScTabView* pView = pViewData->GetView(); SCTAB nTab = pViewData->GetTabNo(); @@ -332,19 +332,19 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol bool bSkipUnprotected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); if ( bSkipProtected && bSkipUnprotected ) - return FALSE; + return sal_False; bool bCellProtected = pDoc->HasAttrib(nPosX, nPosY, nTab, nPosX, nPosY, nTab, HASATTR_PROTECTED); if ( (bCellProtected && bSkipProtected) || (!bCellProtected && bSkipUnprotected) ) // Don't select this cell! - return FALSE; + return sal_False; } ScModule* pScMod = SC_MOD(); ScTabViewShell* pViewShell = pViewData->GetViewShell(); bool bRefMode = ( pViewShell ? pViewShell->IsRefInputMode() : false ); - BOOL bHide = !bRefMode && !pViewData->IsAnyFillMode() && + sal_Bool bHide = !bRefMode && !pViewData->IsAnyFillMode() && ( nPosX != (SCsCOL) pViewData->GetCurX() || nPosY != (SCsROW) pViewData->GetCurY() ); if (bHide) @@ -368,7 +368,7 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol { if (!bAnchor) { - pView->DoneRefMode( TRUE ); + pView->DoneRefMode( sal_True ); pView->InitRefMode( nPosX, nPosY, pViewData->GetTabNo(), SC_REFTYPE_REF ); } @@ -392,7 +392,7 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol } ScRange aDelRange; - BOOL bOldDelMark = pViewData->GetDelMark( aDelRange ); + sal_Bool bOldDelMark = pViewData->GetDelMark( aDelRange ); if ( nPosX+1 >= (SCsCOL) nStartX && nPosX <= (SCsCOL) nEndX && nPosY+1 >= (SCsROW) nStartY && nPosY <= (SCsROW) nEndY && @@ -468,8 +468,8 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol #endif } - BOOL bNegX = ( nPosX < (SCsCOL) nStartX ); - BOOL bNegY = ( nPosY < (SCsROW) nStartY ); + sal_Bool bNegX = ( nPosX < (SCsCOL) nStartX ); + sal_Bool bNegY = ( nPosY < (SCsROW) nStartY ); long nSizeX = 0; if ( bNegX ) @@ -503,12 +503,12 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol if ( nSizeX > nSizeY ) // Fill immer nur in einer Richtung { nPosY = nEndY; - bNegY = FALSE; + bNegY = sal_False; } else { nPosX = nEndX; - bNegX = FALSE; + bNegX = sal_False; } SCCOL nRefStX = bNegX ? nEndX : nStartX; @@ -524,7 +524,7 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol } else if (pViewData->IsAnyFillMode()) { - BYTE nMode = pViewData->GetFillMode(); + sal_uInt8 nMode = pViewData->GetFillMode(); if ( nMode == SC_FILL_EMBED_LT || nMode == SC_FILL_EMBED_RB ) { DBG_ASSERT( pDoc->IsEmbedded(), "!pDoc->IsEmbedded()" ); @@ -564,7 +564,7 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol } else // normales Markieren { - BOOL bHideCur = bAnchor && ( (SCCOL)nPosX != pViewData->GetCurX() || + sal_Bool bHideCur = bAnchor && ( (SCCOL)nPosX != pViewData->GetCurX() || (SCROW)nPosY != pViewData->GetCurY() ); if (bHideCur) pView->HideAllCursors(); // sonst zweimal: Block und SetCursor @@ -573,29 +573,29 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol { if (!bStarted) { - BOOL bMove = ( nPosX != (SCsCOL) aAnchorPos.Col() || + sal_Bool bMove = ( nPosX != (SCsCOL) aAnchorPos.Col() || nPosY != (SCsROW) aAnchorPos.Row() ); if ( bMove || ( pEngine && pEngine->GetMouseEvent().IsShift() ) ) { pView->InitBlockMode( aAnchorPos.Col(), aAnchorPos.Row(), - aAnchorPos.Tab(), TRUE ); - bStarted = TRUE; + aAnchorPos.Tab(), sal_True ); + bStarted = sal_True; } } if (bStarted) - pView->MarkCursor( (SCCOL) nPosX, (SCROW) nPosY, nTab, FALSE, FALSE, TRUE ); + pView->MarkCursor( (SCCOL) nPosX, (SCROW) nPosY, nTab, sal_False, sal_False, sal_True ); } else { ScMarkData& rMark = pViewData->GetMarkData(); if (rMark.IsMarked() || rMark.IsMultiMarked()) { - pView->DoneBlockMode(TRUE); - pView->InitBlockMode( nPosX, nPosY, nTab, TRUE ); + pView->DoneBlockMode(sal_True); + pView->InitBlockMode( nPosX, nPosY, nTab, sal_True ); pView->MarkCursor( (SCCOL) nPosX, (SCROW) nPosY, nTab ); aAnchorPos.Set( nPosX, nPosY, nTab ); - bStarted = TRUE; + bStarted = sal_True; } // #i3875# *Hack* When a new cell is Ctrl-clicked with no pre-selected cells, // it highlights that new cell as well as the old cell where the cursor is @@ -606,18 +606,18 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol SCCOL nOldX = pViewData->GetCurX(); SCROW nOldY = pViewData->GetCurY(); - pView->InitBlockMode( nOldX, nOldY, nTab, TRUE ); + pView->InitBlockMode( nOldX, nOldY, nTab, sal_True ); pView->MarkCursor( (SCCOL) nOldX, (SCROW) nOldY, nTab ); if ( nOldX != nPosX || nOldY != nPosY ) { - pView->DoneBlockMode( TRUE ); - pView->InitBlockMode( nPosX, nPosY, nTab, TRUE ); + pView->DoneBlockMode( sal_True ); + pView->InitBlockMode( nPosX, nPosY, nTab, sal_True ); pView->MarkCursor( (SCCOL) nPosX, (SCROW) nPosY, nTab ); aAnchorPos.Set( nPosX, nPosY, nTab ); } - bStarted = TRUE; + bStarted = sal_True; } } @@ -630,17 +630,17 @@ BOOL ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScrol if (bHide) pView->ShowAllCursors(); - return TRUE; + return sal_True; } -BOOL __EXPORT ScViewFunctionSet::IsSelectionAtPoint( const Point& rPointPixel ) +sal_Bool __EXPORT ScViewFunctionSet::IsSelectionAtPoint( const Point& rPointPixel ) { - BOOL bRefMode = SC_MOD()->IsFormulaMode(); + sal_Bool bRefMode = SC_MOD()->IsFormulaMode(); if (bRefMode) - return FALSE; + return sal_False; if (pViewData->IsAnyFillMode()) - return FALSE; + return sal_False; ScMarkData& rMark = pViewData->GetMarkData(); if (bAnchor || !rMark.IsMultiMarked()) @@ -651,7 +651,7 @@ BOOL __EXPORT ScViewFunctionSet::IsSelectionAtPoint( const Point& rPointPixel ) return pViewData->GetMarkData().IsCellMarked( (SCCOL) nPosX, (SCROW) nPosY ); } - return FALSE; + return sal_False; } void __EXPORT ScViewFunctionSet::DeselectAtPoint( const Point& /* rPointPixel */ ) @@ -664,18 +664,18 @@ void __EXPORT ScViewFunctionSet::DeselectAll() if (pViewData->IsAnyFillMode()) return; - BOOL bRefMode = SC_MOD()->IsFormulaMode(); + sal_Bool bRefMode = SC_MOD()->IsFormulaMode(); if (bRefMode) { - pViewData->GetView()->DoneRefMode( FALSE ); + pViewData->GetView()->DoneRefMode( sal_False ); } else { - pViewData->GetView()->DoneBlockMode( FALSE ); + pViewData->GetView()->DoneBlockMode( sal_False ); pViewData->GetViewShell()->UpdateInputHandler(); } - bAnchor = FALSE; + bAnchor = sal_False; } //------------------------------------------------------------------------ @@ -687,7 +687,7 @@ ScViewSelectionEngine::ScViewSelectionEngine( Window* pWindow, ScTabView* pView, { // Parameter einstellen SetSelectionMode( MULTIPLE_SELECTION ); - EnableDrag( TRUE ); + EnableDrag( sal_True ); } @@ -699,15 +699,15 @@ ScViewSelectionEngine::ScViewSelectionEngine( Window* pWindow, ScTabView* pView, ScHeaderFunctionSet::ScHeaderFunctionSet( ScViewData* pNewViewData ) : pViewData( pNewViewData ), - bColumn( FALSE ), + bColumn( sal_False ), eWhich( SC_SPLIT_TOPLEFT ), - bAnchor( FALSE ), + bAnchor( sal_False ), nCursorPos( 0 ) { DBG_ASSERT(pViewData, "ViewData==0 bei FunctionSet"); } -void ScHeaderFunctionSet::SetColumn( BOOL bSet ) +void ScHeaderFunctionSet::SetColumn( sal_Bool bSet ) { bColumn = bSet; } @@ -728,41 +728,41 @@ void __EXPORT ScHeaderFunctionSet::CreateAnchor() return; ScTabView* pView = pViewData->GetView(); - pView->DoneBlockMode( TRUE ); + pView->DoneBlockMode( sal_True ); if (bColumn) { - pView->InitBlockMode( static_cast<SCCOL>(nCursorPos), 0, pViewData->GetTabNo(), TRUE, TRUE, FALSE ); + pView->InitBlockMode( static_cast<SCCOL>(nCursorPos), 0, pViewData->GetTabNo(), sal_True, sal_True, sal_False ); pView->MarkCursor( static_cast<SCCOL>(nCursorPos), MAXROW, pViewData->GetTabNo() ); } else { - pView->InitBlockMode( 0, nCursorPos, pViewData->GetTabNo(), TRUE, FALSE, TRUE ); + pView->InitBlockMode( 0, nCursorPos, pViewData->GetTabNo(), sal_True, sal_False, sal_True ); pView->MarkCursor( MAXCOL, nCursorPos, pViewData->GetTabNo() ); } - bAnchor = TRUE; + bAnchor = sal_True; } void __EXPORT ScHeaderFunctionSet::DestroyAnchor() { - pViewData->GetView()->DoneBlockMode( TRUE ); - bAnchor = FALSE; + pViewData->GetView()->DoneBlockMode( sal_True ); + bAnchor = sal_False; } -BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, BOOL /* bDontSelectAtCursor */ ) +sal_Bool __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, sal_Bool /* bDontSelectAtCursor */ ) { if ( bDidSwitch ) { // die naechste gueltige Position muss vom anderen Fenster kommen if ( rPointPixel == aSwitchPos ) - return FALSE; // nicht auf falschem Fenster scrollen + return sal_False; // nicht auf falschem Fenster scrollen else - bDidSwitch = FALSE; + bDidSwitch = sal_False; } // Scrolling Size aWinSize = pViewData->GetActiveWin()->GetOutputSizePixel(); - BOOL bScroll; + sal_Bool bScroll; if (bColumn) bScroll = ( rPointPixel.X() < 0 || rPointPixel.X() >= aWinSize.Width() ); else @@ -770,7 +770,7 @@ BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, B // ueber Fixier-Grenze bewegt? - BOOL bSwitched = FALSE; + sal_Bool bSwitched = sal_False; if ( bColumn ) { if ( pViewData->GetHSplitMode() == SC_SPLIT_FIX ) @@ -778,9 +778,9 @@ BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, B if ( rPointPixel.X() > aWinSize.Width() ) { if ( eWhich == SC_SPLIT_TOPLEFT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_TOPRIGHT ), bSwitched = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_TOPRIGHT ), bSwitched = sal_True; else if ( eWhich == SC_SPLIT_BOTTOMLEFT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bSwitched = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bSwitched = sal_True; } } } @@ -791,17 +791,17 @@ BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, B if ( rPointPixel.Y() > aWinSize.Height() ) { if ( eWhich == SC_SPLIT_TOPLEFT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMLEFT ), bSwitched = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMLEFT ), bSwitched = sal_True; else if ( eWhich == SC_SPLIT_TOPRIGHT ) - pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bSwitched = TRUE; + pViewData->GetView()->ActivatePart( SC_SPLIT_BOTTOMRIGHT ), bSwitched = sal_True; } } } if (bSwitched) { aSwitchPos = rPointPixel; - bDidSwitch = TRUE; - return FALSE; // nicht mit falschen Positionen rechnen + bDidSwitch = sal_True; + return sal_False; // nicht mit falschen Positionen rechnen } // @@ -809,7 +809,7 @@ BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, B SCsCOL nPosX; SCsROW nPosY; pViewData->GetPosFromPixel( rPointPixel.X(), rPointPixel.Y(), pViewData->GetActivePart(), - nPosX, nPosY, FALSE ); + nPosX, nPosY, sal_False ); if (bColumn) { nCursorPos = static_cast<SCCOLROW>(nPosX); @@ -822,7 +822,7 @@ BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, B } ScTabView* pView = pViewData->GetView(); - BOOL bHide = pViewData->GetCurX() != nPosX || + sal_Bool bHide = pViewData->GetCurX() != nPosX || pViewData->GetCurY() != nPosY; if (bHide) pView->HideAllCursors(); @@ -833,11 +833,11 @@ BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, B if ( !bAnchor || !pView->IsBlockMode() ) { - pView->DoneBlockMode( TRUE ); + pView->DoneBlockMode( sal_True ); pViewData->GetMarkData().MarkToMulti(); //! wer verstellt das ??? - pView->InitBlockMode( nPosX, nPosY, pViewData->GetTabNo(), TRUE, bColumn, !bColumn ); + pView->InitBlockMode( nPosX, nPosY, pViewData->GetTabNo(), sal_True, bColumn, !bColumn ); - bAnchor = TRUE; + bAnchor = sal_True; } pView->MarkCursor( nPosX, nPosY, pViewData->GetTabNo(), bColumn, !bColumn ); @@ -848,15 +848,15 @@ BOOL __EXPORT ScHeaderFunctionSet::SetCursorAtPoint( const Point& rPointPixel, B if (bHide) pView->ShowAllCursors(); - return TRUE; + return sal_True; } -BOOL __EXPORT ScHeaderFunctionSet::IsSelectionAtPoint( const Point& rPointPixel ) +sal_Bool __EXPORT ScHeaderFunctionSet::IsSelectionAtPoint( const Point& rPointPixel ) { SCsCOL nPosX; SCsROW nPosY; pViewData->GetPosFromPixel( rPointPixel.X(), rPointPixel.Y(), pViewData->GetActivePart(), - nPosX, nPosY, FALSE ); + nPosX, nPosY, sal_False ); ScMarkData& rMark = pViewData->GetMarkData(); if (bColumn) @@ -871,8 +871,8 @@ void __EXPORT ScHeaderFunctionSet::DeselectAtPoint( const Point& /* rPointPixel void __EXPORT ScHeaderFunctionSet::DeselectAll() { - pViewData->GetView()->DoneBlockMode( FALSE ); - bAnchor = FALSE; + pViewData->GetView()->DoneBlockMode( sal_False ); + bAnchor = sal_False; } //------------------------------------------------------------------------ @@ -882,7 +882,7 @@ ScHeaderSelectionEngine::ScHeaderSelectionEngine( Window* pWindow, ScHeaderFunct { // Parameter einstellen SetSelectionMode( MULTIPLE_SELECTION ); - EnableDrag( FALSE ); + EnableDrag( sal_False ); } |