31 mpEditView(pEditView),
46 bool bCompletelyHandled =
false;
54 return bCompletelyHandled;
72 if (eFunc != KeyFuncType::DONTKNOW && eFunc != KeyFuncType::DELETE)
85 sal_Int32 nLastParaLen = aLastParaText.getLength();
88 bool bAtEndOfTextContent = aCurSel == aEndSel;
91 if (nCode ==
KEY_RIGHT && bAtEndOfTextContent && pNextLink)
100 if (eFunc == KeyFuncType::DELETE && bAtEndOfTextContent && pNextLink)
110 bool bAtStartOfTextContent = aCurSel == aStartSel;
113 if (nCode ==
KEY_LEFT && bAtStartOfTextContent && pPrevLink)
116 rOutSel = aEndSelPrevBox;
122 if (nCode ==
KEY_BACKSPACE && bAtStartOfTextContent && pPrevLink)
125 rOutSel = aEndSelPrevBox;
191 assert(pTargetTextObj);
const vcl::KeyCode & GetKeyCode() const
void SetSelection(const ESelection &)
ESelection GetSelection() const
OUString GetText(Paragraph const *pPara, sal_Int32 nParaCount=1) const
Paragraph * GetParagraph(sal_Int32 nAbsPos) const
sal_Int32 GetParagraphCount() const
virtual SdrEndTextEditKind SdrEndTextEdit(bool bDontDeleteReally=false)
const OutlinerView * GetTextEditOutlinerView() const
virtual bool SdrBeginTextEdit(SdrObject *pObj, SdrPageView *pPV=nullptr, vcl::Window *pWin=nullptr, bool bIsNewObj=false, SdrOutliner *pGivenOutliner=nullptr, OutlinerView *pGivenOutlinerView=nullptr, bool bDontDeleteOutliner=false, bool bOnlyOneView=false, bool bGrabFocus=true)
const SdrOutliner * GetTextEditOutliner() const
SdrTextObj * GetPrevLinkInChain() const
SdrTextObj * GetNextLinkInChain() const
TextChain * GetTextChain() const
SdrObjEditView * mpEditView
TextChainCursorManager(SdrObjEditView *pEditView, const SdrTextObj *pTextObj)
void impDetectEvent(const KeyEvent &rKEvt, CursorChainingEvent &rOutCursorEvt, ESelection &rOutSel, bool &rOutHandled)
bool HandleKeyEvent(const KeyEvent &rKEvt)
void HandleCursorEventAfterChaining(const CursorChainingEvent aCurEvt, const ESelection &aNewSel)
const SdrTextObj * mpTextObj
void HandleCursorEvent(const CursorChainingEvent aCurEvt, const ESelection &aNewSel)
void impChangeEditingTextObj(SdrTextObj *pTargetTextObj, ESelection aNewSel)
void SetSwitchingToNextBox(const SdrTextObj *, bool)
sal_uInt16 GetCode() const
KeyFuncType GetFunction() const
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_BACKSPACE