22#include <com/sun/star/uno/Sequence.h>
30#include <bookmark.hxx>
41 const OUString & rMimeType,
bool )
47 case SotClipboardFormatId::STRING:
51 case SotClipboardFormatId::RTF:
52 case SotClipboardFormatId::RICHTEXT:
61 SwPaM* pPam =
nullptr;
92 SwWriter aWrt( aMemStm, *pPam,
false );
96 rData <<= uno::Sequence< sal_Int8 >(
139 SvLinkSource::NotifyDataChanged();
151 auto [pStt, pEnd] = rRange.
StartEnd();
170 pEnd->GetNodeIndex() >= pNd->
GetIndex();
177 SvLinkSource::NotifyDataChanged();
184 const SwNode* pNd =
nullptr;
196 nEndNd = pEnd->GetNodeIndex();
215 if( nSttNd && nEndNd )
224 for(
size_t n = rLnks.size();
n; )
226 const ::sfx2::SvBaseLink* pLnk = &(*rLnks[ --
n ]);
228 dynamic_cast<const SwBaseLink*
>( pLnk) !=
nullptr &&
234 if( pLnk == pChkLnk ||
273 OSL_FAIL(
"SwServerObject::SetNoServer(..)"
274 " - setting a bookmark that is not DDE-capable");
278 : m_pPam( &rPam ), m_pPos( nullptr ),
m_rDoc( rPam.GetDoc() )
284 : m_pPam( nullptr ), m_pPos( &rPos ),
m_rDoc( rDc )
298 for(
const auto& rpLinkSrc : aTemp )
302 if( refObj->HasDataLinks())
306 pServerObj->SendDataChanged( *
m_pPos );
308 pServerObj->SendDataChanged( *
m_pPam );
312 if( !refObj->HasDataLinks() )
virtual const SwViewShell * GetCurrentViewShell() const =0
Returns the layout set at the document.
virtual sfx2::LinkManager & GetLinkManager()=0
static SotClipboardFormatId GetFormatIdFromMimeType(std::u16string_view rMimeType)
SvStream & WriteChar(char nChar)
bool IsNoDataFlag() const
bool IsRecursion(const SwBaseLink *pChkLnk) const
SwDataChanged(const SwPaM &rPam)
const SwPosition * m_pPos
IDocumentLinksAdministration const & getIDocumentLinksAdministration() const
IDocumentLayoutAccess const & getIDocumentLayoutAccess() const
Base class of the Writer document model elements.
SwNodeOffset GetIndex() const
SwNodes & GetNodes()
Node is in which nodes-array/doc?
SwNodeOffset EndOfSectionIndex() const
SwDoc & GetDoc()
Which Doc contains the nodes-array?
PaM is Point and Mark: a selection of the document model.
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
std::pair< const SwPosition *, const SwPosition * > StartEnd() const
Because sometimes the cost of the operator<= can add up.
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
const SwPosition * GetPoint() const
void SetDdeBookmark(::sw::mark::IMark &rBookmark)
bool IsLinkInServer(const SwBaseLink *) const
virtual ~SwServerObject() override
union SwServerObject::@26 m_CNTNT_TYPE
enum SwServerObject::ServerModes m_eType
virtual bool GetData(css::uno::Any &rData, const OUString &rMimeType, bool bSynchron=false) override
Starts a section of nodes in the document model.
ErrCode Write(WriterRef const &rxWriter, const OUString *=nullptr)
const SvLinkSources & GetServers() const
void RemoveServer(SvLinkSource *rObj)
const SvBaseLinks & GetLinks() const
bool HasDataLinks() const
void SetRefObject(SwServerObject *pObj)
void GetRTFWriter(std::u16string_view rFltName, const OUString &rBaseURL, WriterRef &xRet)
SwMoveFnCollection const & fnMoveBackward
SwMoveFnCollection const & fnMoveForward
SwPam::Move()/Find() default argument.
Marks a position in the document model.
void Assign(const SwNode &rNd, SwNodeOffset nDelta, sal_Int32 nContentOffset=0)
These all set both nNode and nContent.
SwNodeOffset GetNodeIndex() const
const SwNodes & GetNodes() const
sal_Int32 GetContentIndex() const
bool IsInRange(const WhichRangesContainer &pRange, const sal_uInt16 nId)
check if ID is in range of attribute set IDs
void GetASCWriter(std::u16string_view rFltNm, const OUString &, WriterRef &xRet)