LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwTextNode Class Referencefinal

SwTextNode is a paragraph in the document model. More...

#include <ndtxt.hxx>

Inheritance diagram for SwTextNode:
[legend]
Collaboration diagram for SwTextNode:
[legend]

Public Member Functions

bool IsWordCountDirty () const
 
sw::WrongState GetWrongDirty () const
 
bool IsWrongDirty () const
 
bool IsGrammarCheckDirty () const
 
bool IsSmartTagDirty () const
 
bool IsAutoCompleteWordDirty () const
 
void SetWordCountDirty (bool bNew) const
 
void SetWrongDirty (sw::WrongState eNew) const
 
void SetGrammarCheckDirty (bool bNew) const
 
void SetSmartTagDirty (bool bNew) const
 
void SetAutoCompleteWordDirty (bool bNew) const
 
void SetWrong (std::unique_ptr< SwWrongList > pNew)
 
void ClearWrong ()
 
std::unique_ptr< SwWrongListReleaseWrong ()
 
SwWrongListGetWrong ()
 
const SwWrongListGetWrong () const
 
void SetGrammarCheck (std::unique_ptr< SwGrammarMarkUp > pNew)
 
void ClearGrammarCheck ()
 
std::unique_ptr< SwGrammarMarkUpReleaseGrammarCheck ()
 
SwGrammarMarkUpGetGrammarCheck ()
 
SwWrongList const * GetGrammarCheck () const
 
void SetSmartTags (std::unique_ptr< SwWrongList > pNew)
 
void ClearSmartTags ()
 
std::unique_ptr< SwWrongListReleaseSmartTags ()
 
SwWrongListGetSmartTags ()
 
SwWrongList const * GetSmartTags () const
 
void UpdateDocPos (const SwTwips nDocPos, const sal_uInt32 nIndex)
 
void TriggerNodeUpdate (const sw::LegacyModifyHint &)
 for hanging TextFormatCollections somewhere else (Outline-Numbering!) More...
 
const OUString & GetText () const
 
sal_Int32 GetSpaceLeft () const
 
SwpHintsGetSwpHints ()
 getters for SwpHints More...
 
const SwpHintsGetSwpHints () const
 
SwpHintsGetpSwpHints ()
 
const SwpHintsGetpSwpHints () const
 
bool HasHints () const
 
SwpHintsGetOrCreateSwpHints ()
 
virtual ~SwTextNode () override
 
virtual sal_Int32 Len () const override
 
void GetMinMaxSize (SwNodeOffset nIndex, sal_uLong &rMin, sal_uLong &rMax, sal_uLong &rAbs) const
 Is in itratr. More...
 
virtual bool SetAttr (const SfxPoolItem &) override
 overriding to handle change of certain paragraph attributes More...
 
virtual bool SetAttr (const SfxItemSet &rSet) override
 
virtual bool ResetAttr (sal_uInt16 nWhich1, sal_uInt16 nWhich2=0) override
 
virtual bool ResetAttr (const std::vector< sal_uInt16 > &rWhichArr) override
 
virtual sal_uInt16 ResetAllAttr () override
 
OUString InsertText (const OUString &rStr, const SwContentIndex &rIdx, const SwInsertFlags nMode=SwInsertFlags::DEFAULT)
 insert text content More...
 
OUString InsertText (const OUString &rStr, const SwPosition &rIdx, const SwInsertFlags nMode=SwInsertFlags::DEFAULT)
 
void InsertDummy ()
 Add a dummy character to the redline of the table changes. More...
 
void EraseText (const SwContentIndex &rIdx, const sal_Int32 nCount=SAL_MAX_INT32, const SwInsertFlags nMode=SwInsertFlags::DEFAULT)
 delete text content ATTENTION: must not be called with a range that overlaps the start of an attribute with both extent and dummy char More...
 
void EraseText (const SwPosition &rIdx, const sal_Int32 nCount=SAL_MAX_INT32, const SwInsertFlags nMode=SwInsertFlags::DEFAULT)
 
void RstTextAttr (const sal_Int32 nContentStart, const sal_Int32 nLen, const sal_uInt16 nWhich=0, const SfxItemSet *pSet=nullptr, const bool bInclRefToxMark=false, const bool bExactRange=false)
 delete all attributes. More...
 
void GCAttr ()
 
void DestroyAttr (SwTextAttr *pAttr)
 
void ClearSwpHintsArr (bool bDelFields)
 
void FileLoadedInitHints ()
 initialize the hints after file loading (which takes shortcuts) More...
 
bool InsertHint (SwTextAttr *const pAttr, const SetAttrMode nMode=SetAttrMode::DEFAULT)
 Insert pAttr into hints array. More...
 
SwTextAttrInsertItem (SfxPoolItem &rAttr, const sal_Int32 nStart, const sal_Int32 nEnd, const SetAttrMode nMode=SetAttrMode::DEFAULT)
 create new text attribute from rAttr and insert it More...
 
bool SetAttr (const SfxItemSet &rSet, sal_Int32 nStt, sal_Int32 nEnd, const SetAttrMode nMode=SetAttrMode::DEFAULT, SwTextAttr **ppNewTextAttr=nullptr)
 Set these attributes at TextNode. More...
 
bool GetParaAttr (SfxItemSet &rSet, sal_Int32 nStt, sal_Int32 nEnd, const bool bOnlyTextAttr=false, const bool bGetFromChrFormat=true, const bool bMergeIndentValuesOfNumRule=false, SwRootFrame const *pLayout=nullptr) const
 Query the attributes of textnode over the range. More...
 
void FormatToTextAttr (SwTextNode *pNd)
 Convey attributes of an AttrSet (AutoFormat) to SwpHintsArray. More...
 
void DeleteAttributes (const sal_uInt16 nWhich, const sal_Int32 nStart, const sal_Int32 nEnd=0)
 delete all attributes of type nWhich at nStart (opt. end nEnd) More...
 
void DeleteAttribute (SwTextAttr *const pTextAttr)
 delete the attribute pTextAttr More...
 
void CopyText (SwTextNode *const pDest, const SwContentIndex &rStart, const sal_Int32 nLen, const bool bForceCopyOfAllAttrs)
 Actions on text and attributes. More...
 
void CopyText (SwTextNode *const pDest, const SwContentIndex &rDestStart, const SwContentIndex &rStart, sal_Int32 nLen, const bool bForceCopyOfAllAttrs=false)
 
void CopyText (SwTextNode *const pDest, const SwContentIndex &rDestStart, const SwPosition &rStart, sal_Int32 nLen, const bool bForceCopyOfAllAttrs=false)
 
void CutText (SwTextNode *const pDest, const SwContentIndex &rStart, const sal_Int32 nLen)
 
void CutText (SwTextNode *const pDest, const SwContentIndex &rDestStart, const SwContentIndex &rStart, const sal_Int32 nLen)
 
void ReplaceText (const SwContentIndex &rStart, const sal_Int32 nDelLen, const OUString &rText)
 replace nDelLen characters at rStart with rText in case the replacement does not fit, it is partially inserted up to the capacity of the node More...
 
void ReplaceText (SwPosition &rStart, const sal_Int32 nDelLen, const OUString &rText)
 
void ReplaceTextOnly (sal_Int32 nPos, sal_Int32 nLen, std::u16string_view aText, const css::uno::Sequence< sal_Int32 > &rOffsets)
 
virtual SwContentFrameMakeFrame (SwFrame *) override
 Virtual methods from ContentNode. More...
 
SwTextNodeSplitContentNode (const SwPosition &, std::function< void(SwTextNode *, sw::mark::RestoreMode, bool AtStart)> const *pContentIndexRestore)
 
virtual SwContentNodeJoinNext () override
 
void JoinPrev ()
 
SwContentNodeAppendNode (const SwPosition &)
 
bool DontExpandFormat (sal_Int32 nContentIdx, bool bFlag=true, bool bFormatToTextAttributes=true)
 When appropriate set DontExpand-flag at INet or character styles respectively. More...
 
SwTextAttrGetTextAttrAt (sal_Int32 const nIndex, sal_uInt16 const nWhich, ::sw::GetTextAttrMode const eMode=::sw::GetTextAttrMode::Default) const
 get the innermost text attribute covering position nIndex. More...
 
std::vector< SwTextAttr * > GetTextAttrsAt (sal_Int32 const nIndex, sal_uInt16 const nWhich) const
 get the innermost text attributes covering position nIndex. More...
 
SwTextAttrGetTextAttrForCharAt (const sal_Int32 nIndex, const sal_uInt16 nWhich=RES_TXTATR_END) const
 get the text attribute at position nIndex which owns the dummy character CH_TXTATR_* at that position, if one exists. More...
 
SwTextAttrGetTextAttrForEndCharAt (sal_Int32 nIndex, sal_uInt16 nWhich) const
 Get the text attribute of an end dummy character at nIndex. More...
 
SwTextFieldGetFieldTextAttrAt (const sal_Int32 nIndex, ::sw::GetTextAttrMode const eMode=::sw::GetTextAttrMode::Expand) const
 
bool Spell (SwSpellArgs *)
 
bool Convert (SwConversionArgs &)
 
SwTextFormatCollGetTextColl () const
 
virtual SwFormatCollChgFormatColl (SwFormatColl *) override
 
void ChgTextCollUpdateNum (const SwTextFormatColl *pOld, const SwTextFormatColl *pNew)
 
void CopyCollFormat (SwTextNode &rDestNd, bool bUndoForChgFormatColl=true)
 Copy collection with all auto formats to dest-node. More...
 
SwNumRuleGetNumRule (bool bInParent=true) const
 Returns numbering rule of this text node. More...
 
const SwNodeNumGetNum (SwRootFrame const *pLayout=nullptr, SwListRedlineType eRedline=SwListRedlineType::SHOW) const
 
void DoNum (std::function< void(SwNodeNum &)> const &)
 
SwNumberTree::tNumberVector GetNumberVector (SwRootFrame const *pLayout=nullptr, SwListRedlineType eRedline=SwListRedlineType::SHOW) const
 
bool IsOutline () const
 Returns if this text node is an outline. More...
 
bool IsOutlineStateChanged () const
 
void UpdateOutlineState ()
 
void NumRuleChgd ()
 Notify this textnode that its numbering rule has changed. More...
 
OUString GetNumString (const bool _bInclPrefixAndSuffixStrings=true, const unsigned int _nRestrictToThisLevel=MAXLEVEL, SwRootFrame const *pLayout=nullptr, SwListRedlineType eRedline=SwListRedlineType::SHOW) const
 Returns outline of numbering string. More...
 
tools::Long GetLeftMarginWithNum (bool bTextLeft=false) const
 Returns the additional indents of this text node and its numbering. More...
 
bool GetFirstLineOfsWithNum (short &rFirstOffset) const
 Returns the combined first line indent of this text node and its numbering. More...
 
SwTwips GetAdditionalIndentForStartingNewList () const
 
tools::Long GetLeftMarginForTabCalculation () const
 return left margin for tab stop position calculation More...
 
bool HasNumber (SwRootFrame const *pLayout=nullptr) const
 Returns if this text node has a number. More...
 
bool HasBullet () const
 Returns if this text node has a bullet. More...
 
bool IsNumbered (SwRootFrame const *pLayout=nullptr) const
 Returns is this text node is numbered. More...
 
bool HasMarkedLabel () const
 Returns if this text node has a marked label. More...
 
void SetAttrListLevel (int nLevel)
 Sets the list level of this text node. More...
 
bool HasAttrListLevel () const
 
int GetAttrListLevel () const
 
int GetActualListLevel (SwListRedlineType eRedline=SwListRedlineType::SHOW) const
 Returns the actual list level of this text node, when it is a list item. More...
 
int GetAttrOutlineLevel () const
 Returns outline level of this text node. More...
 
void SetAttrOutlineLevel (int nLevel)
 Sets the out line level at a text node. More...
 
void GetAttrOutlineContentVisible (bool &bOutlineContentVisibleAttr)
 GetAttrOutlineContentVisible. More...
 
void SetAttrOutlineContentVisible (bool bVisible)
 
bool IsEmptyListStyleDueToSetOutlineLevelAttr () const
 
void SetEmptyListStyleDueToSetOutlineLevelAttr ()
 
void ResetEmptyListStyleDueToResetOutlineLevelAttr ()
 
SwTwips GetWidthOfLeadingTabs () const
 Returns the width of leading tabs/blanks in this paragraph. More...
 
bool HasVisibleNumberingOrBullet () const
 Returns if the paragraph has a visible numbering or bullet. More...
 
void SetListId (OUString const &rListId)
 
OUString GetListId () const
 
::sw::ListLevelIndents AreListLevelIndentsApplicable () const
 Determines, if the list level indent attributes can be applied to the paragraph. More...
 
bool AreListLevelIndentsApplicableImpl (sal_uInt16 nWhich) const
 
bool GetListTabStopPosition (tools::Long &nListTabStopPosition) const
 Retrieves the list tab stop position, if the paragraph's list level defines one and this list tab stop has to merged into the tap stops of the paragraph. More...
 
OUString GetLabelFollowedBy () const
 Retrieves the character following the list label, if the paragraph's list level defines one. More...
 
void fillSoftPageBreakList (SwSoftPageBreakList &rBreak) const
 
LanguageType GetLang (const sal_Int32 nBegin, const sal_Int32 nLen=0, sal_uInt16 nScript=0) const
 
bool IsSymbolAt (sal_Int32 nBegin) const
 in ndcopy.cxx More...
 
virtual SwContentNodeMakeCopy (SwDoc &, SwNode &rWhere, bool bNewFrames) const override
 
bool Hyphenate (SwInterHyphInfo &rHyphInf)
 Interactive hyphenation: we find TextFrame and call its CalcHyph. More...
 
void DelSoftHyph (const sal_Int32 nStart, const sal_Int32 nEnd)
 
OUString GetExpandText (SwRootFrame const *pLayout, const sal_Int32 nIdx=0, const sal_Int32 nLen=-1, const bool bWithNum=false, const bool bAddSpaceAfterListLabelStr=false, const bool bWithSpacesForLevel=false, const ExpandMode eAdditionalMode=ExpandMode::ExpandFootnote|ExpandMode::HideFieldmarkCommands) const
 add 4th optional parameter <bAddSpaceAfterListLabelStr> indicating, when <bWithNum = true> that a space is inserted after the string for the list label. More...
 
bool CopyExpandText (SwTextNode &rDestNd, const SwContentIndex *pDestIdx, sal_Int32 nIdx, sal_Int32 nLen, SwRootFrame const *pLayout, bool bWithNum=false, bool bWithFootnote=true, bool bReplaceTabsWithSpaces=false) const
 
OUString GetRedlineText () const
 
sal_Int32 GetDropLen (sal_Int32 nWishLen) const
 nWishLen = 0 indicates that we want a whole word More...
 
bool GetDropSize (int &rFontHeight, int &rDropHeight, int &rDropDescent) const
 Passes back info needed on the dropcap dimensions. More...
 
bool CalcHiddenParaField ()
 Hidden Paragraph Field: More...
 
void SetCalcHiddenParaField ()
 set CalcVisible flags More...
 
bool IsHiddenByParaField () const
 is the paragraph visible? More...
 
bool HasHiddenCharAttribute (bool bWholePara) const
 Hidden Paragraph Field: More...
 
void SetCalcHiddenCharFlags () const
 
bool IsHidden () const
 
virtual void Update (SwContentIndex const &rPos, const sal_Int32 nChangeLen, UpdateMode eMode) override
 override SwContentIndexReg More...
 
void TransliterateText (utl::TransliterationWrapper &rTrans, sal_Int32 nStart, sal_Int32 nEnd, SwUndoTransliterate *pUndo, bool bUseRedlining=false)
 change text to Upper/Lower/Hiragana/Katakana/... More...
 
bool CountWords (SwDocStat &rStat, sal_Int32 nStart, sal_Int32 nEnd) const
 count words in given range - returns true if we refreshed out count More...
 
bool IsNotificationEnabled () const
 Checks some global conditions like loading or destruction of document to economize notifications. More...
 
bool IsNotifiable () const
 Checks a temporary notification blocker and the global conditions of IsNotificationEnabled() More...
 
void SetListRestart (bool bRestart)
 
