34 #include <rtl/character.hxx>
69 if (aOldFirstLineOfst > 0)
74 else if (aOldFirstLineOfst < 0)
136 if( nCmp & nSelType )
150 if ( nCmp & nSelType )
210 bDoSomething = pIsInTableNd == pWasInTableNd;
220 bDoSomething = pSNdOld == pSNdNew;
259 if ( rtl::isSurrogate( nCode ) )
285 std::unique_ptr<weld::MessageDialog> xInfo(xBuilder->weld_message_dialog(
"InfoReadonlyDialog"));
305 case SelectionType::Text:
346 bool bDelFull =
false;
347 bool bDoNothing =
false;
359 bDelFull = bCheckDelFull && pCurrTableNd && pCurrTableNd != pWasInTableNd;
360 if (!bDelFull && (
IsCursorInTable() || (pCurrTableNd != pWasInTableNd)))
369 bDoNothing = pSNdOld != pSNdNew;
381 if (bDelFull || bDoNothing)
406 std::unique_ptr<weld::MessageDialog> xInfo(xBuilder->weld_message_dialog(
"InfoReadonlyDialog"));
422 std::unique_ptr<SwPosition> pAnchor;
430 if ((eAnchorId == RndStdIds::FLY_AS_CHAR || eAnchorId == RndStdIds::FLY_AT_CHAR)
468 "<SwWrtShell::DelRight(..)> - <SwWrtShell::UnSelectFrame()> should unmark all objects" );
471 if (
GetView().GetDrawFuncPtr())
Starts a section of nodes in the document model.
SwMoveFnCollection const & fnParaEnd
SwNode & GetNode(bool bPoint=true) const
virtual const SwFlyFrameFormat * GetFormat() const override
virtual ::sw::mark::IFieldmark * getFieldmarkAt(const SwPosition &rPos) const =0
get Fieldmark for CH_TXT_ATR_FIELDSTART/CH_TXT_ATR_FIELDEND at rPos
Marks a position in the document model.
bool Right(sal_uInt16 nCnt, sal_uInt16 nMode, bool bAllowVisual=false)
bool DelFullPara()
Remove a complete paragraph.
SwPaM * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
bool GoCurrPara(SwPaM &rPam, SwMoveFnCollection const &aPosPara)
bool IsStartOfDoc() const
void SetAttrSet(const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
bool Pop(SwCursorShell::PopMode=SwCursorShell::PopMode::DeleteStack)
SwCursor * GetSwCursor() const
SwMoveFnCollection const & fnParaStart
static weld::Builder * CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false)
SAL_DLLPRIVATE void EndWrd()
bool Left(sal_uInt16 nCnt, sal_uInt16 nMode, bool bAllowVisual=false)
sal_Unicode GetChar(bool bEnd=true, tools::Long nOffset=0)
get the nth character of the current SSelection
SAL_DLLPRIVATE bool FwdSentence_()
SwFlyFrame * GetSelectedFlyFrame() const
bool GotoNextFly(GotoObjFlags eType=GotoObjFlags::FlyAny)
Independent selecting of flys.
void SetDrawFuncPtr(std::unique_ptr< SwDrawBase > pFuncPtr)
const SwView & GetView() const
rtl::Reference< SwDoc > mxDoc
The document; never 0.
static bool isCJKIVSCharacter(sal_uInt32 nCode)
void NormalizePam(bool bPointFirst=true)
Ensure point and mark of the current PaM are in a specific order.
const SwFormatField & GetFormatField() const
const IDocumentMarkAccess * getIDocumentMarkAccess() const
Provides access to the document bookmark interface.
static bool isIVSSelector(sal_uInt32 nCode)
virtual void Deactivate()
virtual std::unique_ptr< ILazyDeleter > deleteMark(const IDocumentMarkAccess::const_iterator_t &ppMark)=0
Deletes a mark.
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
bool MovePara(SwWhichPara, SwMoveFnCollection const &)
const SfxItemPool & GetAttrPool() const
Class for automated call of Start- and EndAction().
const SwTableNode * IsCursorInTable() const
virtual SwPaM & GetCurrentShellCursor() override
Return the current shell cursor.
SvtScriptType GetScriptType() const
returns the script type of the selection
bool HasSelection() const
const SwPosition * GetPoint() const
void Push()
store a copy of the current cursor on the cursor stack
bool IsEndOfTable() const
at the very last SwPosition inside a table
SAL_DLLPRIVATE bool BwdSentence_()
void DelLine()
Description: Erase the line.
tools::Long GetLeft() const
void SetTextFirstLineOffset(const short nF, const sal_uInt16 nProp=100)
bool RightMargin(bool bAPI=false)
short GetTextFirstLineOffset() const
SAL_DLLPRIVATE void CloseMark(bool bOkFlag)
SAL_DLLPRIVATE bool PrvWrdForDelete()
SwTextField * GetFieldTextAttrAt(const sal_Int32 nIndex, const bool bIncludeInputFieldAtStart=false) const
SwDrawBase * GetDrawFuncPtr() const
SAL_DLLPRIVATE void SttWrd()
constexpr T & temporary(T &&x)
bool IsStartWord(sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
bool Delete()
Delete content of all ranges.
bool DelToEndOfSentence()
const sal_uInt16 CRSR_SKIP_CELLS
SwTextNode is a paragraph in the document model.
general base class for all free-flowing frames
SAL_DLLPRIVATE void OpenMark()
void SetLeft(const tools::Long nL, const sal_uInt16 nProp=100)
OUString GetSelText() const
get selected text of a node at current cursor
SwRect GetObjRect() const
For adjustment of PosAttr when anchor changes.
constexpr TypedWhichId< SvxLRSpaceItem > RES_LR_SPACE(91)
virtual const SwPosition & GetMarkEnd() const =0
bool GetCurAttr(SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
const SwStartNode * FindTableBoxStartNode() const
static void DeleteFieldmarkCommand(::sw::mark::IFieldmark const &rMark)
const sal_uInt16 CRSR_SKIP_CHARS
void EnterSelFrameMode(const Point *pStartDrag=nullptr)
virtual const SwPosition & GetMarkStart() const =0
bool Pop(PopMode)
delete cursor
SelectionType GetSelectionType() const
void StartAllAction()
For all views of this document.
bool IsFrameSelected() const
SAL_DLLPRIVATE bool NxtWrdForDelete()
void DelToStartOfSentence()
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SAL_DLLPRIVATE tools::Long SetCursor(const Point *, bool bProp=false)