22#include <libxml/xmlwriter.h>
31#include <LibreOfficeKit/LibreOfficeKitEnums.h>
45 ,
sw::BroadcastingModify()
46 , m_pTextAttr(nullptr)
53 ,
sw::BroadcastingModify()
54 , m_pTextAttr(nullptr)
55 , m_aRefName(rAttr.m_aRefName)
64 assert(SfxPoolItem::operator==(rAttr));
75 if (rHint.
GetId() != SfxHintId::SwLegacyModify)
78 CallSwClientNotify(rHint);
86 &
static_cast<sw::BroadcastingModify&
>(*
this));
92 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwFormatRefMark"));
93 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"ptr"),
"%p",
this);
94 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"m_pTextAttr"),
"%p",
m_pTextAttr);
95 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"ref-name"),
100 (void)xmlTextWriterEndElement(pWriter);
106 sal_Int32
const nStartPos, sal_Int32
const*
const pEnd)
109 , m_pTextNode( nullptr )
139 aJson.
put(
"commandName",
".uno:DeleteField");
140 aJson.
put(
"success",
true);
143 aJson.
put(
"DeleteField", fieldCommand);
181 *pCursorPos = aPasteEnd;
185 sal_Int32 nOldStart = this->
GetStart();
186 sal_Int32 nNewStart = *this->
End();
210 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SwTextRefMark"));
211 (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST(
"ptr"),
"%p",
this);
214 (void)xmlTextWriterEndElement(pWriter);
Text operation/manipulation interface.
virtual bool DeleteAndJoin(SwPaM &, SwDeleteFlags flags=SwDeleteFlags::Default)=0
complete delete of a given PaM
virtual bool InsertString(const SwPaM &rRg, const OUString &, const SwInsertFlags nInsertMode=SwInsertFlags::EMPTYEXPAND)=0
Insert string into existing text node at position rRg.Point().
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
virtual void libreOfficeKitViewCallback(int nType, const OString &pPayload) const override
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
IDocumentContentOperations const & getIDocumentContentOperations() const
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetMark() const
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
const SwPosition * GetPoint() const
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
void SetDontMoveAttr(bool bFlag)
const SwFormatRefMark & GetRefMark() const
const sal_Int32 * End() const
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
void SetOverlapAllowedAttr(bool bFlag)
sal_Int32 GetStart() const
void SetLockExpandFlag(bool bFlag)
void SetStart(sal_Int32 n)
start position
void SetHasDummyChar(const bool bFlag)
void SetDontExpand(bool bDontExpand)
SwTextNode is a paragraph in the document model.
SwpHints & GetSwpHints()
getters for SwpHints
void UpdateFieldContent(SwDoc *pDoc, SwWrtShell &rWrtSh, OUString aContent)
const SwTextNode & GetTextNode() const
virtual void SetEnd(sal_Int32) override
SwTextRefMark(SwFormatRefMark &rAttr, sal_Int32 const nStart, sal_Int32 const *const pEnd=nullptr)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual const sal_Int32 * GetEnd() const override
end position
Used by the UI to modify the document model.
void SortIfNeedBe() const
Trigger the sorting if necessary.
void EndPosChanged() const
struct _xmlTextWriter * xmlTextWriterPtr
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_REMOVE_UNO_OBJECT(181)
constexpr TypedWhichId< SwFormatRefMark > RES_TXTATR_REFMARK(RES_TXTATR_WITHEND_BEGIN)
SW_DLLPUBLIC void PasteHTMLToPaM(SwWrtShell &rWrtSh, SwPaM *pCursor, const OString &rData)
Dialog to specify the properties of date form field.
bool GoInContent(SwPaM &rPam, SwMoveFnCollection const &fnMove)
SwMoveFnCollection const & fnMoveBackward
Marks a position in the document model.
sal_Int32 GetContentIndex() const
void AdjustContent(sal_Int32 nDelta)
Adjust content index, only valid to call this if the position points to a SwContentNode subclass.