bool IsListRestart () const
 
void SetAttrListRestartValue (SwNumberTree::tSwNumTreeNumber nNum)
 
bool HasAttrListRestartValue () const
 
SwNumberTree::tSwNumTreeNumber GetAttrListRestartValue () const
 
SwNumberTree::tSwNumTreeNumber GetActualListStartValue () const
 
void SetCountedInList (bool bCounted)
 
bool IsCountedInList () const
 
void AddToList ()
 
void AddToListRLHidden ()
 
void AddToListOrig ()
 
void RemoveFromList ()
 
void RemoveFromListRLHidden ()
 
void RemoveFromListOrig ()
 
bool IsInList () const
 
bool IsFirstOfNumRule (SwRootFrame const &rLayout) const
 
SAL_DLLPRIVATE unotools::WeakReference< SwXParagraph > const & GetXParagraph () const
 
SAL_DLLPRIVATE void SetXParagraph (rtl::Reference< SwXParagraph > const &xParagraph)
 
virtual ::sfx2::IXmlIdRegistryGetRegistry () override
 sfx2::Metadatable More...
 
virtual bool IsInClipboard () const override
 
virtual bool IsInUndo () const override
 Is this node in the undo array? More...
 
virtual bool IsInContent () const override
 
virtual css::uno::Reference< css::rdf::XMetadatable > MakeUnoObject () override
 
bool IsCollapse () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
 Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More...
 
sal_uInt32 GetRsid (sal_Int32 nStt, sal_Int32 nEnd) const
 
sal_uInt32 GetParRsid () const
 
bool CompareRsid (const SwTextNode &rTextNode, sal_Int32 nStt1, sal_Int32 nStt2) const
 
bool CompareParRsid (const SwTextNode &rTextNode) const
 
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper () const override
 
void FormatDropNotify (const SwFormatDrop &rDrop) override
 
void SetInSwUndo (bool bInUndo)
 
const SfxPoolItemGetAttr (sal_uInt16 nWhich, bool bInParent=true) const
 End: Data collected during idle time. More...
 
template<class T >
const T & GetAttr (TypedWhichId< T > nWhich, bool bInParent=true) const
 End: Data collected during idle time. More...
 
bool GetAttr (SfxItemSet &rSet) const
 End: Data collected during idle time. More...
 
