22#include <osl/diagnose.h>
38 sal_Int32 nStt, sal_Int32 nEnd )
41 , m_pTextNode( nullptr )
54 const auto nWhich = rHint.
GetWhich();
59 RES_FMT_CHG != nWhich,
"sw.core",
"SwTextCharFormat::TriggerNodeUpdate: unknown hint type");
78 const sal_Int32 i_nStart,
const sal_Int32 i_nEnd )
95 sal_Int32 nStart, sal_Int32 nEnd )
99 , m_pTextNode( nullptr )
100 , m_bVisited( false )
101 , m_bVisitedValid( false )
129 OSL_ENSURE(
false,
"<SwTextINetFormat::GetCharFormat()> - missing character format at hyperlink attribute");
154 if (rHint.
GetId() != SfxHintId::SwLegacyModify)
157 const auto nWhich = pLegacy->
GetWhich();
160 "SwTextINetFormat::SwClientNotify: unknown hint.");
180 sal_Int32 nStart, sal_Int32 nEnd )
184 , m_pTextNode( nullptr )
195 if (rHint.
GetId() != SfxHintId::SwLegacyModify)
198 const auto nWhich = pLegacy->
GetWhich();
202 && (
RES_FMT_CHG == nWhich),
"sw.core",
"SwTextRuby::SwClientNotify(): unknown legacy hint");
220 if( !rFormat.
GetText().isEmpty() )
224 const sal_uInt16
nId = rStr.isEmpty()
240 :
const_cast<SwDoc&
>(rDoc).getIDocumentStylePoolAccess().GetCharFormatFromPool(
nId );
244 const_cast<SwDoc&
>(rDoc).getIDocumentState().ResetModified();
245 const_cast<SwDoc&
>(rDoc).SetOle2Link( aOle2Lnk );
262 sal_Int32
const i_nStart,
263 sal_Int32
const i_nEnd,
264 bool const i_bIsCopy)
268 OSL_ENSURE(i_pTargetTextNode,
"cannot copy Meta without target node");
269 i_rAttr.
DoCopy(i_rTargetDocManager, *i_pTargetTextNode);
276 const sal_Int32 i_nStart,
const sal_Int32 i_nEnd )
virtual void SetEnableSetModified(bool bEnableSetModified)=0
virtual bool IsModified() const =0
Changes of document?
virtual bool IsEnableSetModified() const =0
virtual SwCharFormat * GetCharFormatFromPool(sal_uInt16 nId)=0
IDocumentState const & getIDocumentState() const
SwCharFormat * FindCharFormatByName(const OUString &rName) const
const Link< bool, void > & GetOle2Link() const
IDocumentStylePoolAccess const & getIDocumentStylePoolAccess() const
bool IsVisitedURL(std::u16string_view rURL)
bool IsProtect() const
Is node in something that is protected (range, frame, table cells ... including anchor in case of fra...
SwNodes & GetNodes()
Node is in which nodes-array/doc?
virtual const sal_Int32 * GetEnd() const override
end position
SwTextAttrNesting(SfxPoolItem &i_rAttr, const sal_Int32 i_nStart, const sal_Int32 i_nEnd)
virtual ~SwTextAttrNesting() override
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
void SetDontExpandStartAttr(bool bFlag)
const SfxPoolItem & GetAttr() const
void SetCharFormatAttr(bool bFlag)
sal_Int32 GetStart() const
const SwFormatINetFormat & GetINetFormat() const
void SetLockExpandFlag(bool bFlag)
const SwFormatRuby & GetRuby() const
void SetHasDummyChar(const bool bFlag)
void SetDontExpand(bool bDontExpand)
void SetNesting(const bool bFlag)
SwTextCharFormat(SwFormatCharFormat &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
virtual ~SwTextCharFormat() override
bool GetInfo(SfxPoolItem const &rInfo) const
void TriggerNodeUpdate(const sw::LegacyModifyHint &)
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
void SetVisitedValid(bool bNew)
virtual ~SwTextINetFormat() override
virtual bool GetInfo(SfxPoolItem &rInfo) const override
void SetVisited(bool bNew)
bool IsVisitedValid() const
const SwTextNode & GetTextNode() const
SwCharFormat * GetCharFormat()
SwTextINetFormat(SwFormatINetFormat &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
static SwTextMeta * CreateTextMeta(::sw::MetaFieldManager &i_rTargetDocManager, SwTextNode *const i_pTargetTextNode, SwFormatMeta &i_rAttr, sal_Int32 const i_nStart, sal_Int32 const i_nEnd, bool const i_bIsCopy)
SwTextMeta(SwFormatMeta &i_rAttr, const sal_Int32 i_nStart, const sal_Int32 i_nEnd)
void ChgTextNode(SwTextNode *const pNode)
virtual ~SwTextMeta() override
SwTextNode is a paragraph in the document model.
void TriggerNodeUpdate(const sw::LegacyModifyHint &)
for hanging TextFormatCollections somewhere else (Outline-Numbering!)
const SwTextNode & GetTextNode() const
Get and set TextNode pointer.
virtual bool GetInfo(SfxPoolItem &rInfo) const override
virtual ~SwTextRuby() override
SwCharFormat * GetCharFormat()
SwTextRuby(SwFormatRuby &rAttr, sal_Int32 nStart, sal_Int32 nEnd)
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
bool isCHRATR(const sal_uInt16 nWhich)
constexpr TypedWhichId< SwAttrSetChg > RES_ATTRSET_CHG(169)
constexpr TypedWhichId< SwAutoFormatGetDocNode > RES_AUTOFMT_DOCNODE(176)
constexpr TypedWhichId< SwPtrMsgPoolItem > RES_OBJECTDYING(RES_FORMAT_MSG_BEGIN)
constexpr TypedWhichId< SwFormatChg > RES_FMT_CHG(168)
#define SAL_WARN_IF(condition, area, stream)
@ RES_POOLCHR_RUBYTEXT
Rubytext.
bool IsPoolUserFormat(sal_uInt16 nId)
sal_uInt16 GetWhich() const