diff options
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 362 |
1 files changed, 181 insertions, 181 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index e9659ef962cd..d5a6f41f4aa7 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -113,7 +113,7 @@ using namespace com::sun::star; // ----------------------------------------------------------------------- // -// --- Public-Funktionen +// --- Public-Funktionen // void ScTabView::ClickCursor( SCCOL nPosX, SCROW nPosY, BOOL bControl ) @@ -160,9 +160,9 @@ void ScTabView::UpdateAutoFillMark() pRowBar[i]->SetMark( bMarked, aMarkRange.aStart.Row(), aMarkRange.aEnd.Row() ); } - // selection transfer object is checked together with AutoFill marks, - // because it has the same requirement of a single continuous block. - CheckSelectionTransfer(); // update selection transfer object + // selection transfer object is checked together with AutoFill marks, + // because it has the same requirement of a single continuous block. + CheckSelectionTransfer(); // update selection transfer object } void ScTabView::FakeButtonUp( ScSplitPos eWhich ) @@ -270,13 +270,13 @@ void ScTabView::InvalidateAttribs() rBindings.Invalidate( SID_NUMBER_PERCENT ); rBindings.Invalidate( SID_NUMBER_TIME ); -// rBindings.Invalidate( SID_RANGE_VALUE ); -// rBindings.Invalidate( SID_RANGE_FORMULA ); +// rBindings.Invalidate( SID_RANGE_VALUE ); +// rBindings.Invalidate( SID_RANGE_FORMULA ); } -// SetCursor - Cursor setzen, zeichnen, InputWin updaten -// oder Referenz verschicken -// ohne Optimierung wegen BugId 29307 +// SetCursor - Cursor setzen, zeichnen, InputWin updaten +// oder Referenz verschicken +// ohne Optimierung wegen BugId 29307 #ifdef _MSC_VER #pragma optimize ( "", off ) @@ -287,7 +287,7 @@ void ScTabView::SetCursor( SCCOL nPosX, SCROW nPosY, BOOL bNew ) SCCOL nOldX = aViewData.GetCurX(); SCROW nOldY = aViewData.GetCurY(); - // DeactivateIP nur noch bei MarkListHasChanged + // DeactivateIP nur noch bei MarkListHasChanged if ( nPosX != nOldX || nPosY != nOldY || bNew ) { @@ -315,7 +315,7 @@ void ScTabView::SetCursor( SCCOL nPosX, SCROW nPosY, BOOL bNew ) void ScTabView::CheckSelectionTransfer() { - if ( aViewData.IsActive() ) // only for active view + if ( aViewData.IsActive() ) // only for active view { ScModule* pScMod = SC_MOD(); ScSelectionTransferObj* pOld = pScMod->GetSelectionTransfer(); @@ -328,22 +328,22 @@ void ScTabView::CheckSelectionTransfer() ScSelectionTransferObj* pNew = ScSelectionTransferObj::CreateFromView( this ); if ( pNew ) { - // create new selection + // create new selection if (pOld) pOld->ForgetView(); uno::Reference<datatransfer::XTransferable> xRef( pNew ); pScMod->SetSelectionTransfer( pNew ); - pNew->CopyToSelection( GetActiveWin() ); // may delete pOld + pNew->CopyToSelection( GetActiveWin() ); // may delete pOld } else if ( pOld && pOld->GetView() == this ) { - // remove own selection + // remove own selection pOld->ForgetView(); pScMod->SetSelectionTransfer( NULL ); - TransferableHelper::ClearSelection( GetActiveWin() ); // may delete pOld + TransferableHelper::ClearSelection( GetActiveWin() ); // may delete pOld } // else: selection from outside: leave unchanged } @@ -351,19 +351,19 @@ void ScTabView::CheckSelectionTransfer() } // Eingabezeile / Menues updaten -// CursorPosChanged ruft SelectionChanged -// SelectionChanged ruft CellContentChanged +// CursorPosChanged ruft SelectionChanged +// SelectionChanged ruft CellContentChanged void ScTabView::CellContentChanged() { SfxBindings& rBindings = aViewData.GetBindings(); - rBindings.Invalidate( SID_ATTR_SIZE ); // -> Fehlermeldungen anzeigen + rBindings.Invalidate( SID_ATTR_SIZE ); // -> Fehlermeldungen anzeigen rBindings.Invalidate( SID_THESAURUS ); rBindings.Invalidate( SID_HYPERLINK_GETLINK ); - InvalidateAttribs(); // Attribut-Updates - TestHintWindow(); // Eingabemeldung (Gueltigkeit) + InvalidateAttribs(); // Attribut-Updates + TestHintWindow(); // Eingabemeldung (Gueltigkeit) aViewData.GetViewShell()->UpdateInputHandler(); } @@ -382,16 +382,16 @@ void ScTabView::SelectionChanged() } } - UpdateAutoFillMark(); // also calls CheckSelectionTransfer + UpdateAutoFillMark(); // also calls CheckSelectionTransfer SfxBindings& rBindings = aViewData.GetBindings(); - rBindings.Invalidate( SID_CURRENTCELL ); // -> Navigator - rBindings.Invalidate( SID_AUTO_FILTER ); // -> Menue + rBindings.Invalidate( SID_CURRENTCELL ); // -> Navigator + rBindings.Invalidate( SID_AUTO_FILTER ); // -> Menue rBindings.Invalidate( FID_NOTE_VISIBLE ); rBindings.Invalidate( SID_DELETE_NOTE ); - // Funktionen, die evtl disabled werden muessen + // Funktionen, die evtl disabled werden muessen rBindings.Invalidate( FID_INS_ROWBRK ); rBindings.Invalidate( FID_INS_COLBRK ); @@ -402,7 +402,7 @@ void ScTabView::SelectionChanged() rBindings.Invalidate( FID_MERGE_TOGGLE ); rBindings.Invalidate( SID_AUTOFILTER_HIDE ); rBindings.Invalidate( SID_UNFILTER ); -// rBindings.Invalidate( SID_IMPORT_DATA ); // jetzt wieder immer moeglich +// rBindings.Invalidate( SID_IMPORT_DATA ); // jetzt wieder immer moeglich rBindings.Invalidate( SID_REIMPORT_DATA ); rBindings.Invalidate( SID_REFRESH_DBAREA ); rBindings.Invalidate( SID_OUTLINE_SHOW ); @@ -426,12 +426,12 @@ void ScTabView::SelectionChanged() rBindings.Invalidate( FID_INS_ROW ); rBindings.Invalidate( FID_INS_COLUMN ); rBindings.Invalidate( FID_INS_CELL ); - rBindings.Invalidate( FID_INS_CELLSDOWN ); + rBindings.Invalidate( FID_INS_CELLSDOWN ); rBindings.Invalidate( FID_INS_CELLSRIGHT ); rBindings.Invalidate( FID_CHG_COMMENT ); - // nur wegen Zellschutz: + // nur wegen Zellschutz: rBindings.Invalidate( SID_CELL_FORMAT_RESET ); rBindings.Invalidate( SID_DELETE ); @@ -442,7 +442,7 @@ void ScTabView::SelectionChanged() rBindings.Invalidate( SID_INSERT_POSTIT ); rBindings.Invalidate( SID_CHARMAP ); rBindings.Invalidate( SID_OPENDLG_FUNCTION ); -// rBindings.Invalidate( FID_CONDITIONAL_FORMAT ); +// rBindings.Invalidate( FID_CONDITIONAL_FORMAT ); rBindings.Invalidate( SID_OPENDLG_CONDFRMT ); rBindings.Invalidate( FID_VALIDATION ); rBindings.Invalidate( SID_EXTERNAL_SOURCE ); @@ -462,14 +462,14 @@ void ScTabView::CursorPosChanged() if ( !bRefMode ) // Abfrage, damit RefMode bei Tabellenwechsel funktioniert aViewData.GetDocShell()->Broadcast( SfxSimpleHint( FID_KILLEDITVIEW ) ); - // Broadcast, damit andere Views des Dokuments auch umschalten + // Broadcast, damit andere Views des Dokuments auch umschalten ScDocument* pDoc = aViewData.GetDocument(); bool bDP = NULL != pDoc->GetDPAtCursor( aViewData.GetCurX(), aViewData.GetCurY(), aViewData.GetTabNo() ); aViewData.GetViewShell()->SetPivotShell(bDP); - // UpdateInputHandler jetzt in CellContentChanged + // UpdateInputHandler jetzt in CellContentChanged SelectionChanged(); @@ -491,12 +491,12 @@ void ScTabView::TestHintWindow() ATTR_VALIDDATA ); if ( pItem->GetValue() ) { - const ScValidationData* pData = pDoc->GetValidationEntry( pItem->GetValue() ); + const ScValidationData* pData = pDoc->GetValidationEntry( pItem->GetValue() ); DBG_ASSERT(pData,"ValidationData nicht gefunden"); String aTitle, aMessage; if ( pData && pData->GetInput( aTitle, aMessage ) && aMessage.Len() > 0 ) { - //! Abfrage, ob an gleicher Stelle !!!! + //! Abfrage, ob an gleicher Stelle !!!! DELETEZ(pInputHintWindow); @@ -506,12 +506,12 @@ void ScTabView::TestHintWindow() SCROW nRow = aViewData.GetCurY(); Point aPos = aViewData.GetScrPos( nCol, nRow, eWhich ); Size aWinSize = pWin->GetOutputSizePixel(); - // Cursor sichtbar? + // Cursor sichtbar? if ( nCol >= aViewData.GetPosX(WhichH(eWhich)) && nRow >= aViewData.GetPosY(WhichV(eWhich)) && aPos.X() < aWinSize.Width() && aPos.Y() < aWinSize.Height() ) { - aPos += pWin->GetPosPixel(); // Position auf Frame + aPos += pWin->GetPosPixel(); // Position auf Frame long nSizeXPix; long nSizeYPix; aViewData.GetMergeSizePixel( nCol, nRow, nSizeXPix, nSizeYPix ); @@ -522,7 +522,7 @@ void ScTabView::TestHintWindow() Size aFrameWinSize = pFrameWin->GetOutputSizePixel(); // passende Position finden - // erster Versuch: unter dem Cursor + // erster Versuch: unter dem Cursor Point aHintPos( aPos.X() + nSizeXPix / 2, aPos.Y() + nSizeYPix + 3 ); if ( aHintPos.Y() + aHintSize.Height() > aFrameWinSize.Height() ) { @@ -543,10 +543,10 @@ void ScTabView::TestHintWindow() } } - // X anpassen + // X anpassen if ( aHintPos.X() + aHintSize.Width() > aFrameWinSize.Width() ) aHintPos.X() = aFrameWinSize.Width() - aHintSize.Width(); - // Y anpassen + // Y anpassen if ( aHintPos.Y() + aHintSize.Height() > aFrameWinSize.Height() ) aHintPos.Y() = aFrameWinSize.Height() - aHintSize.Height(); @@ -582,9 +582,9 @@ void ScTabView::RemoveHintWindow() // find window that should not be over the cursor Window* lcl_GetCareWin(SfxViewFrame* pViewFrm) { - //! auch Spelling ??? (dann beim Aufruf Membervariable setzen) + //! auch Spelling ??? (dann beim Aufruf Membervariable setzen) - // Suchen & Ersetzen + // Suchen & Ersetzen if ( pViewFrm->HasChildWindow(SID_SEARCH_DLG) ) { SfxChildWindow* pChild = pViewFrm->GetChildWindow(SID_SEARCH_DLG); @@ -596,7 +596,7 @@ Window* lcl_GetCareWin(SfxViewFrame* pViewFrm) } } - // Aenderungen uebernehmen + // Aenderungen uebernehmen if ( pViewFrm->HasChildWindow(FID_CHG_ACCEPT) ) { SfxChildWindow* pChild = pViewFrm->GetChildWindow(FID_CHG_ACCEPT); @@ -612,14 +612,14 @@ Window* lcl_GetCareWin(SfxViewFrame* pViewFrm) } // - // Bildschirm an Cursorposition anpassen + // Bildschirm an Cursorposition anpassen // void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, const ScSplitPos* pWhich ) { // - // aktiven Teil umschalten jetzt hier + // aktiven Teil umschalten jetzt hier // ScSplitPos eActive = aViewData.GetActivePart(); @@ -641,7 +641,7 @@ void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, } // - // eigentliches Align + // eigentliches Align // if ( eMode != SC_FOLLOW_NONE ) @@ -668,17 +668,17 @@ void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, Size aScrSize = aViewData.GetScrSize(); long nSpaceX = ( aScrSize.Width() - nCellSizeX ) / 2; long nSpaceY = ( aScrSize.Height() - nCellSizeY ) / 2; - // nSpaceY: desired start position of cell for FOLLOW_JUMP, modified if dialog interferes + // nSpaceY: desired start position of cell for FOLLOW_JUMP, modified if dialog interferes - BOOL bForceNew = FALSE; // force new calculation of JUMP position (vertical only) + BOOL bForceNew = FALSE; // force new calculation of JUMP position (vertical only) // VisibleCellsY == CellsAtY( GetPosY( eWhichY ), 1, eWhichY ) //------------------------------------------------------------------------------- - // falls z.B. Suchen-Dialog offen ist, Cursor nicht hinter den Dialog stellen - // wenn moeglich, die Zeile mit dem Cursor oberhalb oder unterhalb des Dialogs + // falls z.B. Suchen-Dialog offen ist, Cursor nicht hinter den Dialog stellen + // wenn moeglich, die Zeile mit dem Cursor oberhalb oder unterhalb des Dialogs - //! nicht, wenn schon komplett sichtbar + //! nicht, wenn schon komplett sichtbar if ( eMode == SC_FOLLOW_JUMP ) { @@ -693,21 +693,21 @@ void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, { aDlgPixel = pCare->GetWindowExtentsRelative( pWin ); aWinSize = pWin->GetOutputSizePixel(); - // ueberdeckt der Dialog das GridWin? + // ueberdeckt der Dialog das GridWin? if ( aDlgPixel.Right() >= 0 && aDlgPixel.Left() < aWinSize.Width() ) { if ( nCurX < nDeltaX || nCurX >= nDeltaX+nSizeX || nCurY < nDeltaY || nCurY >= nDeltaY+nSizeY ) - bLimit = TRUE; // es wird sowieso gescrollt + bLimit = TRUE; // es wird sowieso gescrollt else { - // Cursor ist auf dem Bildschirm + // Cursor ist auf dem Bildschirm Point aStart = aViewData.GetScrPos( nCurX, nCurY, eAlign ); long nCSX, nCSY; aViewData.GetMergeSizePixel( nCurX, nCurY, nCSX, nCSY ); Rectangle aCursor( aStart, Size( nCSX, nCSY ) ); if ( aCursor.IsOver( aDlgPixel ) ) - bLimit = TRUE; // Zelle vom Dialog ueberdeckt + bLimit = TRUE; // Zelle vom Dialog ueberdeckt } } } @@ -723,10 +723,10 @@ void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, SCsCOL nWPosX; SCsROW nWPosY; aViewData.GetPosFromPixel( 0,nDlgBot, eAlign, nWPosX, nWPosY ); - ++nWPosY; // unter der letzten betroffenen Zelle + ++nWPosY; // unter der letzten betroffenen Zelle SCsROW nDiff = nWPosY - nDeltaY; - if ( nCurY >= nDiff ) // Pos. kann nicht negativ werden + if ( nCurY >= nDiff ) // Pos. kann nicht negativ werden { nSpaceY = nDlgBot + ( nBotSpace - nCellSizeY ) / 2; bBottom = TRUE; @@ -781,7 +781,7 @@ void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, nSizeY = (SCsROW) aViewData.CellsAtY( nNewDeltaY, 1, eAlignY ); } - // like old version of SC_FOLLOW_JUMP: + // like old version of SC_FOLLOW_JUMP: if ( nCurX < nNewDeltaX || nCurX >= nNewDeltaX+nSizeX ) { @@ -845,7 +845,7 @@ void ScTabView::AlignToCursor( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, } // - // nochmal aktiven Teil umschalten + // nochmal aktiven Teil umschalten // if (bHFix) @@ -883,7 +883,7 @@ BOOL ScTabView::SelMouseButtonDown( const MouseEvent& rMEvt ) } // - // MoveCursor - mit Anpassung des Bildausschnitts + // MoveCursor - mit Anpassung des Bildausschnitts // void ScTabView::MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, @@ -899,14 +899,14 @@ void ScTabView::MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, HideAllCursors(); - // aktiven Teil umschalten jetzt in AlignToCursor + // aktiven Teil umschalten jetzt in AlignToCursor AlignToCursor( nCurX, nCurY, eMode ); - //! auf OS/2: SC_FOLLOW_JUMP statt SC_FOLLOW_LINE, um Nachlaufen zu verhindern ??? + //! auf OS/2: SC_FOLLOW_JUMP statt SC_FOLLOW_LINE, um Nachlaufen zu verhindern ??? if (bKeepSel) { - SetCursor( nCurX, nCurY ); // Markierung stehenlassen + SetCursor( nCurX, nCurY ); // Markierung stehenlassen // If the cursor is in existing selection, it's a cursor movement by // ENTER or TAB. If not, then it's a new selection during ADD @@ -935,8 +935,8 @@ void ScTabView::MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode, bMoveIsShift = FALSE; aFunctionSet.SetCursorAtCell( nCurX, nCurY, FALSE ); - // Wenn der Cursor nicht bewegt wurde, muss das SelectionChanged fuer das - // Aufheben der Selektion hier einzeln passieren: + // Wenn der Cursor nicht bewegt wurde, muss das SelectionChanged fuer das + // Aufheben der Selektion hier einzeln passieren: if (bSame) SelectionChanged(); } @@ -1022,12 +1022,12 @@ void ScTabView::MoveCursorEnd( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, B SCCOL nUsedX = 0; SCROW nUsedY = 0; if ( nMovX > 0 || nMovY > 0 ) - pDoc->GetPrintArea( nTab, nUsedX, nUsedY ); // Ende holen + pDoc->GetPrintArea( nTab, nUsedX, nUsedY ); // Ende holen if (nMovX<0) nNewX=0; else if (nMovX>0) - nNewX=nUsedX; // letzter benutzter Bereich + nNewX=nUsedX; // letzter benutzter Bereich if (nMovY<0) nNewY=0; @@ -1075,7 +1075,7 @@ void ScTabView::MoveCursorScreen( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode MoveCursorAbs( nNewX, nNewY, eMode, bShift, FALSE, TRUE ); } -void ScTabView::MoveCursorEnter( BOOL bShift ) // bShift -> hoch/runter +void ScTabView::MoveCursorEnter( BOOL bShift ) // bShift -> hoch/runter { const ScInputOptions& rOpt = SC_MOD()->GetInputOptions(); if (!rOpt.GetMoveSelection()) @@ -1118,7 +1118,7 @@ void ScTabView::MoveCursorEnter( BOOL bShift ) // bShift -> hoch/runter MoveCursorRel( ((SCsCOL)nNewX)-(SCsCOL)nCurX, ((SCsROW)nNewY)-(SCsROW)nCurY, SC_FOLLOW_LINE, FALSE, TRUE ); - // update input line even if cursor was not moved + // update input line even if cursor was not moved if ( nNewX == nCurX && nNewY == nCurY ) aViewData.UpdateInputHandler(TRUE); } @@ -1126,7 +1126,7 @@ void ScTabView::MoveCursorEnter( BOOL bShift ) // bShift -> hoch/runter { if ( nMoveY != 0 && !nMoveX ) { - // nach Tab und Enter wieder zur Ausgangsspalte + // nach Tab und Enter wieder zur Ausgangsspalte SCCOL nTabCol = aViewData.GetTabStartCol(); if (nTabCol != SC_TABSTART_NONE) { @@ -1237,12 +1237,12 @@ void ScTabView::FindNextUnprot( BOOL bShift, BOOL bInSelection ) SCCOL nTabCol = aViewData.GetTabStartCol(); if ( nTabCol == SC_TABSTART_NONE ) - nTabCol = nCurX; // auf diese Spalte zurueck bei Enter + nTabCol = nCurX; // auf diese Spalte zurueck bei Enter MoveCursorRel( ((SCsCOL)nNewX)-(SCsCOL)nCurX, ((SCsROW)nNewY)-(SCsROW)nCurY, SC_FOLLOW_LINE, FALSE, TRUE ); - // in MoveCursorRel wird die TabCol zurueckgesetzt... + // in MoveCursorRel wird die TabCol zurueckgesetzt... aViewData.SetTabStartCol( nTabCol ); } @@ -1327,7 +1327,7 @@ void ScTabView::MarkMatrixFormula() ScRange aMatrix; if ( pDoc->GetMatrixFormulaRange( aCursor, aMatrix ) ) { - MarkRange( aMatrix, FALSE ); // cursor is already within the range + MarkRange( aMatrix, FALSE ); // cursor is already within the range } } @@ -1431,7 +1431,7 @@ void ScTabView::SelectNextTab( short nDir, BOOL bExtendSelection ) } -// SetTabNo - angezeigte Tabelle +// SetTabNo - angezeigte Tabelle void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) { @@ -1443,21 +1443,21 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) if ( nTab != aViewData.GetTabNo() || bNew ) { - // #57724# Die FormShell moechte vor dem Umschalten benachrichtigt werden + // #57724# Die FormShell moechte vor dem Umschalten benachrichtigt werden FmFormShell* pFormSh = aViewData.GetViewShell()->GetFormShell(); if (pFormSh) { BOOL bAllowed = sal::static_int_cast<BOOL>( pFormSh->PrepareClose( TRUE ) ); if (!bAllowed) { - //! Fehlermeldung? oder macht das die FormShell selber? - //! Fehler-Flag zurueckgeben und Aktionen abbrechen + //! Fehlermeldung? oder macht das die FormShell selber? + //! Fehler-Flag zurueckgeben und Aktionen abbrechen - return; // Die FormShell sagt, es kann nicht umgeschaltet werden + return; // Die FormShell sagt, es kann nicht umgeschaltet werden } } - // nicht InputEnterHandler wegen Referenzeingabe ! + // nicht InputEnterHandler wegen Referenzeingabe ! ScDocument* pDoc = aViewData.GetDocument(); @@ -1469,7 +1469,7 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) SCTAB nTabCount = pDoc->GetTableCount(); SCTAB nOldPos = nTab; - while (!pDoc->IsVisible(nTab)) // naechste sichtbare suchen + while (!pDoc->IsVisible(nTab)) // naechste sichtbare suchen { BOOL bUp = (nTab>=nOldPos); if (bUp) @@ -1503,7 +1503,7 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) if ( !bRefMode ) // Abfrage, damit RefMode bei Tabellenwechsel funktioniert { DoneBlockMode(); - pSelEngine->Reset(); // reset all flags, including locked modifiers + pSelEngine->Reset(); // reset all flags, including locked modifiers aViewData.SetRefTabNo( nTab ); } @@ -1511,8 +1511,8 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) BOOL bFocus = pGridWin[eOldActive]->HasFocus(); aViewData.SetTabNo( nTab ); - // UpdateShow noch vor SetCursor, damit UpdateAutoFillMark die richtigen - // Fenster findet (wird aus SetCursor gerufen) + // UpdateShow noch vor SetCursor, damit UpdateAutoFillMark die richtigen + // Fenster findet (wird aus SetCursor gerufen) UpdateShow(); aViewData.ResetOldCursor(); SetCursor( aViewData.GetCurX(), aViewData.GetCurY(), TRUE ); @@ -1565,10 +1565,10 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) pGridWin[i]->UpdateEditViewPos(); } - TabChanged(); // DrawView + TabChanged(); // DrawView UpdateVisibleRange(); - aViewData.GetViewShell()->WindowChanged(); // falls das aktive Fenster anders ist + aViewData.GetViewShell()->WindowChanged(); // falls das aktive Fenster anders ist if ( !bUnoRefDialog ) aViewData.GetViewShell()->DisconnectAllClients(); // important for floating frames else @@ -1606,7 +1606,7 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) if ( bFocus && aViewData.GetActivePart() != eOldActive && !bRefMode ) ActiveGrabFocus(); // grab focus to the pane that's active now - // Fixierungen + // Fixierungen BOOL bResize = FALSE; if ( aViewData.GetHSplitMode() == SC_SPLIT_FIX ) @@ -1620,10 +1620,10 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) InvalidateSplit(); if ( aViewData.IsPagebreakMode() ) - UpdatePageBreakData(); //! asynchron ?? + UpdatePageBreakData(); //! asynchron ?? - // #53551# Form-Layer muss den sichtbaren Ausschnitt der neuen Tabelle kennen - // dafuer muss hier schon der MapMode stimmen + // #53551# Form-Layer muss den sichtbaren Ausschnitt der neuen Tabelle kennen + // dafuer muss hier schon der MapMode stimmen for (USHORT i=0; i<4; i++) if (pGridWin[i]) pGridWin[i]->SetMapMode( pGridWin[i]->GetDrawMapMode() ); @@ -1635,14 +1635,14 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) PaintExtras(); DoResize( aBorderPos, aFrameSize ); - rBindings.Invalidate( SID_DELETE_PRINTAREA ); // Menue + rBindings.Invalidate( SID_DELETE_PRINTAREA ); // Menue rBindings.Invalidate( FID_DEL_MANUALBREAKS ); rBindings.Invalidate( FID_RESET_PRINTZOOM ); - rBindings.Invalidate( SID_STATUS_DOCPOS ); // Statusbar - rBindings.Invalidate( SID_STATUS_PAGESTYLE ); // Statusbar - rBindings.Invalidate( SID_CURRENTTAB ); // Navigator - rBindings.Invalidate( SID_STYLE_FAMILY2 ); // Gestalter - rBindings.Invalidate( SID_STYLE_FAMILY4 ); // Gestalter + rBindings.Invalidate( SID_STATUS_DOCPOS ); // Statusbar + rBindings.Invalidate( SID_STATUS_PAGESTYLE ); // Statusbar + rBindings.Invalidate( SID_CURRENTTAB ); // Navigator + rBindings.Invalidate( SID_STYLE_FAMILY2 ); // Gestalter + rBindings.Invalidate( SID_STYLE_FAMILY4 ); // Gestalter rBindings.Invalidate( SID_TABLES_COUNT ); if(pScMod->IsRefDialogOpen()) @@ -1660,7 +1660,7 @@ void ScTabView::SetTabNo( SCTAB nTab, BOOL bNew, BOOL bExtendSelection ) } // -// Paint-Funktionen - nur fuer diese View +// Paint-Funktionen - nur fuer diese View // void ScTabView::MakeEditView( ScEditEngineDefaulter* pEngine, SCCOL nCol, SCROW nRow ) @@ -1685,8 +1685,8 @@ void ScTabView::MakeEditView( ScEditEngineDefaulter* pEngine, SCCOL nCol, SCROW ( nCol >= nScrX && nCol <= nScrX + aViewData.VisibleCellsX(eHWhich) + 1 && nRow >= nScrY && nRow <= nScrY + aViewData.VisibleCellsY(eVWhich) + 1 ); - // #102421# for the active part, create edit view even if outside the visible area, - // so input isn't lost (and the edit view may be scrolled into the visible area) + // #102421# for the active part, create edit view even if outside the visible area, + // so input isn't lost (and the edit view may be scrolled into the visible area) // #i26433# during spelling, the spelling view must be active if ( bPosVisible || aViewData.GetActivePart() == (ScSplitPos) i || @@ -1708,8 +1708,8 @@ void ScTabView::MakeEditView( ScEditEngineDefaulter* pEngine, SCCOL nCol, SCROW if ( !bPosVisible ) { - // move the edit view area to the real (possibly negative) position, - // or hide if completely above or left of the window + // move the edit view area to the real (possibly negative) position, + // or hide if completely above or left of the window pGridWin[i]->UpdateEditViewPos(); } } @@ -1779,13 +1779,13 @@ void ScTabView::KillEditView( BOOL bNoPaint ) if (pDrawView) DrawEnableAnim( TRUE ); - // GrabFocus immer dann, wenn diese View aktiv ist und - // die Eingabezeile den Focus hat + // GrabFocus immer dann, wenn diese View aktiv ist und + // die Eingabezeile den Focus hat BOOL bGrabFocus = FALSE; if (aViewData.IsActive()) { - ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl(); + ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl(); if ( pInputHdl ) { ScInputWindow* pInputWin = pInputHdl->GetInputWindow(); @@ -1796,13 +1796,13 @@ void ScTabView::KillEditView( BOOL bNoPaint ) if (bGrabFocus) { -// So soll es gemacht werden, damit der Sfx es mitbekommt, klappt aber nicht: -//! aViewData.GetViewShell()->GetViewFrame()->GetWindow().GrabFocus(); -// deshalb erstmal so: +// So soll es gemacht werden, damit der Sfx es mitbekommt, klappt aber nicht: +//! aViewData.GetViewShell()->GetViewFrame()->GetWindow().GrabFocus(); +// deshalb erstmal so: GetActiveWin()->GrabFocus(); } - // Cursor-Abfrage erst nach GrabFocus + // Cursor-Abfrage erst nach GrabFocus for (i=0; i<4; i++) if (pGridWin[i] && pGridWin[i]->IsVisible()) @@ -1832,16 +1832,16 @@ void ScTabView::UpdateFormulas() pGridWin[i]->UpdateFormulas(); if ( aViewData.IsPagebreakMode() ) - UpdatePageBreakData(); //! asynchron + UpdatePageBreakData(); //! asynchron UpdateHeaderWidth(); - // if in edit mode, adjust edit view area because widths/heights may have changed + // if in edit mode, adjust edit view area because widths/heights may have changed if ( aViewData.HasEditView( aViewData.GetActivePart() ) ) UpdateEditView(); } -// PaintArea -Block neu zeichnen +// PaintArea -Block neu zeichnen void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, ScUpdateMode eMode ) @@ -1873,10 +1873,10 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO if (nCol1 < nScrX) nCol1 = nScrX; if (nCol2 < nScrX) { - if ( eMode == SC_UPDATE_ALL ) // #91240# for UPDATE_ALL, paint anyway - nCol2 = nScrX; // (because of extending strings to the right) + if ( eMode == SC_UPDATE_ALL ) // #91240# for UPDATE_ALL, paint anyway + nCol2 = nScrX; // (because of extending strings to the right) else - bOut = TRUE; // completely outside the window + bOut = TRUE; // completely outside the window } if (nRow1 < nScrY) nRow1 = nScrY; if (nRow2 < nScrY) bOut = TRUE; @@ -1892,7 +1892,7 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO { if ( eMode == SC_UPDATE_CHANGED ) pGridWin[i]->Draw( nCol1, nRow1, nCol2, nRow2, eMode ); - else // ALL oder MARKS + else // ALL oder MARKS { BOOL bLayoutRTL = aViewData.GetDocument()->IsLayoutRTL( aViewData.GetTabNo() ); long nLayoutSign = bLayoutRTL ? -1 : 1; @@ -1908,26 +1908,26 @@ void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCRO if ( eMode == SC_UPDATE_ALL && nRow2 >= MAXROW ) aEnd.Y() = pGridWin[i]->GetOutputSizePixel().Height(); - BOOL bShowChanges = TRUE; //! ... + BOOL bShowChanges = TRUE; //! ... if (bShowChanges) { - aStart.X() -= nLayoutSign; // include change marks + aStart.X() -= nLayoutSign; // include change marks aStart.Y() -= 1; } BOOL bMarkClipped = aViewData.GetOptions().GetOption( VOPT_CLIPMARKS ); if (bMarkClipped) { - // dazu muesste ScColumn::IsEmptyBlock optimiert werden - // (auf Search() umstellen) + // dazu muesste ScColumn::IsEmptyBlock optimiert werden + // (auf Search() umstellen) //!if ( nCol1 > 0 && !aViewData.GetDocument()->IsBlockEmpty( - //! aViewData.GetTabNo(), - //! 0, nRow1, nCol1-1, nRow2 ) ) + //! aViewData.GetTabNo(), + //! 0, nRow1, nCol1-1, nRow2 ) ) { long nMarkPixel = (long)( SC_CLIPMARK_SIZE * aViewData.GetPPTX() ); aStart.X() -= nMarkPixel * nLayoutSign; if (!bShowChanges) - aStart.X() -= nLayoutSign; // cell grid + aStart.X() -= nLayoutSign; // cell grid } } @@ -1962,9 +1962,9 @@ void ScTabView::PaintRangeFinder( long nNumber ) if (pData) { ScRange aRef = pData->aRef; - aRef.Justify(); // Justify fuer die Abfragen unten + aRef.Justify(); // Justify fuer die Abfragen unten - if ( aRef.aStart == aRef.aEnd ) //! Tab ignorieren? + if ( aRef.aStart == aRef.aEnd ) //! Tab ignorieren? aViewData.GetDocument()->ExtendMerge(aRef); if ( aRef.aStart.Tab() >= nTab && aRef.aEnd.Tab() <= nTab ) @@ -1974,8 +1974,8 @@ void ScTabView::PaintRangeFinder( long nNumber ) SCCOL nCol2 = aRef.aEnd.Col(); SCROW nRow2 = aRef.aEnd.Row(); - // wegnehmen -> Repaint - // SC_UPDATE_MARKS: Invalidate, nicht bis zum Zeilenende + // wegnehmen -> Repaint + // SC_UPDATE_MARKS: Invalidate, nicht bis zum Zeilenende BOOL bHiddenEdge = FALSE; SCROW nTmp; @@ -2010,13 +2010,13 @@ void ScTabView::PaintRangeFinder( long nNumber ) if ( nCol2 - nCol1 > 1 && nRow2 - nRow1 > 1 && !bHiddenEdge ) { - // nur an den Raendern entlang + // nur an den Raendern entlang PaintArea( nCol1, nRow1, nCol2, nRow1, SC_UPDATE_MARKS ); PaintArea( nCol1, nRow1+1, nCol1, nRow2-1, SC_UPDATE_MARKS ); PaintArea( nCol2, nRow1+1, nCol2, nRow2-1, SC_UPDATE_MARKS ); PaintArea( nCol1, nRow2, nCol2, nRow2, SC_UPDATE_MARKS ); } - else // alles am Stueck + else // alles am Stueck PaintArea( nCol1, nRow1, nCol2, nRow2, SC_UPDATE_MARKS ); } } @@ -2025,7 +2025,7 @@ void ScTabView::PaintRangeFinder( long nNumber ) } } -// fuer Chart-Daten-Markierung +// fuer Chart-Daten-Markierung void ScTabView::AddHighlightRange( const ScRange& rRange, const Color& rColor ) { @@ -2044,7 +2044,7 @@ void ScTabView::ClearHighlightRanges() if (pHighlightRanges) { ScHighlightRanges* pTemp = pHighlightRanges; - pHighlightRanges = NULL; // Repaint ohne Highlight + pHighlightRanges = NULL; // Repaint ohne Highlight SCTAB nTab = aViewData.GetTabNo(); ULONG nCount = pTemp->Count(); @@ -2088,7 +2088,7 @@ void ScTabView::DoChartSelection( } } -// PaintGrid - Datenbereiche neu zeichnen +// PaintGrid - Datenbereiche neu zeichnen void ScTabView::PaintGrid() { @@ -2099,7 +2099,7 @@ void ScTabView::PaintGrid() pGridWin[i]->Invalidate(); } -// PaintTop - obere Kontrollelemente neu zeichnen +// PaintTop - obere Kontrollelemente neu zeichnen void ScTabView::PaintTop() { @@ -2131,22 +2131,22 @@ void ScTabView::CreateAnchorHandles(SdrHdlList& rHdl, const ScAddress& rAddress) void ScTabView::PaintTopArea( SCCOL nStartCol, SCCOL nEndCol ) { - // Pixel-Position der linken Kante + // Pixel-Position der linken Kante if ( nStartCol < aViewData.GetPosX(SC_SPLIT_LEFT) || nStartCol < aViewData.GetPosX(SC_SPLIT_RIGHT) ) aViewData.RecalcPixPos(); - // Fixierung anpassen (UpdateFixX setzt HSplitPos neu) + // Fixierung anpassen (UpdateFixX setzt HSplitPos neu) if ( aViewData.GetHSplitMode() == SC_SPLIT_FIX && nStartCol < aViewData.GetFixPosX() ) if (aViewData.UpdateFixX()) RepeatResize(); - // zeichnen + // zeichnen if (nStartCol>0) - --nStartCol; //! allgemeiner ? + --nStartCol; //! allgemeiner ? BOOL bLayoutRTL = aViewData.GetDocument()->IsLayoutRTL( aViewData.GetTabNo() ); long nLayoutSign = bLayoutRTL ? -1 : 1; @@ -2172,7 +2172,7 @@ void ScTabView::PaintTopArea( SCCOL nStartCol, SCCOL nEndCol ) } -// PaintLeft - linke Kontrollelemente neu zeichnen +// PaintLeft - linke Kontrollelemente neu zeichnen void ScTabView::PaintLeft() { @@ -2188,19 +2188,19 @@ void ScTabView::PaintLeft() void ScTabView::PaintLeftArea( SCROW nStartRow, SCROW nEndRow ) { - // Pixel-Position der oberen Kante + // Pixel-Position der oberen Kante if ( nStartRow < aViewData.GetPosY(SC_SPLIT_TOP) || nStartRow < aViewData.GetPosY(SC_SPLIT_BOTTOM) ) aViewData.RecalcPixPos(); - // Fixierung anpassen (UpdateFixY setzt VSplitPos neu) + // Fixierung anpassen (UpdateFixY setzt VSplitPos neu) if ( aViewData.GetVSplitMode() == SC_SPLIT_FIX && nStartRow < aViewData.GetFixPosY() ) if (aViewData.UpdateFixY()) RepeatResize(); - // zeichnen + // zeichnen if (nStartRow>0) --nStartRow; @@ -2225,13 +2225,13 @@ void ScTabView::PaintLeftArea( SCROW nStartRow, SCROW nEndRow ) } } -// InvertBlockMark - Block invertieren +// InvertBlockMark - Block invertieren void ScTabView::InvertBlockMark(SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY) { if ( !aViewData.IsActive() ) - return; // invertiert wird nur auf aktiver View + return; // invertiert wird nur auf aktiver View PutInOrder( nStartX, nEndX ); PutInOrder( nStartY, nEndY ); @@ -2243,8 +2243,8 @@ void ScTabView::InvertBlockMark(SCCOL nStartX, SCROW nStartY, if ( pDocSh->GetLockCount() ) { - // if paint is locked, avoid repeated inverting - // add repaint areas to paint lock data instead + // if paint is locked, avoid repeated inverting + // add repaint areas to paint lock data instead pDocSh->PostPaint( nStartX,nStartY,nTab, nEndX,nEndY,nTab, PAINT_GRID ); return; } @@ -2274,7 +2274,7 @@ void ScTabView::InvertBlockMark(SCCOL nStartX, SCROW nStartY, if ( pDoc->IsLayoutRTL( nTab ) ) { long nTemp = aStartPoint.X(); - aStartPoint.X() = aEndPoint.X() + 1; // +1 - excluding start of nEndX+1 + aStartPoint.X() = aEndPoint.X() + 1; // +1 - excluding start of nEndX+1 aEndPoint.X() = nTemp; } else @@ -2292,10 +2292,10 @@ void ScTabView::InvertBlockMark(SCCOL nStartX, SCROW nStartY, } // - // wenn Controls betroffen, neu malen + // wenn Controls betroffen, neu malen // - BOOL bHide = TRUE; // wird Teil der Markierung aufgehoben ? + BOOL bHide = TRUE; // wird Teil der Markierung aufgehoben ? if (rMark.IsMarked()) { ScRange aMarkRange; @@ -2303,7 +2303,7 @@ void ScTabView::InvertBlockMark(SCCOL nStartX, SCROW nStartY, if ( aMarkRange.aStart.Col() <= nStartX && aMarkRange.aEnd.Col() >= nEndX && aMarkRange.aStart.Row() <= nStartY && aMarkRange.aEnd.Row() >= nEndY ) { - bHide = FALSE; // der ganze Bereich ist markiert + bHide = FALSE; // der ganze Bereich ist markiert } } } @@ -2313,20 +2313,20 @@ BOOL ScTabView::PaintExtras() BOOL bRet = FALSE; ScDocument* pDoc = aViewData.GetDocument(); SCTAB nTab = aViewData.GetTabNo(); - if (!pDoc->HasTable(nTab)) // Tabelle geloescht ? + if (!pDoc->HasTable(nTab)) // Tabelle geloescht ? { SCTAB nCount = pDoc->GetTableCount(); aViewData.SetTabNo(nCount-1); bRet = TRUE; } - pTabControl->UpdateStatus(); // TRUE = active + pTabControl->UpdateStatus(); // TRUE = active return bRet; } void ScTabView::RecalcPPT() { - // called after changes that require the PPT values to be recalculated - // (currently from detective operations) + // called after changes that require the PPT values to be recalculated + // (currently from detective operations) double nOldX = aViewData.GetPPTX(); double nOldY = aViewData.GetPPTY(); @@ -2337,8 +2337,8 @@ void ScTabView::RecalcPPT() BOOL bChangedY = ( aViewData.GetPPTY() != nOldY ); if ( bChangedX || bChangedY ) { - // call view SetZoom (including draw scale, split update etc) - // and paint only if values changed + // call view SetZoom (including draw scale, split update etc) + // and paint only if values changed Fraction aZoomX = aViewData.GetZoomX(); Fraction aZoomY = aViewData.GetZoomY(); @@ -2356,29 +2356,29 @@ void ScTabView::ActivateView( BOOL bActivate, BOOL bFirst ) { if ( bActivate == aViewData.IsActive() && !bFirst ) { - // keine Assertion mehr - kommt vor, wenn vorher im Drag&Drop - // auf ein anderes Dokument umgeschaltet wurde + // keine Assertion mehr - kommt vor, wenn vorher im Drag&Drop + // auf ein anderes Dokument umgeschaltet wurde return; } // wird nur bei MDI-(De)Activate gerufen // aViewData.Activate hinten wegen Cursor-Show bei KillEditView - // Markierung nicht mehr loeschen - wenn an der ViewData Activate(FALSE) gesetzt ist, - // wird die Markierung nicht ausgegeben + // Markierung nicht mehr loeschen - wenn an der ViewData Activate(FALSE) gesetzt ist, + // wird die Markierung nicht ausgegeben if (!bActivate) { ScModule* pScMod = SC_MOD(); BOOL bRefMode = pScMod->IsFormulaMode(); - // Referenzeingabe nicht abbrechen, um Referenzen auf - // andere Dokumente zuzulassen + // Referenzeingabe nicht abbrechen, um Referenzen auf + // andere Dokumente zuzulassen if (!bRefMode) { //pScMod->InputEnterHandler(); - // #80843# pass view to GetInputHdl, this view may not be current anymore + // #80843# pass view to GetInputHdl, this view may not be current anymore ScInputHandler* pHdl = SC_MOD()->GetInputHdl(aViewData.GetViewShell()); if (pHdl) pHdl->EnterHandler(); @@ -2389,15 +2389,15 @@ void ScTabView::ActivateView( BOOL bActivate, BOOL bFirst ) aViewData.Activate(bActivate); - PaintBlock(FALSE); // Repaint, Markierung je nach Active-Status + PaintBlock(FALSE); // Repaint, Markierung je nach Active-Status if (!bActivate) - HideAllCursors(); // Cursor + HideAllCursors(); // Cursor else if (!bFirst) ShowAllCursors(); //HMHif (pDrawView) - //HMH DrawShowMarkHdl(bActivate); // Drawing-Markierung + //HMH DrawShowMarkHdl(bActivate); // Drawing-Markierung if (bActivate) { @@ -2416,7 +2416,7 @@ void ScTabView::ActivateView( BOOL bActivate, BOOL bFirst ) if ( pGridWin[i] ) { eWin = (ScSplitPos) i; - break; // for + break; // for } } DBG_ASSERT( i<4, "und BUMM" ); @@ -2424,9 +2424,9 @@ void ScTabView::ActivateView( BOOL bActivate, BOOL bFirst ) aViewData.SetActivePart( eWin ); } } - // hier nicht mehr selber GrabFocus rufen! - // Wenn das Doc bearbeitet wird, ruft der Sfx selber GrabFocus am Fenster der Shell. - // Wenn es z.B. ein Mailbody ist, darf es den Focus nicht bekommen (Bug #43638#) + // hier nicht mehr selber GrabFocus rufen! + // Wenn das Doc bearbeitet wird, ruft der Sfx selber GrabFocus am Fenster der Shell. + // Wenn es z.B. ein Mailbody ist, darf es den Focus nicht bekommen (Bug #43638#) UpdateInputContext(); } @@ -2443,7 +2443,7 @@ void ScTabView::ActivatePart( ScSplitPos eWhich ) BOOL bRefMode = SC_MOD()->IsFormulaMode(); - // #40565# the HasEditView call during SetCursor would fail otherwise + // #40565# the HasEditView call during SetCursor would fail otherwise if ( aViewData.HasEditView(eOld) && !bRefMode ) UpdateInputLine(); @@ -2474,9 +2474,9 @@ void ScTabView::ActivatePart( ScSplitPos eWhich ) if ( bCapture || pGridWin[eWhich]->IsMouseCaptured() ) { - // Tracking statt CaptureMouse, damit sauber abgebrochen werden kann - // (SelectionEngine ruft CaptureMouse beim SetWindow) - //! Irgendwann sollte die SelectionEngine selber StartTracking rufen!?! + // Tracking statt CaptureMouse, damit sauber abgebrochen werden kann + // (SelectionEngine ruft CaptureMouse beim SetWindow) + //! Irgendwann sollte die SelectionEngine selber StartTracking rufen!?! pGridWin[eWhich]->ReleaseMouse(); pGridWin[eWhich]->StartTracking(); } @@ -2507,16 +2507,16 @@ void ScTabView::ActivatePart( ScSplitPos eWhich ) SfxInPlaceClient* pClient = aViewData.GetViewShell()->GetIPClient(); BOOL bOleActive = ( pClient && pClient->IsObjectInPlaceActive() ); - // #103823# don't switch ViewShell's active window during RefInput, because the focus - // might change, and subsequent SetReference calls wouldn't find the right EditView + // #103823# don't switch ViewShell's active window during RefInput, because the focus + // might change, and subsequent SetReference calls wouldn't find the right EditView if ( !bRefMode && !bOleActive ) aViewData.GetViewShell()->SetWindow( pGridWin[eWhich] ); if ( bFocus && !aViewData.IsAnyFillMode() && !bRefMode ) { - // GrabFocus nur, wenn vorher das andere GridWindow den Focus hatte - // (z.B. wegen Suchen & Ersetzen) -//! aViewData.GetViewShell()->GetViewFrame()->GetWindow().GrabFocus(); + // GrabFocus nur, wenn vorher das andere GridWindow den Focus hatte + // (z.B. wegen Suchen & Ersetzen) +//! aViewData.GetViewShell()->GetViewFrame()->GetWindow().GrabFocus(); pGridWin[eWhich]->GrabFocus(); } @@ -2541,7 +2541,7 @@ void ScTabView::UpdateInputContext() pTabControl->UpdateInputContext(); } -// GetGridWidth - Breite eines Ausgabebereichs (fuer ViewData) +// GetGridWidth - Breite eines Ausgabebereichs (fuer ViewData) long ScTabView::GetGridWidth( ScHSplitPos eWhich ) { @@ -2552,7 +2552,7 @@ long ScTabView::GetGridWidth( ScHSplitPos eWhich ) return 0; } -// GetGridHeight - Hoehe eines Ausgabebereichs (fuer ViewData) +// GetGridHeight - Hoehe eines Ausgabebereichs (fuer ViewData) long ScTabView::GetGridHeight( ScVSplitPos eWhich ) { @@ -2578,7 +2578,7 @@ void ScTabView::ZoomChanged() UpdateScrollBars(); - // VisArea... + // VisArea... // AW: Discussed with NN if there is a reason that new map mode was only set for one window, // but is not. Setting only on one window causes the first repaint to have the old mapMode // in three of four views, so the overlay will save the wrong content e.g. when zooming out. @@ -2599,11 +2599,11 @@ void ScTabView::ZoomChanged() ScGridWindow* pWin = pGridWin[aViewData.GetActivePart()]; if (pWin) { - pWin->SetMapMode( pWin->GetDrawMapMode() ); // mit neuem Zoom - SetNewVisArea(); // benutzt den gesetzten MapMode + pWin->SetMapMode( pWin->GetDrawMapMode() ); // mit neuem Zoom + SetNewVisArea(); // benutzt den gesetzten MapMode } */ - InterpretVisible(); // #69343# have everything calculated before painting + InterpretVisible(); // #69343# have everything calculated before painting SfxBindings& rBindings = aViewData.GetBindings(); rBindings.Invalidate( SID_ATTR_ZOOM ); @@ -2619,8 +2619,8 @@ void ScTabView::ZoomChanged() // flush OverlayManager before changing the MapMode pWin->flushOverlayManager(); - // #93650# make sure the EditView's position and size are updated - // with the right (logic, not drawing) MapMode + // #93650# make sure the EditView's position and size are updated + // with the right (logic, not drawing) MapMode pWin->SetMapMode( aViewData.GetLogicMode() ); UpdateEditView(); } |