LibreOffice Module sw (master)
1
|
SwTextNode is a paragraph in the document model. More...
#include <ndtxt.hxx>
Public Types | |
enum | WrongState { WrongState::TODO, WrongState::PENDING, WrongState::DONE } |
enum | GetTextAttrMode { DEFAULT, EXPAND, PARENT } |
![]() | |
enum | Merge { Merge::None, Merge::First, Merge::NonFirst, Merge::Hidden } |
sw_redlinehide: redline node merge state More... | |
Public Member Functions | |
bool | IsWordCountDirty () const |
WrongState | GetWrongDirty () const |
bool | IsWrongDirty () const |
bool | IsGrammarCheckDirty () const |
bool | IsSmartTagDirty () const |
bool | IsAutoCompleteWordDirty () const |
void | SetWordCountDirty (bool bNew) const |
void | SetWrongDirty (WrongState eNew) const |
void | SetGrammarCheckDirty (bool bNew) const |
void | SetSmartTagDirty (bool bNew) const |
void | SetAutoCompleteWordDirty (bool bNew) const |
void | SetWrong (SwWrongList *pNew, bool bDelete=true) |
SwWrongList * | GetWrong () |
const SwWrongList * | GetWrong () const |
void | SetGrammarCheck (SwGrammarMarkUp *pNew, bool bDelete=true) |
SwGrammarMarkUp * | GetGrammarCheck () |
SwWrongList const * | GetGrammarCheck () const |
void | SetSmartTags (SwWrongList *pNew, bool bDelete=true) |
SwWrongList * | GetSmartTags () |
SwWrongList const * | GetSmartTags () const |
void | TryCharSetExpandToNum (const SfxItemSet &pCharSet) |
void | TriggerNodeUpdate (const sw::LegacyModifyHint &) |
for hanging TextFormatCollections somewhere else (Outline-Numbering!) More... | |
const OUString & | GetText () const |
sal_Int32 | GetSpaceLeft () const |
SwpHints & | GetSwpHints () |
getters for SwpHints More... | |
const SwpHints & | GetSwpHints () const |
SwpHints * | GetpSwpHints () |
const SwpHints * | GetpSwpHints () const |
bool | HasHints () const |
SwpHints & | GetOrCreateSwpHints () |
virtual | ~SwTextNode () override |
virtual sal_Int32 | Len () const override |
void | GetMinMaxSize (sal_uLong 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 SwIndex &rIdx, const SwInsertFlags nMode=SwInsertFlags::DEFAULT) |
insert text content More... | |
void | EraseText (const SwIndex &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 | RstTextAttr (const SwIndex &rIdx, 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... | |
SwTextAttr * | InsertItem (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 SwIndex &rStart, const sal_Int32 nLen, const bool bForceCopyOfAllAttrs) |
Actions on text and attributes. More... | |
void | CopyText (SwTextNode *const pDest, const SwIndex &rDestStart, const SwIndex &rStart, sal_Int32 nLen, const bool bForceCopyOfAllAttrs=false) |
void | CutText (SwTextNode *const pDest, const SwIndex &rStart, const sal_Int32 nLen) |
void | CutText (SwTextNode *const pDest, const SwIndex &rDestStart, const SwIndex &rStart, const sal_Int32 nLen) |
void | ReplaceText (const SwIndex &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 | ReplaceTextOnly (sal_Int32 nPos, sal_Int32 nLen, const OUString &rText, const css::uno::Sequence< sal_Int32 > &rOffsets) |
virtual SwContentFrame * | MakeFrame (SwFrame *) override |
Virtual methods from ContentNode. More... | |
SwTextNode * | SplitContentNode (const SwPosition &, std::function< void(SwTextNode *, sw::mark::RestoreMode, bool AtStart)> const *pContentIndexRestore) |
virtual SwContentNode * | JoinNext () override |
void | JoinPrev () |
SwContentNode * | AppendNode (const SwPosition &) |
bool | DontExpandFormat (const SwIndex &rIdx, bool bFlag=true, bool bFormatToTextAttributes=true) |
When appropriate set DontExpand-flag at INet or character styles respectively. More... | |
SwTextAttr * | GetTextAttrAt (sal_Int32 const nIndex, sal_uInt16 const nWhich, enum GetTextAttrMode const eMode=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... | |
SwTextAttr * | 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. More... | |
SwTextField * | GetFieldTextAttrAt (const sal_Int32 nIndex, const bool bIncludeInputFieldAtStart=false) const |
bool | Spell (SwSpellArgs *) |
bool | Convert (SwConversionArgs &) |
SwTextFormatColl * | GetTextColl () const |
virtual SwFormatColl * | ChgFormatColl (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... | |
SwNumRule * | GetNumRule (bool bInParent=true) const |
Returns numbering rule of this text node. More... | |
const SwNodeNum * | GetNum (SwRootFrame const *pLayout=nullptr) const |
void | DoNum (std::function< void(SwNodeNum &)> const &) |
SwNumberTree::tNumberVector | GetNumberVector (SwRootFrame const *pLayout=nullptr) 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) 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 |
void | ClearLRSpaceItemDueToListLevelIndents (std::shared_ptr< SvxLRSpaceItem > &o_rLRSpaceItem) const |
tools::Long | GetLeftMarginForTabCalculation () const |
return left margin for tab stop position calculation More... | |
bool | HasNumber () 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 () 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... | |
bool | 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 |
bool | AreListLevelIndentsApplicable () const |
Determines, if the list level indent attributes can be applied to the paragraph. More... | |
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 SwContentNode * | MakeCopy (SwDoc &, const SwNodeIndex &, 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) 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 SwIndex *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 (SwIndex const &rPos, const sal_Int32 nChangeLen, const bool bNegative=false, const bool bDelete=false) override |
override SwIndexReg 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 | RemoveFromList () |
void | RemoveFromListRLHidden () |
bool | IsInList () const |
bool | IsFirstOfNumRule (SwRootFrame const &rLayout) const |
SAL_DLLPRIVATE css::uno::WeakReference< css::text::XTextContent > const & | GetXParagraph () const |
SAL_DLLPRIVATE void | SetXParagraph (css::uno::Reference< css::text::XTextContent > const &xParagraph) |
virtual ::sfx2::IXmlIdRegistry & | GetRegistry () override |
sfx2::Metadatable More... | |
virtual bool | IsInClipboard () const override |
virtual bool | IsInUndo () const override |
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 |
![]() | |
bool | CanJoinNext (SwNodeIndex *pIdx=nullptr) const |
Is it possible to join two nodes? In pIdx the second position can be returned. More... | |
bool | CanJoinPrev (SwNodeIndex *pIdx=nullptr) const |
Can we join two Nodes? We can return the 2nd position in pIdx. More... | |
void | MakeStartIndex (SwIndex *pIdx) |
void | MakeEndIndex (SwIndex *pIdx) |
bool | GoNext (SwIndex *, sal_uInt16 nMode) const |
bool | GoPrevious (SwIndex *, sal_uInt16 nMode) const |
SwContentFrame * | getLayoutFrame (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 bool | GetInfo (SfxPoolItem &) const override |
Get information from Client. More... | |
const SfxPoolItem & | GetAttr (sal_uInt16 nWhich, bool bInParent=true) const |
SS for PoolItems: hard attributation. More... | |
bool | GetAttr (SfxItemSet &rSet) const |
const SfxPoolItem * | GetNoCondAttr (sal_uInt16 nWhich, bool bInParents) const |
Obtains attribute that is not delivered via conditional style! More... | |
const SwAttrSet & | GetSwAttrSet () const |
Does node has already its own auto-attributes? Access to SwAttrSet. More... | |
const SwAttrSet * | GetpSwAttrSet () const |
bool | HasSwAttrSet () const |
SwFormatColl * | GetFormatColl () const |
SwFormatColl & | GetAnyFormatColl () const |
void | SetCondFormatColl (SwFormatColl *) |
SwFormatColl * | GetCondFormatColl () 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 |
void | UpdateAttr (const SwUpdateAttr &) |
![]() | |
virtual void | CallSwClientNotify (const SfxHint &rHint) const override |
![]() | |
SwModify () | |
virtual | ~SwModify () override |
void | Add (SwClient *pDepend) |
SwClient * | Remove (SwClient *pDepend) |
bool | HasWriterListeners () const |
bool | HasOnlyOneListener () const |
void | LockModify () |
void | UnlockModify () |
bool | IsModifyLocked () const |
![]() | |
SwClient () | |
SwClient (SwClient &&) noexcept | |
virtual | ~SwClient () override |
std::unique_ptr< sw::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
![]() | |
bool | IsLast () const |
![]() | |
BroadcasterMixin ()=default | |
BroadcasterMixin (BroadcasterMixin const &)=default | |
BroadcasterMixin & | operator= (const BroadcasterMixin &) |
SvtBroadcaster & | GetNotifier () |
![]() | |
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... | |
sal_uLong | StartOfSectionIndex () const |
const SwStartNode * | StartOfSectionNode () const |
SwStartNode * | StartOfSectionNode () |
sal_uLong | EndOfSectionIndex () const |
const SwEndNode * | EndOfSectionNode () const |
SwEndNode * | EndOfSectionNode () |
sal_uInt8 | GetAutoFormatLvl () const |
void | SetAutoFormatLvl (sal_uInt8 nVal) |
bool | IsIgnoreDontExpand () const |
void | SetIgnoreDontExpand (bool bNew) |
SwNodeType | GetNodeType () const |
SwStartNode * | GetStartNode () |
const SwStartNode * | GetStartNode () const |
SwContentNode * | GetContentNode () |
const SwContentNode * | GetContentNode () const |
SwEndNode * | GetEndNode () |
const SwEndNode * | GetEndNode () const |
SwTextNode * | GetTextNode () |
Inline methods from Node.hxx. More... | |
const SwTextNode * | GetTextNode () const |
SwOLENode * | GetOLENode () |
Inline methods from Node.hxx. More... | |
const SwOLENode * | GetOLENode () const |
SwNoTextNode * | GetNoTextNode () |
const SwNoTextNode * | GetNoTextNode () const |
SwGrfNode * | GetGrfNode () |
const SwGrfNode * | GetGrfNode () const |
SwTableNode * | GetTableNode () |
const SwTableNode * | GetTableNode () const |
SwSectionNode * | GetSectionNode () |
const SwSectionNode * | GetSectionNode () 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... | |
SwTableNode * | FindTableNode () |
Search table node, in which it is. More... | |
const SwTableNode * | FindTableNode () const |
SwSectionNode * | FindSectionNode () |
Search section node, in which it is. More... | |
const SwSectionNode * | FindSectionNode () const |
SwStartNode * | FindSttNodeByType (SwStartNodeType eTyp) |
const SwStartNode * | FindSttNodeByType (SwStartNodeType eTyp) const |
const SwStartNode * | FindTableBoxStartNode () const |
const SwStartNode * | FindFlyStartNode () const |
const SwStartNode * | FindFootnoteStartNode () const |
const SwStartNode * | FindHeaderStartNode () const |
const SwStartNode * | FindFooterStartNode () const |
SwNodes & | GetNodes () |
Node is in which nodes-array/doc? More... | |
const SwNodes & | GetNodes () const |
SwDoc & | GetDoc () |
const SwDoc & | GetDoc () const |
const IDocumentSettingAccess * | getIDocumentSettingAccess () const |
Provides access to the document setting interface. More... | |
const IDocumentDeviceAccess & | getIDocumentDeviceAccess () const |
Provides access to the document device interface. More... | |
const IDocumentMarkAccess * | getIDocumentMarkAccess () const |
Provides access to the document bookmark interface. More... | |
const IDocumentRedlineAccess & | getIDocumentRedlineAccess () const |
Provides access to the document redline interface. More... | |
const IDocumentStylePoolAccess & | getIDocumentStylePoolAccess () const |
Provides access to the document style pool interface. More... | |
const IDocumentDrawModelAccess & | getIDocumentDrawModelAccess () const |
Provides access to the document draw model interface. More... | |
const IDocumentLayoutAccess & | getIDocumentLayoutAccess () const |
Provides access to the document layout interface. More... | |
IDocumentLayoutAccess & | getIDocumentLayoutAccess () |
const IDocumentLinksAdministration & | getIDocumentLinksAdministration () const |
Provides access to the document links administration interface. More... | |
IDocumentLinksAdministration & | getIDocumentLinksAdministration () |
const IDocumentFieldsAccess & | getIDocumentFieldsAccess () const |
Provides access to the document fields administration interface. More... | |
IDocumentFieldsAccess & | getIDocumentFieldsAccess () |
IDocumentContentOperations & | getIDocumentContentOperations () |
Provides access to the document content operations interface. More... | |
IStyleAccess & | getIDocumentStyleAccess () |
Provides access to the document automatic styles interface. More... | |
IDocumentListItems & | getIDocumentListItems () |
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 ... More... | |
const SwPageDesc * | FindPageDesc (size_t *pPgDescNdIdx=nullptr) const |
Search PageDesc with which this node is formatted. More... | |
SwFrameFormat * | GetFlyFormat () const |
If node is in a fly return the respective format. More... | |
SwTableBox * | GetTableBox () const |
If node is in a table return the respective table box. More... | |
sal_uLong | GetIndex () const |
const SwTextNode * | FindOutlineNodeOfLevel (sal_uInt8 nLvl, SwRootFrame const *pLayout=nullptr) const |
sal_uInt8 | HasPrevNextLayNode () const |
std::vector< SwFrameFormat * > const * | GetAnchoredFlys () const |
void | AddAnchoredFly (SwFrameFormat *) |
void | RemoveAnchoredFly (SwFrameFormat *) |
![]() | |
BorderCacheOwner () | |
BorderCacheOwner (BorderCacheOwner &) | |
BorderCacheOwner & | operator= (const BorderCacheOwner &) |
~BorderCacheOwner () | |
bool | IsInCache () const |
void | InvalidateInSwCache (const sal_uInt16) |
![]() | |
SwIndexReg () | |
virtual | ~SwIndexReg () |
void | MoveTo (SwIndexReg &rArr) |
const SwIndex * | GetFirstIndex () const |
![]() | |
Metadatable () | |
virtual | ~Metadatable () |
css::beans::StringPair | GetMetadataReference () const |
void | SetMetadataReference (const css::beans::StringPair &i_rReference) |
void | EnsureMetadataReference () |
void | RemoveMetadataReference () |
void | RegisterAsCopyOf (Metadatable const &i_rSource, const bool i_bCopyPrecedesSource=false) |
std::shared_ptr< MetadatableUndo > | CreateUndo () const |
std::shared_ptr< MetadatableUndo > | CreateUndoForDelete () |
void | RestoreMetadata (std::shared_ptr< MetadatableUndo > const &i_pUndo) |
void | JoinMetadatable (Metadatable const &i_rOther, const bool i_isMergedEmpty, const bool i_isOtherEmpty) |
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 std::unique_ptr< SwOLENodes > | CreateOLENodesArray (const SwFormatColl &rColl, bool bOnlyWithInvalidSize) |
Private Member Functions | |
SAL_DLLPRIVATE | SwTextNode (const SwNodeIndex &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 SwTextNode * | MakeNewTextNode (const SwNodeIndex &, bool bNext=true, bool bChgFollow=true) |
SAL_DLLPRIVATE void | CutImpl (SwTextNode *const pDest, const SwIndex &rDestStart, const SwIndex &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) |
SAL_DLLPRIVATE void | InitSwParaStatistics (bool bNew) |
Start: Data collected during idle time. More... | |
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 SwTextInputField * | GetOverlappingInputField (const SwTextAttr &rTextAttr) const |
void | DelFrames_TextNodePart () |
Private Attributes | |
std::unique_ptr< SwpHints > | m_pSwpHints |
May be 0. More... | |
std::unique_ptr< SwNodeNum > | mpNodeNum |
Numbering for this paragraph. More... | |
std::unique_ptr< SwNodeNum > | mpNodeNumRLHidden |
Numbering for this paragraph (hidden redlines) More... | |
OUString | m_Text |
SwParaIdleData_Impl * | m_pParaIdleData_Impl |
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... | |
std::unique_ptr< OUString > | m_pNumStringCache |
css::uno::WeakReference< css::text::XTextContent > | m_wXParagraph |
drawinglayer::attribute::SdrAllFillAttributesHelperPtr | maFillAttributes |
Friends | |
class | SwContentNode |
class | SwDoc |
For creating the first TextNode. More... | |
class | SwNodes |
class | SwTextFrame |
class | SwScriptInfo |
Additional Inherited Members | |
![]() | |
SwContentNode (const SwNodeIndex &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... | |
sal_uInt16 | ClearItemsFromAttrSet (const std::vector< sal_uInt16 > &rWhichIds) |
There some functions that like to remove items from the internal SwAttrSet (handle): More... | |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
![]() | |
SwNode (const SwNodeIndex &rWhere, const SwNodeType nNodeId) | |
SwNode (SwNodes &rNodes, sal_uLong nPos, const SwNodeType nNodeId) | |
for the initial StartNode More... | |
![]() | |
bool | HasAnyIndex () const |
![]() | |
virtual | ~FormatDropDefiner () |
![]() | |
std::shared_ptr< const SfxItemSet > | mpAttrSet |
Attribute-set for all auto attributes of a ContentNode. More... | |
![]() | |
SwStartNode * | m_pStartOfSection |
SwTextNode is a paragraph in the document model.
|
strong |
|
private |
Definition at line 188 of file ndtxt.cxx.
References AddToList(), SwTextFormatColl::GetAssignedOutlineStyleLevel(), GetListId(), SwNode::GetNodes(), GetNumRule(), HasAttrListLevel(), InitSwParaStatistics(), SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), IsInList(), m_bContainsHiddenChars, m_bHiddenCharsHidePara, m_bNotifiable, m_bRecalcHiddenCharFlags, m_Text, SetAttr(), SetAttrListLevel(), Text, and SwNodes::UpdateOutlineNode().
Referenced by MakeNewTextNode().
|
overridevirtual |
Definition at line 231 of file ndtxt.cxx.
References assert(), SwContentNode::DelFrames(), DelFrames_TextNodePart(), DestroyAttr(), SwNode::GetNodes(), InitSwParaStatistics(), sw::BorderCacheOwner::InvalidateInSwCache(), m_pSwpHints, RemoveFromList(), RES_OBJECTDYING(), RES_PAGEDESC(), and ResetAttr().
void SwTextNode::AddToList | ( | ) |
Definition at line 4275 of file ndtxt.cxx.
References AddToListRLHidden(), assert(), FindList(), SwIterator< TElementType, TSource, eMode >::First(), GetAttrListLevel(), SwNode::GetNodes(), SwList::InsertListItem(), IsInList(), mpNodeNum, and SwIterator< TElementType, TSource, eMode >::Next().
Referenced by AppendNode(), SwNodes::ChgNode(), SwDoc::SetNumRule(), and SwTextNode().
void SwTextNode::AddToListRLHidden | ( | ) |
Definition at line 4305 of file ndtxt.cxx.
References assert(), FindList(), GetAttrListLevel(), SwList::InsertListItem(), and mpNodeNumRLHidden.
Referenced by AddToList(), sw::CheckParaRedlineMerge(), sw::UpdateMergedParaForDelete(), and sw::UpdateMergedParaForInsert().
SwContentNode * SwTextNode::AppendNode | ( | const SwPosition & | rPos | ) |
Definition at line 3024 of file ndtxt.cxx.
References AddToList(), GetListId(), GetNumRule(), SwModify::HasWriterListeners(), IsInList(), SwContentNode::MakeFramesForAdjacentContentNode(), MakeNewTextNode(), SwPosition::nNode, RES_PARATR_LIST_ID(), RES_PARATR_LIST_ISCOUNTED(), RES_PARATR_LIST_ISRESTART(), RES_PARATR_LIST_LEVEL(), RES_PARATR_LIST_RESTARTVALUE(), and ResetAttr().
Referenced by sw::DocumentContentOperationsManager::AppendTextNode(), and SwXMLTextBlocks::MakeBlockText().
bool 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:
Definition at line 4416 of file ndtxt.cxx.
References SwFormat::DerivedFrom(), SwFormat::GetAttrSet(), SfxItemSet::GetItemState(), GetNum(), GetNumRule(), SwContentNode::GetpSwAttrSet(), GetTextColl(), SwContentNode::HasSwAttrSet(), RES_LR_SPACE(), and RES_PARATR_NUMRULE().
Referenced by ClearLRSpaceItemDueToListLevelIndents(), SwTextMargin::CtorInitTextMargin(), GetAdditionalIndentForStartingNewList(), GetFirstLineOfsWithNum(), GetLeftMarginForTabCalculation(), GetLeftMarginWithNum(), GetListTabStopPosition(), lcl_MergeListLevelIndentAsLRSpaceItem(), SwDoc::MoveLeftMargin(), MSWordExportBase::OutputTextNode(), and SwWW8ImplReader::Read_LR().
|
private |
Definition at line 4554 of file ndtxt.cxx.
References SwScriptInfo::GetBoundsOfHiddenRange().
|
inline |
Definition at line 709 of file ndtxt.hxx.
Referenced by SwTextField::ExpandTextField().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 3921 of file ndtxt.cxx.
References SwContentNode::ChgFormatColl(), ChgTextCollUpdateNum(), SwNode::GetNodes(), GetTextColl(), maFillAttributes, mbInSetOrResetAttr, and SetCalcHiddenCharFlags().
Referenced by SwDoc::ClearDoc(), SwHTMLParser::Continue(), CopyCollFormat(), SwXMLImport::endDocument(), SwNodes::InsBoxen(), SwHTMLParser::InsertTableSection(), SwXMLTextBlocks::MakeBlockText(), MakeNewTextNode(), SwDoc::OutlineUpDown(), SwUndoInserts::RedoImpl(), SwDoc::Summary(), and SwUndoInserts::UndoImpl().
void SwTextNode::ChgTextCollUpdateNum | ( | const SwTextFormatColl * | pOld, |
const SwTextFormatColl * | pNew | ||
) |
Definition at line 1574 of file ndtxt.cxx.
References SwContentNode::ChkCondColl(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), FTNNUM_CHAPTER, SwTextFormatColl::GetAssignedOutlineStyleLevel(), SwNode::GetDoc(), SwDoc::GetFootnoteIdxs(), SwDoc::GetFootnoteInfo(), SwNode::GetIndex(), SwNode::GetNodes(), SwDoc::GetNodes(), SwTextFormatColl::IsAssignedToListLevelOfOutlineStyle(), SwNodes::IsDocNodes(), SwFootnoteInfo::m_eNum, MAXLEVEL, RES_CONDTXTFMTCOLL(), SetAttrListLevel(), SwFootnoteIdxs::UpdateFootnote(), SwNodes::UpdateOutlineNode(), and SwFormat::Which().
Referenced by ChgFormatColl(), MakeNewTextNode(), and TriggerNodeUpdate().
void SwTextNode::ClearLRSpaceItemDueToListLevelIndents | ( | std::shared_ptr< SvxLRSpaceItem > & | o_rLRSpaceItem | ) | const |
Definition at line 3282 of file ndtxt.cxx.
References AreListLevelIndentsApplicable(), SwNumRule::Get(), GetActualListLevel(), GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SvxNumberFormat::LABEL_ALIGNMENT, and RES_LR_SPACE().
Referenced by SwBorderAttrs::SwBorderAttrs().
void SwTextNode::ClearSwpHintsArr | ( | bool | bDelFields | ) |
Definition at line 3387 of file thints.cxx.
References Count, DestroyAttr(), HasHints(), m_pSwpHints, nPos, RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_INPUTFIELD(), and SwTextAttr::Which().
Referenced by UndoTransliterate_Data::SetChangeAtNode(), SwUndoOverwrite::UndoImpl(), SwUndoDelete::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoReplace::Impl::UndoImpl(), and SwNodes::UndoTableToText().
bool SwTextNode::CompareParRsid | ( | const SwTextNode & | rTextNode | ) | const |
Definition at line 5230 of file ndtxt.cxx.
References GetParRsid().
bool SwTextNode::CompareRsid | ( | const SwTextNode & | rTextNode, |
sal_Int32 | nStt1, | ||
sal_Int32 | nStt2 | ||
) | const |
bool SwTextNode::Convert | ( | SwConversionArgs & | rArgs | ) |
Definition at line 1105 of file txtedt.cxx.
References SwConversionArgs::aConvText, assert(), SwIndex::Assign(), SwConversionArgs::bAllowImplicitChangesForNotConvertibleText, COMPLETE_STRING, SwCursorShell::DeleteCurrent, SwLanguageIterator::GetChgPos(), SwNode::GetDoc(), SwDoc::GetEditShell(), SwIndex::GetIndex(), SwLanguageIterator::GetLanguage(), SwPaM::GetPoint(), SwEditShell::GetScriptType(), editeng::HangulHanjaConversion::IsChinese(), LANGUAGE_NONE, lcl_MaskRedlinesAndHiddenText(), m_Text, SwPosition::nContent, SwConversionArgs::nConvSrcLang, SwConversionArgs::nConvTargetLang, SwConversionArgs::nConvTextLang, SwLanguageIterator::Next(), SwArgsBase::pEndIdx, SwArgsBase::pEndNode, SwCursorShell::Pop(), SwArgsBase::pStartIdx, SwArgsBase::pStartNode, SwConversionArgs::pTargetFont, SwCursorShell::Push(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CJK_LANGUAGE(), SetLanguageAndFont(), SwPaM::SetMark(), and SwCursorShell::SetSelection().
Referenced by SwDoc::Spell().
|
private |
Copies the attributes at nStart to pDest.
copy attributes at position nTextStartIdx to node pDest
Definition at line 1935 of file ndtxt.cxx.
References SwTextAttr::GetAttr(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwTextAttr::GetRefMark(), SwDoc::GetRefMark(), SwFormatRefMark::GetRefName(), SwTextAttr::GetStart(), SwTextAttr::HasDummyChar(), HasHints(), i, InsertItem(), IS_COPY, lcl_CopyHint(), m_pSwpHints, RES_TXTATR_INPUTFIELD(), RES_TXTATR_REFMARK(), TriggerNodeUpdate(), and SwTextAttr::Which().
Referenced by CopyText(), CutImpl(), and MakeCopy().
void SwTextNode::CopyCollFormat | ( | SwTextNode & | rDestNd, |
bool | bUndoForChgFormatColl = true |
||
) |
Copy collection with all auto formats to dest-node.
The latter might be in another document! (Method in ndcopy.cxx!!).
Definition at line 334 of file ndcopy.cxx.
References aBreakSetRange, ChgFormatColl(), SwDoc::CopyTextColl(), SwDoc::GetAttrPool(), SwNode::GetDoc(), SwDoc::GetIDocumentUndoRedo(), SwContentNode::GetpSwAttrSet(), GetTextColl(), RES_BREAK(), RES_PAGEDESC(), and SetAttr().
Referenced by sw::DocumentContentOperationsManager::CopyImplImpl(), SwRangeRedline::CopyToSection(), SwXMLImport::endDocument(), and SwNodes::MoveRange().
bool SwTextNode::CopyExpandText | ( | SwTextNode & | rDestNd, |
const SwIndex * | pDestIdx, | ||
sal_Int32 | nIdx, | ||
sal_Int32 | nLen, | ||
SwRootFrame const * | pLayout, | ||
bool | bWithNum = false , |
||
bool | bWithFootnote = true , |
||
bool | bReplaceTabsWithSpaces = false |
||
) | const |
Definition at line 3426 of file ndtxt.cxx.
References assert(), 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, EMPTYEXPAND, SwTextAttr::End(), EraseText(), SvxFontItem::GetCharSet(), SwNode::GetDoc(), SwDoc::GetEndNoteInfo(), SwTextAttr::GetFootnote(), SwDoc::GetFootnoteInfo(), SwIndex::GetIndex(), CharFormat::GetItem(), SwFormatFootnote::GetNumber(), SwFormatFootnote::GetNumberRLHidden(), SwFormatFootnote::GetNumStr(), GetNumString(), SwTextAttr::GetStart(), GetText(), SwTextAttr::HasDummyChar(), HasHints(), i, InsertItem(), InsertText(), SwFormatFootnote::IsEndNote(), SwRootFrame::IsHideRedlines(), SwEndNoteInfo::m_aFormat, m_pSwpHints, SwScriptInfo::MaskHiddenRanges(), MAXLEVEL, comphelper::string::remove(), RES_CHRATR_ESCAPEMENT(), RES_CHRATR_FONT(), RES_TXTATR_ANNOTATION(), RES_TXTATR_AUTOFMT(), RES_TXTATR_CHARFMT(), RES_TXTATR_FIELD(), RES_TXTATR_FTN(), SAL_INFO_IF, SwIndexReg::SwIndex, and SwTextAttr::Which().
Referenced by SwTOXPara::FillText().
void SwTextNode::CopyText | ( | SwTextNode *const | pDest, |
const SwIndex & | 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 1995 of file ndtxt.cxx.
References m_Text.
Referenced by sw::DocumentContentOperationsManager::CopyImplImpl(), and MakeCopy().
void SwTextNode::CopyText | ( | SwTextNode *const | pDest, |
const SwIndex & | rDestStart, | ||
const SwIndex & | rStart, | ||
sal_Int32 | nLen, | ||
const bool | bForceCopyOfAllAttrs = false |
||
) |
Definition at line 2004 of file ndtxt.cxx.
References sw::sidebar::aArr, assert(), CHECK_SWPHINTS, CHECK_SWPHINTS_IF_FRM, Copy, CopyAttr(), SwAttrSet::CopyToModify(), SwpHints::Delete(), DestroyAttr(), EMPTYEXPAND, EraseText(), SwTextAttr::GetAttr(), SwDoc::GetAttrPool(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwNode::GetNodes(), GetNum(), GetNumString(), SwContentNode::GetpSwAttrSet(), GetpSwpHints(), SwTextAttr::GetRefMark(), SwDoc::GetRefMark(), SwFormatRefMark::GetRefName(), SwTextAttr::GetStart(), GetText(), SwTextAttr::HasDummyChar(), SwContentNode::HasSwAttrSet(), i, InsertHint(), InsertItem(), InsertText(), IS_COPY, SwDoc::IsClipBoard(), SwDoc::IsCopyIsMove(), IDocumentUndoRedo::IsUndoNodes(), lcl_CopyHint(), m_pNumStringCache, m_pSwpHints, m_Text, MakeTextAttr(), n, NOTXTATRCHR, RES_CHRATR_BEGIN(), RES_CHRATR_END(), RES_TXTATR_CHARFMT(), RES_TXTATR_INETFMT(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_METAFIELD(), RES_TXTATR_REFMARK(), RES_UNKNOWNATR_BEGIN(), RES_UNKNOWNATR_END(), SetAttr(), and SwTextAttr::Which().
bool SwTextNode::CountWords | ( | SwDocStat & | rStat, |
sal_Int32 | nStart, | ||
sal_Int32 | nEnd | ||
) | const |
count words in given range - returns true if we refreshed out count
Definition at line 1994 of file txtedt.cxx.
References assert(), CH_TXTATR_BREAKWORD, ModelToViewHelper::ConvertToViewPosition(), ExpandFields, ExpandFootnote, g_pBreakIt, SwBreakIt::GetBreakIter(), SwBreakIt::getGraphemeCount(), SwNode::getIDocumentLayoutAccess(), GetLang(), GetNumString(), GetText(), ModelToViewHelper::getViewText(), SwScanner::GetWord(), HasBullet(), HideDeletions, HideInvisible, IsHidden(), SwNode::IsInRedlines(), IsWordCountDirty(), m_pParaIdleData_Impl, SwDocStat::nAllPara, SwDocStat::nAsianWord, SwDocStat::nChar, SwDocStat::nCharExcludingSpaces, SwParaIdleData_Impl::nNumberOfAsianWords, SwParaIdleData_Impl::nNumberOfChars, SwParaIdleData_Impl::nNumberOfCharsExcludingSpaces, SwParaIdleData_Impl::nNumberOfWords, SwDocStat::nPara, SwDocStat::nWord, and SetWordCountDirty().
Referenced by SwDoc::CountWords(), SwLayIdle::DoIdleJob_(), and sw::DocumentStatisticsManager::IncrementalDocStatCalculate().
|
private |
Definition at line 2411 of file ndtxt.cxx.
References sw::sidebar::aArr, assert(), sw::BroadcastingModify::CallSwClientNotify(), CHECK_SWPHINTS, CopyAttr(), SwAttrSet::CopyToModify(), Count, DONTREPLACE, SfxItemSet::Get(), SwTextAttr::GetAttr(), SwDoc::GetAttrPool(), SwNode::GetDoc(), SwDoc::GetDocShell(), SwTextAttr::GetEnd(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SfxItemSet::GetItemState(), SwNode::GetNodes(), SfxItemSet::GetParent(), SwContentNode::GetpSwAttrSet(), GetSpaceLeft(), SwTextAttr::GetStart(), GetText(), SfxItemSet::GetWhichByPos(), SwTextAttr::HasDummyChar(), SwContentNode::HasSwAttrSet(), InsertHint(), IS_COPY, SwTextAttr::IsFormatIgnoreEnd(), SwTextAttr::IsFormatIgnoreStart(), IsInvalidItem(), IDocumentUndoRedo::IsUndoNodes(), lcl_CopyHint(), m_pSwpHints, m_Text, MakeTextAttr(), NOTXTATRCHR, RES_BREAK(), RES_CHRATR_BEGIN(), RES_CHRATR_END(), RES_FRMATR_CONDITIONAL_STYLE_NAME(), RES_FRMATR_STYLE_NAME(), RES_PAGEDESC(), RES_TXTATR_CHARFMT(), RES_TXTATR_INETFMT(), RES_TXTATR_REFMARK(), RES_UNKNOWNATR_BEGIN(), RES_UNKNOWNATR_END(), SetAttr(), SwTextAttr::SetEnd(), SwTextAttr::SetStart(), TriggerNodeUpdate(), TryDeleteSwpHints(), Update(), and SwTextAttr::Which().
Referenced by CutText().
void SwTextNode::CutText | ( | SwTextNode *const | pDest, |
const SwIndex & | rStart, | ||
const sal_Int32 | nLen | ||
) |
Definition at line 2403 of file ndtxt.cxx.
References assert(), CutImpl(), and GetText().
Referenced by JoinNext(), JoinPrev(), SwNodes::MoveRange(), SplitContentNode(), SwHTMLParser::StripTrailingPara(), and sw_JoinText().
|
inline |
void SwTextNode::DeleteAttribute | ( | SwTextAttr *const | pTextAttr | ) |
delete the attribute pTextAttr
Definition at line 1682 of file thints.cxx.
References assert(), sw::BroadcastingModify::CallSwClientNotify(), SwTextAttr::Destroy(), SwTextAttr::End(), EraseText(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwTextAttr::GetStart(), SwTextAttr::HasContent(), SwTextAttr::HasDummyChar(), HasHints(), m_pSwpHints, TryDeleteSwpHints(), and SwTextAttr::Which().
Referenced by SwHTMLParser::AppendTextNode(), SwDoc::DeleteTOXMark(), SwNodes::RemoveNode(), and ReplaceText().
void SwTextNode::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)
Definition at line 1720 of file thints.cxx.
References assert(), sw::BroadcastingModify::CallSwClientNotify(), SwTextAttr::Destroy(), SwTextAttr::End(), EraseText(), SwFormatCharFormat::GetCharFormat(), SwTextAttr::GetCharFormat(), SwNode::GetDoc(), SwTextAttr::GetEnd(), CharFormat::GetItem(), SwFormat::GetItemState(), SwTextAttr::GetStart(), SwTextAttr::HasContent(), SwTextAttr::HasDummyChar(), HasHints(), m_pSwpHints, nPos, RES_CHRATR_HIDDEN(), RES_TXTATR_AUTOFMT(), RES_TXTATR_CHARFMT(), SetCalcHiddenCharFlags(), TryDeleteSwpHints(), and SwTextAttr::Which().
Referenced by SwXFrame::dispose(), SwXShape::dispose(), SwUndoFormatAttr::RestoreFlyAnchor(), SwDoc::SetFlyFrameAnchor(), SwHistoryResetText::SetInDoc(), SwXShape::setPropertyValue(), and SwUndoSetFlyFormat::UndoImpl().
|
private |
Definition at line 1760 of file ndtxt.cxx.
References SetAutoCompleteWordDirty(), SetGrammarCheck(), SetGrammarCheckDirty(), SetSmartTagDirty(), SetSmartTags(), SetWordCountDirty(), SetWrong(), SetWrongDirty(), and TODO.
Referenced by ~SwTextNode().
void SwTextNode::DelSoftHyph | ( | const sal_Int32 | nStart, |
const sal_Int32 | nEnd | ||
) |
Definition at line 1796 of file thints.cxx.
References CHAR_SOFTHYPHEN, EraseText(), and m_Text.
void SwTextNode::DestroyAttr | ( | SwTextAttr * | pAttr | ) |
Definition at line 1163 of file thints.cxx.
References assert(), SwRDFHelper::clearStatements(), Database, DbNextSet, DbNumSet, DbSetNumber, Dde, IDocumentLayoutAccess::DelLayoutFormat(), SwTextAttr::Destroy(), SwDoc::FieldCanHideParaWeight(), SwTextAttr::GetAttr(), SwDoc::GetAttrPool(), SwNode::GetDoc(), SwDoc::GetDocShell(), GetExp, SwFormatField::GetField(), SwTextAttr::GetFlyCnt(), SwTextAttr::GetFormatField(), SwFormatFlyCnt::GetFrameFormat(), SwDoc::getIDocumentFieldsAccess(), SwDoc::getIDocumentLayoutAccess(), SwNode::GetNodes(), SwTextField::GetpTextNode(), SwField::GetTyp(), HiddenPara, HiddenText, IDocumentFieldsAccess::InsDelFieldInFieldLst(), SwNodes::IsDocNodes(), SwDoc::IsInDtor(), IDocumentFieldsAccess::IsNewFieldLst(), Postit, REMOVED, RES_CHRATR_HIDDEN(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_META(), RES_TXTATR_METAFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), SetCalcHiddenCharFlags(), SetCalcHiddenParaField(), SetExp, static_txtattr_cast(), u, SwTextAttr::Which(), SwFieldType::Which(), and xModel.
Referenced by SwpHints::BuildPortions(), ClearSwpHintsArr(), CopyText(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), EraseText(), GCAttr(), impl_FormatToTextAttr(), InsertHint(), SwpHints::MergePortions(), MoveTextAttr_To_AttrSet(), RstTextAttr(), SetAttr(), SplitContentNode(), SwpHints::TryInsertHint(), SwpHints::TryInsertNesting(), and ~SwTextNode().
bool SwTextNode::DontExpandFormat | ( | const SwIndex & | rIdx, |
bool | bFlag = true , |
||
bool | bFormatToTextAttributes = true |
||
) |
When appropriate set DontExpand-flag at INet or character styles respectively.
Definition at line 1610 of file ndtxt.cxx.
References assert(), SwTextAttr::DontExpand(), FormatToTextAttr(), SwTextAttr::GetEnd(), SwIndex::GetIndex(), SwTextAttr::GetStart(), HasHints(), SwTextAttr::IsLockExpandFlag(), m_pSwpHints, m_Text, nPos, and SwTextAttr::SetDontExpand().
Referenced by ChgNumToText(), ChgTextToNum(), SwDoc::DontExpandFormat(), SwDoc::ResetAttrs(), SetAttr(), and SwUndoResetAttr::UndoImpl().
Definition at line 3964 of file ndtxt.cxx.
References assert(), mpNodeNum, and mpNodeNumRLHidden.
|
overridevirtual |
Dumps the node structure to the given destination (file nodes.xml in the current directory by default)
Reimplemented from SwNode.
Definition at line 5170 of file ndtxt.cxx.
References SwpHints::Count(), SfxItemSet::dumpAsXml(), SwTextAttr::dumpAsXml(), SwNumRule::dumpAsXml(), SwpHints::Get(), SwContentNode::GetFormatColl(), SwNode::GetIndex(), GetNumRule(), SwContentNode::GetSwAttrSet(), GetSwpHints(), GetText(), HasHints(), SwContentNode::HasSwAttrSet(), i, and void().
void SwTextNode::EraseText | ( | const SwIndex & | 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 2668 of file ndtxt.cxx.
References assert(), sw::BroadcastingModify::CallSwClientNotify(), CHECK_SWPHINTS, DestroyAttr(), EMPTYEXPAND, SwTextAttr::GetEnd(), SwIndex::GetIndex(), SwTextAttr::GetStart(), SwTextAttr::HasDummyChar(), i, isTXTATR(), m_pSwpHints, m_Text, RES_TXTATR_CJK_RUBY(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), SAL_MAX_INT32, SetCalcHiddenCharFlags(), TryDeleteSwpHints(), Update(), and SwTextAttr::Which().
Referenced by CalculateFlySize(), SwUndoOverwrite::CanGrouping(), SwUndoDelete::CanGrouping(), ChgNumToText(), ChgTextToNum(), CopyExpandText(), CopyText(), SwUndoSaveContent::DelContentIndex(), DeleteAttribute(), DeleteAttributes(), SwUndoFlyBase::DelFly(), sw::DocumentLayoutManager::DelLayoutFormat(), DelSoftHyph(), InsertHint(), lcl_SaveAnchor(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoOverwrite::RedoImpl(), SwUndoDelete::SaveContent(), SwExtTextInput::SetInputData(), SwHTMLParser::StripTrailingLF(), SwUndoOverwrite::SwUndoOverwrite(), SwNodes::TextToTable(), SwUndoOverwrite::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwNodes::UndoTableToText(), SwTOXBaseSection::UpdatePageNum_(), and SwExtTextInput::~SwExtTextInput().
void SwTextNode::FileLoadedInitHints | ( | ) |
initialize the hints after file loading (which takes shortcuts)
Definition at line 262 of file ndtxt.cxx.
References m_pSwpHints.
Referenced by sw_MergePortions().
void SwTextNode::fillSoftPageBreakList | ( | SwSoftPageBreakList & | rBreak | ) | const |
Definition at line 29 of file softpagebreak.cxx.
References SwPageFrame::FindFirstBodyContent(), SwTabFrame::FindMaster(), SwFrame::FindPageFrame(), SwFrame::FindTabFrame(), SwIterator< TElementType, TSource, eMode >::First(), SwTabFrame::GetFirstNonHeadlineRow(), SwFrame::GetNext(), SwFrame::GetPrev(), SwFrame::GetUpper(), SwTabFrame::HasFollowFlowLine(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), SwLayoutFrame::IsAnLower(), SwFlowFrame::IsFollow(), SwFrame::IsInTab(), SwFlowFrame::IsPageBreak(), SwFrame::IsRowFrame(), SwFrame::IsTabFrame(), SwLayoutFrame::Lower(), SwIterator< TElementType, TSource, eMode >::Next(), and pos.
Referenced by lcl_FillSoftPageBreakArray(), and MSWordExportBase::NeedTextNodeSplit().
|
inlineoverridevirtual |
Implements sw::FormatDropDefiner.
void SwTextNode::FormatToTextAttr | ( | SwTextNode * | pNd | ) |
Convey attributes of an AttrSet (AutoFormat) to SwpHintsArray.
Definition at line 2516 of file thints.cxx.
References aCharFormatSetRange, sw::BroadcastingModify::CallSwClientNotify(), SwContentNode::ClearItemsFromAttrSet(), Count, SfxItemSet::Count(), SwDoc::GetAttrPool(), SfxItemIter::GetCurItem(), SwNode::GetDoc(), SwContentNode::GetFormatColl(), GetOrCreateSwpHints(), SwContentNode::GetpSwAttrSet(), SwContentNode::HasSwAttrSet(), impl_FormatToTextAttr(), SfxItemIter::NextItem(), SfxItemSet::Put(), SetCalcHiddenCharFlags(), TryDeleteSwpHints(), and SfxPoolItem::Which().
Referenced by SwHTMLParser::Continue(), DontExpandFormat(), SwXMLImport::endDocument(), SwDoc::ResetAttrs(), SwDontExpandItem::RestoreDontExpandItems(), and sw_JoinText().
void SwTextNode::GCAttr | ( | ) |
Definition at line 2767 of file ndtxt.cxx.
References sw::BroadcastingModify::CallSwClientNotify(), DestroyAttr(), SwTextAttr::GetEnd(), SwTextAttr::GetStart(), GetTextColl(), SwTextAttr::HasDummyChar(), HasHints(), i, m_pSwpHints, m_Text, RES_TXTATR_INETFMT(), SwTextAttr::SetDontExpand(), TryDeleteSwpHints(), and SwTextAttr::Which().
Referenced by SwEditShell::GCAttr().
int SwTextNode::GetActualListLevel | ( | ) | const |
Returns the actual list level of this text node, when it is a list item.
Definition at line 4106 of file ndtxt.cxx.
References assert(), SwNumberTreeNode::GetLevelInListTree(), GetNum(), and mpNodeNumRLHidden.
Referenced by SwUndoDelNum::AddNode(), SwTextFrame::CalcAdditionalFirstLineOffset(), SwChapterField::ChangeExpansion(), ClearLRSpaceItemDueToListLevelIndents(), 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(), SwEditShell::SetIndent(), TryCharSetExpandToNum(), and SwCursorShell::UpdateMarkedListLevel().
SwNumberTree::tSwNumTreeNumber SwTextNode::GetActualListStartValue | ( | ) | const |
Definition at line 4193 of file ndtxt.cxx.
References GetAttrListLevel(), GetAttrListRestartValue(), SwNumRule::GetNumFormat(), GetNumRule(), SvxNumberFormat::GetStart(), HasAttrListRestartValue(), and IsListRestart().
Referenced by SwNodeNum::GetStartValue(), OutHTML_SwFormat(), and AttributeOutputBase::ParaNumRule().
SwTwips SwTextNode::GetAdditionalIndentForStartingNewList | ( | ) | const |
Definition at line 3238 of file ndtxt.cxx.
References AreListLevelIndentsApplicable(), SwNumRule::Get(), GetActualListLevel(), SvxNumberFormat::GetFirstLineIndent(), SwNode::getIDocumentSettingAccess(), SvxNumberFormat::GetIndentAt(), SvxLRSpaceItem::GetLeft(), SwAttrSet::GetLRSpace(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SwContentNode::GetSwAttrSet(), SvxLRSpaceItem::GetTextFirstLineOffset(), IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, SvxNumberFormat::LABEL_ALIGNMENT, and SvxNumberFormat::LABEL_WIDTH_AND_POSITION.
Referenced by SwWrtShell::NumOrBulletOn().
int SwTextNode::GetAttrListLevel | ( | ) | const |
Definition at line 4095 of file ndtxt.cxx.
References SwContentNode::GetAttr(), SfxInt16Item::GetValue(), and RES_PARATR_LIST_LEVEL().
Referenced by AddToList(), AddToListRLHidden(), GetActualListStartValue(), and sw::HasNumberingWhichNeedsLayoutUpdate().
SwNumberTree::tSwNumTreeNumber SwTextNode::GetAttrListRestartValue | ( | ) | const |
Definition at line 4183 of file ndtxt.cxx.
References SwContentNode::GetAttr(), SfxInt16Item::GetValue(), HasAttrListRestartValue(), and RES_PARATR_LIST_RESTARTVALUE().
Referenced by GetActualListStartValue(), SwEditShell::GetNodeNumStart(), SwUnoCursorHelper::IsNodeNumStart(), SetAttrListRestartValue(), SwDoc::SetNodeNumStart(), and SwUndoNumRuleStart::SwUndoNumRuleStart().
bool SwTextNode::GetAttrOutlineContentVisible | ( | bool & | bOutlineContentVisibleAttr | ) |
GetAttrOutlineContentVisible.
bOutlineContentVisibleAttr | the value stored in RES_PARATR_GRABBAG for 'OutlineContentVisibleAttr' |
Definition at line 4037 of file ndtxt.cxx.
References SwContentNode::GetAttr(), SfxGrabBagItem::GetGrabBag(), and RES_PARATR_GRABBAG().
Referenced by SwModule::ApplyItemSet(), SwContentTree::ExecCommand(), SwView::ExecViewOptions(), SwWrtShell::IsOutlineContentVisible(), SwEditWin::KeyInput(), SwContentTree::MoveOutline(), and SwWrtShell::ToggleOutlineContentVisibility().
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.
Definition at line 4022 of file ndtxt.cxx.
References SwContentNode::GetAttr(), GetValue, and RES_PARATR_OUTLINELEVEL().
Referenced by SwTaggedPDFHelper::BeginBlockStructureElements(), SwChapterField::ChangeExpansion(), SwNode::FindOutlineNodeOfLevel(), SwEditShell::GetCurrentParaOutlineLevel(), SwUnoCursorHelper::getCursorPropertyValue(), GetEndNode(), SwCursorShell::GetOutlinePos(), GetStartNode(), SwContentNode::IsAnyCondition(), IsOutline(), SwEditShell::IsProtectedOutlinePara(), lcl_dbg_out(), lcl_FindOutlineNum(), SwCursorShell::MakeOutlineSel(), SwDoc::MoveOutlinePara(), SwDoc::OutlineUpDown(), sw::DocumentLinksAdministrationManager::SelectServerObj(), and sw::DocumentFieldsManager::SetFieldsDirty().
sal_Int32 SwTextNode::GetDropLen | ( | sal_Int32 | nWishLen | ) | const |
nWishLen = 0 indicates that we want a whole word
Definition at line 124 of file txtdrop.cxx.
References CH_BREAK, CH_TAB, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, g_pBreakIt, SwBreakIt::GetBreakIter(), SwAttrSet::GetCJKLanguage(), SwAttrSet::GetCTLLanguage(), SvxLanguageItem::GetLanguage(), SwAttrSet::GetLanguage(), SwBreakIt::GetLocale(), SwBreakIt::GetRealScriptOfText(), SwContentNode::GetSwAttrSet(), GetText(), GetTextAttrForCharAt(), and i.
Referenced by SwWW8AttrIter::IsDropCap(), and SwWW8AttrIter::SearchNext().
Passes back info needed on the dropcap dimensions.
If a dropcap is found the return value is true otherwise false.
The drop cap sizes passed back by reference are font height, drop height and drop descent.
Definition at line 230 of file txtdrop.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SfxItemSet::Get(), SwFormatDrop::GetChars(), SwAttrSet::GetDrop(), SwDropPortion::GetDropDescent(), SwDropPortion::GetDropHeight(), SwLineLayout::GetFirstPortion(), SwDropPortion::GetFnt(), SvxFontHeightItem::GetHeight(), SwFormatDrop::GetLines(), SwContentNode::GetSwAttrSet(), SwFormatDrop::GetWholeWord(), Height, SwLinePortion::IsDropPortion(), SwIterator< TElementType, TSource, eMode >::Next(), and RES_CHRATR_FONTSIZE().
Referenced by WW8AttributeOutput::FormatDrop().
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 |
||
) | const |
add 4th optional parameter <bAddSpaceAfterListLabelStr> indicating, when <bWithNum = true> that a space is inserted after the string for the list label.
add 5th optional parameter <bWithSpacesForLevel> indicating, if additional spaces are inserted in front of the expanded text string depending on the list level.
Definition at line 3374 of file ndtxt.cxx.
References CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, ModelToViewHelper::ConvertToViewPosition(), eMode, ExpandFields, GetActualListLevel(), GetNumString(), GetText(), ModelToViewHelper::getViewText(), HideDeletions, SwRootFrame::IsHideRedlines(), MAXLEVEL, and comphelper::string::remove().
Referenced by SwEditShell::Calculate(), sw::GetExpandTextMerged(), SwCursorShell::GetSelText(), SwSetExpFieldType::GetSeqFieldList(), SwEditShell::GetSeqFootnoteList(), SwXTextPortion::getString(), SwTOXMark::GetText(), SwDoc::GotoOutline(), lcl_FindOutlineName(), SwCursorShell::SelectNxtPrvHyperlink(), SwDoc::SplitDoc(), AttributeOutputBase::TOXMark(), SwGetRefField::UpdateField(), and SwTextInputField::UpdateFieldContent().
SwTextField * SwTextNode::GetFieldTextAttrAt | ( | const sal_Int32 | nIndex, |
const bool | bIncludeInputFieldAtStart = false |
||
) | const |
Definition at line 1775 of file ndtxt.cxx.
References DEFAULT, EXPAND, GetTextAttrAt(), GetTextAttrForCharAt(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), and RES_TXTATR_INPUTFIELD().
Referenced by SwXTextField::attach(), SwWrtShell::DelRight(), SwUnoCursorHelper::getCursorPropertyValue(), SwCursorShell::GetPostItFieldAtCursor(), sw::DocumentFieldsManager::GetTextFieldAtPos(), SwCursorShell::GetTextFieldAtPos(), sw::mark::AnnotationMark::InitDoc(), SwCursorShell::MoveFieldType(), and SwHandleAnchorNodeChg::~SwHandleAnchorNodeChg().
bool SwTextNode::GetFirstLineOfsWithNum | ( | short & | rFirstOffset | ) | const |
Returns the combined first line indent of this text node and its numbering.
the | first line indent of this text node taking the numbering into account (return parameter) |
true | this node has SwNodeNum and has numbering rule |
false | else |
Definition at line 3195 of file ndtxt.cxx.
References AreListLevelIndentsApplicable(), SwNumRule::Get(), GetActualListLevel(), SvxNumberFormat::GetFirstLineIndent(), SvxNumberFormat::GetFirstLineOffset(), SwNode::getIDocumentSettingAccess(), SwAttrSet::GetLRSpace(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SwContentNode::GetSwAttrSet(), SvxLRSpaceItem::GetTextFirstLineOffset(), IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, IsCountedInList(), SvxNumberFormat::LABEL_ALIGNMENT, and SvxNumberFormat::LABEL_WIDTH_AND_POSITION.
Referenced by SwTextMargin::CtorInitTextMargin(), SwTextFrame::GetCharRect(), GetMinMaxSize(), and SwView::StateTabWin().
SwGrammarMarkUp * SwTextNode::GetGrammarCheck | ( | ) |
Definition at line 2204 of file txtedt.cxx.
References m_pParaIdleData_Impl, and SwParaIdleData_Impl::pGrammarCheck.
Referenced by GetGrammarCheck(), SwEditShell::GetGrammarCorrection(), SwEditShell::IgnoreGrammarErrorAt(), JoinNext(), JoinPrev(), lcl_SetWrong(), lcl_SpellAndGrammarAgain(), lcl_syncGrammarError(), SwTextFrame::PaintSwFrame(), SwVisibleCursor::SetPosAndShow(), and SplitContentNode().
SwWrongList const * SwTextNode::GetGrammarCheck | ( | ) | const |
Definition at line 2209 of file txtedt.cxx.
References GetGrammarCheck().
OUString SwTextNode::GetLabelFollowedBy | ( | ) | const |
Retrieves the character following the list label, if the paragraph's list level defines one.
Definition at line 4513 of file ndtxt.cxx.
References SwNumRule::Get(), GetActualListLevel(), SvxNumberFormat::GetLabelFollowedBy(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), HasVisibleNumberingOrBullet(), SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LISTTAB, SvxNumberFormat::NEWLINE, SvxNumberFormat::NOTHING, and SvxNumberFormat::SPACE.
Referenced by SwTextFormatter::NewNumberPortion().
LanguageType SwTextNode::GetLang | ( | const sal_Int32 | nBegin, |
const sal_Int32 | nLen = 0 , |
||
sal_uInt16 | nScript = 0 |
||
) | const |
Definition at line 3424 of file thints.cxx.
References SwTextAttr::DontExpand(), SwTextAttr::End(), g_pBreakIt, SfxItemSet::Get(), GetAppLanguage(), CharFormat::GetItem(), SwLangHelper::GetLanguage(), SwBreakIt::GetRealScriptOfText(), SwTextAttr::GetStart(), SwContentNode::GetSwAttrSet(), GetWhichOfScript(), HasHints(), i, SwTextAttr::IsCharFormatAttr(), CharFormat::IsItemIncluded(), LANGUAGE_DONTKNOW, m_pSwpHints, m_Text, RES_CHRATR_LANGUAGE(), RES_TXTATR_AUTOFMT(), and SwTextAttr::Which().
Referenced by SwTextFrame::AutoSpell_(), CountWords(), DoSearch(), SwTextShell::ExecField(), SwCursor::ExpandToSentenceBorders(), SwEditShell::GetCorrection(), SwEditShell::GetCurLang(), GetNumString(), SwCursor::GoEndWordWT(), SwContentNode::GoNext(), SwCursor::GoNextWordWT(), SwContentNode::GoPrevious(), SwCursor::GoPrevWordWT(), SwCursor::GoSentence(), SwCursor::GoStartWordWT(), Hyphenate(), SwCursor::IsEndWordWT(), SwCursor::IsInWordWT(), SwCursor::IsStartWordWT(), SwDoc::ResetAttrs(), SwDoc::SelectNextRubyChars(), SwCursor::SelectWordWT(), SwTextFrame::SmartTagScan(), DocxAttributeOutput::StartRuby(), SwScanner::SwScanner(), sw::DocumentContentOperationsManager::TransliterateText(), TransliterateText(), SwGetRefFieldType::UpdateGetReferences(), SwIndexMarkPane::UpdateLanguageDependenciesForPhoneticReading(), and SwExtTextInput::~SwExtTextInput().
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 3299 of file ndtxt.cxx.
References AreListLevelIndentsApplicable(), SwNumRule::Get(), GetActualListLevel(), SvxNumberFormat::GetIndentAt(), SwAttrSet::GetLRSpace(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SwContentNode::GetSwAttrSet(), SvxLRSpaceItem::GetTextLeft(), and SvxNumberFormat::LABEL_ALIGNMENT.
Referenced by SwTextMargin::CtorInitTextMargin().
tools::Long SwTextNode::GetLeftMarginWithNum | ( | bool | bTextLeft = false | ) | const |
Returns the additional indents of this text node and its numbering.
bTextLeft | ??? |
Definition at line 3152 of file ndtxt.cxx.
References AreListLevelIndentsApplicable(), SwNumRule::Get(), SvxNumberFormat::GetAbsLSpace(), GetActualListLevel(), SvxNumberFormat::GetFirstLineIndent(), SvxNumberFormat::GetFirstLineOffset(), SvxNumberFormat::GetIndentAt(), SvxLRSpaceItem::GetLeft(), SwAttrSet::GetLRSpace(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SwContentNode::GetSwAttrSet(), SwNumRule::IsAbsSpaces(), SvxNumberFormat::LABEL_ALIGNMENT, and SvxNumberFormat::LABEL_WIDTH_AND_POSITION.
Referenced by SwTextMargin::CtorInitTextMargin(), SwTextFrame::FillCursorPos(), GetMinMaxSize(), and SwView::StateTabWin().
OUString SwTextNode::GetListId | ( | ) | const |
Definition at line 4382 of file ndtxt.cxx.
References SwContentNode::GetAttr(), SwNumRule::GetDefaultListId(), GetNumRule(), CntUnencodedStringItem::GetValue(), and RES_PARATR_LIST_ID().
Referenced by AppendNode(), FindList(), SwUnoCursorHelper::getCursorPropertyValue(), HasMarkedLabel(), SwDoc::MakeUniqueNumRules(), AttributeOutputBase::ParaNumRule(), SwDoc::ReplaceNumRule(), SwDoc::SearchNumRule(), SwTextNode(), TryCharSetExpandToNum(), and SwCursorShell::UpdateMarkedListLevel().
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.
nListTabStopPosition | output parameter - containing the list tab stop position |
Definition at line 4479 of file ndtxt.cxx.
References AreListLevelIndentsApplicable(), SwNumRule::Get(), GetActualListLevel(), SwNode::getIDocumentSettingAccess(), SvxNumberFormat::GetIndentAt(), SvxNumberFormat::GetLabelFollowedBy(), SvxNumberFormat::GetListtabPos(), SwAttrSet::GetLRSpace(), GetNum(), SwNodeNum::GetNumRule(), SvxNumberFormat::GetPositionAndSpaceMode(), SwContentNode::GetSwAttrSet(), SvxLRSpaceItem::GetTextLeft(), HasVisibleNumberingOrBullet(), IGNORE_FIRST_LINE_INDENT_IN_NUMBERING, SvxNumberFormat::LABEL_ALIGNMENT, SvxNumberFormat::LISTTAB, and TABS_RELATIVE_TO_INDENT.
Referenced by SwLineInfo::CtorInitLineInfo().
void SwTextNode::GetMinMaxSize | ( | sal_uLong | 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 1006 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(), SwAttrSet::GetLRSpace(), OutputDevice::GetMapMode(), SwAttrIter::GetNextAttr(), SwFormatFootnote::GetNumStr(), SvxLRSpaceItem::GetRight(), SwDoc::GetSpzFrameFormats(), SwContentNode::GetSwAttrSet(), SvxLRSpaceItem::GetTextLeft(), SwFont::GetTextSize_(), tools::Rectangle::GetWidth(), SvxSizeItem::GetWidth(), SwFormatFrameSize::GetWidthPercent(), SwViewShell::GetWin(), lcl_MinMaxNode(), lcl_MinMaxString(), m_Text, SwScriptInfo::NextScriptChg(), pOut, RES_DRAWFRMFMT(), RES_FLYFRMFMT(), RES_TXTATR_ANNOTATION(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), SwAttrIter::SeekAndChgAttrIter(), OutputDevice::SetMapMode(), USHRT_MAX, SwFormat::Which(), SwTextAttr::Which(), and Size::Width().
Referenced by CalculateFlySize(), and lcl_GetMinMaxSize().
const SwNodeNum * SwTextNode::GetNum | ( | SwRootFrame const * | pLayout = nullptr | ) | const |
Definition at line 3957 of file ndtxt.cxx.
References assert(), SwRootFrame::IsHideRedlines(), mpNodeNum, and mpNodeNumRLHidden.
Referenced by AreListLevelIndentsApplicable(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), SwTaggedPDFHelper::BeginTag(), sw::CheckParaRedlineMerge(), CopyText(), GetActualListLevel(), GetAdditionalIndentForStartingNewList(), SwUnoCursorHelper::getCursorPropertyValue(), GetFirstLineOfsWithNum(), GetLabelFollowedBy(), GetLeftMarginForTabCalculation(), GetLeftMarginWithNum(), GetListTabStopPosition(), GetNumberVector(), GetNumString(), HasBullet(), HasNumber(), sw::HasNumberingWhichNeedsLayoutUpdate(), HasVisibleNumberingOrBullet(), IsFirstOfNumRule(), IsInList(), IsNumbered(), IsOutline(), lcl_dbg_out(), lcl_FindOutlineNum(), MakeRefNumStr(), NumRuleChgd(), and SwSetExpFieldType::SetChapter().
SwNumberTree::tNumberVector SwTextNode::GetNumberVector | ( | SwRootFrame const * | pLayout = nullptr | ) | const |
Definition at line 3979 of file ndtxt.cxx.
References GetNum().
Referenced by SwContentTree::FillTransferData(), GetNumString(), and lcl_CreateOutlineString().
SwNumRule * SwTextNode::GetNumRule | ( | bool | bInParent = true | ) | const |
Returns numbering rule of this text node.
bInParent | search in parent attributes, too |
Definition at line 2813 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(), AreListLevelIndentsApplicable(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), SwAutoFormat::BuildEnum(), SwTextFrame::CalcAdditionalFirstLineOffset(), SwChapterField::ChangeExpansion(), SwNodes::ChgNode(), ClearLRSpaceItemDueToListLevelIndents(), SwDoc::DelNumRules(), dumpAsXml(), SwHTMLParser::EndPara(), FindList(), GetActualListStartValue(), GetListId(), sw::util::GetNormalNumRuleFromTextNode(), SwWW8FltControlStack::GetNumFormatFromStack(), sw::util::GetNumFormatFromTextNode(), SwEditShell::GetNumLevel(), SwDoc::GetNumRuleAtPos(), sw::ToxTextGenerator::GetNumStringOfFirstNode(), SwEditShell::GetPaMAttr(), SwEditShell::HasNumber(), 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::SelectionHasBullet(), SwEditShell::SelectionHasNumber(), SwHTMLNumRuleInfo::Set(), SwSetExpFieldType::SetChapter(), SwDoc::SetNumRule(), SwDoc::SetNumRuleStart(), SwWW8ImplReader::SetTextFormatCollAndListLevel(), SplitContentNode(), SwAutoFormat::SwAutoFormat(), SwTextNode(), TryCharSetExpandToNum(), and SwTextFormatter::WhichFirstPortion().
OUString SwTextNode::GetNumString | ( | const bool | _bInclPrefixAndSuffixStrings = true , |
const unsigned int | _nRestrictToThisLevel = MAXLEVEL , |
||
SwRootFrame const * | pLayout = nullptr |
||
) | 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.
_bInclPrefixAndSuffixStrings | optional input parameter - boolean indicating, if the prefix and the suffix strings have to been included or not. default value = <true> |
_nRestrictToThisLevel | optional 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 3121 of file ndtxt.cxx.
References SwNumRule::Get(), GetActualListLevel(), SwNode::GetDoc(), GetLang(), GetNum(), GetNumberVector(), SwNodeNum::GetNumRule(), IsCountedInList(), m_pNumStringCache, 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().
|
inline |
Definition at line 822 of file ndtxt.hxx.
References m_pSwpHints.
Referenced by FormatToTextAttr(), InsertHint(), SwRegHistory::InsertItems(), SetAttr(), and SplitContentNode().
|
private |
Definition at line 1748 of file ndtxt.cxx.
References SwTextAttr::End(), SwTextAttr::GetStart(), GetTextAttrAt(), PARENT, and RES_TXTATR_INPUTFIELD().
Referenced by InsertHint().
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 2116 of file thints.cxx.
References assert(), SfxItemSet::Count(), SwTextAttr::DontExpand(), SwTextAttr::End(), 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(), void(), SfxPoolItem::Which(), and SwTextAttr::Which().
Referenced by SwUnoCursorHelper::GetCursorAttr(), SwWW8FltControlStack::GetFormatAttr(), SwGetExpField::GetReferenceTextPos(), GetRsid(), OutHTML_SwField(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwDontExpandItem::SaveDontExpandItems(), SwDoc::SetFormatItemByAutoFormat(), and WW8Export::WriteFootnoteBegin().
sal_uInt32 SwTextNode::GetParRsid | ( | ) | const |
Definition at line 5225 of file ndtxt.cxx.
References SwContentNode::GetAttr(), GetValue, and RES_PARATR_RSID().
Referenced by CompareParRsid(), and SwUndoSplitNode::SwUndoSplitNode().
|
inline |
Definition at line 218 of file ndtxt.hxx.
Referenced by SwUndoTransliterate::AddChanges(), SwHTMLParser::AddParSpace(), SwHTMLParser::AppendTextNode(), CanSkipOverRedline(), SwNodes::ChgNode(), CopyText(), SwWW8ImplReader::CoreLoad(), sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), SwDoc::DeleteTOXMark(), AttributeOutputBase::GenerateBookmarksForSequenceField(), sw::ToxTextGenerator::GetAttributesForNode(), 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(), sw::MergedAttrIter::NextAttr(), sw::MergedAttrIterByEnd::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(), SwScriptInfo::selectHiddenTextProperty(), SwDoc::SelectNextRubyChars(), SwTextFlyCnt::SetAnchor(), UndoTransliterate_Data::SetChangeAtNode(), sw::DocumentFieldsManager::SetFieldsDirty(), SwTableToTextSave::SwTableToTextSave(), SwUndoInserts::SwUndoInserts(), SwUndoMove::SwUndoMove(), SwUndoOverwrite::SwUndoOverwrite(), SwUndoSplitNode::SwUndoSplitNode(), SwUndoTableNumFormat::SwUndoTableNumFormat(), SwUndoOverwrite::UndoImpl(), SwUndoDelete::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoReplace::Impl::UndoImpl(), SwNodes::UndoTableToText(), and SwTOXBaseSection::UpdatePageNum_().
OUString SwTextNode::GetRedlineText | ( | ) | const |
Definition at line 3604 of file ndtxt.cxx.
References SwPaM::End(), SwNode::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SwNode::GetIndex(), getLength(), IDocumentRedlineAccess::GetRedlinePos(), IDocumentRedlineAccess::GetRedlineTable(), GetText(), SwRangeRedline::GetType(), n, SwPosition::nContent, SwPosition::nNode, SwRedlineTable::npos, Replace0xFF(), SwRedlineTable::size(), and SwPaM::Start().
|
overridevirtual |
Implements sfx2::Metadatable.
Definition at line 5247 of file ndtxt.cxx.
References SwNode::GetDoc(), and SwDoc::GetXmlIdRegistry().
Referenced by sw::Meta::GetRegistry().
sal_uInt32 SwTextNode::GetRsid | ( | sal_Int32 | nStt, |
sal_Int32 | nEnd | ||
) | const |
Definition at line 5212 of file ndtxt.cxx.
References SwNode::GetDoc(), GetParaAttr(), and RES_CHRATR_RSID().
Referenced by CompareRsid().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 5355 of file ndtxt.cxx.
References SwContentNode::GetSwAttrSet(), and maFillAttributes.
SwWrongList * SwTextNode::GetSmartTags | ( | ) |
Definition at line 2229 of file txtedt.cxx.
References m_pParaIdleData_Impl, and SwParaIdleData_Impl::pSmartTags.
Referenced by SwTextFrame::AutoSpell_(), SwCursorShell::GetSmartTagRect(), GetSmartTags(), JoinNext(), JoinPrev(), lcl_CheckSmartTagsAgain(), lcl_SetWrong(), SwTextFrame::PaintSwFrame(), SwTextFrame::SmartTagScan(), and SplitContentNode().
SwWrongList const * SwTextNode::GetSmartTags | ( | ) | const |
Definition at line 2234 of file txtedt.cxx.
References GetSmartTags().
|
inline |
Definition at line 862 of file ndtxt.hxx.
References SAL_MAX_INT32.
Referenced by CutImpl(), InsertText(), lcl_CheckMaxLength(), sw::DocumentContentOperationsManager::Overwrite(), ReplaceText(), ReplaceTextOnly(), and TransliterateText().
|
inline |
getters for SwpHints
Definition at line 811 of file ndtxt.hxx.
References assert(), and m_pSwpHints.
Referenced by SwHTMLParser::AddParSpace(), SwHTMLParser::AppendTextNode(), dumpAsXml(), SwTransferable::isComplex(), lcl_SearchAttr(), lcl_SearchBackward(), lcl_SearchForward(), SwHTMLWriter::OutHeaderAttrs(), OutHTML_SwTextNode(), sw::DocumentFieldsManager::SetFieldsDirty(), and SwCallLink::~SwCallLink().
|
inline |
Definition at line 816 of file ndtxt.hxx.
References assert(), and m_pSwpHints.
|
inline |
Definition at line 210 of file ndtxt.hxx.
Referenced by SwUndoTransliterate::AddChanges(), DocxExport::AppendBookmarks(), SwHTMLParser::AppendTextNode(), sw::ToxTextGenerator::ApplyHandledTextToken(), SwEditShell::AutoFormatBySplitNode(), SwTextFrame::AutoSpell_(), SwScriptInfo::CalcHiddenRanges(), SwUndoOverwrite::CanGrouping(), SwUndoDelete::CanGrouping(), SwAutoFormat::CanJoin(), SwDoc::Chainable(), CellSaveStruct::CheckNoBreak(), sw::CheckParaRedlineMerge(), SwCursorShell::CheckTableBoxContent(), ChgNumToText(), ChgTextToNum(), SwDoc::ClearLineNumAttrs(), SwTextFrame::CollectAutoCmplWrds(), SwHTMLParser::Continue(), CopyExpandText(), sw::DocumentContentOperationsManager::CopyImplImpl(), CopyText(), SwWW8ImplReader::CoreLoad(), SwDoc::CountWords(), CountWords(), CutImpl(), CutText(), SwAutoFormat::DelEmptyLine(), SwDoc::DeleteTOXMark(), SwLayIdle::DoIdleJob_(), SwCursor::DoSetBidiLevelUpDown(), dumpAsXml(), SwWW8ImplReader::emulateMSWordAddTextToParagraph(), SwWW8ImplReader::End_Footnote(), SwHTMLParser::EndAttr(), SwXMLImport::endDocument(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwView::ExecLingu(), SwCursorShell::ExtendSelection(), sw::FindTextImpl(), AttributeOutputBase::GenerateBookmarksForSequenceField(), sw::ToxTextGenerator::GenerateText(), SwUndoSetFlyFormat::GetAnchor(), SwScriptInfo::GetBoundsOfHiddenRange(), SwCursorShell::GetChar(), 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(), sw::DocumentStatisticsManager::IncrementalDocStatCalculate(), SwScriptInfo::InitScriptInfo(), BookmarkTable::InsertBookmark(), SwHTMLParser::InsertComment(), SwEditShell::InsertGlobalDocContent(), XMLRedlineImportHelper::InsertIntoDocument(), SwDoc::InsertSwSection(), SwRangeRedline::InvalidateRange(), IsCollapse(), SwTransferable::isComplex(), SwTableBox::IsFormulaOrValueBox(), SwCursor::IsInWordWT(), SwAutoFormat::JoinPrevPara(), lcl_CellText(), lcl_CleanStr(), lcl_CopyHint(), lcl_dbg_out(), lcl_ExportFieldMark(), lcl_FillFieldMarkArray(), lcl_IsNoEndTextAttrAtPos(), lcl_MaskDeletedRedlines(), MakeCopy(), SwDOCXReader::MakeEntries(), SwXMLTableContext::MakeTableBox(), SwScriptInfo::MaskHiddenRanges(), ModelToViewHelper::ModelToViewHelper(), sw::DocumentContentOperationsManager::MoveAndJoin(), SwWW8ImplReader::MoveOutsideFly(), SwNodes::MoveRange(), MSWordExportBase::NeedTextNodeSplit(), SwHTMLParser::NextToken(), OutASC_SwTextNode(), OutHTML_FrameFormatTableNode(), OutHTML_SwFormat(), OutHTML_SwTextNode(), MSWordExportBase::OutputTextNode(), SwUndoTableCpyTable::PrepareRedline(), SwWW8ImplReader::ReadText(), SwUndoMove::RedoImpl(), SwUndoSort::RedoImpl(), sw::DocumentContentOperationsManager::RemoveLeadingWhiteSpace(), sw::ReplaceBackReferences(), 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(), sw::DocumentContentOperationsManager::TransliterateText(), TransliterateText(), SwUndoSplitNode::UndoImpl(), SwUndoMove::UndoImpl(), SwUndoTextToTable::UndoImpl(), SwUndoTableMerge::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoInserts::UndoImpl(), SwTOXBaseSection::UpdateAuthorities(), SwGetRefField::UpdateField(), sw::UpdateMergedParaForInsert(), SwTOXBaseSection::UpdatePageNum_(), SwTOXBaseSection::UpdateSequence(), SwCursor::UpDown(), SwASCWriter::WriteStream(), WW8Ruby::WW8Ruby(), SwCallLink::~SwCallLink(), and SwExtTextInput::~SwExtTextInput().
SwTextAttr * SwTextNode::GetTextAttrAt | ( | sal_Int32 const | nIndex, |
sal_uInt16 const | nWhich, | ||
enum GetTextAttrMode const | eMode = DEFAULT |
||
) | const |
get the innermost text attribute covering position nIndex.
nWhich | only attribute with this id is returned. |
eMode | the predicate for matching ( |
ATTENTION: this function is not well-defined for those hints of which several may cover a single position, like RES_TXTATR_CHARFMT, RES_TXTATR_REFMARK, RES_TXTATR_TOXMARK
Definition at line 1731 of file ndtxt.cxx.
References assert(), lcl_GetTextAttrs(), m_pSwpHints, RES_TXTATR_AUTOFMT(), RES_TXTATR_CJK_RUBY(), RES_TXTATR_INETFMT(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_META(), RES_TXTATR_METAFIELD(), and RES_TXTATR_UNKNOWN_CONTAINER().
Referenced by GetFieldTextAttrAt(), SwUnoCursorHelper::GetNestedTextContent(), GetOverlappingInputField(), SwTableBox::GetValue(), lcl_GetParagraphMetadataFieldAtIndex(), SwDoc::ResetAttrs(), RstTextAttr(), and SwCursorShell::SelectTextAttr().
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.
nIndex | the position in the text |
nWhich | if different from RES_TXTATR_END, return only attribute with given which id |
Definition at line 3050 of file ndtxt.cxx.
References assert(), SwTextAttr::GetStart(), SwTextAttr::HasDummyChar(), HasHints(), i, m_pSwpHints, RES_TXTATR_BEGIN(), RES_TXTATR_END(), and SwTextAttr::Which().
Referenced by SwXFootnote::attach(), sw::annotation::SwAnnotationWin::CalcParent(), sw::annotation::SwAnnotationWin::CountFollowing(), SwUndoSaveContent::DelContentIndex(), SwUndoFlyBase::DelFly(), sw::DocumentLayoutManager::DelLayoutFormat(), SwHTMLParser::FinishFootEndNote(), SwEditShell::GetCurFootnote(), SwUnoCursorHelper::getCursorPropertyValue(), GetDropLen(), GetFieldTextAttrAt(), SwPageFrame::GetModelPositionForViewPoint(), SwTableBox::GetValue(), SwCursor::GotoFootnoteText(), SwXReferenceMark::Impl::InsertRefMark(), 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().
std::vector< SwTextAttr * > SwTextNode::GetTextAttrsAt | ( | sal_Int32 const | nIndex, |
sal_uInt16 const | nWhich | ||
) | const |
get the innermost text attributes covering position nIndex.
nWhich | only attributes with this id are returned. |
eMode | the predicate for matching ( |
Definition at line 1722 of file ndtxt.cxx.
References assert(), DEFAULT, lcl_GetTextAttrs(), m_pSwpHints, RES_TXTATR_BEGIN(), and RES_TXTATR_END().
Referenced by SwUnoCursorHelper::getCursorPropertyValue(), and SwXReferenceMark::Impl::InsertRefMark().
|
inline |
Definition at line 839 of file ndtxt.hxx.
References SwClient::GetRegisteredIn().
Referenced by AreListLevelIndentsApplicable(), SwAutoFormat::BuildHeadLine(), SwAutoFormat::CalcLevel(), SwChapterField::ChangeExpansion(), ChgFormatColl(), SwNodes::ChgNode(), SwHTMLParser::Continue(), CopyCollFormat(), SwRangeRedline::CopyToSection(), SwXMLImport::endDocument(), SwTextFrame::FillCursorPos(), GCAttr(), GetEndNode(), GetNumRule(), SwEditShell::GetPaMTextFormatColl(), GetStartNode(), sw::DefaultToxTabStopTokenHandler::HandleTabStopToken(), SwUndoReplace::Impl::Impl(), SwNodes::InsertTextSection(), lcl_CpyBox(), SwXMLTextBlocks::MakeBlockText(), MakeCopy(), MakeNewTextNode(), SwNodes::MoveRange(), SwRangeRedline::MoveToSection(), SwDoc::OutlineUpDown(), SwDoc::SetNumRule(), SwCursorShell::SetShadowCursorPos(), SwDoc::SetTextFormatCollByAutoFormat(), SwDoc::Summary(), SwAutoFormat::SwAutoFormat(), SwTableToTextSave::SwTableToTextSave(), SwUndoDelete::SwUndoDelete(), SwUndoInserts::SwUndoInserts(), SwUndoMove::SwUndoMove(), SwUndoInserts::UndoImpl(), SwTOXBaseSection::UpdateContent(), and SwTOXBaseSection::UpdateTable().
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.
Definition at line 1448 of file itratr.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SwRectFnSet::GetLeft(), getLength(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwRectFnSet::GetRight(), GetText(), SwPosition::nContent, and SwIterator< TElementType, TSource, eMode >::Next().
Referenced by SwWrtShell::NumOrBulletOn().
SwWrongList * SwTextNode::GetWrong | ( | ) |
Definition at line 2181 of file txtedt.cxx.
References m_pParaIdleData_Impl, and SwParaIdleData_Impl::pWrong.
Referenced by SwAccessibleParagraph::_correctValues(), SwTextFrame::AutoSpell_(), SwEditShell::GetCorrection(), SwEditShell::IgnoreGrammarErrorAt(), JoinNext(), JoinPrev(), lcl_SetWrong(), lcl_SpellAndGrammarAgain(), SwTextFrame::PaintSwFrame(), SwVisibleCursor::SetPosAndShow(), Spell(), and SplitContentNode().
const SwWrongList * SwTextNode::GetWrong | ( | ) | const |
Definition at line 2187 of file txtedt.cxx.
References m_pParaIdleData_Impl, and SwParaIdleData_Impl::pWrong.
auto SwTextNode::GetWrongDirty | ( | ) | const |
Definition at line 2260 of file txtedt.cxx.
References DONE, SwParaIdleData_Impl::eWrongDirty, and m_pParaIdleData_Impl.
Referenced by SwLayIdle::DoIdleJob_().
|
inline |
Definition at line 780 of file ndtxt.hxx.
Referenced by SwXParagraph::CreateXParagraph().
bool SwTextNode::HasAttrListLevel | ( | ) | const |
Definition at line 4089 of file ndtxt.cxx.
References SfxItemSet::GetItemState(), SwContentNode::GetpSwAttrSet(), and RES_PARATR_LIST_LEVEL().
Referenced by SwTextNode().
bool SwTextNode::HasAttrListRestartValue | ( | ) | const |
Definition at line 4178 of file ndtxt.cxx.
References SfxItemSet::GetItemState(), SwContentNode::GetpSwAttrSet(), and RES_PARATR_LIST_RESTARTVALUE().
Referenced by GetActualListStartValue(), GetAttrListRestartValue(), SwEditShell::GetNodeNumStart(), SwUnoCursorHelper::IsNodeNumStart(), SwHTMLNumRuleInfo::Set(), SetAttrListRestartValue(), SwDoc::SetNodeNumStart(), and SwUndoNumRuleStart::SwUndoNumRuleStart().
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.
true | This text node has a bullet. |
false | else |
Definition at line 3103 of file ndtxt.cxx.
References SwNumRule::Get(), GetActualListLevel(), GetNum(), SwNodeNum::GetNumRule(), and SwNumFormat::IsItemize().
Referenced by CountWords(), SwEditShell::HasBullet(), SwNodeNum::IsCountedForNumbering(), SwDoc::NumOrNoNum(), OutASC_SwTextNode(), and SwEditShell::SelectionHasBullet().
|
inline |
Definition at line 721 of file ndtxt.hxx.
Referenced by SwDoc::ContainsHiddenChars(), SwScriptInfo::GetBoundsOfHiddenRange(), SwDoc::HasInvisibleContent(), IsHidden(), lcl_CheckHiddenPara(), and SwDoc::RemoveInvisibleContent().
|
inline |
Definition at line 220 of file ndtxt.hxx.
Referenced by ClearSwpHintsArr(), CopyAttr(), CopyExpandText(), DeleteAttribute(), DeleteAttributes(), DontExpandFormat(), dumpAsXml(), sw::FindAttrImpl(), GCAttr(), SwEditShell::GetItemWithPaM(), GetLang(), GetParaAttr(), GetTextAttrForCharAt(), InsertText(), SwTransferable::isComplex(), lcl_InsertDrawLabel(), lcl_InsertLabel(), lcl_SearchAttr(), lcl_SearchBackward(), lcl_SearchForward(), SwHTMLWriter::OutHeaderAttrs(), OutHTML_SwTextNode(), SwUndoFormatAttr::RestoreFlyAnchor(), RstTextAttr(), SetAttr(), SwDoc::SetFlyFrameAnchor(), SwXShape::setPropertyValue(), SplitContentNode(), SwUndoSetFlyFormat::UndoImpl(), Update(), and SwCallLink::~SwCallLink().
bool SwTextNode::HasMarkedLabel | ( | ) | const |
Returns if this text node has a marked label.
true | This text node has a marked label. |
false | else |
Definition at line 2887 of file ndtxt.cxx.
References GetActualListLevel(), SwNode::GetDoc(), SwDoc::getIDocumentListsAccess(), IDocumentListsAccess::getListByName(), GetListId(), IsInList(), and SwList::IsListLevelMarked().
Referenced by SwTextPaintInfo::DrawViewOpt().
bool SwTextNode::HasNumber | ( | ) | 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.
true | This text node has a number. |
false | else |
Definition at line 3086 of file ndtxt.cxx.
References SwNumRule::Get(), GetActualListLevel(), GetNum(), SwNodeNum::GetNumRule(), SwNumFormat::IsEnumeration(), and SVX_NUM_NUMBER_NONE.
Referenced by SwEditShell::HasNumber(), SwNodeNum::IsCountedForNumbering(), MakeRefNumStr(), SwNumRule::MakeRefNumString(), SwDoc::MakeUniqueNumRules(), SwDoc::NumOrNoNum(), and SwEditShell::SelectionHasNumber().
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.
This includes all kinds of numbering/bullet/outlines. The concrete list label string has to be checked, too.
Definition at line 4141 of file ndtxt.cxx.
References SwNumRule::Get(), GetActualListLevel(), GetNum(), SvxNumberType::GetNumberingType(), SwNodeNum::GetNumRule(), IsCountedInList(), SwNumRule::MakeNumString(), and SVX_NUM_NUMBER_NONE.
Referenced by GetLabelFollowedBy(), GetListTabStopPosition(), SwCursorShell::LeftRight(), SwCursorShell::LRMargin(), OutASC_SwTextNode(), and SwCursorShell::SetCursor().
bool SwTextNode::Hyphenate | ( | SwInterHyphInfo & | rHyphInf | ) |
Interactive hyphenation: we find TextFrame and call its CalcHyph.
Find the SwTextFrame and call its Hyphenate.
Definition at line 1618 of file txtedt.cxx.
References SwInterHyphInfo::GetCursorPos(), SwNode::GetDoc(), SwTextFrame::GetFollow(), SwTextFrame::GetFrameAtOfst(), SwNode::getIDocumentLayoutAccess(), GetLang(), SwLangHelper::GetLanguage(), SwContentNode::getLayoutFrame(), SwTextFrame::GetOffset(), SwContentNode::GetSwAttrSet(), SwTextFrame::Hyphenate(), LANGUAGE_NONE, SwInterHyphInfoTextFrame::m_nEnd, SwInterHyphInfoTextFrame::m_nStart, m_Text, Point, SwFrame::SetCompletePaint(), sw::SwHyphIterCacheLastTextFrame(), SwInterHyphInfoTextFrame::UpdateTextNodeHyphInfo(), and USHRT_MAX.
Referenced by lcl_HyphenateNode().
|
private |
Does the hard work of SwTextNode::FormatToTextAttr: the real conversion of items to automatic styles.
Definition at line 2450 of file thints.cxx.
References SwContentNode::ClearItemsFromAttrSet(), SfxItemSet::Count(), DestroyAttr(), SwTextAttr::GetAttr(), SwNode::GetDoc(), m_pSwpHints, m_Text, and MakeTextAttr().
Referenced by FormatToTextAttr().
|
private |
Start: Data collected during idle time.
Definition at line 2153 of file txtedt.cxx.
References m_pParaIdleData_Impl, SwParaIdleData_Impl::pGrammarCheck, SwParaIdleData_Impl::pSmartTags, and SwParaIdleData_Impl::pWrong.
Referenced by SwTextNode(), and ~SwTextNode().
bool SwTextNode::InsertHint | ( | SwTextAttr *const | pAttr, |
const SetAttrMode | nMode = SetAttrMode::DEFAULT |
||
) |
Insert pAttr into hints array.
Definition at line 1306 of file thints.cxx.
References assert(), o3tl::sorted_vector< Value, Compare, Find, class >::begin(), sw::BroadcastingModify::CallSwClientNotify(), 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< Value, Compare, Find, class >::erase(), EraseText(), SwDoc::FieldCanHideParaWeight(), FORCEHINTEXPAND, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), GetCharOfTextAttr(), SwFormatAnchor::GetContentAnchor(), SwFormat::GetDoc(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwNodes::GetEndOfAutotext(), SwNodes::GetEndOfRedlines(), SwFormatField::GetField(), SwTextInputField::GetFieldContent(), SwTextAttr::GetFlyCnt(), SwDoc::GetFootnoteIdxs(), SwTextAttr::GetFormatField(), SwFormatFlyCnt::GetFrameFormat(), SwpHints::GetHistory(), SwDoc::GetIDocumentUndoRedo(), SwNode::GetIndex(), SwFormat::GetItemState(), SwNode::GetNodes(), SwDoc::GetNodes(), GetOrCreateSwpHints(), GetOverlappingInputField(), GetpSwpHints(), SwTextAttr::GetStart(), SwNode::GetStartNode(), SwNode::GetTableNode(), SwField::GetTyp(), SwTextAttr::HasContent(), SwTextAttr::HasDummyChar(), o3tl::sorted_vector< Value, Compare, Find, class >::insert(), InsertText(), SwDoc::IsInHeaderFooter(), Len(), m_pSwpHints, m_Text, n, SwPosition::nContent, SwPosition::nNode, NOHINTEXPAND, NOTXTATRCHR, RES_ANCHOR(), RES_DRAWFRMFMT(), RES_TXTATR_FIELD(), RES_TXTATR_FLYCNT(), RES_TXTATR_FTN(), RES_TXTATR_INPUTFIELD(), SwTextFlyCnt::SetAnchor(), SetCalcHiddenParaField(), SwTextAttr::SetEnd(), SwTextAttr::SetStart(), o3tl::sorted_vector< Value, Compare, Find, class >::size(), SwNode::StartOfSectionIndex(), Update(), SwFootnoteIdxs::UpdateFootnote(), void(), SwFormat::Which(), SwTextAttr::Which(), and SwFieldType::Which().
Referenced by CopyText(), CutImpl(), InsertItem(), InsertText(), RstTextAttr(), SetAttr(), and SwHistorySetFootnote::SetInDoc().
SwTextAttr * SwTextNode::InsertItem | ( | SfxPoolItem & | rAttr, |
const sal_Int32 | nStart, | ||
const sal_Int32 | nEnd, | ||
const SetAttrMode | nMode = SetAttrMode::DEFAULT |
||
) |
create new text attribute from rAttr and insert it
Definition at line 1271 of file thints.cxx.
References assert(), Copy, SwNode::GetDoc(), InsertHint(), IS_COPY, isCHRATR(), m_pSwpHints, MakeTextAttr(), New, and SfxPoolItem::Which().
Referenced by sw::ToxTextGenerator::ApplyHandledTextToken(), CopyAttr(), CopyExpandText(), sw::DocumentLayoutManager::CopyLayoutFormat(), CopyText(), SwWW8ImplReader::End_Footnote(), sw::ToxTextGenerator::GenerateText(), sw::DocumentContentOperationsManager::InsertDrawObj(), sw::ToxLinkProcessor::InsertLinkAttributes(), SwUndoFlyBase::InsFly(), lcl_InsertLabel(), lcl_RestoreAnchor(), SwDoc::MakeFlySection_(), SwUndoFormatAttr::RestoreFlyAnchor(), SwDoc::SetFlyFrameAnchor(), SwHistorySetText::SetInDoc(), SwHistorySetTextField::SetInDoc(), SwHistorySetRefMark::SetInDoc(), SwHistorySetTOXMark::SetInDoc(), SwXShape::setPropertyValue(), SwDoc::SplitDoc(), SwUndoSetFlyFormat::UndoImpl(), and SwTOXBaseSection::UpdatePageNum_().
OUString SwTextNode::InsertText | ( | const OUString & | rStr, |
const SwIndex & | rIdx, | ||
const SwInsertFlags | nMode = SwInsertFlags::DEFAULT |
||
) |
insert text content
rStr | text to insert; in case it does not fit into the capacity of the node, the longest prefix that fits is inserted |
Definition at line 2283 of file ndtxt.cxx.
References assert(), sw::BroadcastingModify::CallSwClientNotify(), CHECK_SWPHINTS, SwTextAttr::DontExpand(), EMPTYEXPAND, FORCEHINTEXPAND, SwTextAttr::GetEnd(), SwIndex::GetIndex(), GetSpaceLeft(), SwTextAttr::GetStart(), HasHints(), SwModify::HasWriterListeners(), i, InsertHint(), SwTextAttr::IsDontExpandStartAttr(), SwTextAttr::IsFormatIgnoreEnd(), SwNode::IsIgnoreDontExpand(), m_pSwpHints, m_Text, NOHINTADJUST, NOHINTEXPAND, SAL_WARN_IF, SetCalcHiddenCharFlags(), SwTextAttr::SetEnd(), SwNode::SetIgnoreDontExpand(), SwTextAttr::SetStart(), and Update().
Referenced by sw::ToxTextGenerator::ApplyHandledTextToken(), CalculateFlySize(), SwUndoOverwrite::CanGrouping(), ChgNumToText(), ChgTextToNum(), CopyExpandText(), CopyText(), SwTOXSortTabBase::FillText(), SwTOXIndex::FillText(), SwTOXContent::FillText(), SwTOXPara::FillText(), SwTOXAuthority::FillText(), InsertHint(), sw::DocumentContentOperationsManager::InsertString(), lcl_InsertLabel(), SwXMLTextBlocks::MakeBlockText(), sw::DocumentContentOperationsManager::Overwrite(), SwUndoOverwrite::RedoImpl(), SwUndoInsert::RedoImpl(), SwExtTextInput::SetInputData(), SwUndoOverwrite::SwUndoOverwrite(), SwUndoOverwrite::UndoImpl(), SwUndoDelete::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwTOXBaseSection::Update(), and SwTOXBaseSection::UpdatePageNum_().
bool SwTextNode::IsAutoCompleteWordDirty | ( | ) | const |
Definition at line 2304 of file txtedt.cxx.
References SwParaIdleData_Impl::bAutoComplDirty, and m_pParaIdleData_Impl.
Referenced by SwTextFrame::AutoSpell_(), and SwLayIdle::DoIdleJob_().
|
inlineprivate |
Optimization: Asking for information about hidden characters at SwScriptInfo updates these flags.
Definition at line 149 of file ndtxt.hxx.
Referenced by SwScriptInfo::GetBoundsOfHiddenRange().
bool SwTextNode::IsCollapse | ( | ) | const |
Definition at line 1041 of file calcmove.cxx.
References COLLAPSE_EMPTY_CELL_PARA, SwNode::FindTableNode(), SwNode::GetDoc(), SwFrame::GetDrawObjs(), SwNode::getIDocumentLayoutAccess(), SwNode::GetIndex(), SwContentNode::getLayoutFrame(), SwNode::GetNodes(), GetText(), and SwSortedObjs::size().
Referenced by SwFrame::IsCollapse().
bool SwTextNode::IsCountedInList | ( | ) | const |
Definition at line 4244 of file ndtxt.cxx.
References SwContentNode::GetAttr(), SfxBoolItem::GetValue(), and RES_PARATR_LIST_ISCOUNTED().
Referenced by SwTaggedPDFHelper::BeginNumberedListStructureElements(), SwTextFrame::CalcAdditionalFirstLineOffset(), SwChapterField::ChangeExpansion(), SwHTMLParser::EndNumberBulletList(), SwUnoCursorHelper::getCursorPropertyValue(), GetFirstLineOfsWithNum(), sw::util::GetNormalNumRuleFromTextNode(), SwWW8FltControlStack::GetNumFormatFromStack(), sw::util::GetNumFormatFromTextNode(), GetNumString(), SwEditShell::HasNumber(), HasVisibleNumberingOrBullet(), SwHTMLParser::InsertImage(), SwNodeNum::IsCounted(), SwEditShell::IsNoNum(), IsNumbered(), lcl_dbg_out(), lcl_GotoNextPrevNum(), MakeNewTextNode(), MakeRefNumStr(), SwTextFormatter::NewNumberPortion(), SwWrtShell::NumOrBulletOn(), SwDoc::NumOrNoNum(), OutHTML_SwFormat(), MSWordExportBase::OutputTextNode(), AttributeOutputBase::ParaNumRule(), SwEditShell::SelectionHasNumber(), and SwHTMLNumRuleInfo::Set().
|
inline |
bool SwTextNode::IsFirstOfNumRule | ( | SwRootFrame const & | rLayout | ) | const |
Definition at line 4353 of file ndtxt.cxx.
References GetNum(), SwNodeNum::GetNumRule(), and SwNumberTreeNode::IsFirst().
Referenced by SwDoc::IsFirstOfNumRuleAtPos().
bool SwTextNode::IsGrammarCheckDirty | ( | ) | const |
Definition at line 2278 of file txtedt.cxx.
References SwParaIdleData_Impl::bGrammarCheckDirty, and m_pParaIdleData_Impl.
Referenced by SwXFlatParagraphIterator::getNextPara(), SwFrame::InvalidatePage(), and lcl_syncGrammarError().
bool SwTextNode::IsHidden | ( | ) | const |
Definition at line 4563 of file ndtxt.cxx.
References SwNode::FindSectionNode(), SwSectionNode::GetSection(), HasHiddenCharAttribute(), IsHiddenByParaField(), and SwSection::IsHiddenFlag().
Referenced by CountWords(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), and SwXTextField::getPropertyValue().
|
inline |
|
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 1813 of file thints.cxx.
References SvtFilterOptions::Get(), SvtFilterOptions::IsCharBackground2Shading(), RES_CHRATR_BACKGROUND(), RES_CHRATR_ESCAPEMENT(), and RES_CHRATR_UNDERLINE().
Referenced by checkApplyParagraphMarkFormatToNumbering(), and TryCharSetExpandToNum().
|
overridevirtual |
Implements sfx2::Metadatable.
Definition at line 5252 of file ndtxt.cxx.
References SwNode::GetDoc(), and SwDoc::IsClipBoard().
Referenced by sw::Meta::IsInClipboard().
|
overridevirtual |
Implements sfx2::Metadatable.
Definition at line 5262 of file ndtxt.cxx.
References SwNode::GetDoc(), and SwDoc::IsInHeaderFooter().
Referenced by sw::Meta::IsInContent().
bool SwTextNode::IsInList | ( | ) | const |
Definition at line 4348 of file ndtxt.cxx.
References GetNum(), and SwNumberTreeNode::GetParent().
Referenced by AddToList(), AppendNode(), sw::CheckParaRedlineMerge(), sw::DocumentContentOperationsManager::CopyImplImpl(), SwUnoCursorHelper::getCursorPropertyValue(), SwWrtShell::GetSelectionType(), HasMarkedLabel(), lcl_IsNoEndTextAttrAtPos(), NumRuleChgd(), RtfAttributeOutput::ParaNumRule_Impl(), RemoveFromList(), SwDoc::SetNumRule(), SwTextNode(), TryCharSetExpandToNum(), and SwCursorShell::UpdateMarkedListLevel().
|
overridevirtual |
Implements sfx2::Metadatable.
Definition at line 5257 of file ndtxt.cxx.
References SwNode::GetDoc(), SwDoc::GetIDocumentUndoRedo(), SwNode::GetNodes(), and IDocumentUndoRedo::IsUndoNodes().
Referenced by sw::Meta::IsInUndo().
bool SwTextNode::IsListRestart | ( | ) | const |
Definition at line 4129 of file ndtxt.cxx.
References SwContentNode::GetAttr(), SfxBoolItem::GetValue(), and RES_PARATR_LIST_ISRESTART().
Referenced by SwTaggedPDFHelper::BeginNumberedListStructureElements(), GetActualListStartValue(), SwUnoCursorHelper::getCursorPropertyValue(), SwUnoCursorHelper::IsNodeNumStart(), SwEditShell::IsNumRuleStart(), SwNodeNum::IsRestart(), OutHTML_SwFormat(), AttributeOutputBase::ParaNumRule(), SwHTMLNumRuleInfo::Set(), and SwDoc::SetNumRuleStart().
bool SwTextNode::IsNotifiable | ( | ) | const |
Checks a temporary notification blocker and the global conditions of IsNotificationEnabled()
Definition at line 4218 of file ndtxt.cxx.
References IsNotificationEnabled(), and m_bNotifiable.
Referenced by SwNodeNum::IsNotifiable().
bool SwTextNode::IsNotificationEnabled | ( | ) | const |
Checks some global conditions like loading or destruction of document to economize notifications.
Definition at line 4223 of file ndtxt.cxx.
References SwNode::GetDoc(), SwDoc::IsInDtor(), and SwDoc::IsInReading().
Referenced by IsNotifiable(), and SwNodeNum::IsNotificationEnabled().
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.
true | This node is numbered. |
false | else |
Definition at line 2881 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(), and SwCursorShell::UpdateMarkedListLevel().
bool SwTextNode::IsOutline | ( | ) | const |
Returns if this text node is an outline.
true | this text node is an outline |
false | else |
Definition at line 3992 of file ndtxt.cxx.
References GetAttrOutlineLevel(), GetNum(), GetNumRule(), SwNode::IsInRedlines(), and SwNumRule::IsOutlineRule().
Referenced by SwTaggedPDFHelper::BeginBlockStructureElements(), SwTaggedPDFHelper::BeginNumberedListStructureElements(), SwChapterField::ChangeExpansion(), SwNodes::ChgNode(), SwNodes::Delete(), SwNodes::DelNodes(), SwHTMLParser::EndNumberBulletList(), SwContentNode::IsAnyCondition(), SwAccessibleParagraph::IsHeading(), IsOutlineStateChanged(), MakeNewTextNode(), SwNodes::MoveNodes(), OutHTML_NumberBulletListStart(), OutHTML_SwTextNode(), RtfExport::OutputTextNode(), SplitContentNode(), SwWrtShell::ToggleOutlineContentVisibility(), SwNodes::UpdateOutlineNode(), and UpdateOutlineState().
bool SwTextNode::IsOutlineStateChanged | ( | ) | const |
Definition at line 4012 of file ndtxt.cxx.
References IsOutline(), and m_bLastOutlineState.
Referenced by SwNodes::UpdateOutlineNode().
bool SwTextNode::IsSmartTagDirty | ( | ) | const |
Definition at line 2291 of file txtedt.cxx.
References SwParaIdleData_Impl::bSmartTagDirty, and m_pParaIdleData_Impl.
Referenced by SwLayIdle::DoIdleJob_(), lcl_SetWrong(), and SwTextFrame::SmartTagScan().
bool SwTextNode::IsSymbolAt | ( | sal_Int32 | nBegin | ) | const |
in ndcopy.cxx
Definition at line 853 of file itratr.cxx.
References SwAttrIter::GetFnt(), SwNode::getIDocumentLayoutAccess(), SwFont::IsSymbol(), and SwAttrIter::Seek().
Referenced by SwAccessibleParagraph::_correctValues(), SwEditShell::GetCorrection(), SwCursorShell::GetSmartTagRect(), SwVisibleCursor::SetPosAndShow(), and Spell().
bool SwTextNode::IsWordCountDirty | ( | ) | const |
Definition at line 2247 of file txtedt.cxx.
References SwParaIdleData_Impl::bWordCountDirty, and m_pParaIdleData_Impl.
Referenced by CountWords(), and SwLayIdle::DoIdleJob_().
bool SwTextNode::IsWrongDirty | ( | ) | const |
Definition at line 2265 of file txtedt.cxx.
References DONE, SwParaIdleData_Impl::eWrongDirty, and m_pParaIdleData_Impl.
Referenced by SwTextFrame::AutoSpell_(), SwLayIdle::DoIdleJob_(), SwXFlatParagraphIterator::getNextPara(), lcl_SetWrong(), and Spell().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 944 of file ndtxt.cxx.
References SwContentNode::CanJoinNext(), sw::CheckResetRedlineMergeFlag(), SwDoc::CorrAbs(), sw::mark::ContentIdxStore::Create(), CutText(), SwNodes::Delete(), SwNode::First, SwNodes::GetDoc(), GetGrammarCheck(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwNode::GetRedlineMergeFlag(), GetSmartTags(), SwNode::GetTextNode(), GetWrong(), SwIndexReg::HasAnyIndex(), sw::HasNumberingWhichNeedsLayoutUpdate(), SwContentNode::InvalidateNumRule(), SwGrammarMarkUp::JoinGrammarList(), SwWrongList::JoinList(), sfx2::Metadatable::JoinMetadatable(), Len(), m_Text, SwWrongList::Move(), SwGrammarMarkUp::MoveGrammar(), sw::No, SAL_MAX_INT32, SetGrammarCheck(), SetGrammarCheckDirty(), SetSmartTagDirty(), SetSmartTags(), SetWrong(), SetWrongDirty(), SwIndexReg::SwIndex, sw::ThisNode, and TODO.
Referenced by SwHTMLParser::Continue(), SwXMLImport::endDocument(), sw::DocumentContentOperationsManager::MoveAndJoin(), sw::DocumentContentOperationsManager::MoveRange(), SwUndoTableCpyTable::PrepareRedline(), SwUndoMove::RedoImpl(), SwWW8ImplReader::StopApo(), SwUndoSplitNode::UndoImpl(), SwUndoMove::UndoImpl(), SwUndoTextToTable::UndoImpl(), and SwUndoInserts::UndoImpl().
void SwTextNode::JoinPrev | ( | ) |
Definition at line 1051 of file ndtxt.cxx.
References SwContentNode::CanJoinPrev(), sw::CheckResetRedlineMergeFlag(), SwDoc::CorrAbs(), sw::mark::ContentIdxStore::Create(), CutText(), SwNodes::Delete(), SwNode::First, SwNodes::GetDoc(), GetGrammarCheck(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwNode::GetNodes(), SwNode::GetRedlineMergeFlag(), GetSmartTags(), SwNode::GetTextNode(), GetWrong(), SwIndexReg::HasAnyIndex(), SwContentNode::InvalidateNumRule(), SwNode::IsCreateFrameWhenHidingRedlines(), SwGrammarMarkUp::JoinGrammarList(), SwWrongList::JoinList(), Len(), SwWrongList::Move(), sw::MoveDeletedPrevFrames(), SwGrammarMarkUp::MoveGrammar(), sw::No, SwNode::NonFirst, sw::Predecessor, SAL_MAX_INT32, SetGrammarCheck(), SetGrammarCheckDirty(), SetSmartTagDirty(), SetSmartTags(), SetWrong(), SetWrongDirty(), SwIndexReg::SwIndex, and TODO.
Referenced by SwHTMLParser::Continue(), and SwXMLImport::endDocument().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 276 of file ndtxt.cxx.
References m_Text.
Referenced by sw::DocumentRedlineManager::AppendRedline(), CanSkipOverRedline(), SwXFlatParagraph::changeText(), sw::CheckParaRedlineMerge(), SwXText::Impl::ConvertCell(), sw::DocumentContentOperationsManager::CopyImplImpl(), SwXText::Impl::finishOrAppendParagraph(), SwTextSizeInfo::GetMultiCreator(), GetNextAttrImpl(), SwEditShell::GetScriptType(), GotoCurrTable(), GotoNextTable(), GotoPrevTable(), SwHTMLWriter::GuessFrameType(), SwScriptInfo::InitScriptInfo(), SwEditShell::Insert2(), InsertHint(), IsDestroyFrameAnchoredAtChar(), IDocumentMarkAccess::IsLegalPaMForCrossRefHeadingBookmark(), IsNotBackspaceHeuristic(), IsSelectFrameAnchoredAtPara(), IsShown(), JoinNext(), JoinPrev(), lcl_CheckMaxLength(), lcl_CreatePortions(), sw::DocumentContentOperationsManager::lcl_RstTextAttr(), sw::MapViewToModel(), ModelToViewHelper::ModelToViewHelper(), sw::DocumentContentOperationsManager::MoveRange(), SwNodes::MoveRange(), MSWordExportBase::NeedTextNodeSplit(), OutASC_SwTextNode(), SwWW8AttrIter::OutAttrWithRange(), DocxAttributeOutput::OutputFlyFrame_Impl(), SwWW8ImplReader::Read_F_Tox(), SwWW8ImplReader::ReadText(), SwUndoDelete::SaveContent(), SaveFlyInRange(), SwDoc::SearchNumRule(), SwAttrIter::Seek(), SwEditShell::SelectionHasBullet(), SwEditShell::SelectionHasNumber(), sw::DocumentContentOperationsManager::SplitNode(), SwDoc::Summary(), sw_JoinText(), SwUndoInserts::UndoImpl(), SwUndoReplace::Impl::UndoImpl(), sw::UpdateMergedParaForDelete(), and sw::UpdateMergedParaForInsert().
|
overridevirtual |
Implements SwContentNode.
Definition at line 59 of file ndcopy.cxx.
References SwContentNode::ChkCondColl(), SfxItemSet::ClearItem(), CopyAttr(), CopyText(), SwDoc::CopyTextColl(), SwTextFormatColl::GetNextTextFormatColl(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwContentNode::GetpSwAttrSet(), GetText(), GetTextColl(), SwNode::GetTextNode(), SwContentNode::HasSwAttrSet(), SwDoc::IsInsOnlyTextGlossary(), SwNode::IsTextNode(), SwNodes::MakeTextNode(), sfx2::Metadatable::RegisterAsCopyOf(), RES_BREAK(), RES_CONDTXTFMTCOLL(), RES_PAGEDESC(), ResetAllAttr(), SwIndexReg::SwIndex, and SwFormat::Which().
Referenced by sw::DocumentContentOperationsManager::CopyImplImpl().
|
overridevirtual |
Virtual methods from ContentNode.
Implements SwContentNode.
Definition at line 270 of file ndtxt.cxx.
References sw::MakeTextFrame(), and sw::New.
Referenced by SwTextFrame::SplitFrame().
|
private |
Definition at line 2901 of file ndtxt.cxx.
References ChgFormatColl(), ChgTextCollUpdateNum(), SfxItemSet::ClearItem(), SwContentNode::ClearItemsFromAttrSet(), SfxItemSet::GetItemState(), SwTextFormatColl::GetNextTextFormatColl(), SwNode::GetNodes(), GetNumRule(), SwContentNode::GetpSwAttrSet(), GetTextColl(), SwContentNode::HasSwAttrSet(), sw::BorderCacheOwner::InvalidateInSwCache(), IsCountedInList(), SwNodes::IsDocNodes(), IsOutline(), RES_ATTRSET_CHG(), RES_BREAK(), RES_KEEP(), RES_OBJECTDYING(), RES_PAGEDESC(), RES_PARATR_NUMRULE(), RES_PARATR_SPLIT(), SetCountedInList(), and SwTextNode().
Referenced by AppendNode(), and SplitContentNode().
|
overridevirtual |
Implements sfx2::Metadatable.
Definition at line 5348 of file ndtxt.cxx.
References SwXParagraph::CreateXParagraph(), and SwNode::GetDoc().
|
private |
Move all comprising hard attributes to the AttrSet of the paragraph.
Definition at line 765 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().
|
overrideprivatevirtual |
Create the specific AttrSet.
Implements SwContentNode.
Definition at line 1154 of file ndtxt.cxx.
References aTextNodeSetRange, IStyleAccess::AUTO_STYLE_PARA, SwStyleNameMapper::FillProgName(), SwContentNode::GetAnyFormatColl(), SwFormat::GetAttrSet(), IStyleAccess::getAutomaticStyle(), SwNode::GetDoc(), SwContentNode::GetFormatColl(), SwDoc::GetIStyleAccess(), SwFormat::GetName(), SwContentNode::mpAttrSet, SfxItemSet::Put(), RES_FRMATR_CONDITIONAL_STYLE_NAME(), RES_FRMATR_STYLE_NAME(), SfxItemSet::SetParent(), and TxtColl.
void SwTextNode::NumRuleChgd | ( | ) |
Notify this textnode that its numbering rule has changed.
Definition at line 2853 of file ndtxt.cxx.
References sw::BroadcastingModify::CallSwClientNotify(), SwAttrSet::GetLRSpace(), GetNum(), GetNumRule(), SwContentNode::GetSwAttrSet(), IsInList(), mpNodeNum, mpNodeNumRLHidden, and SetWordCountDirty().
Referenced by lcl_SetRuleChgd(), and SwNodeNum::NotifyNode().
void SwTextNode::RemoveFromList | ( | ) |
Definition at line 4323 of file ndtxt.cxx.
References IsInList(), mpNodeNum, RemoveFromListRLHidden(), SwList::RemoveListItem(), and SetWordCountDirty().
Referenced by SwNodes::ChgNode(), SwNodes::RemoveNode(), SwNodeNum::UnregisterMeAndChildrenDueToRootDelete(), and ~SwTextNode().
void SwTextNode::RemoveFromListRLHidden | ( | ) |
Definition at line 4336 of file ndtxt.cxx.
References assert(), SwNode::GetNodes(), SwNodes::IsDocNodes(), mpNodeNumRLHidden, SwList::RemoveListItem(), and SetWordCountDirty().
Referenced by sw::CheckParaRedlineMerge(), RemoveFromList(), sw::UpdateMergedParaForDelete(), and sw::UpdateMergedParaForInsert().
void SwTextNode::ReplaceText | ( | const SwIndex & | 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
Definition at line 3675 of file ndtxt.cxx.
References assert(), sw::BroadcastingModify::CallSwClientNotify(), CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, DeleteAttribute(), SwTextAttr::GetEnd(), SwIndex::GetIndex(), GetSpaceLeft(), SwTextAttr::GetStart(), GetTextAttrForCharAt(), SwTextAttr::HasDummyChar(), SwNode::IsIgnoreDontExpand(), m_Text, nPos, SAL_WARN_IF, SwNode::SetIgnoreDontExpand(), and Update().
Referenced by sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwExtTextInput::SetInputData(), SwTextInputField::UpdateTextNodeContent(), and SwExtTextInput::~SwExtTextInput().
void SwTextNode::ReplaceTextOnly | ( | sal_Int32 | nPos, |
sal_Int32 | nLen, | ||
const OUString & | rText, | ||
const css::uno::Sequence< sal_Int32 > & | rOffsets | ||
) |
Definition at line 1945 of file txtedt.cxx.
References assert(), sw::BroadcastingModify::CallSwClientNotify(), GetSpaceLeft(), m_Text, SwIndexReg::SwIndex, and Update().
Referenced by UndoTransliterate_Data::SetChangeAtNode(), and TransliterateText().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 5156 of file ndtxt.cxx.
References mbInSetOrResetAttr, and SwContentNode::ResetAllAttr().
Referenced by SwDoc::ClearDoc(), SwHTMLParser::Continue(), MakeCopy(), SwUndoDelete::UndoImpl(), SwUndoTableNumFormat::UndoImpl(), SwUndoInserts::UndoImpl(), and SwNodes::UndoTableToText().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 5128 of file ndtxt.cxx.
References mbInSetOrResetAttr, and SwContentNode::ResetAttr().
Referenced by SwHTMLParser::AddParSpace(), AppendNode(), SwHTMLParser::AppendTextNode(), SwHTMLParser::BuildTableCell(), ChgNumToText(), ChgTextToNum(), sw::DocumentContentOperationsManager::CopyImplImpl(), SwDoc::DelNumRules(), SwXMLImport::endDocument(), SwHTMLParser::FixHeaderFooterDistance(), SwNodes::InsertTextSection(), sw::lcl_PopNumruleState(), lcl_RemoveBreaks(), ResetEmptyListStyleDueToResetOutlineLevelAttr(), SetAttrListRestartValue(), SetCountedInList(), SetListId(), SetListRestart(), SwDoc::SetNumRule(), SwWW8ImplReader::SetTextFormatCollAndListLevel(), SplitContentNode(), SwDoc::Summary(), and ~SwTextNode().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 5142 of file ndtxt.cxx.
References mbInSetOrResetAttr, and SwContentNode::ResetAttr().
void SwTextNode::ResetEmptyListStyleDueToResetOutlineLevelAttr | ( | ) |
Definition at line 4067 of file ndtxt.cxx.
References mbEmptyListStyleSetDueToSetOutlineLevelAttr, RES_PARATR_NUMRULE(), and ResetAttr().
void SwTextNode::RstTextAttr | ( | const SwIndex & | rIdx, |
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.
rIdx | start position |
nLen | range in which attributes will be deleted |
pSet | if not 0, delete only attributes contained in pSet |
nWhich | if not 0, delete only attributes with matching which |
bInclRefToxMark | refmarks, toxmarks, and metas will be ignored unless this is true ATTENTION: setting bInclRefToxMark is only allowed from UNDO! |
bExactRange | From 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
rIdx | starting position |
nLen | length of the deletion |
nthat | ??? |
pSet | ??? |
bInclRefToxMark | ??? |
Definition at line 355 of file txtedt.cxx.
References sw::BroadcastingModify::CallSwClientNotify(), Count, DestroyAttr(), SwTextAttr::End(), SwTextAttr::GetAttr(), SwNode::GetDoc(), SwTextAttr::GetEnd(), SwContentNode::GetFormatColl(), SwNode::getIDocumentStyleAccess(), SwIndex::GetIndex(), SfxItemSet::GetItemState(), GetpSwpHints(), SwTextCharFormat::GetSortNumber(), SwTextAttr::GetStart(), GetTextAttrAt(), SwTextAttr::HasContent(), HasHints(), i, InsertHint(), isTXTATR_WITHEND(), lcl_HaveCommonAttributes(), m_pSwpHints, m_Text, MakeTextAttr(), NOHINTADJUST, PARENT, RES_TXTATR_AUTOFMT(), RES_TXTATR_INPUTFIELD(), RES_TXTATR_META(), RES_TXTATR_METAFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), SwTextAttr::SetEnd(), SwTextAttr::SetStart(), static_txtattr_cast(), TryDeleteSwpHints(), and SwTextAttr::Which().
Referenced by sw::DocumentContentOperationsManager::lcl_RstTextAttr(), SetAttr(), SwUndoTableMerge::UndoImpl(), and SwUndoInserts::UndoImpl().
|
overridevirtual |
overriding to handle change of certain paragraph attributes
Reimplemented from SwContentNode.
Definition at line 4898 of file ndtxt.cxx.
References mbInSetOrResetAttr, and SwContentNode::SetAttr().
Referenced by SwHTMLParser::AddParSpace(), SwDoc::AppendDoc(), SwHTMLParser::AppendTextNode(), ChgNumToText(), ChgTextToNum(), SwDoc::ClearDoc(), SwDoc::ClearLineNumAttrs(), SwHTMLParser::Continue(), CopyCollFormat(), sw::DocumentContentOperationsManager::CopyImplImpl(), CopyText(), CutImpl(), SwDoc::DelNumRules(), SwHTMLParser::FixHeaderFooterDistance(), sw::ToxTextGenerator::GenerateText(), SwWW8ImplReader::HandlePageBreakChar(), SwRegHistory::InsertItems(), SwHTMLParser::InsertSpacer(), SwNodes::InsertTextSection(), lcl_InsertLabel(), sw::lcl_PopNumruleState(), SwDoc::MoveLeftMargin(), MoveTextAttr_To_AttrSet(), SwWW8ImplReader::Read_LR(), SwWW8ImplReader::RegisterNumFormatOnTextNode(), SwUndoFormatAttr::RepeatImpl(), SetAttr(), SetAttrListLevel(), SetAttrListRestartValue(), SetAttrOutlineContentVisible(), SetAttrOutlineLevel(), SetCountedInList(), SetEmptyListStyleDueToSetOutlineLevelAttr(), SetListId(), SetListRestart(), sw::DocumentContentOperationsManager::SplitNode(), SwTextNode(), SwDoc::UpdateParRsid(), and SwDoc::UpdateRsid().
|
overridevirtual |
Reimplemented from SwContentNode.
Definition at line 4912 of file ndtxt.cxx.
References mbInSetOrResetAttr, and SwContentNode::SetAttr().
bool SwTextNode::SetAttr | ( | const SfxItemSet & | rSet, |
sal_Int32 | nStt, | ||
sal_Int32 | nEnd, | ||
const SetAttrMode | nMode = SetAttrMode::DEFAULT , |
||
SwTextAttr ** | ppNewTextAttr = nullptr |
||
) |
Set these attributes at TextNode.
If the whole range is comprised set them only in AutoAttrSet (SwContentNode::SetAttr).
Definition at line 1887 of file thints.cxx.
References aCharAutoFormatSetRange, aIndex, SfxItemSet::Count(), DestroyAttr(), DontExpandFormat(), SfxItemIter::GetCurItem(), SwNode::GetDoc(), SwTextAttr::GetEnd(), GetOrCreateSwpHints(), SfxItemSet::GetPool(), HasHints(), InsertHint(), isCHRATR(), IsInvalidItem(), isTXTATR(), m_pSwpHints, m_Text, MakeTextAttr(), n, nCount, SfxItemIter::NextItem(), NOFORMATATTR, RES_TXTATR_AUTOFMT(), RES_TXTATR_BEGIN(), RES_TXTATR_CHARFMT(), RES_TXTATR_END(), RES_TXTATR_UNKNOWN_CONTAINER(), RstTextAttr(), SetAttr(), TryDeleteSwpHints(), and SfxPoolItem::Which().
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.
nLevel | level to set |
Definition at line 4076 of file ndtxt.cxx.
References assert(), 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().
void SwTextNode::SetAttrListRestartValue | ( | SwNumberTree::tSwNumTreeNumber | nNum | ) |
Definition at line 4157 of file ndtxt.cxx.
References GetAttrListRestartValue(), HasAttrListRestartValue(), RES_PARATR_LIST_RESTARTVALUE(), ResetAttr(), SetAttr(), and USHRT_MAX.
Referenced by WW8ListManager::GetNumRuleForActivation(), SwHTMLParser::NewNumberBulletListItem(), and SwDoc::SetNodeNumStart().
void SwTextNode::SetAttrOutlineContentVisible | ( | bool | bVisible | ) |
Definition at line 4049 of file ndtxt.cxx.
References SfxGrabBagItem::GetGrabBag(), RES_PARATR_GRABBAG(), and SetAttr().
Referenced by SwView::ExecViewOptions().
Sets the out line level at a text node.
nLevel | the 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 4027 of file ndtxt.cxx.
References assert(), MAXLEVEL, RES_PARATR_OUTLINELEVEL(), and SetAttr().
Referenced by SwDoc::OutlineUpDown().
void SwTextNode::SetAutoCompleteWordDirty | ( | bool | bNew | ) | const |
Definition at line 2296 of file txtedt.cxx.
References SwParaIdleData_Impl::bAutoComplDirty, and m_pParaIdleData_Impl.
Referenced by SwTextFrame::AutoSpell_(), SwTextFrame::CollectAutoCmplWrds(), DelFrames_TextNodePart(), SwDoc::InvalidateAutoCompleteFlag(), lcl_SetWrong(), and Update().
|
inline |
Definition at line 728 of file ndtxt.hxx.
Referenced by ChgFormatColl(), DeleteAttributes(), DestroyAttr(), EraseText(), FormatToTextAttr(), InsertText(), and SwpHints::TryInsertHint().
|
inline |
set CalcVisible flags
Definition at line 712 of file ndtxt.hxx.
Referenced by DestroyAttr(), and InsertHint().
void SwTextNode::SetCountedInList | ( | bool | bCounted | ) |
Definition at line 4229 of file ndtxt.cxx.
References RES_PARATR_LIST_ISCOUNTED(), ResetAttr(), and SetAttr().
Referenced by SwHTMLParser::InsertImage(), MakeNewTextNode(), WW8TabDesc::MergeCells(), SwHTMLParser::NewNumberBulletListItem(), SwWW8ImplReader::NextAnlLine(), SwDoc::NoNum(), SwDoc::NumOrNoNum(), SwTable::PrepareMerge(), SwUndoNumOrNoNum::RedoImpl(), SwWW8ImplReader::RegisterNumFormatOnTextNode(), SwHTMLParser::SetNodeNum(), and SwUndoNumOrNoNum::UndoImpl().
void SwTextNode::SetEmptyListStyleDueToSetOutlineLevelAttr | ( | ) |
Definition at line 4058 of file ndtxt.cxx.
References mbEmptyListStyleSetDueToSetOutlineLevelAttr, and SetAttr().
void SwTextNode::SetGrammarCheck | ( | SwGrammarMarkUp * | pNew, |
bool | bDelete = true |
||
) |
Definition at line 2192 of file txtedt.cxx.
References m_pParaIdleData_Impl, and SwParaIdleData_Impl::pGrammarCheck.
Referenced by DelFrames_TextNodePart(), IMPL_LINK(), SwXTextCursor::invalidateMarkings(), JoinNext(), JoinPrev(), and SplitContentNode().
void SwTextNode::SetGrammarCheckDirty | ( | bool | bNew | ) | const |
Definition at line 2270 of file txtedt.cxx.
References SwParaIdleData_Impl::bGrammarCheckDirty, and m_pParaIdleData_Impl.
Referenced by DelFrames_TextNodePart(), SwXTextCursor::invalidateMarkings(), JoinNext(), JoinPrev(), lcl_SetWrong(), lcl_SpellAndGrammarAgain(), and SplitContentNode().
|
inlineprivate |
Definition at line 151 of file ndtxt.hxx.
Referenced by SwScriptInfo::CalcHiddenRanges(), and SwScriptInfo::GetBoundsOfHiddenRange().
|
private |
Definition at line 1070 of file txtedt.cxx.
References SwViewShell::GetAttrPool(), vcl::Font::GetCharSet(), SwNode::GetDoc(), SwDoc::GetEditShell(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), SwDoc::getIDocumentContentOperations(), vcl::Font::GetPitch(), vcl::Font::GetStyleName(), IDocumentContentOperations::InsertItemSet(), SvxFontItem::SetCharSet(), SvxFontItem::SetFamily(), SvxFontItem::SetFamilyName(), SvxFontItem::SetPitch(), and SvxFontItem::SetStyleName().
Referenced by Convert().
void SwTextNode::SetListId | ( | OUString const & | rListId | ) |
Definition at line 4364 of file ndtxt.cxx.
References SwContentNode::GetAttr(), CntUnencodedStringItem::GetValue(), RES_PARATR_LIST_ID(), ResetAttr(), and SetAttr().
void SwTextNode::SetListRestart | ( | bool | bRestart | ) |
Definition at line 4113 of file ndtxt.cxx.
References RES_PARATR_LIST_ISRESTART(), ResetAttr(), and SetAttr().
Referenced by WW8ListManager::GetNumRuleForActivation(), SwHTMLParser::NewNumberBulletListItem(), and SwDoc::SetNumRuleStart().
void SwTextNode::SetSmartTagDirty | ( | bool | bNew | ) | const |
Definition at line 2283 of file txtedt.cxx.
References SwParaIdleData_Impl::bSmartTagDirty, and m_pParaIdleData_Impl.
Referenced by DelFrames_TextNodePart(), SwXTextCursor::invalidateMarkings(), JoinNext(), JoinPrev(), lcl_CheckSmartTagsAgain(), lcl_SetWrong(), SwTextFrame::SmartTagScan(), and SplitContentNode().
void SwTextNode::SetSmartTags | ( | SwWrongList * | pNew, |
bool | bDelete = true |
||
) |
Definition at line 2214 of file txtedt.cxx.
References SwSmartTagMgr::Get(), m_pParaIdleData_Impl, and SwParaIdleData_Impl::pSmartTags.
Referenced by DelFrames_TextNodePart(), SwXTextCursor::invalidateMarkings(), JoinNext(), JoinPrev(), lcl_CheckSmartTagsAgain(), lcl_SetWrong(), SwTextFrame::SmartTagScan(), and SplitContentNode().
void SwTextNode::SetWordCountDirty | ( | bool | bNew | ) | const |
Definition at line 2239 of file txtedt.cxx.
References SwParaIdleData_Impl::bWordCountDirty, and m_pParaIdleData_Impl.
Referenced by CountWords(), DelFrames_TextNodePart(), lcl_SetWrong(), NumRuleChgd(), RemoveFromList(), RemoveFromListRLHidden(), and SplitContentNode().
void SwTextNode::SetWrong | ( | SwWrongList * | pNew, |
bool | bDelete = true |
||
) |
Definition at line 2169 of file txtedt.cxx.
References m_pParaIdleData_Impl, and SwParaIdleData_Impl::pWrong.
Referenced by SwTextFrame::AutoSpell_(), DelFrames_TextNodePart(), SwXTextCursor::invalidateMarkings(), JoinNext(), JoinPrev(), lcl_SetWrong(), and SplitContentNode().
void SwTextNode::SetWrongDirty | ( | WrongState | eNew | ) | const |
Definition at line 2252 of file txtedt.cxx.
References SwParaIdleData_Impl::eWrongDirty, and m_pParaIdleData_Impl.
Referenced by SwTextFrame::AutoSpell_(), DelFrames_TextNodePart(), SwXTextCursor::invalidateMarkings(), JoinNext(), JoinPrev(), lcl_SetWrong(), lcl_SpellAndGrammarAgain(), and SplitContentNode().
|
inline |
Definition at line 782 of file ndtxt.hxx.
Referenced by SwXParagraph::attachToText(), SwXParagraph::CreateXParagraph(), and TriggerNodeUpdate().
bool SwTextNode::Spell | ( | SwSpellArgs * | pArgs | ) |
Definition at line 940 of file txtedt.cxx.
References SwIndex::Assign(), CH_TXTATR_INWORD, SvxSpellWrapper::CheckSpellLang(), SwScanner::GetBegin(), SwScanner::GetCurrentLanguage(), SwNode::GetDoc(), SwScanner::GetEnd(), SwIndex::GetIndex(), SwNode::GetTextNode(), SwScanner::GetWord(), GetWrong(), IsSymbolAt(), IsWrongDirty(), LANGUAGE_NONE, lcl_MaskRedlinesAndHiddenText(), m_Text, SwScanner::NextWord(), SwWrongList::NextWrong(), pChar, SwArgsBase::pEndIdx, SwArgsBase::pEndNode, SwArgsBase::pStartIdx, SwArgsBase::pStartNode, SwSpellArgs::xSpellAlt, and SwSpellArgs::xSpeller.
Referenced by SwDoc::Spell().
SwTextNode * SwTextNode::SplitContentNode | ( | const SwPosition & | rPos, |
std::function< void(SwTextNode *, sw::mark::RestoreMode, bool AtStart)> const * | pContentIndexRestore | ||
) |
Definition at line 413 of file ndtxt.cxx.
References assert(), Clear, CutText(), SwFrameFormat::DelFrames(), DestroyAttr(), SwTextAttr::DontExpand(), SwNode::First, SwIterator< TElementType, TSource, eMode >::First(), sw::mark::Flys, SwTextAttr::GetEnd(), SwTextAttr::GetFlyCnt(), SwFormatFlyCnt::GetFrameFormat(), GetGrammarCheck(), SwIndex::GetIndex(), SfxItemSet::GetItemState(), GetNumRule(), GetOrCreateSwpHints(), SwNode::GetRedlineMergeFlag(), GetSmartTags(), SwTextAttr::GetStart(), SwContentNode::GetSwAttrSet(), GetWrong(), HasHints(), SwModify::HasWriterListeners(), SwNode::Hidden, sw::BorderCacheOwner::InvalidateInSwCache(), IsOutline(), lcl_ChangeFootnoteRef(), m_pSwpHints, m_Text, SwContentNode::MakeFramesForAdjacentContentNode(), MakeNewTextNode(), sw::MoveMergedFlysAndFootnotes(), MoveTextAttr_To_AttrSet(), SwPosition::nContent, SwIterator< TElementType, TSource, eMode >::Next(), SwPosition::nNode, SwNode::None, SwNode::NonFirst, sw::mark::NonFlys, sfx2::Metadatable::RegisterAsCopyOf(), sfx2::Metadatable::RemoveMetadataReference(), RES_ATTRSET_CHG(), RES_PAGEDESC(), RES_PARATR_LIST_ID(), RES_PARATR_LIST_ISCOUNTED(), RES_PARATR_LIST_ISRESTART(), RES_PARATR_LIST_LEVEL(), RES_PARATR_LIST_RESTARTVALUE(), RES_TXTATR_FLYCNT(), ResetAttr(), SetGrammarCheck(), SetGrammarCheckDirty(), SwpHints::SetInSplitNode(), SwNode::SetRedlineMergeFlag(), SetSmartTagDirty(), SetSmartTags(), SetWordCountDirty(), SetWrong(), SetWrongDirty(), SwGrammarMarkUp::SplitGrammarList(), SwWrongList::SplitList(), TODO, TriggerNodeUpdate(), and void().
Referenced by sw::DocumentContentOperationsManager::MoveRange(), SwNodes::MoveRange(), sw::DocumentContentOperationsManager::SplitNode(), SwNodes::TextToTable(), and SwNodes::UndoTableToText().
|
overrideprivatevirtual |
Reimplemented from SwContentNode.
Definition at line 5334 of file ndtxt.cxx.
References SwContentNode::ChkCondColl(), SwClient::GetRegisteredIn(), and TriggerNodeUpdate().
void SwTextNode::TransliterateText | ( | utl::TransliterationWrapper & | rTrans, |
sal_Int32 | nStart, | ||
sal_Int32 | nEnd, | ||
SwUndoTransliterate * | pUndo, | ||
bool | bUseRedlining = false |
||
) |
change text to Upper/Lower/Hiragana/Katakana/...
Definition at line 1684 of file txtedt.cxx.
References SwUndoTransliterate::AddChanges(), assert(), g_pBreakIt, SwBreakIt::GetBreakIter(), SwNode::GetDoc(), SwDoc::getIDocumentContentOperations(), GetLang(), SwBreakIt::GetLocale(), SwPaM::GetPoint(), GetSpaceLeft(), GetText(), SwPaM::GetText(), utl::TransliterationWrapper::getType(), i, LANGUAGE_NONE, LANGUAGE_SYSTEM, m_Text, o3tl::make_unsigned(), SwPosition::nContent, utl::TransliterationWrapper::needLanguageForTheMode(), Next, nLang, rData, IDocumentContentOperations::ReplaceRange(), ReplaceTextOnly(), SAL_WARN, SwPaM::SetMark(), and utl::TransliterationWrapper::transliterate().
Referenced by sw::DocumentContentOperationsManager::TransliterateText().
void SwTextNode::TriggerNodeUpdate | ( | const sw::LegacyModifyHint & | rHint | ) |
for hanging TextFormatCollections somewhere else (Outline-Numbering!)
Definition at line 5267 of file ndtxt.cxx.
References assert(), ChgTextCollUpdateNum(), SfxItemIter::GetCurItem(), SwNode::GetDoc(), SwNode::GetNodes(), SwDoc::GetNodes(), SwClient::GetRegisteredIn(), SwNodes::IsDocNodes(), SwDoc::IsInDtor(), IsInvalidItem(), m_bNotifiable, sw::LegacyModifyHint::m_pNew, sw::LegacyModifyHint::m_pOld, maFillAttributes, mbInSetOrResetAttr, SfxItemIter::NextItem(), RES_ATTRSET_CHG(), RES_FMT_CHG(), RES_REMOVE_UNO_OBJECT(), SetXParagraph(), SwContentNode::SwClientNotify(), SwNodes::UpdateOutlineNode(), SfxPoolItem::Which(), XATTR_FILL_FIRST(), and XATTR_FILL_LAST().
Referenced by CopyAttr(), CutImpl(), SwTextField::ExpandTextField(), SwTextFootnote::InvalidateNumberInLayout(), SwRangeRedline::InvalidateRange(), SwTextField::NotifyContentChange(), sw::DocumentContentOperationsManager::Overwrite(), SplitContentNode(), SwTextINetFormat::SwClientNotify(), SwTextRuby::SwClientNotify(), SwClientNotify(), SwTextCharFormat::TriggerNodeUpdate(), SwpHints::TryInsertHint(), sw::DocumentFieldsManager::UpdateField(), and SwFormatField::UpdateTextNode().
void SwTextNode::TryCharSetExpandToNum | ( | const SfxItemSet & | pCharSet | ) |
Definition at line 1841 of file thints.cxx.
References GetActualListLevel(), SwContentNode::GetAttr(), SwNumFormat::GetCharFormat(), SfxItemIter::GetCurItem(), SwFormat::GetItemState(), GetListId(), SwNumRule::GetNumFormat(), GetNumRule(), IsDefaultItem(), SwNumFormat::IsEnumeration(), IsIgnoredCharFormatForNumbering(), IsInList(), IsInvalidItem(), SwNumFormat::IsItemize(), lcl_IsIgnoredCharFormatForBullets(), SwNumRule::Set(), SwNumFormat::SetCharFormat(), SwFormat::SetFormatAttr(), and SfxPoolItem::Which().
|
inlineprivate |
Definition at line 831 of file ndtxt.hxx.
Referenced by CutImpl(), DeleteAttribute(), DeleteAttributes(), EraseText(), FormatToTextAttr(), GCAttr(), RstTextAttr(), and SetAttr().
|
overridevirtual |
override SwIndexReg
Reimplemented from SwIndexReg.
Definition at line 1176 of file ndtxt.cxx.
References assert(), SwIndex::Assign(), IDocumentMarkAccess::assureSortedMarkContainers(), SwTextAttr::Destroy(), SwTextAttr::DontExpand(), SwPaM::End(), SwFormat::GetAnchor(), SwNode::GetAnchoredFlys(), SwFormatAnchor::GetAnchorId(), SwTextAttr::GetAttr(), SwFormatAnchor::GetContentAnchor(), SwNode::GetDoc(), SwDoc::GetDocShell(), SwFrame::GetDrawObjs(), SwTextAttr::GetEnd(), SwIndexReg::GetFirstIndex(), SwNode::getIDocumentLayoutAccess(), SwNode::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwIndex::GetIndex(), SwContentNode::getLayoutFrame(), SwPaM::GetMark(), sw::mark::IMark::GetMarkEnd(), sw::mark::IMark::GetMarkStart(), SwIndex::GetNext(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), IDocumentRedlineAccess::GetRedlineTable(), sw::Ring< value_type >::GetRingContainer(), SwDoc::GetSpzFrameFormats(), SwTextAttr::GetStart(), HasHints(), SwPaM::HasMark(), i, o3tl::sorted_vector< Value, Compare, Find, class >::insert(), comphelper::LibreOfficeKit::isActive(), SwTextAttr::IsCharFormatAttr(), isCHRATR(), sw::mark::IMark::IsExpanded(), SwTextAttr::IsFormatIgnoreEnd(), SwNode::IsIgnoreDontExpand(), isTXTATR_WITHEND(), SwRedlineTable::LOKRedlineNotification(), m_pSwpHints, MakeTextAttr(), Modify, SwIndexReg::MoveTo(), n, SwPosition::nContent, nCount, SwPosition::nNode, 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(), SwIndexReg::Update(), SwSortedObjs::UpdateAll(), SwTextInputField::UpdateFieldContent(), void(), and SwTextAttr::Which().
Referenced by CutImpl(), EraseText(), InsertHint(), InsertText(), ReplaceText(), and ReplaceTextOnly().
void SwTextNode::UpdateOutlineState | ( | ) |
Definition at line 4017 of file ndtxt.cxx.
References IsOutline(), and m_bLastOutlineState.
Referenced by SwNodes::UpdateOutlineNode().
|
friend |
|
friend |
|
friend |
|
friend |
|
mutableprivate |
Some of the chars this para are hidden.
Paragraph has to be reformatted on changing the view to print preview.
Definition at line 104 of file ndtxt.hxx.
Referenced by SwTextNode().
|
mutableprivate |
The whole paragraph is hidden because of the hidden text attribute.
Definition at line 106 of file ndtxt.hxx.
Referenced by SwTextNode().
|
mutableprivate |
Definition at line 110 of file ndtxt.hxx.
Referenced by IsOutlineStateChanged(), and UpdateOutlineState().
|
private |
Definition at line 111 of file ndtxt.hxx.
Referenced by IsNotifiable(), SwTextNode(), and TriggerNodeUpdate().
|
mutableprivate |
The last two flags have to be recalculated if this flag is set:
Definition at line 108 of file ndtxt.hxx.
Referenced by SwTextNode().
|
private |
Definition at line 120 of file ndtxt.hxx.
Referenced by CopyText(), and GetNumString().
|
private |
Definition at line 100 of file ndtxt.hxx.
Referenced by CountWords(), GetGrammarCheck(), GetSmartTags(), GetWrong(), GetWrongDirty(), InitSwParaStatistics(), IsAutoCompleteWordDirty(), IsGrammarCheckDirty(), IsSmartTagDirty(), IsWordCountDirty(), IsWrongDirty(), SetAutoCompleteWordDirty(), SetGrammarCheck(), SetGrammarCheckDirty(), SetSmartTagDirty(), SetSmartTags(), SetWordCountDirty(), SetWrong(), and SetWrongDirty().
|
private |
May be 0.
It is only then not 0 if it contains hard attributes. Therefore: never access directly!
Definition at line 93 of file ndtxt.hxx.
Referenced by ClearSwpHintsArr(), CopyAttr(), CopyExpandText(), CopyText(), CutImpl(), DeleteAttribute(), DeleteAttributes(), DontExpandFormat(), EraseText(), FileLoadedInitHints(), GCAttr(), GetLang(), GetOrCreateSwpHints(), GetParaAttr(), GetSwpHints(), GetTextAttrAt(), GetTextAttrForCharAt(), GetTextAttrsAt(), impl_FormatToTextAttr(), InsertHint(), InsertItem(), InsertText(), MoveTextAttr_To_AttrSet(), RstTextAttr(), SetAttr(), SplitContentNode(), Update(), and ~SwTextNode().
|
private |
Definition at line 98 of file ndtxt.hxx.
Referenced by SwTextFrame::AutoSpell_(), Convert(), CopyText(), CutImpl(), DelSoftHyph(), DontExpandFormat(), EraseText(), GCAttr(), GetLang(), GetMinMaxSize(), Hyphenate(), impl_FormatToTextAttr(), InsertHint(), InsertText(), JoinNext(), Len(), MoveTextAttr_To_AttrSet(), ReplaceText(), ReplaceTextOnly(), RstTextAttr(), SetAttr(), Spell(), SplitContentNode(), and TransliterateText().
|
private |
|
private |
Definition at line 125 of file ndtxt.hxx.
Referenced by ChgFormatColl(), getSdrAllFillAttributesHelper(), and TriggerNodeUpdate().
|
private |
Definition at line 113 of file ndtxt.hxx.
Referenced by ResetEmptyListStyleDueToResetOutlineLevelAttr(), and SetEmptyListStyleDueToSetOutlineLevelAttr().
|
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 118 of file ndtxt.hxx.
Referenced by ChgFormatColl(), ResetAllAttr(), ResetAttr(), SetAttr(), and TriggerNodeUpdate().
|
mutableprivate |
Numbering for this paragraph.
Definition at line 95 of file ndtxt.hxx.
Referenced by AddToList(), DoNum(), GetNum(), NumRuleChgd(), and RemoveFromList().
|
mutableprivate |
Numbering for this paragraph (hidden redlines)
Definition at line 96 of file ndtxt.hxx.
Referenced by AddToListRLHidden(), DoNum(), GetActualListLevel(), GetNum(), NumRuleChgd(), and RemoveFromListRLHidden().