LibreOffice Module sw (master)  1
node.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SW_INC_NODE_HXX
21 #define INCLUDED_SW_INC_NODE_HXX
22 
23 #include <sal/types.h>
24 
25 #include "swdllapi.h"
26 #include "BorderCacheOwner.hxx"
27 #include "ndarr.hxx"
28 #include "ndtyp.hxx"
29 #include "index.hxx"
30 #include "fmtcol.hxx"
31 
32 #include <memory>
33 #include <vector>
34 
35 class SwContentFrame;
36 class SwContentNode;
37 class SwDoc;
38 class SwEndNode;
39 class SwFrame;
40 class SwFrameFormat;
41 class SwGrfNode;
42 class SwNoTextNode;
43 class SwNodeIndex;
44 class SwOLENode;
45 class SwRect;
46 class SwSection;
47 class SwSectionFormat;
48 class SwTOXBase;
49 class SwSectionNode;
50 class SwStartNode;
51 class SwTabFrame;
52 class SwRootFrame;
53 class SwTable;
54 class SwTableNode;
55 class SwTableBox;
56 class SwTextNode;
57 class SwPageDesc;
58 class SwViewShell;
59 struct SwPosition;
60 class IStyleAccess;
69 class IDocumentListItems;
70 class Point;
71 enum class SvxFrameDirection;
72 typedef std::vector<SwOLENode*> SwOLENodes; // docary.hxx
73 
74 namespace drawinglayer::attribute {
75  class SdrAllFillAttributesHelper;
76  typedef std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr;
77 }
78 
81  : public sw::BorderCacheOwner, private BigPtrEntry
82 {
83  friend class SwNodes;
84 
86 
88  sal_uInt8 m_nAFormatNumLvl : 3;
89  bool m_bIgnoreDontExpand : 1;
90 
91 public:
93  enum class Merge { None, First, NonFirst, Hidden };
95  return m_eMerge == Merge::None || m_eMerge == Merge::First;
96  }
97  void SetRedlineMergeFlag(Merge const eMerge) { m_eMerge = eMerge; }
98  Merge GetRedlineMergeFlag() const { return m_eMerge; }
99 private:
101 
102 #ifdef DBG_UTIL
105 #endif
106 
110  std::vector<SwFrameFormat*> m_aAnchoredFlys;
111 
112 protected:
114 
115  SwNode( const SwNodeIndex &rWhere, const SwNodeType nNodeId );
116 
118  SwNode( SwNodes& rNodes, sal_uLong nPos, const SwNodeType nNodeId );
119 
120 public:
123  virtual ~SwNode() override = 0;
124 
125 #ifdef DBG_UTIL
126  tools::Long GetSerial() const { return m_nSerial; }
127 #endif
128 
129  sal_uInt16 GetSectionLevel() const;
130 
131  inline sal_uLong StartOfSectionIndex() const;
132  const SwStartNode* StartOfSectionNode() const { return m_pStartOfSection; }
133  SwStartNode* StartOfSectionNode() { return m_pStartOfSection; }
134 
135  inline sal_uLong EndOfSectionIndex() const;
136  inline const SwEndNode* EndOfSectionNode() const;
137  inline SwEndNode* EndOfSectionNode();
138 
139  sal_uInt8 GetAutoFormatLvl() const { return m_nAFormatNumLvl; }
140  void SetAutoFormatLvl( sal_uInt8 nVal ) { m_nAFormatNumLvl = nVal; }
141 
142  bool IsIgnoreDontExpand() const { return m_bIgnoreDontExpand; }
143  void SetIgnoreDontExpand( bool bNew ) { m_bIgnoreDontExpand = bNew; }
144 
145  SwNodeType GetNodeType() const { return m_nNodeType; }
146 
147  inline SwStartNode *GetStartNode();
148  inline const SwStartNode *GetStartNode() const;
149  inline SwContentNode *GetContentNode();
150  inline const SwContentNode *GetContentNode() const;
151  inline SwEndNode *GetEndNode();
152  inline const SwEndNode *GetEndNode() const;
153  inline SwTextNode *GetTextNode();
154  inline const SwTextNode *GetTextNode() const;
155  inline SwOLENode *GetOLENode();
156  inline const SwOLENode *GetOLENode() const;
157  inline SwNoTextNode *GetNoTextNode();
158  inline const SwNoTextNode *GetNoTextNode() const;
159  inline SwGrfNode *GetGrfNode();
160  inline const SwGrfNode *GetGrfNode() const;
161  inline SwTableNode *GetTableNode();
162  inline const SwTableNode *GetTableNode() const;
163  inline SwSectionNode *GetSectionNode();
164  inline const SwSectionNode *GetSectionNode() const;
165 
166  inline bool IsStartNode() const;
167  inline bool IsContentNode() const;
168  inline bool IsEndNode() const;
169  inline bool IsTextNode() const;
170  inline bool IsTableNode() const;
171  inline bool IsSectionNode() const;
172  inline bool IsOLENode() const;
173  inline bool IsNoTextNode() const;
174  inline bool IsGrfNode() const;
175 
182  bool IsInRedlines() const;
183 
186  SwTableNode *FindTableNode();
187  inline const SwTableNode *FindTableNode() const;
188 
191  SwSectionNode *FindSectionNode();
192  inline const SwSectionNode *FindSectionNode() const;
193 
194  SwStartNode* FindSttNodeByType( SwStartNodeType eTyp );
195  inline const SwStartNode* FindSttNodeByType( SwStartNodeType eTyp ) const;
196 
198  { return FindSttNodeByType( SwTableBoxStartNode ); }
200  { return FindSttNodeByType( SwFlyStartNode ); }
202  { return FindSttNodeByType( SwFootnoteStartNode ); }
204  { return FindSttNodeByType( SwHeaderStartNode ); }
206  { return FindSttNodeByType( SwFooterStartNode ); }
207 
209  inline SwNodes& GetNodes();
210  inline const SwNodes& GetNodes() const;
211 
213  {
214  return GetNodes().GetDoc();
215  }
216 
217  const SwDoc& GetDoc() const
218  {
219  return GetNodes().GetDoc();
220  }
221 
224  const IDocumentSettingAccess* getIDocumentSettingAccess() const;
225 
228  const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
229 
232  const IDocumentMarkAccess* getIDocumentMarkAccess() const;
233 
236  const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
237 
240  const IDocumentStylePoolAccess& getIDocumentStylePoolAccess() const;
241 
244  const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
245 
248  const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
249  IDocumentLayoutAccess& getIDocumentLayoutAccess();
250 
253  const IDocumentLinksAdministration& getIDocumentLinksAdministration() const;
254  IDocumentLinksAdministration& getIDocumentLinksAdministration();
255 
258  const IDocumentFieldsAccess& getIDocumentFieldsAccess() const;
259  IDocumentFieldsAccess& getIDocumentFieldsAccess();
260 
263  IDocumentContentOperations& getIDocumentContentOperations();
264 
267  IStyleAccess& getIDocumentStyleAccess();
268 
270  IDocumentListItems& getIDocumentListItems();
271 
273  bool IsInVisibleArea( SwViewShell const * pSh ) const;
275  bool IsInProtectSect() const;
278  bool IsProtect() const;
279 
283  const SwPageDesc* FindPageDesc( size_t* pPgDescNdIdx = nullptr ) const;
284 
286  SwFrameFormat* GetFlyFormat() const;
287 
289  SwTableBox* GetTableBox() const;
290 
291  sal_uLong GetIndex() const { return GetPos(); }
292 
293  const SwTextNode* FindOutlineNodeOfLevel(sal_uInt8 nLvl, SwRootFrame const* pLayout = nullptr) const;
294 
295  sal_uInt8 HasPrevNextLayNode() const;
296 
297  std::vector<SwFrameFormat *> const & GetAnchoredFlys() const { return m_aAnchoredFlys; }
298  void AddAnchoredFly(SwFrameFormat *);
299  void RemoveAnchoredFly(SwFrameFormat *);
300 
304  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
305 
306 private:
307  SwNode( const SwNode & rNodes ) = delete;
308  SwNode & operator= ( const SwNode & rNodes ) = delete;
309 };
310 
312 class SAL_DLLPUBLIC_RTTI SwStartNode: public SwNode
313 {
314  friend class SwNode;
315  friend class SwNodes;
316  friend class SwEndNode;
317 
320 
322  SwStartNode( SwNodes& rNodes, sal_uLong nPos );
323 
324 protected:
325  SwStartNode( const SwNodeIndex &rWhere,
326  const SwNodeType nNodeType = SwNodeType::Start,
328 public:
329  SwStartNodeType GetStartNodeType() const { return m_eStartNodeType; }
330 
332  void CheckSectionCondColl() const;
333 
334  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override;
335 
336 private:
337  SwStartNode( const SwStartNode & rNode ) = delete;
338  SwStartNode & operator= ( const SwStartNode & rNode ) = delete;
339 };
340 
342 class SwEndNode final : public SwNode
343 {
344  friend class SwNodes;
345  friend class SwTableNode;
346  friend class SwSectionNode;
347 
349  SwEndNode( SwNodes& rNodes, sal_uLong nPos, SwStartNode& rSttNd );
350 
351  SwEndNode( const SwNodeIndex &rWhere, SwStartNode& rSttNd );
352 
353  SwEndNode( const SwEndNode & rNode ) = delete;
354  SwEndNode & operator= ( const SwEndNode & rNode ) = delete;
355 };
356 
357 // SwContentNode
358 
360 {
361 
364  mutable bool mbSetModifyAtAttr;
365 
366 protected:
367  SwContentNode( const SwNodeIndex &rWhere, const SwNodeType nNodeType,
368  SwFormatColl *pFormatColl );
371  virtual ~SwContentNode() override = 0;
372 
375  std::shared_ptr<const SfxItemSet> mpAttrSet;
376 
378  virtual void NewAttrSet( SwAttrPool& ) = 0;
379 
382  sal_uInt16 ClearItemsFromAttrSet( const std::vector<sal_uInt16>& rWhichIds );
383 
384  virtual void SwClientNotify( const SwModify&, const SfxHint& rHint) override;
385 
386 public:
387 
390  virtual SwContentFrame *MakeFrame( SwFrame* pSib ) = 0;
391 
392  virtual SwContentNode *JoinNext();
395  bool CanJoinNext( SwNodeIndex* pIdx =nullptr ) const;
396  bool CanJoinPrev( SwNodeIndex* pIdx =nullptr ) const;
397 
398  void MakeStartIndex( SwIndex * pIdx ) { pIdx->Assign( this, 0 ); }
399  void MakeEndIndex( SwIndex * pIdx ) { pIdx->Assign( this, Len() ); }
400 
401  bool GoNext(SwIndex *, sal_uInt16 nMode ) const;
402  bool GoPrevious(SwIndex *, sal_uInt16 nMode ) const;
403 
405  SwContentFrame *getLayoutFrame( const SwRootFrame*,
406  const SwPosition *pPos = nullptr,
407  std::pair<Point, bool> const* pViewPosAndCalcFrame = nullptr) const;
410  SwRect FindLayoutRect( const bool bPrtArea = false,
411  const Point* pPoint = nullptr ) const;
412  SwRect FindPageFrameRect() const;
413 
416  void MakeFramesForAdjacentContentNode(SwContentNode& rNode);
417 
421  void DelFrames(SwRootFrame const* pLayout);
422 
425  virtual sal_Int32 Len() const;
426 
427  virtual SwContentNode* MakeCopy(SwDoc&, const SwNodeIndex&, bool bNewFrames) const = 0;
428 
430  virtual bool GetInfo( SfxPoolItem& ) const override;
431 
433 
435  const SfxPoolItem& GetAttr( sal_uInt16 nWhich, bool bInParent=true ) const;
436  bool GetAttr( SfxItemSet& rSet ) const;
438  virtual bool SetAttr( const SfxPoolItem& );
439  virtual bool SetAttr( const SfxItemSet& rSet );
440  virtual bool ResetAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
441  virtual bool ResetAttr( const std::vector<sal_uInt16>& rWhichArr );
442  virtual sal_uInt16 ResetAllAttr();
443 
445  const SfxPoolItem* GetNoCondAttr( sal_uInt16 nWhich, bool bInParents ) const;
446 
449  inline const SwAttrSet &GetSwAttrSet() const;
450  const SwAttrSet *GetpSwAttrSet() const { return static_cast<const SwAttrSet*>(mpAttrSet.get()); }
451  bool HasSwAttrSet() const { return mpAttrSet != nullptr; }
452 
453  virtual SwFormatColl* ChgFormatColl( SwFormatColl* );
454  SwFormatColl* GetFormatColl() const { return const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn())); }
455 
456  inline SwFormatColl& GetAnyFormatColl() const;
457  void SetCondFormatColl( SwFormatColl* );
458  inline SwFormatColl* GetCondFormatColl() const;
459 
460  bool IsAnyCondition( SwCollCondition& rTmp ) const;
461  void ChkCondColl(const SwTextFormatColl* pColl = nullptr);
462 
465  bool InvalidateNumRule();
466 
469  SvxFrameDirection GetTextDirection( const SwPosition& rPos,
470  const Point* pPt ) const;
471 
472  void SetModifyAtAttr( bool bSetModifyAtAttr ) const { mbSetModifyAtAttr = bSetModifyAtAttr; }
473  bool GetModifyAtAttr() const { return mbSetModifyAtAttr; }
474 
475  static std::unique_ptr<SwOLENodes> CreateOLENodesArray( const SwFormatColl& rColl, bool bOnlyWithInvalidSize );
476 
477  // Access to DrawingLayer FillAttributes in a preprocessed form for primitive usage
478  virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const;
479 
480  void UpdateAttr(const SwUpdateAttr&);
481 
482 private:
483  SwContentNode( const SwContentNode & rNode ) = delete;
484  SwContentNode & operator= ( const SwContentNode & rNode ) = delete;
485 };
486 
487 // SwTableNode
488 
490 {
491  friend class SwNodes;
492  std::unique_ptr<SwTable> m_pTable;
493 
494  virtual ~SwTableNode() override;
495 
496 public:
497  SwTableNode( const SwNodeIndex & );
498 
499  const SwTable& GetTable() const { return *m_pTable; }
500  SwTable& GetTable() { return *m_pTable; }
501  SwTabFrame *MakeFrame( SwFrame* );
502 
504  void MakeOwnFrames(SwNodeIndex* pIdxBehind);
505 
508  void DelFrames(SwRootFrame const* pLayout = nullptr);
509 
512  void MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx);
513 
514  SwTableNode* MakeCopy( SwDoc&, const SwNodeIndex& ) const;
515  void SetNewTable( std::unique_ptr<SwTable> , bool bNewFrames=true );
516 
517  // Removes redline objects that relate to this table from the 'Extra Redlines' table
518  void RemoveRedlines();
519 
520 private:
521  SwTableNode( const SwTableNode & rNode ) = delete;
522  SwTableNode & operator= ( const SwTableNode & rNode ) = delete;
523 };
524 
525 class SAL_DLLPUBLIC_RTTI SwSectionNode final
526  : public SwStartNode
527 {
528  friend class SwNodes;
529 
530 private:
531  SwSectionNode(const SwSectionNode&) = delete;
532  SwSectionNode& operator=(const SwSectionNode&) = delete;
533 
534  std::unique_ptr<SwSection> const m_pSection;
535 
536  virtual ~SwSectionNode() override;
537 
538 public:
539  SwSectionNode(SwNodeIndex const&,
540  SwSectionFormat & rFormat, SwTOXBase const*const pTOXBase);
541 
542  const SwSection& GetSection() const { return *m_pSection; }
543  SwSection& GetSection() { return *m_pSection; }
544 
545  SwFrame *MakeFrame( SwFrame* );
546 
551  void MakeOwnFrames(SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = nullptr);
552 
555  void DelFrames(SwRootFrame const* pLayout = nullptr, bool bForce = false);
556 
559  void MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx);
560 
561  SwSectionNode* MakeCopy( SwDoc&, const SwNodeIndex& ) const;
562 
564  void NodesArrChgd();
565 
568  bool IsContentHidden() const;
569 
570 };
571 
577 class SwPlaceholderNode final : private SwNode
578 {
579 private:
580  friend class SwNodes;
581  SwPlaceholderNode(const SwNodeIndex &rWhere);
582 };
583 
585 {
586  return SwNodeType::End == m_nNodeType ? static_cast<SwEndNode*>(this) : nullptr;
587 }
588 inline const SwEndNode *SwNode::GetEndNode() const
589 {
590  return SwNodeType::End == m_nNodeType ? static_cast<const SwEndNode*>(this) : nullptr;
591 }
593 {
594  return SwNodeType::Start & m_nNodeType ? static_cast<SwStartNode*>(this) : nullptr;
595 }
596 inline const SwStartNode *SwNode::GetStartNode() const
597 {
598  return SwNodeType::Start & m_nNodeType ? static_cast<const SwStartNode*>(this) : nullptr;
599 }
601 {
602  return SwNodeType::Table == m_nNodeType ? static_cast<SwTableNode*>(this) : nullptr;
603 }
604 inline const SwTableNode *SwNode::GetTableNode() const
605 {
606  return SwNodeType::Table == m_nNodeType ? static_cast<const SwTableNode*>(this) : nullptr;
607 }
609 {
610  return SwNodeType::Section == m_nNodeType ? static_cast<SwSectionNode*>(this) : nullptr;
611 }
613 {
614  return SwNodeType::Section == m_nNodeType ? static_cast<const SwSectionNode*>(this) : nullptr;
615 }
617 {
618  return SwNodeType::ContentMask & m_nNodeType ? static_cast<SwContentNode*>(this) : nullptr;
619 }
621 {
622  return SwNodeType::ContentMask & m_nNodeType ? static_cast<const SwContentNode*>(this) : nullptr;
623 }
624 
625 inline bool SwNode::IsStartNode() const
626 {
627  return bool(SwNodeType::Start & m_nNodeType);
628 }
629 inline bool SwNode::IsContentNode() const
630 {
631  return bool(SwNodeType::ContentMask & m_nNodeType);
632 }
633 inline bool SwNode::IsEndNode() const
634 {
635  return SwNodeType::End == m_nNodeType;
636 }
637 inline bool SwNode::IsTextNode() const
638 {
639  return SwNodeType::Text == m_nNodeType;
640 }
641 inline bool SwNode::IsTableNode() const
642 {
643  return SwNodeType::Table == m_nNodeType;
644 }
645 inline bool SwNode::IsSectionNode() const
646 {
648 }
649 inline bool SwNode::IsNoTextNode() const
650 {
651  return bool(SwNodeType::NoTextMask & m_nNodeType);
652 }
653 inline bool SwNode::IsOLENode() const
654 {
655  return SwNodeType::Ole == m_nNodeType;
656 }
657 inline bool SwNode::IsGrfNode() const
658 {
659  return SwNodeType::Grf == m_nNodeType;
660 }
661 
663 {
664  return const_cast<SwNode*>(this)->FindSttNodeByType( eTyp );
665 }
666 inline const SwTableNode* SwNode::FindTableNode() const
667 {
668  return const_cast<SwNode*>(this)->FindTableNode();
669 }
671 {
672  return const_cast<SwNode*>(this)->FindSectionNode();
673 }
675 {
676  return m_pStartOfSection->GetIndex();
677 }
679 {
680  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
681  return pStNd->m_pEndOfSection->GetIndex();
682 }
683 inline const SwEndNode* SwNode::EndOfSectionNode() const
684 {
685  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
686  return pStNd->m_pEndOfSection;
687 }
689 {
690  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
691  return pStNd->m_pEndOfSection;
692 }
693 
695 {
696  return static_cast<SwNodes&>(GetArray());
697 }
698 inline const SwNodes& SwNode::GetNodes() const
699 {
700  return static_cast<SwNodes&>(GetArray());
701 }
702 
704 {
705  return m_pCondColl;
706 }
707 
709 {
710  return m_pCondColl
711  ? *m_pCondColl
712  : *const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn()));
713 }
714 
716 {
718 }
719 
720 //FEATURE::CONDCOLL
721 
722 inline const SfxPoolItem& SwContentNode::GetAttr( sal_uInt16 nWhich,
723  bool bInParents ) const
724 {
725  return GetSwAttrSet().Get( nWhich, bInParents );
726 }
727 
729  : SwNode(rWhere, SwNodeType::PlaceHolder)
730 {
731 }
732 
734 {
735  return static_cast<SwNodePtr>(BigPtrArray::operator[] ( n ));
736 }
737 
738 #endif
739 
740 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwStartNode * FindSttNodeByType(SwStartNodeType eTyp)
Definition: node.cxx:764
SwSectionNode * FindSectionNode()
Search section node, in which it is.
Definition: ndsect.cxx:983
const SwEndNode * EndOfSectionNode() const
Definition: node.hxx:683
Starts a section of nodes in the document model.
Definition: node.hxx:312
Base class of the Writer layout elements.
Definition: frame.hxx:313
sal_uLong GetIndex() const
Definition: node.hxx:291
SwEndNode & operator=(const SwEndNode &rNode)=delete
SwStartNode * m_pStartOfSection
Definition: node.hxx:113
const SwStartNode * FindHeaderStartNode() const
Definition: node.hxx:203
Represents the style of a paragraph.
Definition: fmtcol.hxx:56
Marks a position in the document model.
Definition: pam.hxx:35
SwSection & GetSection()
Definition: node.hxx:543
bool IsSectionNode() const
Definition: node.hxx:645
bool IsGrfNode() const
Definition: node.hxx:657
sal_uLong StartOfSectionIndex() const
Definition: node.hxx:674
const SwStartNode * FindFooterStartNode() const
Definition: node.hxx:205
static SwContentNode * GetContentNode(SwDoc &rDoc, SwNodeIndex &rIdx, bool bNext)
Definition: fltshell.cxx:53
SwFormatColl * GetCondFormatColl() const
Definition: node.hxx:703
SwFormatColl * m_pCondColl
Definition: node.hxx:363
sal_uIntPtr sal_uLong
long Long
Provides numbered items of a document.
SwTabFrame is one table in the document layout, containing rows (which contain cells).
Definition: tabfrm.hxx:46
Provides access to the marks of a document.
Definition: doc.hxx:188
SwSectionNode is derived from SwStartNode.
SwNodePtr operator[](sal_uLong n) const
Definition: node.hxx:733
SvxFrameDirection
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
The root element of a Writer document layout.
Definition: rootfrm.hxx:82
virtual bool GetInfo(SfxPoolItem &) const override
Definition: calbck.cxx:162
None
bool mbSetModifyAtAttr
Definition: node.hxx:364
std::unique_ptr< SwTable > m_pTable
Definition: node.hxx:492
static tools::Long s_nSerial
Definition: node.hxx:103
const SwSection & GetSection() const
Definition: node.hxx:542
SwTableNode * GetTableNode()
Definition: node.hxx:600
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
Dumps the node structure to the given destination (file nodes.xml in the current directory by default...
Definition: node.cxx:881
tools::Long m_nSerial
Definition: node.hxx:104
SwNodeType GetNodeType() const
Definition: node.hxx:145
void SetModifyAtAttr(bool bSetModifyAtAttr) const
Definition: node.hxx:472
bool GetModifyAtAttr() const
Definition: node.hxx:473
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
Definition: format.hxx:41
bool IsStartNode() const
Definition: node.hxx:625
SwStartNodeType m_eStartNodeType
Definition: node.hxx:319
sal_uInt8 GetAutoFormatLvl() const
Definition: node.hxx:139
const SwTable & GetTable() const
Definition: node.hxx:499
std::vector< SwFrameFormat * > const & GetAnchoredFlys() const
Definition: node.hxx:297
void SetAutoFormatLvl(sal_uInt8 nVal)
Definition: node.hxx:140
sw::WriterMultiListener m_aCondCollListener
Definition: node.hxx:362
bool IsOLENode() const
Definition: node.hxx:653
SwFormatColl & GetAnyFormatColl() const
Definition: node.hxx:708
bool IsContentNode() const
Definition: node.hxx:629
void SetIgnoreDontExpand(bool bNew)
Definition: node.hxx:143
struct _xmlTextWriter * xmlTextWriterPtr
const SwAttrSet * GetpSwAttrSet() const
Definition: node.hxx:450
static SwNodePtr GetStartNode(SwOutlineNodes const *pOutlNds, int nOutlineLevel, SwOutlineNodes::size_type *nOutl)
Definition: docglbl.cxx:89
std::shared_ptr< const SfxItemSet > mpAttrSet
Attribute-set for all auto attributes of a ContentNode.
Definition: node.hxx:375
Merge
sw_redlinehide: redline node merge state
Definition: node.hxx:93
Style of a layout element.
Definition: frmfmt.hxx:58
bool GoNext(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:291
SwNodeType
Definition: ndtyp.hxx:28
SwEndNode * GetEndNode()
Definition: node.hxx:584
const SwStartNode * StartOfSectionNode() const
Definition: node.hxx:132
SwDoc & GetDoc()
Definition: node.hxx:212
SwIndex & Assign(SwIndexReg *, sal_Int32)
Definition: index.cxx:206
Document fields related interfaces.
SwContentNode * GetContentNode()
Definition: node.hxx:616
void MakeStartIndex(SwIndex *pIdx)
Definition: node.hxx:398
Marks a character position inside a document model node.
Definition: index.hxx:33
SwNode & operator=(const SwNode &rNodes)=delete
Provides access to settings of a document.
bool IsNoTextNode() const
Definition: node.hxx:649
Marks a node in the document model.
Definition: ndindex.hxx:31
bool IsEndNode() const
Definition: node.hxx:633
SwNodes & GetNodes()
Node is in which nodes-array/doc?
Definition: node.hxx:694
bool IsIgnoreDontExpand() const
Definition: node.hxx:142
Bookkeeping helper for SwCache caching writer borders.
bool HasSwAttrSet() const
Definition: node.hxx:451
Document links administration interface.
Text operation/manipulation interface.
SwStartNodeType GetStartNodeType() const
Definition: node.hxx:329
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
SwStartNode * GetStartNode()
Definition: node.hxx:592
std::unique_ptr< SwSection > const m_pSection
Definition: node.hxx:534
SwTable is one table in the document model, containing rows (which contain cells).
Definition: swtable.hxx:111
SwNodeType m_nNodeType
Definition: node.hxx:85
Provides access to the formatting devices of a document.
sal_uLong EndOfSectionIndex() const
Definition: node.hxx:678
BigPtrEntry * operator[](sal_uLong) const
Definition: bparr.cxx:82
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:79
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
SwStartNode & operator=(const SwStartNode &rNode)=delete
unsigned char sal_uInt8
const SwDoc & GetDoc() const
Definition: node.hxx:217
sal_uLong GetPos() const
Definition: bparr.hxx:99
SwEndNode * m_pEndOfSection
Definition: node.hxx:318
BigPtrArray & GetArray() const
Definition: bparr.hxx:105
SwTable & GetTable()
Definition: node.hxx:500
const SwModify * GetRegisteredIn() const
Definition: calbck.hxx:159
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:395
SwTableNode is derived from SwStartNode.
SwPlaceholderNode(const SwNodeIndex &rWhere)
Definition: node.hxx:728
std::vector< SwFrameFormat * > m_aAnchoredFlys
all SwFrameFormat that are anchored at the node invariant: SwFrameFormat is in the list iff SwFrameFo...
Definition: node.hxx:110
SwStartNodeType
Definition: ndtyp.hxx:50
const SwStartNode * FindTableBoxStartNode() const
Definition: node.hxx:197
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
Definition: node.hxx:715
SwTableNode * FindTableNode()
Search table node, in which it is.
Definition: node.cxx:357
const SwStartNode * FindFlyStartNode() const
Definition: node.hxx:199
static SwNodePtr GetEndNode(SwOutlineNodes const *pOutlNds, int nOutlineLevel, SwOutlineNodes::size_type *nOutl)
Definition: docglbl.cxx:103
Provides access to the layout of a document.
Access to the style pool.
bool IsTableNode() const
Definition: node.hxx:641
SwFormatColl * GetFormatColl() const
Definition: node.hxx:454
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
Definition: calbck.cxx:304
SwSectionNode * GetSectionNode()
Definition: node.hxx:608
Ends a section of nodes in the document model.
Definition: node.hxx:342
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:120
BigPtrEntry & operator=(BigPtrEntry const &)=default
Merge m_eMerge
Definition: node.hxx:100
const SfxPoolItem & GetAttr(sal_uInt16 nWhich, bool bInParent=true) const
SS for PoolItems: hard attributation.
Definition: node.hxx:722
tools::Long GetSerial() const
Definition: node.hxx:126
void SetRedlineMergeFlag(Merge const eMerge)
Definition: node.hxx:97
This class is internal, used only during DocumentContentOperationsManager::CopyWithFlyInFly(), and for undo.
Definition: node.hxx:577
bool IsTextNode() const
Definition: node.hxx:637
bool GoPrevious(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:298
Merge GetRedlineMergeFlag() const
Definition: node.hxx:98
SwEndNode(SwNodes &rNodes, sal_uLong nPos, SwStartNode &rSttNd)
for the initial StartNode
Definition: node.cxx:1065
std::vector< SwOLENode * > SwOLENodes
Definition: node.hxx:71
void MakeEndIndex(SwIndex *pIdx)
Definition: node.hxx:399
SwStartNode * StartOfSectionNode()
Definition: node.hxx:133
const SwStartNode * FindFootnoteStartNode() const
Definition: node.hxx:201
static SwPageDesc * FindPageDesc(SwDoc *pDoc, sal_uInt16 nPoolId)
Definition: htmlcss1.cxx:1327
bool IsCreateFrameWhenHidingRedlines() const
Definition: node.hxx:94
Base class of the Writer document model elements.
Definition: node.hxx:80