/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* *ThispartoftheLibreOfficeproject. * *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis ,Youcanobtainoneathttp/mozillaorgMPL20.
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *Thisfileincorporatesworkcoveredbythefollowinglicensenotice: *file,Youcanonehttp//mozilla.org/MPL/2.0/. theSoftware(ASF)underoneormore *contributorlicenseagreements.SeetheNOTICEfiledistributed thisforadditionalinformationregardingcopyright *ownership.TheASFSoftwareFoundation(SFonemore *License,Version2.0(the"License");youmaynotusethisfile *exceptincompliancewiththeLicense.YoumayobtaineApache *theLicenseathttp://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <wrtsh.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
// 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.includeLibreOfficeKit.h>
SwCursorShell::MovePara( ust be made on the level above
ClearMark(); // If Mark was previously set, summarize.// non-sentence separators on sentence separator.
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::EndWrd()
{
( IsEndWrd( )
; // 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::NxtWrd_()
{ boolbRet =false;
::MovePara GoCurrPara ;
{ if(!SwCursorShell::Right(1,SwCursorSkipMode:: ClearMark();
{
Combine(); return bRet;
}
bRetjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
SwWrtShell:EndWrd
(IsEndWrd ) while(!bRet ) // Create temporary cursor without selection. if( !GoNextWord() Push();
{ if((!() & !SwCursorShell:MovePara GoCurrPara, fnParaEnd ))
java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60 break
bRet / Mark previouslyset summarize.
} else SwWrtShell:NxtWrd_
= true
bool SwWrtShell::PrvWrd_
{
t =false while( Push)java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
{ // if already at the beginning, then the next??? if(!SwCursorShell::Left(1,SwCursorSkipMode{
{// Documentbeginning ?
Pop(SwCursorShell::PopMode::DeleteCurrent); return bRet
}
bRet = IsStartWord() || IsEndPara break;
}
Push }
ClearMark(); while( !bRet )
{ if( !GoPrevWord() )
{
= true
|| SwCursorShell:eft(,SwCursorSkipMode::hars) break;
bRet = IsStartWord() ();
}
}
bRet
}
ClearMark();
Combine( bRet= ; return bRet;
}
// #i92468# // method code of <SwWrtShell::NxtWrd_()> before fix for issue i72162 bool SwWrtShell:NxtWrdForDelete()
{ if ( IsEndPara() )
if ( !SwCursorShell::Right(1,SwCursorSkipMode::Chars) )
Pop {// Document - beginning ?? return;
} returntrue;
}
Push();
ClearMark(); if bRet IsStartWord()| IsEndPara()java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
{
SwCursorShell{
}
ClearMark();
Combine); returntrue;
}
bRet = IsStartWord(); bool }
{
bRet true
{ if(!wCursorShell::Left(,SwCursorSkipMode::Chars)
{
Pop(SwCursorShell:PopModeDeleteCurrent); returnfalse;
} returntrue;
}
Push
ClearMark (IsEndPara java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 if( !GoPrevWord() )
PopSwCursorShell:::DeleteCurrent false
}
ClearMark
(java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 16
}
boolbool::BwdSentence_()
(!bRet &!IsSttOfPara( )
{
SttPara ClearMark()java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
}
();
Combine; return bRet;
}
}
{ switch)
{ case// not found --> go to the beginning of the paragraph
LOK_CALLBACK_INVALIDATE_VIEW_CURSOR: return GetVisibleCursor() (); case LOK_CALLBACK_TEXT_SELECTION caseLOK_CALLBACK_TEXT_SELECTION_START
(java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
: return
}
abortPush)java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
}
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.