19#ifndef INCLUDED_SW_INC_NDHINTS_HXX
20#define INCLUDED_SW_INC_NDHINTS_HXX
136 bool Check(
bool)
const;
160 assert( !(
nPos != 0 &&
m_bEndMapNeedsSorting) &&
"going to trigger a resort in the middle of an iteration, that's bad" );
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
SwTextNode is a paragraph in the document model.
An SwTextAttr container, stores all directly formatted text portions for a text node.
SW_DLLPUBLIC void ResortWhichMap() const
bool m_bFootnote
footnotes
std::vector< SwTextAttr * > m_HintsByWhichAndStart
void StartPosChanged() const
void DeRegister()
deregister the currently registered History
std::vector< SwTextAttr * > m_HintsByEnd
SwTextAttr * Get(size_t nPos) const
void SortIfNeedBe() const
Trigger the sorting if necessary.
bool m_bEndMapNeedsSorting
void SetCalcHiddenParaField() const
void Register(SwRegHistory *pHist)
register a History, which receives all attribute changes (for Undo)
SwTextAttr * GetWithoutResorting(size_t nPos) const
size_t GetFirstPosSortedByWhichAndStart(sal_uInt16 nWhich) const
bool IsInSplitNode() const
bool CalcHiddenParaField() const
bool Contains(const SwTextAttr *pHt) const
void Delete(SwTextAttr const *pTextHt)
Delete the given Hint. The Hint must actually be in the array!
bool m_bDDEFields
the TextNode has DDE fields
size_t GetIndexOf(const SwTextAttr *pHt) const
SwTextAttr * Cut(const size_t nPosInStart)
void SetHiddenByParaField(const bool bNew) const
bool m_bHiddenByParaField
bool IsHiddenByParaField() const
void InsertNesting(SwTextAttrNesting &rNewHint)
Insert nesting hint into the hints array.
SW_DLLPUBLIC void Resort() const
static const size_t MAX_HINTS
SwpHints(const SwTextNode &rParent)
SwTextAttr * GetSortedByEnd(size_t nPos) const
bool m_bCalcHiddenParaField
void SetInSplitNode(bool bInSplit)
bool TryInsertNesting(SwTextNode &rNode, SwTextAttrNesting &rNewHint)
The following hints correspond to well-formed XML elements in ODF: RES_TXTATR_INETFMT,...
int GetLastPosSortedByEnd(sal_Int32 nEndPos) const
const SwTextNode & m_rParent
void Insert(SwTextAttr *pHt)
bool m_bWhichMapNeedsSorting
std::vector< SwTextAttr * > m_HintsByStart
SwRegHistory * m_pHistory
for Undo
bool CanBeDeleted() const
bool MergePortions(SwTextNode &rNode)
void NoteInHistory(SwTextAttr *pAttr, const bool bNew=false)
records a new attribute in m_pHistory.
void EndPosChanged() const
void DeleteAtPos(size_t nPos)
bool m_bInSplitNode
true: the Node is in Split and Frames are moved
bool m_bStartMapNeedsSorting
bool TryInsertHint(SwTextAttr *const pHint, SwTextNode &rNode, const SetAttrMode nMode=SetAttrMode::DEFAULT)
try to insert the hint
SW_DLLPUBLIC void ResortStartMap() const
SW_DLLPUBLIC void ResortEndMap() const
SwTextAttr * GetSortedByWhichAndStart(size_t nPos) const
SwRegHistory * GetHistory() const
void BuildPortions(SwTextNode &rNode, SwTextAttr &rNewHint, const SetAttrMode nMode)
SwTextAttr * MakeRedlineTextAttr(SwDoc &rDoc, SfxPoolItem const &rAttr)
create redline dummy text hint that must not be inserted into hints array
SwTextAttr * MakeTextAttr(SwDoc &rDoc, SfxPoolItem &rNew, sal_Int32 const nStt, sal_Int32 const nEnd, CopyOrNewType const bIsCopy=CopyOrNewType::New, SwTextNode *const pTextNode=nullptr)
if COPY then pTextNode must be given!
bool operator()(sal_Int32 nEndPos, const SwTextAttr *rhs) const
sort order: End, Start(reverse), Which (char style: sort number), at last the pointer(reverse)
bool operator()(const SwTextAttr *lhs, const sal_uInt16 nWhich) const
sort order: Which, Start, End(reverse) at last the pointer