- Public Member Functions inherited from SwContentNode
virtual SwContentFrameMakeFrame (SwFrame *pSib)=0
 MakeFrame will be called for a certain layout pSib is another SwFrame of the same layout (e.g. More...
 
virtual SwContentNodeJoinNext ()
 
bool CanJoinNext (SwNodeIndex *pIdx=nullptr) const
 Is it possible to join two nodes? In pIdx the second position can be returned. More...
 
bool CanJoinNext (SwPosition *pIdx) const
 Can we join two Nodes? We can return the 2nd position in pIdx. More...
 
bool CanJoinPrev (SwNodeIndex *pIdx=nullptr) const
 Can we join two Nodes? We can return the 2nd position in pIdx. More...
 
bool GoNext (SwContentIndex *, SwCursorSkipMode nMode) const
 
bool GoNext (SwPosition *, SwCursorSkipMode nMode) const
 
bool GoPrevious (SwContentIndex *, SwCursorSkipMode nMode) const
 
SwContentFramegetLayoutFrame (const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
 
SwRect FindLayoutRect (const bool bPrtArea=false, const Point *pPoint=nullptr) const
 
SwRect FindPageFrameRect () const
 
void MakeFramesForAdjacentContentNode (SwContentNode &rNode)
 Method creates all views of document for given node. More...
 
void DelFrames (SwRootFrame const *pLayout)
 Method deletes all views of document for the node. More...
 
virtual sal_Int32 Len () const
 
virtual SwContentNodeMakeCopy (SwDoc &, SwNode &rWhere, bool bNewFrames) const =0
 
virtual bool GetInfo (SfxPoolItem &) const override
 Get information from Client. More...
 
const SfxPoolItemGetAttr (sal_uInt16 nWhich, bool bInParent=true) const
 SS for PoolItems: hard attributation. More...
 
template<class T >
const T & GetAttr (TypedWhichId< T > nWhich, bool bInParent=true) const
 
bool GetAttr (SfxItemSet &rSet) const
 
virtual bool SetAttr (const SfxPoolItem &)
 made virtual More...
 
virtual bool SetAttr (const SfxItemSet &rSet)
 
virtual bool ResetAttr (sal_uInt16 nWhich1, sal_uInt16 nWhich2=0)
 
virtual bool ResetAttr (const std::vector< sal_uInt16 > &rWhichArr)
 
virtual sal_uInt16 ResetAllAttr ()
 
const SfxPoolItemGetNoCondAttr (sal_uInt16 nWhich, bool bInParents) const
 Obtains attribute that is not delivered via conditional style! More...
 
template<class T >
const T * GetNoCondAttr (TypedWhichId< T > nWhich, bool bInParents) const
 
const SwAttrSetGetSwAttrSet () const
 Does node has already its own auto-attributes? Access to SwAttrSet. More...
 
const SwAttrSetGetpSwAttrSet () const
 
bool HasSwAttrSet () const
 
virtual SwFormatCollChgFormatColl (SwFormatColl *)
 
SwFormatCollGetFormatColl () const
 
SwFormatCollGetAnyFormatColl () const
 
void SetCondFormatColl (SwFormatColl *)
 
SwFormatCollGetCondFormatColl () const
 
bool IsAnyCondition (SwCollCondition &rTmp) const
 
void ChkCondColl (const SwTextFormatColl *pColl=nullptr)
 
bool InvalidateNumRule ()
 Invalidates NumRule at the node. More...
 
SvxFrameDirection GetTextDirection (const SwPosition &rPos, const Point *pPt) const
 determines the text direction for a certain position. More...
 
void SetModifyAtAttr (bool bSetModifyAtAttr) const
 
bool GetModifyAtAttr () const
 
virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper () const
 
void UpdateAttr (const SwUpdateAttr &)
 
- Public Member Functions inherited from SwNode
bool IsCreateFrameWhenHidingRedlines () const
 
void SetRedlineMergeFlag (Merge const eMerge)
 
Merge GetRedlineMergeFlag () const
 
virtual ~SwNode () override=0
 the = 0 forces the class to be an abstract base class, but the dtor can be still called from subclasses More...
 
tools::Long GetSerial () const
 
sal_uInt16 GetSectionLevel () const
 Returns the section level at the position given by aIndex. More...
 
SwNodeOffset StartOfSectionIndex () const
 
const SwStartNodeStartOfSectionNode () const
 
SwStartNodeStartOfSectionNode ()
 
SwNodeOffset EndOfSectionIndex () const
 
const SwEndNodeEndOfSectionNode () const
 
SwEndNodeEndOfSectionNode ()
 
sal_uInt8 GetAutoFormatLvl () const
 
void SetAutoFormatLvl (sal_uInt8 nVal)
 
bool IsIgnoreDontExpand () const
 
void SetIgnoreDontExpand (bool bNew)
 
SwNodeType GetNodeType () const
 
SwStartNodeGetStartNode ()
 
const SwStartNodeGetStartNode () const
 
SwContentNodeGetContentNode ()
 
const SwContentNodeGetContentNode () const
 
SwEndNodeGetEndNode ()
 
const SwEndNodeGetEndNode () const
 
SwTextNodeGetTextNode ()
 Inline methods from Node.hxx. More...
 
const SwTextNodeGetTextNode () const
 
SwOLENodeGetOLENode ()
 Inline methods from Node.hxx. More...
 
const SwOLENodeGetOLENode () const
 
SwNoTextNodeGetNoTextNode ()
 
const SwNoTextNodeGetNoTextNode () const
 
SwGrfNodeGetGrfNode ()
 
const SwGrfNodeGetGrfNode () const
 
SwTableNodeGetTableNode ()
 
const SwTableNodeGetTableNode () const
 
SwSectionNodeGetSectionNode ()
 
const SwSectionNodeGetSectionNode () const
 
bool IsStartNode () const
 
bool IsContentNode () const
 
bool IsEndNode () const
 
bool IsTextNode () const
 
bool IsTableNode () const
 
bool IsSectionNode () const
 
bool IsOLENode () const
 
bool IsNoTextNode () const
 
bool IsGrfNode () const
 
bool IsInRedlines () const
 Checks if this node is in redlines. More...
 
SwTableNodeFindTableNode ()
 Search table node, in which it is. More...
 
const SwTableNodeFindTableNode () const
 
SwSectionNodeFindSectionNode ()
 Search section node, in which it is. More...
 
const SwSectionNodeFindSectionNode () const
 
SwStartNodeFindSttNodeByType (SwStartNodeType eTyp)
 
const SwStartNodeFindSttNodeByType (SwStartNodeType eTyp) const
 
const SwStartNodeFindTableBoxStartNode () const
 
const SwStartNodeFindFlyStartNode () const
 
const SwStartNodeFindFootnoteStartNode () const
 
const SwStartNodeFindHeaderStartNode () const
 
const SwStartNodeFindFooterStartNode () const
 
SwNodesGetNodes ()
 Node is in which nodes-array/doc? More...
 
const SwNodesGetNodes () const
 
SwDocGetDoc ()
 
const SwDocGetDoc () const
 
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 Provides access to the document setting interface. More...
 
const IDocumentDeviceAccessgetIDocumentDeviceAccess () const
 Provides access to the document device interface. More...
 
const IDocumentMarkAccessgetIDocumentMarkAccess () const
 Provides access to the document bookmark interface. More...
 
const IDocumentRedlineAccessgetIDocumentRedlineAccess () const
 Provides access to the document redline interface. More...
 
const IDocumentStylePoolAccessgetIDocumentStylePoolAccess () const
 Provides access to the document style pool interface. More...
 
const IDocumentDrawModelAccessgetIDocumentDrawModelAccess () const
 Provides access to the document draw model interface. More...
 
const IDocumentLayoutAccessgetIDocumentLayoutAccess () const
 Provides access to the document layout interface. More...
 
IDocumentLayoutAccessgetIDocumentLayoutAccess ()
 
const IDocumentLinksAdministrationgetIDocumentLinksAdministration () const
 Provides access to the document links administration interface. More...
 
IDocumentLinksAdministrationgetIDocumentLinksAdministration ()
 
const IDocumentFieldsAccessgetIDocumentFieldsAccess () const
 Provides access to the document fields administration interface. More...
 
IDocumentFieldsAccessgetIDocumentFieldsAccess ()
 
IDocumentContentOperationsgetIDocumentContentOperations ()
 Provides access to the document content operations interface. More...
 
IStyleAccessgetIDocumentStyleAccess ()
 Provides access to the document automatic styles interface. More...
 
IDocumentListItemsgetIDocumentListItems ()
 Provides access to the document's numbered items interface. More...
 
bool IsInVisibleArea (SwViewShell const *pSh) const
 Is node in the visible area of the Shell? More...
 
bool IsInProtectSect () const
 Is node in a protected area? More...
 
bool IsProtect () const
 Is node in something that is protected (range, frame, table cells ... including anchor in case of frames or footnotes)? More...
 
const SwPageDescFindPageDesc (SwNodeOffset *pPgDescNdIdx=nullptr) const
 Search PageDesc with which this node is formatted. More...
 
SwFrameFormatGetFlyFormat () const
 If node is in a fly return the respective format. More...
 
SwTableBoxGetTableBox () const
 If node is in a table return the respective table box. More...
 
SwNodeOffset GetIndex () const
 
const SwTextNodeFindOutlineNodeOfLevel (sal_uInt8 nLvl, SwRootFrame const *pLayout=nullptr) const
 
sal_uInt8 HasPrevNextLayNode () const
 
std::vector< SwFrameFormat * > const & GetAnchoredFlys () const
 
void AddAnchoredFly (SwFrameFormat *)
 
void RemoveAnchoredFly (SwFrameFormat *)
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 Dumps the node structure to the given destination (file nodes.xml in the current directory by default) More...
 
bool operator== (const SwNode &rOther) const
 
bool operator!= (const SwNode &rOther) const
 
bool operator< (const SwNode &rOther) const
 
bool operator<= (const SwNode &rOther) const
 
bool operator> (const SwNode &rOther) const
 
bool operator>= (const SwNode &rOther) const
 
sw::AccessibilityCheckStatusgetAccessibilityCheckStatus ()
 
void resetAndQueueAccessibilityCheck ()
 
- Public Member Functions inherited from sw::BorderCacheOwner
 BorderCacheOwner ()
 
 BorderCacheOwner (BorderCacheOwner &)
 
BorderCacheOwneroperator= (const BorderCacheOwner &)
 
 ~BorderCacheOwner ()
 
bool IsInCache () const
 
void InvalidateInSwCache (const sal_uInt16)
 
virtual void FormatDropNotify (const SwFormatDrop &)=0
 

Static Public Member Functions

static bool IsIgnoredCharFormatForNumbering (const sal_uInt16 nWhich, bool bIsCharStyle=false)
 In MS Word, the font underline setting of the paragraph end position won't affect the formatting of numbering, so we ignore it. More...
 
- Static Public Member Functions inherited from SwContentNode
static std::unique_ptr< SwOLENodesCreateOLENodesArray (const SwFormatColl &rColl, bool bOnlyWithInvalidSize)
 

Private Member Functions

SAL_DLLPRIVATE SwTextNode (SwNode &rWhere, SwTextFormatColl *pTextColl, const SfxItemSet *pAutoAttr=nullptr)
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 
SAL_DLLPRIVATE void CopyAttr (SwTextNode *pDest, const sal_Int32 nStart, const sal_Int32 nOldPos)
 Copies the attributes at nStart to pDest. More...
 
SAL_DLLPRIVATE SwTextNodeMakeNewTextNode (SwNode &, bool bNext=true, bool bChgFollow=true)
 
SAL_DLLPRIVATE void CutImpl (SwTextNode *const pDest, const SwContentIndex &rDestStart, const SwContentIndex &rStart, sal_Int32 nLen, const bool bUpdate=true)
 
SAL_DLLPRIVATE void MoveTextAttr_To_AttrSet ()
 Move all comprising hard attributes to the AttrSet of the paragraph. More...
 
virtual SAL_DLLPRIVATE void NewAttrSet (SwAttrPool &) override
 Create the specific AttrSet. More...
 
bool IsCalcHiddenCharFlags () const
 Optimization: Asking for information about hidden characters at SwScriptInfo updates these flags. More...
 
void SetHiddenCharAttribute (bool bNewHiddenCharsHidePara, bool bNewContainsHiddenChars) const
 
SAL_DLLPRIVATE void CalcHiddenCharFlags () const
 
SAL_DLLPRIVATE void SetLanguageAndFont (const SwPaM &rPaM, LanguageType nLang, sal_uInt16 nLangWhichId, const vcl::Font *pFont, sal_uInt16 nFontWhichId)
 
void TryDeleteSwpHints ()
 
SAL_DLLPRIVATE void impl_FormatToTextAttr (const SfxItemSet &i_rAttrSet)
 Does the hard work of SwTextNode::FormatToTextAttr: the real conversion of items to automatic styles. More...
 
const SwTextInputFieldGetOverlappingInputField (const SwTextAttr &rTextAttr) const
 
void DelFrames_TextNodePart ()
 
void HandleNonLegacyHint (const SfxHint &)
 

Private Attributes

std::unique_ptr< SwpHintsm_pSwpHints
 May be 0. More...
 
std::unique_ptr< SwNodeNummpNodeNum
 Numbering for this paragraph. More...
 
std::unique_ptr< SwNodeNummpNodeNumRLHidden
 Numbering for this paragraph (hidden redlines) More...
 
std::unique_ptr< SwNodeNummpNodeNumOrig
 Numbering for this paragraph (before changes) More...
 
OUString m_Text
 
sw::ParagraphIdleData m_aParagraphIdleData
 
bool m_bContainsHiddenChars: 1
 Some of the chars this para are hidden. More...
 
bool m_bHiddenCharsHidePara: 1
 The whole paragraph is hidden because of the hidden text attribute. More...
 
bool m_bRecalcHiddenCharFlags: 1
 The last two flags have to be recalculated if this flag is set: More...
 
bool m_bLastOutlineState: 1
 
bool m_bNotifiable
 
bool mbEmptyListStyleSetDueToSetOutlineLevelAttr
 
bool mbInSetOrResetAttr
 boolean, indicating that a <SetAttr(..)> or <ResetAttr(..)> or <ResetAllAttr(..)> method is running. More...
 
bool m_bInUndo
 Is an undo operation in progress? More...
 
std::optional< OUString > m_oNumStringCache
 
unotools::WeakReference< SwXParagraphm_wXParagraph
 
drawinglayer::attribute::SdrAllFillAttributesHelperPtr maFillAttributes
 

Friends

class SwContentNode
 
class SwDoc
 For creating the first TextNode. More...
 
class SwNodes
 
class SwTextFrame
 
class SwScriptInfo
 
class sw::TextNodeNotificationSuppressor
 

Additional Inherited Members

- Public Types inherited from SwNode
enum class  Merge {
  None ,
  First ,
  NonFirst ,
  Hidden
}
 sw_redlinehide: redline node merge state More...
 
- Protected Member Functions inherited from SwContentNode
 SwContentNode ()
 only used by SwContentNodeTmp in SwTextNode::Update More...
 
 SwContentNode (const SwNode &rWhere, const SwNodeType nNodeType, SwFormatColl *pFormatColl)
 
virtual ~SwContentNode () override=0
 the = 0 forces the class to be an abstract base class, but the dtor can be still called from subclasses More...
 
virtual void NewAttrSet (SwAttrPool &)=0
 Make respective nodes create the specific AttrSets. More...
 
sal_uInt16 ClearItemsFromAttrSet (const std::vector< sal_uInt16 > &rWhichIds)
 There some functions that like to remove items from the internal SwAttrSet (handle): More...
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SwNode
 SwNode ()
 only used by SwContentNodeTmp in SwTextNode::Update More...
 
 SwNode (const SwNode &rWhere, const SwNodeType nNodeId)
 
 SwNode (SwNodes &rNodes, SwNodeOffset nPos, const SwNodeType nNodeId)
 for the initial StartNode More...
 
- Protected Member Functions inherited from sw::FormatDropDefiner
virtual ~FormatDropDefiner ()
 
- Protected Attributes inherited from SwContentNode
std::shared_ptr< const SfxItemSetmpAttrSet
 Attribute-set for all auto attributes of a ContentNode. More...
 
- Protected Attributes inherited from SwNode
SwStartNodem_pStartOfSection
 

Detailed Description

SwTextNode is a paragraph in the document model.

Definition at line 108 of file ndtxt.hxx.

Constructor & Destructor Documentation

◆ SwTextNode()

SwTextNode::SwTextNode ( SwNode rWhere,
SwTextFormatColl pTextColl,
const SfxItemSet pAutoAttr = nullptr 
)
private

◆ ~SwTextNode()

SwTextNode::~SwTextNode ( )
overridevirtual

Member Function Documentation

◆ AddToList()

void SwTextNode::AddToList ( )

◆ AddToListOrig()

void SwTextNode::AddToListOrig ( )

◆ AddToListRLHidden()

void SwTextNode::AddToListRLHidden ( )

◆ AppendNode()

SwContentNode * SwTextNode::AppendNode ( const SwPosition rPos)

◆ AreListLevelIndentsApplicable()

sw::ListLevelIndents SwTextNode::AreListLevelIndentsApplicable ( ) const

Determines, if the list level indent attributes can be applied to the paragraph.

The list level indents can be applied to the paragraph under the one of following conditions:

  • the list style is directly applied to the paragraph and the paragraph has no own indent attributes.
  • the list style is applied to the paragraph through one of its paragraph styles, the paragraph has no own indent attributes and on the paragraph style hierarchy from the paragraph to the paragraph style with the list style no indent attributes are found.
Returns
bitmask

Definition at line 4614 of file ndtxt.cxx.

References AreListLevelIndentsApplicableImpl(), sw::LeftMargin, sw::No, RES_MARGIN_FIRSTLINE(), and RES_MARGIN_TEXTLEFT().

Referenced by SwTextMargin::CtorInitTextMargin(), GetAdditionalIndentForStartingNewList(), GetFirstLineOfsWithNum(), GetLeftMarginForTabCalculation(), GetLeftMarginWithNum(), GetListTabStopPosition(), lcl_MergeListLevelIndentAsLRSpaceItem(), SwDoc::MoveLeftMargin(), MSWordExportBase::OutputTextNode(), and SwWW8ImplReader::Read_LR().

◆ AreListLevelIndentsApplicableImpl()

bool SwTextNode::AreListLevelIndentsApplicableImpl ( sal_uInt16  nWhich) const

◆ CalcHiddenCharFlags()

void SwTextNode::CalcHiddenCharFlags ( ) const
private

Definition at line 4740 of file ndtxt.cxx.

References SwScriptInfo::GetBoundsOfHiddenRange().

◆ CalcHiddenParaField()

bool SwTextNode::CalcHiddenParaField ( )
inline

Hidden Paragraph Field:

Definition at line 762 of file ndtxt.hxx.

Referenced by SwTextField::ExpandTextField().

◆ ChgFormatColl()

SwFormatColl * SwTextNode::ChgFormatColl ( SwFormatColl pNewColl)
overridevirtual

◆ ChgTextCollUpdateNum()

void SwTextNode::ChgTextCollUpdateNum ( const SwTextFormatColl pOld,
const SwTextFormatColl pNew 
)

◆ ClearGrammarCheck()

void SwTextNode::ClearGrammarCheck ( )

◆ ClearSmartTags()

void SwTextNode::ClearSmartTags ( )

◆ ClearSwpHintsArr()

void SwTextNode::ClearSwpHintsArr ( bool  bDelFields)

◆ ClearWrong()

void SwTextNode::ClearWrong ( )

◆ CompareParRsid()

bool SwTextNode::CompareParRsid ( const SwTextNode rTextNode) const

Definition at line 5392 of file ndtxt.cxx.

References GetParRsid().

◆ CompareRsid()

bool SwTextNode::CompareRsid ( const SwTextNode rTextNode,
sal_Int32  nStt1,
sal_Int32  nStt2 
) const

Definition at line 5400 of file ndtxt.cxx.

References GetRsid().

◆ Convert()

bool SwTextNode::Convert ( SwConversionArgs rArgs)

◆ CopyAttr()

void SwTextNode::CopyAttr ( SwTextNode pDest,
const sal_Int32  nStart,
const sal_Int32  nOldPos 
)
private

◆ CopyCollFormat()

void SwTextNode::CopyCollFormat ( SwTextNode rDestNd,
bool  bUndoForChgFormatColl = true 
)

◆ CopyExpandText()

bool SwTextNode::CopyExpandText ( SwTextNode rDestNd,
const SwContentIndex pDestIdx,
sal_Int32  nIdx,
sal_Int32  nLen,
SwRootFrame const *  pLayout,
bool  bWithNum = false,
bool  bWithFootnote = true,
bool  bReplaceTabsWithSpaces = false 
) const

◆ CopyText() [1/3]

void SwTextNode::CopyText ( SwTextNode *const  pDest,
const SwContentIndex rDestStart,
const SwContentIndex rStart,
sal_Int32  nLen,
const bool  bForceCopyOfAllAttrs = false 
)

◆ CopyText() [2/3]

void SwTextNode::CopyText ( SwTextNode *const  pDest,
const SwContentIndex rDestStart,
const SwPosition rStart,
sal_Int32  nLen,
const bool  bForceCopyOfAllAttrs = false 
)

Definition at line 2078 of file ndtxt.cxx.

References CopyText(), and SwPosition::nContent.

◆ CopyText() [3/3]

void SwTextNode::CopyText ( SwTextNode *const  pDest,
const SwContentIndex rStart,
const sal_Int32  nLen,
const bool  bForceCopyOfAllAttrs 
)

Actions on text and attributes.

copy text and attributes to node pDest

introduce optional parameter to control, if all attributes have to be copied.

Definition at line 2069 of file ndtxt.cxx.

References CopyText(), and m_Text.

Referenced by sw::DocumentContentOperationsManager::CopyImplImpl(), CopyText(), and MakeCopy().

◆ CountWords()

bool SwTextNode::CountWords ( SwDocStat rStat,
sal_Int32  nStart,
sal_Int32  nEnd 
) const

◆ CutImpl()

void SwTextNode::CutImpl ( SwTextNode *const  pDest,
const SwContentIndex rDestStart,
const SwContentIndex rStart,
sal_Int32  nLen,
const bool  bUpdate = true 
)
private

◆ CutText() [1/2]

void SwTextNode::CutText ( SwTextNode *const  pDest,
const SwContentIndex rDestStart,
const SwContentIndex rStart,
const sal_Int32  nLen 
)
inline

Definition at line 912 of file ndtxt.hxx.

References CutImpl().

◆ CutText() [2/2]

void SwTextNode::CutText ( SwTextNode *const  pDest,
const SwContentIndex rStart,
const sal_Int32  nLen 
)

◆ DeleteAttribute()

void SwTextNode::DeleteAttribute ( SwTextAttr *const  pTextAttr)

◆ DeleteAttributes()

void SwTextNode::DeleteAttributes ( const sal_uInt16  nWhich,
const sal_Int32  nStart,
const sal_Int32  nEnd = 0 
)

◆ DelFrames_TextNodePart()

void SwTextNode::DelFrames_TextNodePart ( )
private

◆ DelSoftHyph()

void SwTextNode::DelSoftHyph ( const sal_Int32  nStart,
const sal_Int32  nEnd 
)

Definition at line 1876 of file thints.cxx.

References CHAR_SOFTHYPHEN, EraseText(), and m_Text.

◆ DestroyAttr()

void SwTextNode::DestroyAttr ( SwTextAttr pAttr)

◆ DontExpandFormat()

bool SwTextNode::DontExpandFormat ( sal_Int32  nContentIdx,
bool  bFlag = true,
bool  bFormatToTextAttributes = true 
)

◆ DoNum()

void SwTextNode::DoNum ( std::function< void(SwNodeNum &)> const &  rFunc)

Definition at line 4104 of file ndtxt.cxx.

References mpNodeNum, mpNodeNumOrig, and mpNodeNumRLHidden.

◆ dumpAsXml()

void SwTextNode::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Dumps the node structure to the given destination (file nodes.xml in the current directory by default)

Reimplemented from SwNode.

Definition at line 5335 of file ndtxt.cxx.

References SwpHints::Count(), SfxItemSet::dumpAsXml(), SwTextAttr::dumpAsXml(), SwpHints::Get(), SwContentNode::GetFormatColl(), SwNode::GetIndex(), GetName(), SwContentNode::GetSwAttrSet(), GetSwpHints(), GetText(), HasHints(), SwContentNode::HasSwAttrSet(), and i.

◆ EraseText() [1/2]

void SwTextNode::EraseText ( const SwContentIndex rIdx,
const sal_Int32  nCount = SAL_MAX_INT32,
const SwInsertFlags  nMode = SwInsertFlags::DEFAULT 
)

delete text content ATTENTION: must not be called with a range that overlaps the start of an attribute with both extent and dummy char

Definition at line 2777 of file ndtxt.cxx.

References CHECK_SWPHINTS, DestroyAttr(), EMPTYEXPAND, SwContentIndex::GetContentNode(), SwTextAttr::GetEnd(), SwContentIndex::GetIndex(), SwTextAttr::GetStart(), SwTextAttr::HasDummyChar(), i, isTXTATR(), m_pSwpHints, m_Text, nCount, RES_TXTATR_CJK_RUBY(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), SAL_MAX_INT32, SetCalcHiddenCharFlags(), TryDeleteSwpHints(), u, Update(), and SwTextAttr::Which().

Referenced by CalculateFlySize(), SwUndoDelete::CanGrouping(), SwUndoOverwrite::CanGrouping(), SwDDETable::ChangeContent(), ChgNumToText(), ChgTextToNum(), SwFEShell::Copy(), CopyExpandText(), CopyText(), SwUndoSaveContent::DelContentIndex(), DeleteAttribute(), DeleteAttributes(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwUndoFlyBase::DelFly(), sw::DocumentLayoutManager::DelLayoutFormat(), DelSoftHyph(), EraseText(), InsertHint(), lcl_SaveAnchor(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoOverwrite::RedoImpl(), SwUndoDelete::SaveContent(), SwExtTextInput::SetInputData(), SwHTMLParser::StripTrailingLF(), SwUndoOverwrite::SwUndoOverwrite(), SwNodes::TextToTable(), SwUndoInsert::UndoImpl(), SwUndoOverwrite::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwNodes::UndoTableToText(), SwTOXBaseSection::UpdatePageNum_(), and SwExtTextInput::~SwExtTextInput().

◆ EraseText() [2/2]

void SwTextNode::EraseText ( const SwPosition rIdx,
const sal_Int32  nCount = SAL_MAX_INT32,
const SwInsertFlags  nMode = SwInsertFlags::DEFAULT 
)

Definition at line 2771 of file ndtxt.cxx.

References EraseText(), SwPosition::nContent, and nCount.

◆ FileLoadedInitHints()

void SwTextNode::FileLoadedInitHints ( )

initialize the hints after file loading (which takes shortcuts)

Definition at line 277 of file ndtxt.cxx.

References m_pSwpHints.

Referenced by sw_MergePortions().

◆ fillSoftPageBreakList()

void SwTextNode::fillSoftPageBreakList ( SwSoftPageBreakList rBreak) const

◆ FormatDropNotify()

void SwTextNode::FormatDropNotify ( const SwFormatDrop rDrop)
inlineoverridevirtual

Implements sw::FormatDropDefiner.

Definition at line 861 of file ndtxt.hxx.

◆ FormatToTextAttr()

void SwTextNode::FormatToTextAttr ( SwTextNode pNd)

◆ GCAttr()

void SwTextNode::GCAttr ( )

◆ GetActualListLevel()

int SwTextNode::GetActualListLevel ( SwListRedlineType  eRedline = SwListRedlineType::SHOW) const

Returns the actual list level of this text node, when it is a list item.

Returns
the actual list level of this text node, if it is a list item, -1 otherwise

Definition at line 4248 of file ndtxt.cxx.

References SwNumberTreeNode::GetLevelInListTree(), GetNum(), mpNodeNumRLHidden, and SHOW.

Referenced by SwUndoDelNum::AddNode(), SwTextFrame::CalcAdditionalFirstLineOffset(), SwChapterField::ChangeExpansion(), SwContentTree::FillTransferData(), GetAdditionalIndentForStartingNewList(), SwUnoCursorHelper::getCursorPropertyValue(), GetExpandText(), GetFirstLineOfsWithNum(), GetLabelFollowedBy(), GetLeftMarginForTabCalculation(), GetLeftMarginWithNum(), GetListTabStopPosition(), SwWW8FltControlStack::GetNumFormatFromStack(), sw::util::GetNumFormatFromTextNode(), SwEditShell::GetNumLevel(), GetNumString(), sw::ToxTextGenerator::GetNumStringOfFirstNode(), SwEditShell::GetPaMAttr(), SwWrtShell::GetSelectionType(), HasBullet(), HasMarkedLabel(), HasNumber(), HasVisibleNumberingOrBullet(), SwHTMLParser::InsertImage(), lcl_CreateOutlineString(), lcl_dbg_out(), lcl_FindOutlineNum(), lcl_GotoNextPrevNum(), lcl_IsNoEndTextAttrAtPos(), lcl_MergeListLevelIndentAsLRSpaceItem(), lcl_SetRuleChgd(), MakeRefNumStr(), SwDoc::MoveLeftMargin(), SwEditShell::MoveNumParas(), SwTextFormatter::NewNumberPortion(), numfunc::NumDownChangesIndent(), SwWrtShell::NumOrBulletOff(), SwWrtShell::NumOrBulletOn(), SwDoc::NumOrNoNum(), SwDoc::NumUpDown(), OutASC_SwTextNode(), OutHTML_NumberBulletListStart(), OutHTML_SwFormat(), MSWordExportBase::OutputTextNode(), AttributeOutputBase::ParaNumRule(), RtfAttributeOutput::ParaNumRule_Impl(), SwWW8ImplReader::Read_LR(), SwHTMLNumRuleInfo::Set(), SwTaggedPDFHelper::SetAttributes(), SwEditShell::SetIndent(), SwEditShell::SetNumberingRestart(), and SwCursorShell::UpdateMarkedListLevel().

◆ GetActualListStartValue()

SwNumberTree::tSwNumTreeNumber SwTextNode::GetActualListStartValue ( ) const

◆ GetAdditionalIndentForStartingNewList()

SwTwips SwTextNode::GetAdditionalIndentForStartingNewList ( ) const

◆ GetAttr() [1/3]

const SfxPoolItem & SwContentNode::GetAttr ( sal_uInt16  nWhich,
bool  bInParent = true 
) const
inline

◆ GetAttr() [2/3]

bool SwContentNode::GetAttr ( SfxItemSet rSet) const

End: Data collected during idle time.

Definition at line 476 of file node.cxx.

◆ GetAttr() [3/3]

template<class T >
const T & SwContentNode::GetAttr ( TypedWhichId< T >  nWhich,
bool  bInParent = true 
) const
inline

End: Data collected during idle time.

Definition at line 474 of file node.hxx.

◆ GetAttrListLevel()

int SwTextNode::GetAttrListLevel ( ) const

◆ GetAttrListRestartValue()

SwNumberTree::tSwNumTreeNumber SwTextNode::GetAttrListRestartValue ( ) const

◆ GetAttrOutlineContentVisible()

void SwTextNode::GetAttrOutlineContentVisible ( bool &  bOutlineContentVisibleAttr)

GetAttrOutlineContentVisible.

Parameters
bOutlineContentVisibleAttrthe value stored in RES_PARATR_GRABBAG for 'OutlineContentVisibleAttr'
Returns
true if 'OutlineContentVisibleAttr' is found in RES_PARATR_GRABBAG

Definition at line 4183 of file ndtxt.cxx.

References GetAttr(), SfxGrabBagItem::GetGrabBag(), and RES_PARATR_GRABBAG().

Referenced by SwBaseShell::ExecDelete(), lcl_FoldedOutlineNodeEndOfParaSplit(), lcl_IsAllowed(), SwWrtShell::MakeOutlineContentVisible(), and SwEditWin::ToggleOutlineContentVisibility().

◆ GetAttrOutlineLevel()

int SwTextNode::GetAttrOutlineLevel ( ) const

Returns outline level of this text node.

If a text node has an outline number (i.e. it has an SwNodeNum and an outline numbering rule) the outline level is the level of this SwNodeNum.

If a text node has no outline number and has a paragraph style attached the outline level is the outline level of the paragraph style.

Otherwise the text node has no outline level (NO_NUMBERING).

NOTE: The outline level of text nodes is subject to change. The plan is to have an SwTextNode::nOutlineLevel member that is updated from a paragraph style upon appliance of that paragraph style.

Returns
outline level or NO_NUMBERING if there is no outline level

Definition at line 4168 of file ndtxt.cxx.

References GetAttr(), and RES_PARATR_OUTLINELEVEL().

Referenced by SwTaggedPDFHelper::BeginBlockStructureElements(), SwChapterField::ChangeExpansion(), SwContentType::FillMemberList(), SwNode::FindOutlineNodeOfLevel(), SwEditShell::GetCurrentParaOutlineLevel(), SwUnoCursorHelper::getCursorPropertyValue(), GetEndNode(), SwCursorShell::GetOutlinePos(), SwAutoCorrDoc::GetPrevPara(), GetStartNode(), SwContentNode::IsAnyCondition(), IsHeadingContained(), IsOutline(), SwEditShell::IsProtectedOutlinePara(), lcl_dbg_out(), lcl_FindOutlineNum(), lcl_FoldedOutlineNodeEndOfParaSplit(), SwWrtShell::MakeOutlineContentVisible(), SwWrtShell::MakeOutlineLevelsVisible(), SwCursorShell::MakeOutlineSel(), SwDoc::MoveOutlinePara(), SwDoc::OutlineUpDown(), sw::DocumentLinksAdministrationManager::SelectServerObj(), sw::DocumentFieldsManager::SetFieldsDirty(), and SwTOXBaseSection::UpdateOutline().

◆ GetDropLen()

sal_Int32 SwTextNode::GetDropLen ( sal_Int32  nWishLen) const

◆ GetDropSize()

bool SwTextNode::GetDropSize ( int rFontHeight,
int rDropHeight,
int rDropDescent 
) const

◆ GetExpandText()

OUString SwTextNode::GetExpandText ( SwRootFrame const *  pLayout,
const sal_Int32  nIdx = 0,
const sal_Int32  nLen = -1,
const bool  bWithNum = false,
const bool  bAddSpaceAfterListLabelStr = false,
const bool  bWithSpacesForLevel = false,
const ExpandMode  eAdditionalMode = ExpandMode::ExpandFootnote | ExpandMode::HideFieldmarkCommands 
) const

◆ GetFieldTextAttrAt()

SwTextField * SwTextNode::GetFieldTextAttrAt ( const sal_Int32  nIndex,
::sw::GetTextAttrMode const  eMode = ::sw::GetTextAttrMode::Expand 
) const

◆ GetFirstLineOfsWithNum()

bool SwTextNode::GetFirstLineOfsWithNum ( short &  rFirstOffset) const

◆ GetGrammarCheck() [1/2]

SwGrammarMarkUp * SwTextNode::GetGrammarCheck ( )

◆ GetGrammarCheck() [2/2]

SwWrongList const * SwTextNode::GetGrammarCheck ( ) const

Definition at line 2302 of file txtedt.cxx.

References GetGrammarCheck().

◆ GetLabelFollowedBy()

OUString SwTextNode::GetLabelFollowedBy ( ) const

Retrieves the character following the list label, if the paragraph's list level defines one.

Returns
the list tab stop position as string

Definition at line 4725 of file ndtxt.cxx.

References SwNumRule::Get(), GetActualListLevel(), SvxNumberFormat::GetLabelFollowedByAsString(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), HasVisibleNumberingOrBullet(), and SvxNumberFormat::LABEL_ALIGNMENT.

Referenced by SwTextFormatter::NewNumberPortion().

◆ GetLang()

LanguageType SwTextNode::GetLang ( const sal_Int32  nBegin,
const sal_Int32  nLen = 0,
sal_uInt16  nScript = 0 
) const

◆ GetLeftMarginForTabCalculation()

tools::Long SwTextNode::GetLeftMarginForTabCalculation ( ) const

return left margin for tab stop position calculation

Needed for text formatting Method considers new list level attributes, which also can provide a left margin value

Definition at line 3430 of file ndtxt.cxx.

References AreListLevelIndentsApplicable(), SwNumRule::Get(), GetActualListLevel(), SvxNumberFormat::GetIndentAt(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SwContentNode::GetSwAttrSet(), SvxTextLeftMarginItem::GetTextLeft(), SwAttrSet::GetTextLeftMargin(), SvxNumberFormat::LABEL_ALIGNMENT, and sw::LeftMargin.

Referenced by SwTextMargin::CtorInitTextMargin().

◆ GetLeftMarginWithNum()

tools::Long SwTextNode::GetLeftMarginWithNum ( bool  bTextLeft = false) const

◆ GetListId()

OUString SwTextNode::GetListId ( ) const

◆ GetListTabStopPosition()

bool SwTextNode::GetListTabStopPosition ( tools::Long nListTabStopPosition) const

Retrieves the list tab stop position, if the paragraph's list level defines one and this list tab stop has to merged into the tap stops of the paragraph.

Parameters
nListTabStopPositionoutput parameter - containing the list tab stop position
Returns
boolean - indicating, if a list tab stop position is provided

Definition at line 4691 of file ndtxt.cxx.

References AreListLevelIndentsApplicable(), sw::proofreadingiterator::get(), SwNumRule::Get(), GetActualListLevel(), SwNode::getIDocumentSettingAccess(), SvxNumberFormat::GetIndentAt(), SvxNumberFormat::GetLabelFollowedBy(), SvxNumberFormat::GetListtabPos(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SwContentNode::GetSwAttrSet(), SvxTextLeftMarginItem::GetTextLeft(), HasVisibleNumberingOrBullet(), IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, SvxNumberFormat::LABEL_ALIGNMENT, sw::LeftMargin, SvxNumberFormat::LISTTAB, and TABS_RELATIVE_TO_INDENT.

Referenced by SwLineInfo::CtorInitLineInfo().

◆ GetMinMaxSize()

void SwTextNode::GetMinMaxSize ( SwNodeOffset  nIndex,
sal_uLong rMin,
sal_uLong rMax,
sal_uLong rAbs 
) const

Is in itratr.

Changing this method very likely requires changing of GetScalingOfSelectedText This one is called exclusively from import filters, so there is no layout.

Definition at line 1012 of file itratr.cxx.

References CH_BLANK, CH_BREAK, CH_TAB, CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CHAR_HARDBLANK, CHAR_HARDHYPHEN, CHAR_SOFTHYPHEN, SwField::ExpandField(), SwFrameFormat::FindSdrObject(), FLYINCNT_MIN_WIDTH, SwAttrIter::GetAttr(), SdrObject::GetCurrentBoundRect(), IDocumentLayoutAccess::GetCurrentViewShell(), Application::GetDefaultDevice(), SwNode::GetDoc(), SwFormatField::GetField(), GetFirstLineOfsWithNum(), SwTextAttr::GetFlyCnt(), SwAttrIter::GetFnt(), SwTextAttr::GetFootnote(), SwTextAttr::GetFormatField(), SwFormatFlyCnt::GetFrameFormat(), SwFormat::GetFrameSize(), SwDoc::getIDocumentLayoutAccess(), SvxLRSpaceItem::GetLeft(), GetLeftMarginWithNum(), SwFormat::GetLRSpace(), SwAttrIter::GetNextAttr(), SwFormatFootnote::GetNumStr(), vcl::Window::GetOutDev(), SvxLRSpaceItem::GetRight(), SvxRightMarginItem::GetRight(), SwDoc::GetSpzFrameFormats(), SwContentNode::GetSwAttrSet(), SvxTextLeftMarginItem::GetTextLeft(), SwFont::GetTextSize_(), SvxSizeItem::GetWidth(), tools::Rectangle::GetWidth(), SwFormatFrameSize::GetWidthPercent(), SwViewShell::GetWin(), if(), lcl_MinMaxNode(), lcl_MinMaxString(), m_Text, SwScriptInfo::NextScriptChg(), nIndex, pOut, RES_DRAWFRMFMT(), RES_FLYFRMFMT(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), SwAttrIter::SeekAndChgAttrIter(), SwFormat::Which(), SwTextAttr::Which(), and Size::Width().

Referenced by CalculateFlySize(), and lcl_GetMinMaxSize().

◆ GetNum()

const SwNodeNum * SwTextNode::GetNum ( SwRootFrame const *  pLayout = nullptr,
SwListRedlineType  eRedline = SwListRedlineType::SHOW 
) const

◆ GetNumberVector()

SwNumberTree::tNumberVector SwTextNode::GetNumberVector ( SwRootFrame const *  pLayout = nullptr,
SwListRedlineType  eRedline = SwListRedlineType::SHOW 
) const

Definition at line 4125 of file ndtxt.cxx.

References GetNum().

Referenced by SwContentTree::FillTransferData(), GetNumString(), and lcl_CreateOutlineString().

◆ GetNumRule()

SwNumRule * SwTextNode::GetNumRule ( bool  bInParent = true) const

Returns numbering rule of this text node.

Parameters
bInParentsearch in parent attributes, too
Returns
numbering rule of this text node or NULL if none is set

Definition at line 2921 of file ndtxt.cxx.

References SwDoc::FindNumRulePtr(), SwNode::GetDoc(), SwContentNode::GetNoCondAttr(), SwFormat::GetNumRule(), SwContentNode::GetpSwAttrSet(), GetTextColl(), CntUnencodedStringItem::GetValue(), GetValue, SwContentNode::HasSwAttrSet(), and RES_PARATR_NUMRULE().

Referenced by SwUndoDelNum::AddNode(), AppendNode(), AreListLevelIndentsApplicableImpl(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), SwAutoFormat::BuildEnum(), SwTextFrame::CalcAdditionalFirstLineOffset(), SwChapterField::ChangeExpansion(), SwNodes::ChgNode(), SwDoc::DelNumRules(), SwHTMLParser::EndPara(), FindList(), SwTextFrame::FormatAdjust(), GetActualListStartValue(), GetListId(), sw::util::GetNormalNumRuleFromTextNode(), SwWW8FltControlStack::GetNumFormatFromStack(), sw::util::GetNumFormatFromTextNode(), SwEditShell::GetNumLevel(), SwDoc::GetNumRuleAtPos(), sw::ToxTextGenerator::GetNumStringOfFirstNode(), SwEditShell::GetPaMAttr(), SwEditShell::HasNumber(), SwTable::InsertRow(), SwUnoCursorHelper::IsNodeNumStart(), IsOutline(), lcl_CreateOutlineString(), lcl_dbg_out(), lcl_FindOutlineNum(), lcl_GotoNextPrevNum(), lcl_IsNoEndTextAttrAtPos(), lcl_MergeListLevelIndentAsLRSpaceItem(), lcl_SetTextFormatColl(), MakeNewTextNode(), MakeRefNumStr(), SwDoc::MakeUniqueNumRules(), SwDoc::MoveLeftMargin(), SwEditShell::MoveNumParas(), SwTextFormatter::NewNumberPortion(), SwDoc::NoNum(), numfunc::NumDownChangesIndent(), SwWrtShell::NumOrBulletOn(), SwDoc::NumOrNoNum(), NumRuleChgd(), SwDoc::NumUpDown(), OutASC_SwTextNode(), OutHTML_NumberBulletListStart(), OutHTML_SwTextNode(), MSWordExportBase::OutputTextNode(), RtfAttributeOutput::ParaNumRule_Impl(), SwNodeNum::PreAdd(), SwWW8ImplReader::Read_LR(), SwWW8ImplReader::RegisterNumFormatOnTextNode(), SwDoc::SearchNumRule(), SwEditShell::SelectionHasNumber(), SwHTMLNumRuleInfo::Set(), SwTaggedPDFHelper::SetAttributes(), SwSetExpFieldType::SetChapter(), SwEditShell::SetNumberingRestart(), SwDoc::SetNumRule(), SwDoc::SetNumRuleStart(), SwWW8ImplReader::SetTextFormatCollAndListLevel(), SplitContentNode(), SwAutoFormat::SwAutoFormat(), SwTextNode(), sw::UpdateFramesForAddDeleteRedline(), and sw::UpdateFramesForRemoveDeleteRedline().

◆ GetNumString()

OUString SwTextNode::GetNumString ( const bool  _bInclPrefixAndSuffixStrings = true,
const unsigned int  _nRestrictToThisLevel = MAXLEVEL,
SwRootFrame const *  pLayout = nullptr,
SwListRedlineType  eRedline = SwListRedlineType::SHOW 
) const

Returns outline of numbering string.

Introduce parameter <_bInclPrefixAndSuffixStrings> in order to control, if the prefix and the suffix strings have to been included or not.

Parameters
_bInclPrefixAndSuffixStringsoptional input parameter - boolean indicating, if the prefix and the suffix strings have to been included or not. default value = <true>
_nRestrictToThisLeveloptional input parameter - unsigned integer indicating the maximum outline level to which the output string must be restricted to. Default value is MAXLEVEL

Definition at line 3247 of file ndtxt.cxx.

References SwNumRule::Get(), GetActualListLevel(), SwNode::GetDoc(), GetLang(), GetNum(), SvxNumberType::GetNumberingType(), GetNumberVector(), SwNodeNum::GetNumRule(), IsCountedInList(), SvxNumberType::IsTextFormat(), m_oNumStringCache, and SwNumRule::MakeNumString().

Referenced by SwChapterField::ChangeExpansion(), CopyExpandText(), CopyText(), CountWords(), SwUnoCursorHelper::getCursorPropertyValue(), GetExpandText(), sw::ToxTextGenerator::GetNumStringOfFirstNode(), lcl_IsNoEndTextAttrAtPos(), SwTextFormatter::NewNumberPortion(), OutASC_SwTextNode(), OutHTML_SwTextNode(), and RtfAttributeOutput::ParaNumRule_Impl().

◆ GetOrCreateSwpHints()

SwpHints & SwTextNode::GetOrCreateSwpHints ( )
inline

Definition at line 878 of file ndtxt.hxx.

References m_pSwpHints.

Referenced by FormatToTextAttr(), InsertHint(), SwRegHistory::InsertItems(), SetAttr(), and SplitContentNode().

◆ GetOverlappingInputField()

const SwTextInputField * SwTextNode::GetOverlappingInputField ( const SwTextAttr rTextAttr) const
private

◆ GetParaAttr()

bool SwTextNode::GetParaAttr ( SfxItemSet rSet,
sal_Int32  nStt,
sal_Int32  nEnd,
const bool  bOnlyTextAttr = false,
const bool  bGetFromChrFormat = true,
const bool  bMergeIndentValuesOfNumRule = false,
SwRootFrame const *  pLayout = nullptr 
) const

Query the attributes of textnode over the range.

Introduce 4th optional parameter <bMergeIndentValuesOfNumRule>. If <bMergeIndentValuesOfNumRule> == true, the indent attributes of the corresponding list level of an applied list style is merged into the requested item set as a LR-SPACE item, if <bOnlyTextAttr> == false, corresponding node has not its own indent attributes and the position-and-space mode of the list level is SvxNumberFormat::LABEL_ALIGNMENT.

Definition at line 2140 of file thints.cxx.

References SfxItemSet::Count(), SfxItemSet::Differentiate(), SwTextAttr::DontExpand(), SwTextAttr::End(), SfxItemSet::Get(), SwTextAttr::GetAttr(), sw::GetAttrMerged(), CharFormat::GetItemSet(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), SwNode::GetRedlineMergeFlag(), SwTextAttr::GetStart(), HasHints(), SwRootFrame::HasMergedParas(), SwNode::Hidden, INVALID_POOL_ITEM, SfxItemSet::InvalidateItem(), isCHRATR(), IsInvalidItem(), isTXTATR_WITHEND(), isUNKNOWNATR(), lcl_MergeAttr(), lcl_MergeAttr_ExpandChrFormat(), lcl_MergeListLevelIndentAsLRSpaceItem(), m_pSwpHints, n, SfxItemSet::Put(), RES_CHRATR_BEGIN(), RES_TXTATR_AUTOFMT(), RES_TXTATR_WITHEND_END(), rSet, SfxPoolItem::Which(), and SwTextAttr::Which().

Referenced by SwEditShell::FillByEx(), SwUnoCursorHelper::GetCursorAttr(), SwWW8FltControlStack::GetFormatAttr(), SwGetExpField::GetReferenceTextPos(), GetRsid(), OutHTML_SwField(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwDontExpandItem::SaveDontExpandItems(), SwDoc::SetFormatItemByAutoFormat(), and WW8Export::WriteFootnoteBegin().

◆ GetParRsid()

sal_uInt32 SwTextNode::GetParRsid ( ) const

Definition at line 5387 of file ndtxt.cxx.

References GetAttr(), GetValue, and RES_PARATR_RSID().

Referenced by CompareParRsid(), and SwUndoSplitNode::SwUndoSplitNode().

◆ GetpSwpHints() [1/2]

SwpHints * SwTextNode::GetpSwpHints ( )
inline

Definition at line 252 of file ndtxt.hxx.

Referenced by SwUndoTransliterate::AddChanges(), SwHTMLParser::AddParSpace(), SwHTMLParser::AppendTextNode(), CanSkipOverRedline(), SwNodes::ChgNode(), CopyText(), SwWW8ImplReader::CoreLoad(), SwDoc::DeleteFormatRefMark(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwDoc::DeleteTOXMark(), AttributeOutputBase::GenerateBookmarksForSequenceField(), sw::ToxTextGenerator::GetAttributesForNode(), SwCursorShell::GetContentAtPos(), SwUnoCursorHelper::getCursorPropertyValue(), SwDoc::GetCurTOXMark(), SwEditShell::GetItemWithPaM(), GetNextAttrImpl(), SwWW8AttrIter::HasTextItem(), SwUndoReplace::Impl::Impl(), InsertHint(), XMLRedlineImportHelper::InsertIntoDocument(), SwRegHistory::InsertItems(), SwWW8AttrIter::IsExportableAttr(), SwWW8AttrIter::IsTextAttr(), SwTableBox::IsValidNumTextNd(), lcl_ChangeFootnoteRef(), lcl_CopyHint(), lcl_CreatePortions(), sw::DocumentContentOperationsManager::lcl_RstTextAttr(), SwAttrIter::MaybeHasHints(), sw::MergedAttrIterReverse::MergedAttrIterReverse(), ModelToViewHelper::ModelToViewHelper(), SwTextFormatter::NewNumberPortion(), sw::MergedAttrIterByEnd::NextAttr(), sw::MergedAttrIter::NextAttr(), SwWW8AttrIter::OutAttr(), SwWW8AttrIter::OutAttrWithRange(), MSWordExportBase::OutputTextNode(), sw::DocumentContentOperationsManager::Overwrite(), sw::MergedAttrIterReverse::PrevAttr(), SwNodes::RemoveNode(), Replace0xFF(), SwDontExpandItem::RestoreDontExpandItems(), RstTextAttr(), SwUndoDelete::SaveContent(), SwUndoInsSection::SaveSplitNode(), SwWW8AttrIter::SearchNext(), SwLanguageIterator::SearchNextChg(), SwAttrIter::Seek(), SwAttrIter::SeekFwd(), SwAttrIter::SeekStartAndChgAttrIter(), SwScriptInfo::selectHiddenTextProperty(), SwDoc::SelectNextRubyChars(), SwTextFlyCnt::SetAnchor(), UndoTransliterate_Data::SetChangeAtNode(), sw::DocumentFieldsManager::SetFieldsDirty(), SwTableToTextSave::SwTableToTextSave(), SwUndoInserts::SwUndoInserts(), SwUndoMove::SwUndoMove(), SwUndoOverwrite::SwUndoOverwrite(), SwUndoSplitNode::SwUndoSplitNode(), SwUndoTableNumFormat::SwUndoTableNumFormat(), SwUndoReplace::Impl::UndoImpl(), SwUndoDelete::UndoImpl(), SwUndoOverwrite::UndoImpl(), SwUndoMove::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwNodes::UndoTableToText(), and SwTOXBaseSection::UpdatePageNum_().

◆ GetpSwpHints() [2/2]

const SwpHints * SwTextNode::GetpSwpHints ( ) const
inline

Definition at line 253 of file ndtxt.hxx.

◆ GetRedlineText()

OUString SwTextNode::GetRedlineText ( ) const

◆ GetRegistry()

sfx2::IXmlIdRegistry & SwTextNode::GetRegistry ( )
override

sfx2::Metadatable

Definition at line 5409 of file ndtxt.cxx.

References SwNode::GetDoc(), and SwDoc::GetXmlIdRegistry().

Referenced by sw::Meta::GetRegistry().

◆ GetRsid()

sal_uInt32 SwTextNode::GetRsid ( sal_Int32  nStt,
sal_Int32  nEnd 
) const

Definition at line 5374 of file ndtxt.cxx.

References SwNode::GetDoc(), SfxItemSet::GetItem(), GetParaAttr(), and RES_CHRATR_RSID().

Referenced by CompareRsid().

◆ getSdrAllFillAttributesHelper()

drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwTextNode::getSdrAllFillAttributesHelper ( ) const
overridevirtual

Reimplemented from SwContentNode.

Definition at line 5537 of file ndtxt.cxx.

References SwContentNode::GetSwAttrSet(), and maFillAttributes.

◆ GetSmartTags() [1/2]

SwWrongList * SwTextNode::GetSmartTags ( )

◆ GetSmartTags() [2/2]

SwWrongList const * SwTextNode::GetSmartTags ( ) const

Definition at line 2330 of file txtedt.cxx.

References GetSmartTags().

◆ GetSpaceLeft()

sal_Int32 SwTextNode::GetSpaceLeft ( ) const
inline

◆ GetSwpHints() [1/2]

SwpHints & SwTextNode::GetSwpHints ( )
inline

◆ GetSwpHints() [2/2]

const SwpHints & SwTextNode::GetSwpHints ( ) const
inline

Definition at line 872 of file ndtxt.hxx.

References m_pSwpHints.

◆ GetText()

const OUString & SwTextNode::GetText ( ) const
inline

Definition at line 244 of file ndtxt.hxx.

Referenced by SwUndoTransliterate::AddChanges(), DocxExport::AppendBookmarks(), SwHTMLParser::AppendTextNode(), sw::ToxTextGenerator::ApplyHandledTextToken(), SwEditShell::AutoFormatBySplitNode(), SwTextFrame::AutoSpell_(), sw::CalcBreaks(), SwScriptInfo::CalcHiddenRanges(), SwUndoDelete::CanGrouping(), SwUndoOverwrite::CanGrouping(), SwAutoFormat::CanJoin(), SwDoc::Chainable(), CellSaveStruct::CheckNoBreak(), sw::CheckParaRedlineMerge(), SwCursorShell::CheckTableBoxContent(), ChgNumToText(), ChgTextToNum(), SwDoc::ClearLineNumAttrs(), sw::util::RedlineStack::close(), SwTextFrame::CollectAutoCmplWrds(), SwHTMLParser::Continue(), SwFEShell::Copy(), CopyExpandText(), sw::DocumentContentOperationsManager::CopyImplImpl(), CopyText(), SwWW8ImplReader::CoreLoad(), SwDoc::CountWords(), CountWords(), SwAttrIter::CtorInitAttrIter(), CutImpl(), CutText(), SwAutoFormat::DelEmptyLine(), SwDoc::DeleteTOXMark(), SwUnoCursorHelper::DocInsertStringSplitCR(), SwLayIdle::DoIdleJob_(), SwCursor::DoSetBidiLevelUpDown(), dumpAsXml(), SwWW8ImplReader::emulateMSWordAddTextToParagraph(), SwWW8ImplReader::End_Footnote(), SwHTMLParser::EndAttr(), SwXMLImport::endDocument(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwTextShell::ExecField(), SwView::ExecLingu(), SwCursorShell::ExtendSelection(), SwEditShell::FillByEx(), sw::mark::FindFieldSep(), sw::FindTextImpl(), AttributeOutputBase::GenerateBookmarksForSequenceField(), sw::ToxTextGenerator::GenerateText(), SwUndoSetFlyFormat::GetAnchor(), SwScriptInfo::GetBoundsOfHiddenRange(), SwCursorShell::GetChar(), sw::mark::TextFieldmark::GetContent(), sw::mark::DateFieldmark::GetContent(), SwEditShell::GetCorrection(), SwUnoCursorHelper::GetCursorAttr(), GetDropLen(), GetExpandText(), SwEditShell::GetGrammarCorrection(), SwEditShell::GetItemWithPaM(), SwSortTextElement::GetKey(), SwSortBoxElement::GetKey(), GetMergeSel(), GetNextAttrImpl(), SwEditShell::GetPaMAttr(), SwDoc::GetPaMDescr(), sw::util::GetPseudoCharRuns(), GetRedlineText(), SwGetExpField::GetReferenceTextPos(), SwEditShell::GetScriptType(), SwAuthorityFieldType::GetSequencePos(), SwCursorShell::GetSmartTagRect(), SwPaM::GetText(), SwLangHelper::GetTextForLanguageGuessing(), SwUndoInsert::GetTextFromDoc(), SwTableBox::GetValue(), GetWidthOfLeadingTabs(), SwContentNode::GoNext(), SwContentNode::GoPrevious(), SwWW8ImplReader::HandlePageBreakChar(), SwUndoReplace::Impl::Impl(), SwCallLink::ImplDestroy(), sw::DocumentStatisticsManager::IncrementalDocStatCalculate(), SwScriptInfo::InitScriptInfo(), SwHTMLParser::InsertComment(), SwEditShell::InsertGlobalDocContent(), XMLRedlineImportHelper::InsertIntoDocument(), SwDoc::InsertSwSection(), SwRangeRedline::InvalidateRange(), SwFEShell::IsAdjustCellWidthAllowed(), IsCollapse(), SwTransferable::isComplex(), SwTableBox::IsFormulaOrValueBox(), SwCursor::IsInWordWT(), SwUndoInsSection::Join(), SwAutoFormat::JoinPrevPara(), lcl_CellText(), lcl_CleanStr(), lcl_CopyHint(), lcl_dbg_out(), lcl_ExportFieldMark(), lcl_FillFieldMarkArray(), lcl_HasComments(), lcl_IsNoEndTextAttrAtPos(), lcl_IsURL(), lcl_MaskDeletedRedlines(), lcl_TCFlags(), SwCursor::LeftRight(), MakeCopy(), SwDOCXReader::MakeEntries(), SwXMLTableContext::MakeTableBox(), SwScriptInfo::MaskHiddenRanges(), ModelToViewHelper::ModelToViewHelper(), sw::DocumentContentOperationsManager::MoveAndJoin(), SwWW8ImplReader::MoveOutsideFly(), SwNodes::MoveRange(), MSWordExportBase::NeedTextNodeSplit(), SwTextFormatter::NewNumberPortion(), SwHTMLParser::NextToken(), OutASC_SwTextNode(), OutHTML_FrameFormatTableNode(), OutHTML_SwFormat(), OutHTML_SwTextNode(), MSWordExportBase::OutputTextNode(), SwUndoTableCpyTable::PrepareRedline(), SwUndoSort::RedoImpl(), SwUndoMove::RedoImpl(), sw::DocumentContentOperationsManager::RemoveLeadingWhiteSpace(), SwUndoInsert::RepeatImpl(), sw::mark::TextFieldmark::ReplaceContent(), sw::mark::DateFieldmark::ReplaceContent(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwDoc::ResetAttrs(), SwDontExpandItem::RestoreDontExpandItems(), SwUndoFormatAttr::RestoreFlyAnchor(), SwUndoDelete::SaveContent(), SwDontExpandItem::SaveDontExpandItems(), SwUndoInsSection::SaveSplitNode(), SwWW8AttrIter::SearchNext(), SwScriptInfo::selectHiddenTextProperty(), SwDoc::SelectNextRubyChars(), SwXParagraph::SelectPaM(), SwScriptInfo::selectRedLineDeleted(), SwExtTextInput::SetOverwriteCursor(), SwXParagraph::setString(), SwDoc::SetTextFormatCollByAutoFormat(), SwWW8ImplReader::simpleAddTextToParagraph(), SwTextFrame::SmartTagScan(), SwDoc::Spell(), SwDoc::SplitDoc(), SwHTMLParser::StripTrailingLF(), SwHTMLParser::StripTrailingPara(), SwDoc::Summary(), sw_GetJoinFlags(), SwTableToTextSave::SwTableToTextSave(), SwUndoDelete::SwUndoDelete(), SwUndoInserts::SwUndoInserts(), SwUndoMove::SwUndoMove(), SwUndoOverwrite::SwUndoOverwrite(), SwUndoRedlineDelete::SwUndoRedlineDelete(), SwUndoSplitNode::SwUndoSplitNode(), SwUndoTableNumFormat::SwUndoTableNumFormat(), SwNodes::TextToTable(), SwTranslateHelper::TranslateDocumentCancellable(), sw::DocumentContentOperationsManager::TransliterateText(), TransliterateText(), SwUndoInserts::UndoImpl(), SwUndoInsert::UndoImpl(), SwUndoSplitNode::UndoImpl(), SwUndoMove::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwTOXBaseSection::UpdateAuthorities(), SwGetRefField::UpdateField(), sw::UpdateMergedParaForInsert(), SwTOXBaseSection::UpdatePageNum_(), SwTOXBaseSection::UpdateSequence(), SwCursor::UpDown(), SwASCWriter::WriteStream(), WW8Ruby::WW8Ruby(), and SwExtTextInput::~SwExtTextInput().

◆ GetTextAttrAt()

SwTextAttr * SwTextNode::GetTextAttrAt ( sal_Int32 const  nIndex,
sal_uInt16 const  nWhich,
::sw::GetTextAttrMode const  eMode = ::sw::GetTextAttrMode::Default 
) const

◆ GetTextAttrForCharAt()

SwTextAttr * SwTextNode::GetTextAttrForCharAt ( const sal_Int32  nIndex,
const sal_uInt16  nWhich = RES_TXTATR_END 
) const

get the text attribute at position nIndex which owns the dummy character CH_TXTATR_* at that position, if one exists.

Parameters
nIndexthe position in the text
nWhichif different from RES_TXTATR_END, return only attribute with given which id
Returns
the text attribute at nIndex of type nWhich, if it exists

Definition at line 3155 of file ndtxt.cxx.

References SwTextAttr::GetStart(), SwTextAttr::HasDummyChar(), HasHints(), i, m_pSwpHints, nIndex, RES_TXTATR_BEGIN(), RES_TXTATR_END(), and SwTextAttr::Which().

Referenced by SwXFootnote::attach(), SwXLineBreak::attach(), sw::CalcBreaks(), sw::annotation::SwAnnotationWin::CalcParent(), SwDoc::ChgAnchor(), SwWW8ImplReader::ContainsSingleInlineGraphic(), SwFEShell::Copy(), sw::annotation::SwAnnotationWin::CountFollowing(), SwUndoSaveContent::DelContentIndex(), SwUndoFlyBase::DelFly(), sw::DocumentLayoutManager::DelLayoutFormat(), SwHTMLParser::FinishFootEndNote(), SwCursorShell::GetContentAtPos(), SwEditShell::GetCurFootnote(), SwUnoCursorHelper::getCursorPropertyValue(), GetDropLen(), GetFieldTextAttrAt(), SwPageFrame::GetModelPositionForViewPoint(), SwTableBox::GetValue(), SwCursor::GotoFootnoteText(), SwXReferenceMark::Impl::InsertRefMark(), lcl_HasComments(), lcl_InsertDrawLabel(), lcl_InsertLabel(), lcl_IsNoEndTextAttrAtPos(), lcl_SaveAnchor(), SwUndoAttr::RemoveIdx(), Replace0xFF(), ReplaceText(), SwUndoFormatAttr::RestoreFlyAnchor(), SwWW8FltRefStack::SetAttrInDoc(), SwDoc::SetFlyFrameAnchor(), SwHistorySetRefMark::SetInDoc(), SwHistorySetFootnote::SetInDoc(), SwXShape::setPropertyValue(), SwHTMLParser::StripTrailingPara(), SwUndoSetFlyFormat::UndoImpl(), and SwGetRefField::UpdateField().

◆ GetTextAttrForEndCharAt()

SwTextAttr * SwTextNode::GetTextAttrForEndCharAt ( sal_Int32  nIndex,
sal_uInt16  nWhich 
) const

Get the text attribute of an end dummy character at nIndex.

Return the attribute only in case its which id is nWhich.

Note that the position of the end dummy character is one less than the end of the attribute.

Definition at line 3180 of file ndtxt.cxx.

References SwTextAttr::End(), sw::Expand, GetTextAttrAt(), and nIndex.

Referenced by sw::CalcBreaks().

◆ GetTextAttrsAt()

std::vector< SwTextAttr * > SwTextNode::GetTextAttrsAt ( sal_Int32 const  nIndex,
sal_uInt16 const  nWhich 
) const

get the innermost text attributes covering position nIndex.

Parameters
nWhichonly attributes with this id are returned.
eModethe predicate for matching (
See also
GetTextAttrMode).

Definition at line 1795 of file ndtxt.cxx.

References sw::Default, lcl_GetTextAttrs(), m_pSwpHints, nIndex, RES_TXTATR_BEGIN(), and RES_TXTATR_END().

Referenced by SwCursorShell::GetContentAtPos(), SwUnoCursorHelper::getCursorPropertyValue(), and SwXReferenceMark::Impl::InsertRefMark().

◆ GetTextColl()

SwTextFormatColl * SwTextNode::GetTextColl ( ) const
inline

◆ GetWidthOfLeadingTabs()

SwTwips SwTextNode::GetWidthOfLeadingTabs ( ) const

Returns the width of leading tabs/blanks in this paragraph.

This space will be converted into numbering indent if the paragraph is set to be numbered.

Returns
the width of the leading whitespace

Definition at line 1590 of file itratr.cxx.

References SwIterator< TElementType, TSource, eMode >::First(), SwRectFnSet::GetLeft(), getLength(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwRectFnSet::GetRight(), GetText(), and SwIterator< TElementType, TSource, eMode >::Next().

Referenced by SwWrtShell::NumOrBulletOn().

◆ GetWrong() [1/2]

SwWrongList * SwTextNode::GetWrong ( )

◆ GetWrong() [2/2]

const SwWrongList * SwTextNode::GetWrong ( ) const

Definition at line 2277 of file txtedt.cxx.

References m_aParagraphIdleData, and sw::ParagraphIdleData::pWrong.

◆ GetWrongDirty()

sw::WrongState SwTextNode::GetWrongDirty ( ) const

◆ GetXParagraph()

SAL_DLLPRIVATE unotools::WeakReference< SwXParagraph > const & SwTextNode::GetXParagraph ( ) const
inline

Definition at line 834 of file ndtxt.hxx.

Referenced by SwXParagraph::CreateXParagraph().

◆ HandleNonLegacyHint()

void SwTextNode::HandleNonLegacyHint ( const SfxHint rHint)
private

◆ HasAttrListLevel()

bool SwTextNode::HasAttrListLevel ( ) const

◆ HasAttrListRestartValue()

bool SwTextNode::HasAttrListRestartValue ( ) const

◆ HasBullet()

bool SwTextNode::HasBullet ( ) const

Returns if this text node has a bullet.

This text node has a bullet if it has a SwNodeNum and a numbering rule and the numbering format specified for the level of the SwNodeNum is of a bullet type.

Return values
trueThis text node has a bullet.
falseelse

Definition at line 3229 of file ndtxt.cxx.

References SwNumRule::Get(), GetActualListLevel(), GetNum(), SwNodeNum::GetNumRule(), and SwNumFormat::IsItemize().

Referenced by SwAccessibleParagraph::_getSupplementalAttributesImpl(), CountWords(), SwEditShell::HasBullet(), SwNodeNum::IsCountedForNumbering(), SwDoc::NumOrNoNum(), OutASC_SwTextNode(), SwEditShell::SelectionHasBullet(), and SwEditShell::SetNumberingRestart().

◆ HasHiddenCharAttribute()

bool SwTextNode::HasHiddenCharAttribute ( bool  bWholePara) const
inline

◆ HasHints()

bool SwTextNode::HasHints ( ) const
inline

◆ HasMarkedLabel()

bool SwTextNode::HasMarkedLabel ( ) const

Returns if this text node has a marked label.

Return values
trueThis text node has a marked label.
falseelse

Definition at line 2995 of file ndtxt.cxx.

References GetActualListLevel(), SwNode::GetDoc(), SwDoc::getIDocumentListsAccess(), IDocumentListsAccess::getListByName(), GetListId(), IsInList(), and SwList::IsListLevelMarked().

Referenced by SwTextPaintInfo::DrawViewOpt().

◆ HasNumber()

bool SwTextNode::HasNumber ( SwRootFrame const *  pLayout = nullptr) const

Returns if this text node has a number.

This text node has a number if it has a SwNodeNum and a numbering rule and the numbering format specified for the level of the SwNodeNum is of an enumeration type.

Return values
trueThis text node has a number.
falseelse

Definition at line 3213 of file ndtxt.cxx.

References SwNumRule::Get(), GetActualListLevel(), GetNum(), SwNodeNum::GetNumRule(), and SwNumFormat::IsEnumeration().

Referenced by SwAccessibleParagraph::_getSupplementalAttributesImpl(), SwEditShell::HasNumber(), SwNodeNum::IsCountedForNumbering(), MakeRefNumStr(), SwNumRule::MakeRefNumString(), SwDoc::MakeUniqueNumRules(), SwDoc::NumOrNoNum(), SwEditShell::SelectionHasNumber(), and SwEditShell::SetNumberingRestart().

◆ HasVisibleNumberingOrBullet()

bool SwTextNode::HasVisibleNumberingOrBullet ( ) const

Returns if the paragraph has a visible numbering or bullet.

This includes all kinds of numbering/bullet/outlines. Note: This function returns false, if the numbering format is SVX_NUM_NUMBER_NONE or if the numbering/bullet has been deleted.

Returns
true if the paragraph has a visible numbering/bullet/outline

This includes all kinds of numbering/bullet/outlines. The concrete list label string has to be checked, too.

Definition at line 4284 of file ndtxt.cxx.

References sw::proofreadingiterator::get(), SwNumRule::Get(), GetActualListLevel(), SwNode::getIDocumentSettingAccess(), SvxNumberFormat::GetLabelFollowedBy(), GetNum(), SvxNumberType::GetNumberingType(), SwNodeNum::GetNumRule(), IsCountedInList(), SwNumRule::MakeNumString(), NO_NUMBERING_SHOW_FOLLOWBY, and SVX_NUM_NUMBER_NONE.

Referenced by SwTextFrame::FormatAdjust(), GetLabelFollowedBy(), GetListTabStopPosition(), SwCursorShell::LeftRight(), SwCursorShell::LRMargin(), OutASC_SwTextNode(), SwOutlineContentVisibilityWin::Set(), and SwCursorShell::SetCursor().

◆ Hyphenate()

bool SwTextNode::Hyphenate ( SwInterHyphInfo rHyphInf)

◆ impl_FormatToTextAttr()

void SwTextNode::impl_FormatToTextAttr ( const SfxItemSet i_rAttrSet)
private

◆ InsertDummy()

void SwTextNode::InsertDummy ( )
inline

Add a dummy character to the redline of the table changes.

Definition at line 282 of file ndtxt.hxx.

References CH_TXT_TRACKED_DUMMY_CHAR.

Referenced by sw::GetAllValidRanges().

◆ InsertHint()

bool SwTextNode::InsertHint ( SwTextAttr *const  pAttr,
const SetAttrMode  nMode = SetAttrMode::DEFAULT 
)

Insert pAttr into hints array.

Returns
true iff inserted successfully

Definition at line 1340 of file thints.cxx.

References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, SwRegHistory::ChangeNodeIndex(), SwContentNode::DelFrames(), DestroyAttr(), EMPTYEXPAND, SwTextAttr::End(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), EraseText(), SwDoc::FieldCanHideParaWeight(), FORCEHINTEXPAND, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), GetCharOfTextAttr(), SwFormatAnchor::GetContentAnchor(), SwFormatContentControl::GetContentControl(), SwNode::GetDoc(), SwFormat::GetDoc(), SwTextAttr::GetEnd(), SwNodes::GetEndOfAutotext(), SwNodes::GetEndOfRedlines(), SwFormatField::GetField(), SwTextInputField::GetFieldContent(), SwTextAttr::GetFlyCnt(), SwDoc::GetFootnoteIdxs(), SwTextAttr::GetFormatField(), SwFormatFlyCnt::GetFrameFormat(), SwpHints::GetHistory(), SwDoc::GetIDocumentUndoRedo(), SwContentIndex::GetIndex(), SwNode::GetIndex(), SwFormat::GetItemIfSet(), SwDoc::GetNodes(), SwNode::GetNodes(), GetOrCreateSwpHints(), GetOverlappingInputField(), GetpSwpHints(), SwTextAttr::GetStart(), SwNode::GetStartNode(), SwNode::GetTableNode(), GetTextAttrAt(), SwField::GetTyp(), SwTextAttr::HasContent(), SwTextAttr::HasDummyChar(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), InsertText(), SwDoc::IsInHeaderFooter(), Len(), m_pSwpHints, m_Text, n, NOHINTEXPAND, NOTXTATRCHR, sw::Parent, RES_ANCHOR(), RES_DRAWFRMFMT(), RES_TXTATR_CONTENTCONTROL(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_LINEBREAK(), SwTextFlyCnt::SetAnchor(), SetCalcHiddenParaField(), SwTextAttr::SetEnd(), SwTextAttr::SetStart(), size, SwNode::StartOfSectionIndex(), u, Update(), SwFootnoteIdxs::UpdateFootnote(), SwFieldType::Which(), SwFormat::Which(), and SwTextAttr::Which().

Referenced by CopyText(), CutImpl(), InsertItem(), InsertText(), RstTextAttr(), SetAttr(), and SwHistorySetFootnote::SetInDoc().

◆ InsertItem()

SwTextAttr * SwTextNode::InsertItem ( SfxPoolItem rAttr,
const sal_Int32  nStart,
const sal_Int32  nEnd,
const SetAttrMode  nMode = SetAttrMode::DEFAULT 
)

◆ InsertText() [1/2]

OUString SwTextNode::InsertText ( const OUString &  rStr,
const SwContentIndex rIdx,
const SwInsertFlags  nMode = SwInsertFlags::DEFAULT 
)

insert text content

Parameters
rStrtext to insert; in case it does not fit into the capacity of the node, the longest prefix that fits is inserted
Returns
the prefix of rStr that was actually inserted

Definition at line 2372 of file ndtxt.cxx.

References CHECK_SWPHINTS, SwTextAttr::DontExpand(), EMPTYEXPAND, FORCEHINTEXPAND, SwContentIndex::GetContentNode(), SwTextAttr::GetEnd(), SwContentIndex::GetIndex(), GetSpaceLeft(), SwTextAttr::GetStart(), HasHints(), i, InsertHint(), SwTextAttr::IsDontExpandStartAttr(), SwTextAttr::IsFormatIgnoreEnd(), SwNode::IsIgnoreDontExpand(), m_pSwpHints, m_Text, sw::MakeInsertText(), NOHINTADJUST, NOHINTEXPAND, SAL_WARN_IF, SetCalcHiddenCharFlags(), SwTextAttr::SetEnd(), SwNode::SetIgnoreDontExpand(), SwTextAttr::SetStart(), and Update().

Referenced by sw::ToxTextGenerator::ApplyHandledTextToken(), CalculateFlySize(), SwUndoOverwrite::CanGrouping(), SwDDETable::ChangeContent(), ChgNumToText(), ChgTextToNum(), SwFEShell::Copy(), CopyExpandText(), CopyText(), SwTOXSortTabBase::FillText(), SwTOXIndex::FillText(), SwTOXContent::FillText(), SwTOXPara::FillText(), SwTOXAuthority::FillText(), InsertHint(), sw::DocumentContentOperationsManager::InsertString(), InsertText(), lcl_InsertDrawLabel(), lcl_InsertLabel(), SwXMLTextBlocks::MakeBlockText(), SwXMLTableContext::MakeTableBox(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoInsert::RedoImpl(), SwUndoOverwrite::RedoImpl(), SwExtTextInput::SetInputData(), SwUndoOverwrite::SwUndoOverwrite(), SwUndoDelete::UndoImpl(), SwUndoOverwrite::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwTOXBaseSection::Update(), and SwTOXBaseSection::UpdatePageNum_().

◆ InsertText() [2/2]

OUString SwTextNode::InsertText ( const OUString &  rStr,
const SwPosition rIdx,
const SwInsertFlags  nMode = SwInsertFlags::DEFAULT 
)

Definition at line 2366 of file ndtxt.cxx.

References InsertText(), and SwPosition::nContent.

◆ IsAutoCompleteWordDirty()

bool SwTextNode::IsAutoCompleteWordDirty ( ) const

◆ IsCalcHiddenCharFlags()

bool SwTextNode::IsCalcHiddenCharFlags ( ) const
inlineprivate

Optimization: Asking for information about hidden characters at SwScriptInfo updates these flags.

Definition at line 183 of file ndtxt.hxx.

Referenced by SwScriptInfo::GetBoundsOfHiddenRange().

◆ IsCollapse()

bool SwTextNode::IsCollapse ( ) const

◆ IsCountedInList()

bool SwTextNode::IsCountedInList ( ) const

◆ IsEmptyListStyleDueToSetOutlineLevelAttr()

bool SwTextNode::IsEmptyListStyleDueToSetOutlineLevelAttr ( ) const
inline

Definition at line 658 of file ndtxt.hxx.

◆ IsFirstOfNumRule()

bool SwTextNode::IsFirstOfNumRule ( SwRootFrame const &  rLayout) const

Definition at line 4551 of file ndtxt.cxx.

References GetNum(), SwNodeNum::GetNumRule(), and SwNumberTreeNode::IsFirst().

Referenced by SwDoc::IsFirstOfNumRuleAtPos().

◆ IsGrammarCheckDirty()

bool SwTextNode::IsGrammarCheckDirty ( ) const

◆ IsHidden()

bool SwTextNode::IsHidden ( ) const

◆ IsHiddenByParaField()

bool SwTextNode::IsHiddenByParaField ( ) const
inline

is the paragraph visible?

Definition at line 769 of file ndtxt.hxx.

Referenced by IsHidden(), and SwTOXBaseSection::UpdateOutline().

◆ IsIgnoredCharFormatForNumbering()

bool SwTextNode::IsIgnoredCharFormatForNumbering ( const sal_uInt16  nWhich,
bool  bIsCharStyle = false 
)
static

In MS Word, the font underline setting of the paragraph end position won't affect the formatting of numbering, so we ignore it.

Definition at line 1893 of file thints.cxx.

References SvtFilterOptions::Get(), SvtFilterOptions::IsCharBackground2Shading(), RES_CHRATR_BACKGROUND(), RES_CHRATR_ESCAPEMENT(), and RES_CHRATR_UNDERLINE().

Referenced by checkApplyParagraphMarkFormatToNumbering().

◆ IsInClipboard()

bool SwTextNode::IsInClipboard ( ) const
overridevirtual

Definition at line 5414 of file ndtxt.cxx.

References SwNode::GetDoc(), and SwDoc::IsClipBoard().

Referenced by sw::Meta::IsInClipboard().

◆ IsInContent()

bool SwTextNode::IsInContent ( ) const
overridevirtual

Definition at line 5424 of file ndtxt.cxx.

References SwNode::GetDoc(), and SwDoc::IsInHeaderFooter().

Referenced by sw::Meta::IsInContent().

◆ IsInList()

bool SwTextNode::IsInList ( ) const

◆ IsInUndo()

bool SwTextNode::IsInUndo ( ) const
overridevirtual

Is this node in the undo array?

Definition at line 5419 of file ndtxt.cxx.

References SwNode::GetDoc(), SwDoc::GetIDocumentUndoRedo(), and SwNode::GetNodes().

Referenced by sw::Meta::IsInUndo().

◆ IsListRestart()

bool SwTextNode::IsListRestart ( ) const

◆ IsNotifiable()

bool SwTextNode::IsNotifiable ( ) const

Checks a temporary notification blocker and the global conditions of IsNotificationEnabled()

Definition at line 4367 of file ndtxt.cxx.

References IsNotificationEnabled(), and m_bNotifiable.

◆ IsNotificationEnabled()

bool SwTextNode::IsNotificationEnabled ( ) const

Checks some global conditions like loading or destruction of document to economize notifications.

Definition at line 4372 of file ndtxt.cxx.

References SwNode::GetDoc(), SwDoc::IsInDtor(), and SwDoc::IsInReading().

Referenced by IsNotifiable().

◆ IsNumbered()

bool SwTextNode::IsNumbered ( SwRootFrame const *  pLayout = nullptr) const

Returns is this text node is numbered.

This node is numbered if it has a SwNodeNum and it has a numbering rule and has not a hidden SwNodeNum.

ATTENTION: Returns true even if the SwNumFormat has type SVX_NUM_NUMBER_NONE.

Return values
trueThis node is numbered.
falseelse

Definition at line 2989 of file ndtxt.cxx.

References GetNum(), SwNodeNum::GetNumRule(), and IsCountedInList().

Referenced by SwTextFrame::CalcAdditionalFirstLineOffset(), SwDoc::ClearLineNumAttrs(), SwContentTree::FillTransferData(), sw::util::GetNormalNumRuleFromTextNode(), sw::util::GetNumFormatFromTextNode(), SwTextFormatter::NewNumberPortion(), MSWordExportBase::OutputTextNode(), UnHideRedlines(), and SwCursorShell::UpdateMarkedListLevel().

◆ IsOutline()

bool SwTextNode::IsOutline ( ) const

◆ IsOutlineStateChanged()

bool SwTextNode::IsOutlineStateChanged ( ) const

Definition at line 4158 of file ndtxt.cxx.

References IsOutline(), and m_bLastOutlineState.

Referenced by SwNodes::UpdateOutlineNode().

◆ IsSmartTagDirty()

bool SwTextNode::IsSmartTagDirty ( ) const

◆ IsSymbolAt()

bool SwTextNode::IsSymbolAt ( sal_Int32  nBegin) const

◆ IsWordCountDirty()

bool SwTextNode::IsWordCountDirty ( ) const

Definition at line 2340 of file txtedt.cxx.

References sw::ParagraphIdleData::bWordCountDirty, and m_aParagraphIdleData.

Referenced by CountWords(), and SwLayIdle::DoIdleJob_().

◆ IsWrongDirty()

bool SwTextNode::IsWrongDirty ( ) const

◆ JoinNext()

SwContentNode * SwTextNode::JoinNext ( )
overridevirtual

◆ JoinPrev()

void SwTextNode::JoinPrev ( )

◆ Len()

sal_Int32 SwTextNode::Len ( ) const
overridevirtual
Returns
count of elements of node content. Default is 1. There are differences between text node and formula node.

Reimplemented from SwContentNode.

Definition at line 291 of file ndtxt.cxx.

References m_Text.

Referenced by SwAccessibleParagraph::_getRunAttributesImpl(), sw::DocumentRedlineManager::AppendRedline(), SwContentTree::BringBookmarksToAttention(), sw::CalcBreaks(), CanSkipOverRedline(), SwXFlatParagraph::changeText(), sw::CheckParaRedlineMerge(), SwXText::Impl::ConvertCell(), SwXText::convertToTextFrame(), sw::DocumentContentOperationsManager::CopyImplImpl(), SwUndoSaveContent::DelContentIndex(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwWW8ImplReader::End_Field(), SwGetRefFieldType::FindAnchor(), sw::mark::FindFieldSep(), SwXText::Impl::finishOrAppendParagraph(), SwCursorShell::GetContentAtPos(), SwTextSizeInfo::GetMultiCreator(), GetNextAttrImpl(), SwEditShell::GetScriptType(), SwCursorShell::GetSelText(), GotoCurrTable(), GotoNextTable(), GotoPrevTable(), SwHTMLWriter::GuessFrameType(), SwEditShell::HandleCorrectionError(), SwScriptInfo::InitScriptInfo(), SwEditShell::Insert2(), InsertHint(), IsAtParaMatch(), IsDestroyFrameAnchoredAtChar(), IDocumentMarkAccess::IsLegalPaMForCrossRefHeadingBookmark(), sw::IsMarkHidden(), IsNotBackspaceHeuristic(), IsSelectFrameAnchoredAtPara(), IsShown(), SwUndoInsSection::Join(), JoinNext(), JoinPrev(), lcl_CheckMaxLength(), lcl_CreatePortions(), sw::DocumentContentOperationsManager::lcl_RstTextAttr(), SwCursor::LeftRight(), sw::MapViewToModel(), ModelToViewHelper::ModelToViewHelper(), SwDoc::MoveParagraphImpl(), sw::DocumentContentOperationsManager::MoveRange(), SwNodes::MoveRange(), MSWordExportBase::NeedTextNodeSplit(), OutASC_SwTextNode(), SwWW8AttrIter::OutAttrWithRange(), SwWW8ImplReader::Read_F_Tox(), SwWW8ImplReader::ReadText(), SanityCheck(), SwUndoDelete::SaveContent(), SaveFlyInRange(), SwDoc::SearchNumRule(), SwAttrIter::Seek(), SwEditShell::SelectionHasBullet(), SwEditShell::SelectionHasNumber(), sw::DocumentContentOperationsManager::SplitNode(), SwDoc::Summary(), sw_JoinText(), SwUndoReplace::Impl::UndoImpl(), SwUndoInserts::UndoImpl(), sw::UpdateFramesForAddDeleteRedline(), sw::UpdateFramesForRemoveDeleteRedline(), sw::UpdateMergedParaForDelete(), sw::UpdateMergedParaForInsert(), SwTOXBaseSection::UpdateOutline(), and DocxAttributeOutput::WriteFlyFrame().

◆ MakeCopy()

SwContentNode * SwTextNode::MakeCopy ( SwDoc rDoc,
SwNode rWhere,
bool  bNewFrames 
) const
overridevirtual

◆ MakeFrame()

SwContentFrame * SwTextNode::MakeFrame ( SwFrame pSib)
overridevirtual

Virtual methods from ContentNode.

Implements SwContentNode.

Definition at line 285 of file ndtxt.cxx.

References sw::MakeTextFrame(), and sw::New.

Referenced by SwTextFrame::SplitFrame().

◆ MakeNewTextNode()

SwTextNode * SwTextNode::MakeNewTextNode ( SwNode rPosNd,
bool  bNext = true,
bool  bChgFollow = true 
)
private

◆ MakeUnoObject()

uno::Reference< rdf::XMetadatable > SwTextNode::MakeUnoObject ( )
overridevirtual

Definition at line 5530 of file ndtxt.cxx.

References SwXParagraph::CreateXParagraph(), and SwNode::GetDoc().

◆ MoveTextAttr_To_AttrSet()

void SwTextNode::MoveTextAttr_To_AttrSet ( )
private

Move all comprising hard attributes to the AttrSet of the paragraph.

Definition at line 814 of file ndtxt.cxx.

References DestroyAttr(), SwTextAttr::GetAttr(), SwTextAttr::GetEnd(), SwTextAttr::GetStart(), i, SwTextAttr::IsCharFormatAttr(), SwTextAttr::IsDontMoveAttr(), m_pSwpHints, m_Text, and SetAttr().

Referenced by SplitContentNode().

◆ NewAttrSet()

void SwTextNode::NewAttrSet ( SwAttrPool rPool)
overrideprivatevirtual

◆ NumRuleChgd()

void SwTextNode::NumRuleChgd ( )

Notify this textnode that its numbering rule has changed.

Definition at line 2961 of file ndtxt.cxx.

References GetNum(), GetNumRule(), SwContentNode::GetSwAttrSet(), SwAttrSet::GetTextLeftMargin(), IsInList(), mpNodeNum, mpNodeNumRLHidden, and SetWordCountDirty().

Referenced by lcl_SetRuleChgd(), SwNodeNum::NotifyNode(), and UnHideRedlines().

◆ ReleaseGrammarCheck()

std::unique_ptr< SwGrammarMarkUp > SwTextNode::ReleaseGrammarCheck ( )

Definition at line 2292 of file txtedt.cxx.

References m_aParagraphIdleData, and sw::ParagraphIdleData::pGrammarCheck.

Referenced by JoinNext(), JoinPrev(), and SplitContentNode().

◆ ReleaseSmartTags()

std::unique_ptr< SwWrongList > SwTextNode::ReleaseSmartTags ( )

Definition at line 2320 of file txtedt.cxx.

References m_aParagraphIdleData, and sw::ParagraphIdleData::pSmartTags.

Referenced by JoinNext(), JoinPrev(), and SplitContentNode().

◆ ReleaseWrong()

std::unique_ptr< SwWrongList > SwTextNode::ReleaseWrong ( )

Definition at line 2266 of file txtedt.cxx.

References m_aParagraphIdleData, and sw::ParagraphIdleData::pWrong.

Referenced by JoinNext(), JoinPrev(), and SplitContentNode().

◆ RemoveFromList()

void SwTextNode::RemoveFromList ( )

◆ RemoveFromListOrig()

void SwTextNode::RemoveFromListOrig ( )

◆ RemoveFromListRLHidden()

void SwTextNode::RemoveFromListRLHidden ( )

◆ ReplaceText() [1/2]

void SwTextNode::ReplaceText ( const SwContentIndex rStart,
const sal_Int32  nDelLen,
const OUString &  rText 
)

◆ ReplaceText() [2/2]

void SwTextNode::ReplaceText ( SwPosition rStart,
const sal_Int32  nDelLen,
const OUString &  rText 
)

Definition at line 3884 of file ndtxt.cxx.

References SwPosition::nContent, and ReplaceText().

◆ ReplaceTextOnly()

void SwTextNode::ReplaceTextOnly ( sal_Int32  nPos,
sal_Int32  nLen,
std::u16string_view  aText,
const css::uno::Sequence< sal_Int32 > &  rOffsets 
)

◆ ResetAllAttr()

sal_uInt16 SwTextNode::ResetAllAttr ( )
overridevirtual

◆ ResetAttr() [1/2]

bool SwTextNode::ResetAttr ( const std::vector< sal_uInt16 > &  rWhichArr)
overridevirtual

Reimplemented from SwContentNode.

Definition at line 5307 of file ndtxt.cxx.

References mbInSetOrResetAttr, and SwContentNode::ResetAttr().

◆ ResetAttr() [2/2]

bool SwTextNode::ResetAttr ( sal_uInt16  nWhich1,
sal_uInt16  nWhich2 = 0 
)
overridevirtual

◆ ResetEmptyListStyleDueToResetOutlineLevelAttr()

void SwTextNode::ResetEmptyListStyleDueToResetOutlineLevelAttr ( )

◆ RstTextAttr()

void SwTextNode::RstTextAttr ( const sal_Int32  nContentStart,
const sal_Int32  nLen,
const sal_uInt16  nWhich = 0,
const SfxItemSet pSet = nullptr,
const bool  bInclRefToxMark = false,
const bool  bExactRange = false 
)

delete all attributes.

Delete all attributes.

If neither pSet nor nWhich is given, delete all attributes (except refmarks, toxmarks, meta) in range.

Parameters
nContentStartstart position
nLenrange in which attributes will be deleted
pSetif not 0, delete only attributes contained in pSet
nWhichif not 0, delete only attributes with matching which
bInclRefToxMarkrefmarks, toxmarks, and metas will be ignored unless this is true ATTENTION: setting bInclRefToxMark is only allowed from UNDO!
bExactRangeFrom the attributes included in the range, delete only the ones which have exactly same range. Don't delete the ones which are simply included in the range.

5 cases: 1) The attribute is completely in the deletion range: -> delete it 2) The end of the attribute is in the deletion range: -> delete it, then re-insert it with new end 3) The start of the attribute is in the deletion range: -> delete it, then re-insert it with new start 4) The attribute contains the deletion range: Split, i.e., -> Delete, re-insert from old start to start of deletion range -> insert new attribute from end of deletion range to old end 5) The attribute is outside the deletion range -> nothing to do

Parameters
nSttstarting position
nLenlength of the deletion
nthat???
pSet???
bInclRefToxMark???

Definition at line 388 of file txtedt.cxx.

References Count, DestroyAttr(), SwTextAttr::End(), SwTextAttr::GetAttr(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwContentNode::GetFormatColl(), SwNode::getIDocumentStyleAccess(), SfxItemSet::GetItemState(), GetpSwpHints(), SwTextCharFormat::GetSortNumber(), SwTextAttr::GetStart(), SwFormatAutoFormat::GetStyleHandle(), GetTextAttrAt(), SwTextAttr::HasContent(), HasHints(), i, InsertHint(), isTXTATR_WITHEND(), lcl_HaveCommonAttributes(), m_pSwpHints, m_Text, MakeTextAttr(), NOHINTADJUST, sw::Parent, RES_TXTATR_AUTOFMT(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_META(), RES_TXTATR_METAFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), SwTextAttr::SetEnd(), SwTextCharFormat::SetSortNumber(), SwTextAttr::SetStart(), TryDeleteSwpHints(), and SwTextAttr::Which().

Referenced by SwUndoInsSection::Join(), sw::DocumentContentOperationsManager::lcl_RstTextAttr(), SetAttr(), SwUndoInserts::UndoImpl(), and SwUndoTableMerge::UndoImpl().

◆ SetAttr() [1/3]

bool SwTextNode::SetAttr ( const SfxItemSet rSet)
overridevirtual

Reimplemented from SwContentNode.

Definition at line 5080 of file ndtxt.cxx.

References mbInSetOrResetAttr, rSet, and SwContentNode::SetAttr().

◆ SetAttr() [2/3]

bool SwTextNode::SetAttr ( const SfxItemSet rSet,
sal_Int32  nStt,
sal_Int32  nEnd,
const SetAttrMode  nMode = SetAttrMode::DEFAULT,
SwTextAttr **  ppNewTextAttr = nullptr 
)

◆ SetAttr() [3/3]

bool SwTextNode::SetAttr ( const SfxPoolItem pItem)
overridevirtual

◆ SetAttrListLevel()

void SwTextNode::SetAttrListLevel ( int  nLevel)

Sets the list level of this text node.

Side effect, when the text node is a list item: The text node's representation in the list tree (<SwNodeNum> instance) is updated.

Parameters
nLevellevel to set

Definition at line 4218 of file ndtxt.cxx.

References MAXLEVEL, RES_PARATR_LIST_LEVEL(), and SetAttr().

Referenced by SwAutoFormat::BuildEnum(), ChgTextCollUpdateNum(), WW8ListManager::GetNumRuleForActivation(), SwHTMLParser::NewNumberBulletListItem(), SwWW8ImplReader::NextAnlLine(), SwDoc::NumUpDown(), SwWW8ImplReader::RegisterNumFormatOnTextNode(), SwHTMLParser::SetNodeNum(), SwTextNode(), and SwUndoDelNum::UndoImpl().

◆ SetAttrListRestartValue()

void SwTextNode::SetAttrListRestartValue ( SwNumberTree::tSwNumTreeNumber  nNum)

◆ SetAttrOutlineContentVisible()

void SwTextNode::SetAttrOutlineContentVisible ( bool  bVisible)

◆ SetAttrOutlineLevel()

void SwTextNode::SetAttrOutlineLevel ( int  nLevel)

Sets the out line level at a text node.

Parameters
nLevelthe level to be set

If the text node has an outline number the level is set at the outline number.

If the text node has no outline number but has a paragraph style applied the outline level is set at the paragraph style.

NOTE: This is subject to change, see GetOutlineLevel.

Definition at line 4173 of file ndtxt.cxx.

References MAXLEVEL, RES_PARATR_OUTLINELEVEL(), and SetAttr().

Referenced by SwDoc::OutlineUpDown().

◆ SetAutoCompleteWordDirty()

void SwTextNode::SetAutoCompleteWordDirty ( bool  bNew) const

◆ SetCalcHiddenCharFlags()

void SwTextNode::SetCalcHiddenCharFlags ( ) const
inline

◆ SetCalcHiddenParaField()

void SwTextNode::SetCalcHiddenParaField ( )
inline

set CalcVisible flags

Definition at line 765 of file ndtxt.hxx.

Referenced by DestroyAttr(), and InsertHint().

◆ SetCountedInList()

void SwTextNode::SetCountedInList ( bool  bCounted)

◆ SetEmptyListStyleDueToSetOutlineLevelAttr()

void SwTextNode::SetEmptyListStyleDueToSetOutlineLevelAttr ( )

Definition at line 4200 of file ndtxt.cxx.

References mbEmptyListStyleSetDueToSetOutlineLevelAttr, and SetAttr().

◆ SetGrammarCheck()

void SwTextNode::SetGrammarCheck ( std::unique_ptr< SwGrammarMarkUp pNew)

◆ SetGrammarCheckDirty()

void SwTextNode::SetGrammarCheckDirty ( bool  bNew) const

◆ SetHiddenCharAttribute()

void SwTextNode::SetHiddenCharAttribute ( bool  bNewHiddenCharsHidePara,
bool  bNewContainsHiddenChars 
) const
inlineprivate

◆ SetInSwUndo()

void SwTextNode::SetInSwUndo ( bool  bInUndo)

Definition at line 5094 of file ndtxt.cxx.

References m_bInUndo.

Referenced by SwUndoDelete::UndoImpl().

◆ SetLanguageAndFont()

void SwTextNode::SetLanguageAndFont ( const SwPaM rPaM,
LanguageType  nLang,
sal_uInt16  nLangWhichId,
const vcl::Font pFont,
sal_uInt16  nFontWhichId 
)
private

◆ SetListId()

void SwTextNode::SetListId ( OUString const &  rListId)

◆ SetListRestart()

void SwTextNode::SetListRestart ( bool  bRestart)

◆ SetSmartTagDirty()

void SwTextNode::SetSmartTagDirty ( bool  bNew) const

◆ SetSmartTags()

void SwTextNode::SetSmartTags ( std::unique_ptr< SwWrongList pNew)

◆ SetWordCountDirty()

void SwTextNode::SetWordCountDirty ( bool  bNew) const

◆ SetWrong()

void SwTextNode::SetWrong ( std::unique_ptr< SwWrongList pNew)

◆ SetWrongDirty()

void SwTextNode::SetWrongDirty ( sw::WrongState  eNew) const

◆ SetXParagraph()

void SwTextNode::SetXParagraph ( rtl::Reference< SwXParagraph > const &  xParagraph)

◆ Spell()

bool SwTextNode::Spell ( SwSpellArgs pArgs)

◆ SplitContentNode()

SwTextNode * SwTextNode::SplitContentNode ( const SwPosition rPos,
std::function< void(SwTextNode *, sw::mark::RestoreMode, bool AtStart)> const *  pContentIndexRestore 
)

Definition at line 428 of file ndtxt.cxx.

References Clear, CutText(), SwFrameFormat::DelFrames(), SwTextAttr::Destroy(), DestroyAttr(), SwTextAttr::DontExpand(), SwIterator< TElementType, TSource, eMode >::First(), SwNode::First, sw::mark::Flys, SwTextAttr::GetAutoFormat(), SwPosition::GetContentIndex(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwTextAttr::GetFlyCnt(), SwFormatFlyCnt::GetFrameFormat(), GetGrammarCheck(), SfxItemSet::GetItemIfSet(), SwPosition::GetNode(), GetNumRule(), GetOrCreateSwpHints(), SwNode::GetRedlineMergeFlag(), GetSmartTags(), SwTextAttr::GetStart(), SwFormatAutoFormat::GetStyleHandle(), SwContentNode::GetSwAttrSet(), GetWrong(), HasHints(), SwNode::Hidden, i, sw::BorderCacheOwner::InvalidateInSwCache(), IsOutline(), lcl_ChangeFootnoteRef(), m_pSwpHints, m_Text, SwContentNode::MakeFramesForAdjacentContentNode(), MakeNewTextNode(), sw::MoveMergedFlysAndFootnotes(), MoveTextAttr_To_AttrSet(), SwIterator< TElementType, TSource, eMode >::Next(), SwNode::None, SwNode::NonFirst, sw::mark::NonFlys, ReleaseGrammarCheck(), ReleaseSmartTags(), ReleaseWrong(), RES_ATTRSET_CHG(), RES_CHRATR_ESCAPEMENT(), RES_PAGEDESC(), RES_PARATR_LIST_ID(), RES_PARATR_LIST_ISCOUNTED(), RES_PARATR_LIST_ISRESTART(), RES_PARATR_LIST_LEVEL(), RES_PARATR_LIST_RESTARTVALUE(), RES_TXTATR_AUTOFMT(), RES_TXTATR_FLYCNT(), SwNode::resetAndQueueAccessibilityCheck(), ResetAttr(), SetGrammarCheck(), SetGrammarCheckDirty(), SwpHints::SetInSplitNode(), SwNode::SetRedlineMergeFlag(), SetSmartTagDirty(), SetSmartTags(), SetWordCountDirty(), SetWrong(), SetWrongDirty(), sw::TODO, TriggerNodeUpdate(), and SwTextAttr::Which().

Referenced by sw::DocumentContentOperationsManager::MoveRange(), SwNodes::MoveRange(), SwNodes::TextToTable(), and SwNodes::UndoTableToText().

◆ SwClientNotify()

void SwTextNode::SwClientNotify ( const SwModify rModify,
const SfxHint rHint 
)
overrideprivatevirtual

Reimplemented from SwContentNode.

Definition at line 5515 of file ndtxt.cxx.

References SwContentNode::ChkCondColl(), SfxHint::GetId(), and TriggerNodeUpdate().

◆ TransliterateText()

void SwTextNode::TransliterateText ( utl::TransliterationWrapper rTrans,
sal_Int32  nStart,
sal_Int32  nEnd,
SwUndoTransliterate pUndo,
bool  bUseRedlining = false 
)

◆ TriggerNodeUpdate()

void SwTextNode::TriggerNodeUpdate ( const sw::LegacyModifyHint rHint)

◆ TryDeleteSwpHints()

void SwTextNode::TryDeleteSwpHints ( )
inlineprivate

◆ Update()

void SwTextNode::Update ( SwContentIndex const &  rPos,
const sal_Int32  nChangeLen,
UpdateMode  eMode 
)
overridevirtual

override SwContentIndexReg

Definition at line 1251 of file ndtxt.cxx.

References SwContentIndex::Assign(), IDocumentMarkAccess::assureSortedMarkContainers(), SwTextAttr::Destroy(), SwTextAttr::DontExpand(), eMode, SwPaM::End(), SwFrame::FindPageFrame(), SwIterator< TElementType, TSource, eMode >::First(), SwFormat::GetAnchor(), SwNode::GetAnchoredFlys(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwTextAttr::GetAttr(), SwFormatAnchor::GetContentAnchor(), SwPosition::GetContentIndex(), SwContentIndex::GetContentNode(), SwNode::GetDoc(), SwDoc::GetDocShell(), SwTextAttr::GetEnd(), SwNode::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwContentIndex::GetIndex(), SwPaM::GetMark(), sw::mark::IMark::GetMarkEnd(), sw::mark::IMark::GetMarkStart(), SwContentIndex::GetNext(), SwPosition::GetNode(), SwPaM::GetPoint(), SwContentIndex::GetRedline(), IDocumentRedlineAccess::GetRedlineTable(), sw::Ring< value_type >::GetRingContainer(), SwTextAttr::GetStart(), HasHints(), SwPaM::HasMark(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), comphelper::LibreOfficeKit::isActive(), SwTextAttr::IsCharFormatAttr(), isCHRATR(), sw::mark::IMark::IsExpanded(), SwTextAttr::IsFormatIgnoreEnd(), SwNode::IsIgnoreDontExpand(), isTXTATR_WITHEND(), SwRedlineTable::LOKRedlineNotification(), m_bInUndo, m_pSwpHints, MakeTextAttr(), Modify, n, SwPosition::nContent, nCount, SwIterator< TElementType, TSource, eMode >::Next(), RES_CHRATR_BEGIN(), RES_TXTATR_CHARFMT(), RES_TXTATR_INETFMT(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_WITHEND_END(), SetAutoCompleteWordDirty(), SwTextAttr::SetDontExpand(), SwTextAttr::SetEnd(), SwTextAttr::SetStart(), SwRedlineTable::size(), Start, SwPaM::Start(), SwSortedObjs::UpdateAll(), SwTextInputField::UpdateFieldContent(), and SwTextAttr::Which().

Referenced by CutImpl(), EraseText(), InsertHint(), InsertText(), ReplaceText(), and ReplaceTextOnly().

◆ UpdateDocPos()

void SwTextNode::UpdateDocPos ( const SwTwips  nDocPos,
const sal_uInt32  nIndex 
)

Definition at line 5443 of file ndtxt.cxx.

References nIndex.

Referenced by SwFormatField::UpdateDocPos().

◆ UpdateOutlineState()

void SwTextNode::UpdateOutlineState ( )

Definition at line 4163 of file ndtxt.cxx.

References IsOutline(), and m_bLastOutlineState.

Referenced by SwNodes::UpdateOutlineNode().

Friends And Related Function Documentation

◆ sw::TextNodeNotificationSuppressor

Definition at line 119 of file ndtxt.hxx.

◆ SwContentNode

friend class SwContentNode
friend

Definition at line 113 of file ndtxt.hxx.

◆ SwDoc

friend class SwDoc
friend

For creating the first TextNode.

CTOR and AppendTextNode()

Definition at line 115 of file ndtxt.hxx.

◆ SwNodes

friend class SwNodes
friend

Definition at line 116 of file ndtxt.hxx.

◆ SwScriptInfo

friend class SwScriptInfo
friend

Definition at line 118 of file ndtxt.hxx.

◆ SwTextFrame

friend class SwTextFrame
friend

Definition at line 117 of file ndtxt.hxx.

Member Data Documentation

◆ m_aParagraphIdleData

sw::ParagraphIdleData SwTextNode::m_aParagraphIdleData
mutableprivate

◆ m_bContainsHiddenChars

bool SwTextNode::m_bContainsHiddenChars
mutableprivate

Some of the chars this para are hidden.

Paragraph has to be reformatted on changing the view to print preview.

Definition at line 135 of file ndtxt.hxx.

Referenced by SwTextNode().

◆ m_bHiddenCharsHidePara

bool SwTextNode::m_bHiddenCharsHidePara
mutableprivate

The whole paragraph is hidden because of the hidden text attribute.

Definition at line 137 of file ndtxt.hxx.

Referenced by SwTextNode().

◆ m_bInUndo

bool SwTextNode::m_bInUndo
private

Is an undo operation in progress?

Definition at line 152 of file ndtxt.hxx.

Referenced by SetInSwUndo(), and Update().

◆ m_bLastOutlineState

bool SwTextNode::m_bLastOutlineState
mutableprivate

Definition at line 141 of file ndtxt.hxx.

Referenced by IsOutlineStateChanged(), and UpdateOutlineState().

◆ m_bNotifiable

bool SwTextNode::m_bNotifiable
private

◆ m_bRecalcHiddenCharFlags

bool SwTextNode::m_bRecalcHiddenCharFlags
mutableprivate

The last two flags have to be recalculated if this flag is set:

Definition at line 139 of file ndtxt.hxx.

Referenced by SwTextNode().

◆ m_oNumStringCache

std::optional< OUString > SwTextNode::m_oNumStringCache
private

Definition at line 154 of file ndtxt.hxx.

Referenced by CopyText(), and GetNumString().

◆ m_pSwpHints

std::unique_ptr<SwpHints> SwTextNode::m_pSwpHints
private

◆ m_Text

OUString SwTextNode::m_Text
private

◆ m_wXParagraph

unotools::WeakReference<SwXParagraph> SwTextNode::m_wXParagraph
private

Definition at line 156 of file ndtxt.hxx.

Referenced by SetXParagraph().

◆ maFillAttributes

drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwTextNode::maFillAttributes
private

Definition at line 159 of file ndtxt.hxx.

Referenced by ChgFormatColl(), getSdrAllFillAttributesHelper(), and TriggerNodeUpdate().

◆ mbEmptyListStyleSetDueToSetOutlineLevelAttr

bool SwTextNode::mbEmptyListStyleSetDueToSetOutlineLevelAttr
private

◆ mbInSetOrResetAttr

bool SwTextNode::mbInSetOrResetAttr
private

boolean, indicating that a <SetAttr(..)> or <ResetAttr(..)> or <ResetAllAttr(..)> method is running.

Needed to avoid duplicate handling of attribute change actions.

Definition at line 149 of file ndtxt.hxx.

Referenced by ChgFormatColl(), ResetAllAttr(), ResetAttr(), SetAttr(), and TriggerNodeUpdate().

◆ mpNodeNum

std::unique_ptr<SwNodeNum> SwTextNode::mpNodeNum
mutableprivate

Numbering for this paragraph.

Definition at line 125 of file ndtxt.hxx.

Referenced by AddToList(), DoNum(), GetNum(), NumRuleChgd(), and RemoveFromList().

◆ mpNodeNumOrig

std::unique_ptr<SwNodeNum> SwTextNode::mpNodeNumOrig
mutableprivate

Numbering for this paragraph (before changes)

Definition at line 127 of file ndtxt.hxx.

Referenced by AddToListOrig(), DoNum(), GetNum(), and RemoveFromListOrig().

◆ mpNodeNumRLHidden

std::unique_ptr<SwNodeNum> SwTextNode::mpNodeNumRLHidden
mutableprivate

Numbering for this paragraph (hidden redlines)

Definition at line 126 of file ndtxt.hxx.

Referenced by AddToList(), AddToListRLHidden(), DoNum(), GetActualListLevel(), GetNum(), NumRuleChgd(), and RemoveFromListRLHidden().


The documentation for this class was generated from the following files: