// Private methods, which move the cursor over search. // The removal of the selection must be made on the level above.
// The beginning of a word is the follow of a // non-delimiter to delimiter. Furthermore, the follow of // non-sentence separators on sentence separator. // The begin of paragraph is also the word beginning.
void SwWrtShell::SttWrd()
{ if ( IsSttPara() ) return; // Create temporary cursor without selection.
Push();
ClearMark(); if( !GoStartWord() ) // not found --> go to the beginning of the paragraph.
SwCursorShell::MovePara( GoCurrPara, fnParaStart );
ClearMark(); // If Mark was previously set, summarize.
Combine();
}
// The end of a word is the follow of separator to nonseparator. // The end of a word is also the sequence of word separators to // punctuation marks. // The end of a paragraph is also the end of a word.
void SwWrtShell::EndWrd()
{ if ( IsEndWrd() ) return; // Create temporary cursor without selection.
Push();
ClearMark(); if( !GoEndWord() ) // not found --> go to the end of the paragraph.
SwCursorShell::MovePara(GoCurrPara, fnParaEnd);
ClearMark(); // If Mark was previously set, summarize.
Combine();
}
bool SwWrtShell::BwdSentence_()
{
Push();
ClearMark(); if(!SwCursorShell::Left(1,SwCursorSkipMode::Chars))
{
Pop(SwCursorShell::PopMode::DeleteCurrent); returnfalse;
} if( !GoStartSentence() && !IsSttPara() ) // not found --> go to the beginning of the paragraph
SwCursorShell::MovePara( GoCurrPara, fnParaStart );
ClearMark();
Combine(); returntrue;
}
std::optional<OString> SwWrtShell::getLOKPayload(int nType, int nViewId) const
{ switch(nType)
{ case LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR: case LOK_CALLBACK_INVALIDATE_VIEW_CURSOR: return GetVisibleCursor()->getLOKPayload(nType, nViewId); case LOK_CALLBACK_TEXT_SELECTION: case LOK_CALLBACK_TEXT_SELECTION_START: case LOK_CALLBACK_TEXT_SELECTION_END: case LOK_CALLBACK_TEXT_VIEW_SELECTION: return GetCursor_()->getLOKPayload(nType, nViewId);
}
abort();
}
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.