28 #include <osl/diagnose.h>
38 #include <globals.hrc>
56 nCount = pCountItem->GetValue();
58 bSelect = pSelectionItem->GetValue();
62 case FN_CHAR_LEFT_SEL:
66 case FN_CHAR_RIGHT_SEL:
74 case FN_LINE_DOWN_SEL:
80 uno::Reference< frame::XDispatchRecorder > xRecorder =
87 const sal_uInt16 nSlot = rReq.
GetSlot();
91 for( sal_Int32
i = 0;
i < nCount;
i++ )
108 OSL_FAIL(
"wrong Dispatcher");
127 case FN_START_OF_LINE_SEL:
133 case FN_END_OF_LINE_SEL:
139 case FN_START_OF_DOCUMENT_SEL:
145 case FN_END_OF_DOCUMENT_SEL:
148 case FN_END_OF_DOCUMENT:
163 OSL_FAIL(
"wrong dispatcher");
184 case FN_START_OF_NEXT_PAGE_SEL :
190 case FN_END_OF_NEXT_PAGE_SEL:
196 case FN_START_OF_PREV_PAGE_SEL:
202 case FN_END_OF_PREV_PAGE_SEL:
208 case FN_START_OF_PAGE_SEL:
214 case FN_END_OF_PAGE_SEL:
221 OSL_FAIL(
"wrong dispatcher");
252 OSL_FAIL(
"wrong dispatcher");
266 case FN_NEXT_WORD_SEL:
272 case FN_START_OF_PARA_SEL:
278 case FN_END_OF_PARA_SEL:
284 case FN_PREV_WORD_SEL:
290 case FN_NEXT_SENT_SEL:
296 case FN_PREV_SENT_SEL:
309 OSL_FAIL(
"wrong dispatcher");
319 const sal_uInt16 nSlot = rReq.
GetSlot();
320 bool bSetRetVal =
true, bRet =
true;
323 case SID_FM_TOGGLECONTROLFOCUS:
327 const SwView* pView = pDocShell ? pDocShell->
GetView() :
nullptr;
332 OSL_ENSURE( pFormShell && pDrawView && pWindow,
"SwXTextView::ExecMoveMisc: no chance!" );
333 if ( !pFormShell || !pDrawView || !pWindow )
342 if ( !pNearestControl )
346 OSL_ENSURE( pUnoObject,
"SwTextShell::ExecMoveMisc: GetBestObject returned nonsense!" );
435 OSL_FAIL(
"wrong dispatcher");
443 bool bInHeader =
true;
SfxViewFrame * GetViewFrame() const
#define FN_START_OF_PREV_COLUMN
bool Right(sal_uInt16 nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
void NxtWrd(bool bSelect=false)
#define FN_TO_FOOTNOTE_AREA
bool SttPara(bool bSelect=false)
void ExecMoveCol(SfxRequest &)
void ExecBasicMove(SfxRequest &)
bool EndPg(bool bSelect=false)
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
#define FN_END_OF_NEXT_COLUMN
bool GotoPrevTable(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosTable, bool bInReadOnly)
SwDocShell * GetDocShell()
bool GotoNextFootnoteAnchor()
#define FN_START_OF_PREV_PAGE
bool SttNxtPg(bool bSelect=false)
bool LeftMargin(bool bSelect, bool bBasicCall)
virtual void SetShowHeaderFooterSeparator(FrameControlType eControl, bool bShow) override
bool EndPrvPg(bool bSelect=false)
void Done(bool bRemove=false)
#define FN_GOTO_PREV_REGION
const SfxItemSet * GetArgs() const
bool GotoNxtPrvTableFormula(bool bNext=true, bool bOnlyErrors=false)
Jump to next/previous table formula Optionally it is possible to also jump to broken formulas...
bool GotoHeaderText()
jump from the content to the header
void FlushInBuffer()
Character buffer is inserted into the document.
void SetUseInputLanguage(bool bNew)
#i42732# display status of font size/name depending on either the input language or the selection pos...
void SttPrvPg(bool bSelect=false)
SwWrtShell & GetWrtShell() const
Used by the UI to modify the document model.
bool IsHeaderFooterEdit() const
Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags.
void SetSlot(sal_uInt16 nNewSlot)
bool GotoFootnoteText()
jump from content to footnote
bool PrvWrd(bool bSelect=false)
void GotoFootnoteAnchor(const SwTextFootnote &rTextFootnote)
void ExecMovePage(SfxRequest &)
#define FN_CNTNT_TO_NEXT_FRAME
void ExecMoveLingu(SfxRequest &)
virtual FmFormShell * GetFormShell() override
bool Up(bool bSelect, sal_uInt16 nCount=1, bool bBasicCall=false)
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
#define FN_START_OF_COLUMN
void BwdSentence(bool bSelect=false)
SfxBindings & GetBindings()
virtual void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
void SelSentence(const Point *)
#define FN_GOTO_NEXT_REGION
bool RightMargin(bool bSelect, bool bBasicCall)
#define FN_PREV_TBLFML_ERR
void ToggleHeaderFooterEdit()
bool StartOfSection(bool bSelect=false)
void FwdSentence(bool bSelect=false)
bool SttPg(bool bSelect=false)
bool GotoPrevFootnoteAnchor()
void SetReturnValue(const SfxPoolItem &)
bool GotoObj(bool bNext, GotoObjFlags eType=GotoObjFlags::DrawAny)
const sal_uInt16 CRSR_SKIP_CELLS
bool GotoNextRegion(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosRegion, bool bInReadOnly)
sal_uInt16 GetSlot() const
bool MoveRegion(SwWhichRegion, SwMoveFnCollection const &)
void addCurrentPosition()
const css::uno::Reference< css::frame::XDispatchRecorder > & GetRecorder() const
#define FN_START_OF_DOCUMENT
#define FN_START_OF_NEXT_COLUMN
bool Left(sal_uInt16 nMode, bool bSelect, sal_uInt16 nCount, bool bBasicCall, bool bVisual=false)
SwMoveFnCollection const & fnTableStart
void MoveCursor(bool bWithSelect=false)
void EndPara(bool bSelect=false)
#define FN_NEXT_TBLFML_ERR
bool MoveTable(SwWhichTable, SwMoveFnCollection const &)
vcl::Window * GetWin() const
#define FN_START_OF_NEXT_PAGE
#define FN_END_OF_PREV_PAGE
::OutputDevice const * GetOutDev() const
void ExecMoveMisc(SfxRequest &)
#define FN_SELECT_SENTENCE
#define FN_PARAM_MOVE_COUNT
bool Down(bool bSelect, sal_uInt16 nCount=1, bool bBasicCall=false)
bool GotoPrevRegion(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosRegion, bool bInReadOnly)
void EndNxtPg(bool bSelect=false)
void AppendItem(const SfxPoolItem &)
bool GotoNxtPrvTOXMark(bool bNext=true)
jump to next/previous index marker
bool EndOfSection(bool bSelect=false)
bool GotoNextTable(SwPaM &rCurrentCursor, SwMoveFnCollection const &fnPosTable, bool bInReadOnly)
#define FN_END_OF_PREV_COLUMN
const SwView * GetView() const
void EnterSelFrameMode(const Point *pStartDrag=nullptr)
virtual SdrView * GetDrawView() const override
#define FN_END_OF_NEXT_PAGE
#define FN_FOOTNOTE_TO_ANCHOR
bool IsInHeaderFooter(bool *pbInHeader=nullptr) const
FrameTypeFlags GetFrameType(const Point *pPt, bool bStopAtFly) const
For return values see above FrameType.
void ExecMove(SfxRequest &)
#define FN_PARAM_MOVE_SELECTION
bool GotoFooterText()
jump from the content to the footer
const SdrObject * GetBestObject(bool bNext, GotoObjFlags eType, bool bFlat=true, const svx::ISdrObjectFilter *pFilter=nullptr, bool *pbWrapped=nullptr)
SwMoveFnCollection const & fnRegionStart