// Undo ends all modes. If a selection is emerged by the Undo, // this must be considered for further action.
void SwWrtShell::Do(DoType eDoType, sal_uInt16 nCnt, sal_uInt16 nOffset)
{ // #105332# save current state of DoesUndo() bool bSaveDoesUndo = DoesUndo();
StartAllAction(); switch (eDoType)
{ case UNDO:
DoUndo(false); // #i21739# // Reset modes
EnterStdMode();
SwEditShell::Undo(nCnt, nOffset); break; case REDO:
DoUndo(false); // #i21739# // Reset modes
EnterStdMode();
SwEditShell::Redo( nCnt ); break; case REPEAT: // #i21739# do not touch undo flag here !!!
SwEditShell::Repeat( nCnt ); break;
}
EndAllAction(); // #105332# restore undo state
DoUndo(bSaveDoesUndo);
bool bCreateXSelection = false; constbool bFrameSelected = IsFrameSelected() || GetSelectedObjCount(); if ( IsSelection() )
{ if ( bFrameSelected )
UnSelectFrame();
// Set the function pointer for canceling the selection at the // cursor position.
m_fnKillSel = &SwWrtShell::ResetSelect;
m_fnSetCursor = &SwWrtShell::SetCursorKillSel;
bCreateXSelection = true;
} elseif ( bFrameSelected )
{
EnterSelFrameMode();
bCreateXSelection = true;
} elseif( (CNT_GRF | CNT_OLE ) & GetCntType() )
{
SelectObj( GetCharRect().Pos() );
EnterSelFrameMode();
bCreateXSelection = true;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.