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 #include "nodeoffset.hxx"
32 
33 #include <memory>
34 #include <vector>
35 
36 class SwContentFrame;
37 class SwContentNode;
38 class SwDoc;
39 class SwEndNode;
40 class SwFrame;
41 class SwFrameFormat;
42 class SwGrfNode;
43 class SwNoTextNode;
44 class SwNodeIndex;
45 class SwOLENode;
46 class SwRect;
47 class SwSection;
48 class SwSectionFormat;
49 class SwTOXBase;
50 class SwSectionNode;
51 class SwStartNode;
52 class SwTabFrame;
53 class SwRootFrame;
54 class SwTable;
55 class SwTableNode;
56 class SwTableBox;
57 class SwTextNode;
58 class SwPageDesc;
59 class SwViewShell;
60 struct SwPosition;
61 class IStyleAccess;
70 class IDocumentListItems;
71 class Point;
72 enum class SvxFrameDirection;
73 typedef std::vector<SwOLENode*> SwOLENodes; // docary.hxx
74 
75 namespace drawinglayer::attribute {
76  class SdrAllFillAttributesHelper;
77  typedef std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr;
78 }
79 
82  : public sw::BorderCacheOwner, private BigPtrEntry
83 {
84  friend class SwNodes;
85 
87 
89  sal_uInt8 m_nAFormatNumLvl : 3;
90  bool m_bIgnoreDontExpand : 1;
91 
92 public:
94  enum class Merge { None, First, NonFirst, Hidden };
96  return m_eMerge == Merge::None || m_eMerge == Merge::First;
97  }
98  void SetRedlineMergeFlag(Merge const eMerge) { m_eMerge = eMerge; }
99  Merge GetRedlineMergeFlag() const { return m_eMerge; }
100 private:
102 
103 #ifdef DBG_UTIL
106 #endif
107 
111  std::vector<SwFrameFormat*> m_aAnchoredFlys;
112 
113 protected:
115 
116  SwNode( const SwNodeIndex &rWhere, const SwNodeType nNodeId );
117 
119  SwNode( SwNodes& rNodes, SwNodeOffset nPos, const SwNodeType nNodeId );
120 
121 public:
124  virtual ~SwNode() override = 0;
125 
126 #ifdef DBG_UTIL
127  tools::Long GetSerial() const { return m_nSerial; }
128 #endif
129 
130  sal_uInt16 GetSectionLevel() const;
131 
132  inline SwNodeOffset StartOfSectionIndex() const;
133  const SwStartNode* StartOfSectionNode() const { return m_pStartOfSection; }
134  SwStartNode* StartOfSectionNode() { return m_pStartOfSection; }
135 
136  inline SwNodeOffset EndOfSectionIndex() const;
137  inline const SwEndNode* EndOfSectionNode() const;
138  inline SwEndNode* EndOfSectionNode();
139 
140  sal_uInt8 GetAutoFormatLvl() const { return m_nAFormatNumLvl; }
141  void SetAutoFormatLvl( sal_uInt8 nVal ) { m_nAFormatNumLvl = nVal; }
142 
143  bool IsIgnoreDontExpand() const { return m_bIgnoreDontExpand; }
144  void SetIgnoreDontExpand( bool bNew ) { m_bIgnoreDontExpand = bNew; }
145 
146  SwNodeType GetNodeType() const { return m_nNodeType; }
147 
148  inline SwStartNode *GetStartNode();
149  inline const SwStartNode *GetStartNode() const;
150  inline SwContentNode *GetContentNode();
151  inline const SwContentNode *GetContentNode() const;
152  inline SwEndNode *GetEndNode();
153  inline const SwEndNode *GetEndNode() const;
154  inline SwTextNode *GetTextNode();
155  inline const SwTextNode *GetTextNode() const;
156  inline SwOLENode *GetOLENode();
157  inline const SwOLENode *GetOLENode() const;
158  inline SwNoTextNode *GetNoTextNode();
159  inline const SwNoTextNode *GetNoTextNode() const;
160  inline SwGrfNode *GetGrfNode();
161  inline const SwGrfNode *GetGrfNode() const;
162  inline SwTableNode *GetTableNode();
163  inline const SwTableNode *GetTableNode() const;
164  inline SwSectionNode *GetSectionNode();
165  inline const SwSectionNode *GetSectionNode() const;
166 
167  inline bool IsStartNode() const;
168  inline bool IsContentNode() const;
169  inline bool IsEndNode() const;
170  inline bool IsTextNode() const;
171  inline bool IsTableNode() const;
172  inline bool IsSectionNode() const;
173  inline bool IsOLENode() const;
174  inline bool IsNoTextNode() const;
175  inline bool IsGrfNode() const;
176 
183  bool IsInRedlines() const;
184 
187  SwTableNode *FindTableNode();
188  inline const SwTableNode *FindTableNode() const;
189 
192  SwSectionNode *FindSectionNode();
193  inline const SwSectionNode *FindSectionNode() const;
194 
195  SwStartNode* FindSttNodeByType( SwStartNodeType eTyp );
196  inline const SwStartNode* FindSttNodeByType( SwStartNodeType eTyp ) const;
197 
199  { return FindSttNodeByType( SwTableBoxStartNode ); }
201  { return FindSttNodeByType( SwFlyStartNode ); }
203  { return FindSttNodeByType( SwFootnoteStartNode ); }
205  { return FindSttNodeByType( SwHeaderStartNode ); }
207  { return FindSttNodeByType( SwFooterStartNode ); }
208 
210  inline SwNodes& GetNodes();
211  inline const SwNodes& GetNodes() const;
212 
214  {
215  return GetNodes().GetDoc();
216  }
217 
218  const SwDoc& GetDoc() const
219  {
220  return GetNodes().GetDoc();
221  }
222 
225  const IDocumentSettingAccess* getIDocumentSettingAccess() const;
226 
229  const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
230 
233  const IDocumentMarkAccess* getIDocumentMarkAccess() const;
234 
237  const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
238 
241  const IDocumentStylePoolAccess& getIDocumentStylePoolAccess() const;
242 
245  const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
246 
249  const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
250  IDocumentLayoutAccess& getIDocumentLayoutAccess();
251 
254  const IDocumentLinksAdministration& getIDocumentLinksAdministration() const;
255  IDocumentLinksAdministration& getIDocumentLinksAdministration();
256 
259  const IDocumentFieldsAccess& getIDocumentFieldsAccess() const;
260  IDocumentFieldsAccess& getIDocumentFieldsAccess();
261 
264  IDocumentContentOperations& getIDocumentContentOperations();
265 
268  IStyleAccess& getIDocumentStyleAccess();
269 
271  IDocumentListItems& getIDocumentListItems();
272 
274  bool IsInVisibleArea( SwViewShell const * pSh ) const;
276  bool IsInProtectSect() const;
279  bool IsProtect() const;
280 
284  const SwPageDesc* FindPageDesc( SwNodeOffset* pPgDescNdIdx = nullptr ) const;
285 
287  SwFrameFormat* GetFlyFormat() const;
288 
290  SwTableBox* GetTableBox() const;
291 
292  SwNodeOffset GetIndex() const { return SwNodeOffset(GetPos()); }
293 
294  const SwTextNode* FindOutlineNodeOfLevel(sal_uInt8 nLvl, SwRootFrame const* pLayout = nullptr) const;
295 
296  sal_uInt8 HasPrevNextLayNode() const;
297 
298  std::vector<SwFrameFormat *> const & GetAnchoredFlys() const { return m_aAnchoredFlys; }
299  void AddAnchoredFly(SwFrameFormat *);
300  void RemoveAnchoredFly(SwFrameFormat *);
301 
305  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
306 
307 private:
308  SwNode( const SwNode & rNodes ) = delete;
309  SwNode & operator= ( const SwNode & rNodes ) = delete;
310 };
311 
313 class SAL_DLLPUBLIC_RTTI SwStartNode: public SwNode
314 {
315  friend class SwNode;
316  friend class SwNodes;
317  friend class SwEndNode;
318 
321 
323  SwStartNode( SwNodes& rNodes, SwNodeOffset nPos );
324 
325 protected:
326  SwStartNode( const SwNodeIndex &rWhere,
327  const SwNodeType nNodeType = SwNodeType::Start,
329 public:
330  SwStartNodeType GetStartNodeType() const { return m_eStartNodeType; }
331 
333  void CheckSectionCondColl() const;
334 
335  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override;
336 
337 private:
338  SwStartNode( const SwStartNode & rNode ) = delete;
339  SwStartNode & operator= ( const SwStartNode & rNode ) = delete;
340 };
341 
343 class SwEndNode final : public SwNode
344 {
345  friend class SwNodes;
346  friend class SwTableNode;
347  friend class SwSectionNode;
348 
350  SwEndNode( SwNodes& rNodes, SwNodeOffset nPos, SwStartNode& rSttNd );
351 
352  SwEndNode( const SwNodeIndex &rWhere, SwStartNode& rSttNd );
353 
354  SwEndNode( const SwEndNode & rNode ) = delete;
355  SwEndNode & operator= ( const SwEndNode & rNode ) = delete;
356 };
357 
358 // SwContentNode
359 
361 {
362 
365  mutable bool mbSetModifyAtAttr;
366 
367 protected:
368  SwContentNode( const SwNodeIndex &rWhere, const SwNodeType nNodeType,
369  SwFormatColl *pFormatColl );
372  virtual ~SwContentNode() override = 0;
373 
376  std::shared_ptr<const SfxItemSet> mpAttrSet;
377 
379  virtual void NewAttrSet( SwAttrPool& ) = 0;
380 
383  sal_uInt16 ClearItemsFromAttrSet( const std::vector<sal_uInt16>& rWhichIds );
384 
385  virtual void SwClientNotify( const SwModify&, const SfxHint& rHint) override;
386 
387 public:
388 
391  virtual SwContentFrame *MakeFrame( SwFrame* pSib ) = 0;
392 
393  virtual SwContentNode *JoinNext();
396  bool CanJoinNext( SwNodeIndex* pIdx =nullptr ) const;
397  bool CanJoinPrev( SwNodeIndex* pIdx =nullptr ) const;
398 
399  void MakeStartIndex( SwIndex * pIdx ) { pIdx->Assign( this, 0 ); }
400  void MakeEndIndex( SwIndex * pIdx ) { pIdx->Assign( this, Len() ); }
401 
402  bool GoNext(SwIndex *, sal_uInt16 nMode ) const;
403  bool GoPrevious(SwIndex *, sal_uInt16 nMode ) const;
404 
406  SwContentFrame *getLayoutFrame( const SwRootFrame*,
407  const SwPosition *pPos = nullptr,
408  std::pair<Point, bool> const* pViewPosAndCalcFrame = nullptr) const;
411  SwRect FindLayoutRect( const bool bPrtArea = false,
412  const Point* pPoint = nullptr ) const;
413  SwRect FindPageFrameRect() const;
414 
417  void MakeFramesForAdjacentContentNode(SwContentNode& rNode);
418 
422  void DelFrames(SwRootFrame const* pLayout);
423 
426  virtual sal_Int32 Len() const;
427 
428  virtual SwContentNode* MakeCopy(SwDoc&, const SwNodeIndex&, bool bNewFrames) const = 0;
429 
431  virtual bool GetInfo( SfxPoolItem& ) const override;
432 
434 
436  const SfxPoolItem& GetAttr( sal_uInt16 nWhich, bool bInParent=true ) const;
437  bool GetAttr( SfxItemSet& rSet ) const;
439  virtual bool SetAttr( const SfxPoolItem& );
440  virtual bool SetAttr( const SfxItemSet& rSet );
441  virtual bool ResetAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
442  virtual bool ResetAttr( const std::vector<sal_uInt16>& rWhichArr );
443  virtual sal_uInt16 ResetAllAttr();
444 
446  const SfxPoolItem* GetNoCondAttr( sal_uInt16 nWhich, bool bInParents ) const;
447 
450  inline const SwAttrSet &GetSwAttrSet() const;
451  const SwAttrSet *GetpSwAttrSet() const { return static_cast<const SwAttrSet*>(mpAttrSet.get()); }
452  bool HasSwAttrSet() const { return mpAttrSet != nullptr; }
453 
454  virtual SwFormatColl* ChgFormatColl( SwFormatColl* );
455  SwFormatColl* GetFormatColl() const { return const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn())); }
456 
457  inline SwFormatColl& GetAnyFormatColl() const;
458  void SetCondFormatColl( SwFormatColl* );
459  inline SwFormatColl* GetCondFormatColl() const;
460 
461  bool IsAnyCondition( SwCollCondition& rTmp ) const;
462  void ChkCondColl(const SwTextFormatColl* pColl = nullptr);
463 
466  bool InvalidateNumRule();
467 
470  SvxFrameDirection GetTextDirection( const SwPosition& rPos,
471  const Point* pPt ) const;
472 
473  void SetModifyAtAttr( bool bSetModifyAtAttr ) const { mbSetModifyAtAttr = bSetModifyAtAttr; }
474  bool GetModifyAtAttr() const { return mbSetModifyAtAttr; }
475 
476  static std::unique_ptr<SwOLENodes> CreateOLENodesArray( const SwFormatColl& rColl, bool bOnlyWithInvalidSize );
477 
478  // Access to DrawingLayer FillAttributes in a preprocessed form for primitive usage
479  virtual drawinglayer::attribute::SdrAllFillAttributesHelperPtr getSdrAllFillAttributesHelper() const;
480 
481  void UpdateAttr(const SwUpdateAttr&);
482 
483 private:
484  SwContentNode( const SwContentNode & rNode ) = delete;
485  SwContentNode & operator= ( const SwContentNode & rNode ) = delete;
486 };
487 
488 // SwTableNode
489 
491 {
492  friend class SwNodes;
493  std::unique_ptr<SwTable> m_pTable;
494 
495  virtual ~SwTableNode() override;
496 
497 public:
498  SwTableNode( const SwNodeIndex & );
499 
500  const SwTable& GetTable() const { return *m_pTable; }
501  SwTable& GetTable() { return *m_pTable; }
502  SwTabFrame *MakeFrame( SwFrame* );
503 
505  void MakeOwnFrames(SwNodeIndex* pIdxBehind);
506 
509  void DelFrames(SwRootFrame const* pLayout = nullptr);
510 
513  void MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx);
514 
515  SwTableNode* MakeCopy( SwDoc&, const SwNodeIndex& ) const;
516  void SetNewTable( std::unique_ptr<SwTable> , bool bNewFrames=true );
517 
518  // Removes redline objects that relate to this table from the 'Extra Redlines' table
519  void RemoveRedlines();
520 
521 private:
522  SwTableNode( const SwTableNode & rNode ) = delete;
523  SwTableNode & operator= ( const SwTableNode & rNode ) = delete;
524 };
525 
526 class SAL_DLLPUBLIC_RTTI SwSectionNode final
527  : public SwStartNode
528 {
529  friend class SwNodes;
530 
531 private:
532  SwSectionNode(const SwSectionNode&) = delete;
533  SwSectionNode& operator=(const SwSectionNode&) = delete;
534 
535  std::unique_ptr<SwSection> const m_pSection;
536 
537  virtual ~SwSectionNode() override;
538 
539 public:
540  SwSectionNode(SwNodeIndex const&,
541  SwSectionFormat & rFormat, SwTOXBase const*const pTOXBase);
542 
543  const SwSection& GetSection() const { return *m_pSection; }
544  SwSection& GetSection() { return *m_pSection; }
545 
546  SwFrame *MakeFrame( SwFrame* );
547 
552  void MakeOwnFrames(SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = nullptr);
553 
556  void DelFrames(SwRootFrame const* pLayout = nullptr, bool bForce = false);
557 
560  void MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx);
561 
562  SwSectionNode* MakeCopy( SwDoc&, const SwNodeIndex& ) const;
563 
565  void NodesArrChgd();
566 
569  bool IsContentHidden() const;
570 
571  void dumpAsXml(xmlTextWriterPtr pWriter) const override;
572 
573 };
574 
580 class SwPlaceholderNode final : private SwNode
581 {
582 private:
583  friend class SwNodes;
584  SwPlaceholderNode(const SwNodeIndex &rWhere);
585 };
586 
588 {
589  return SwNodeType::End == m_nNodeType ? static_cast<SwEndNode*>(this) : nullptr;
590 }
591 inline const SwEndNode *SwNode::GetEndNode() const
592 {
593  return SwNodeType::End == m_nNodeType ? static_cast<const SwEndNode*>(this) : nullptr;
594 }
596 {
597  return SwNodeType::Start & m_nNodeType ? static_cast<SwStartNode*>(this) : nullptr;
598 }
599 inline const SwStartNode *SwNode::GetStartNode() const
600 {
601  return SwNodeType::Start & m_nNodeType ? static_cast<const SwStartNode*>(this) : nullptr;
602 }
604 {
605  return SwNodeType::Table == m_nNodeType ? static_cast<SwTableNode*>(this) : nullptr;
606 }
607 inline const SwTableNode *SwNode::GetTableNode() const
608 {
609  return SwNodeType::Table == m_nNodeType ? static_cast<const SwTableNode*>(this) : nullptr;
610 }
612 {
613  return SwNodeType::Section == m_nNodeType ? static_cast<SwSectionNode*>(this) : nullptr;
614 }
616 {
617  return SwNodeType::Section == m_nNodeType ? static_cast<const SwSectionNode*>(this) : nullptr;
618 }
620 {
621  return SwNodeType::ContentMask & m_nNodeType ? static_cast<SwContentNode*>(this) : nullptr;
622 }
624 {
625  return SwNodeType::ContentMask & m_nNodeType ? static_cast<const SwContentNode*>(this) : nullptr;
626 }
627 
628 inline bool SwNode::IsStartNode() const
629 {
630  return bool(SwNodeType::Start & m_nNodeType);
631 }
632 inline bool SwNode::IsContentNode() const
633 {
634  return bool(SwNodeType::ContentMask & m_nNodeType);
635 }
636 inline bool SwNode::IsEndNode() const
637 {
638  return SwNodeType::End == m_nNodeType;
639 }
640 inline bool SwNode::IsTextNode() const
641 {
642  return SwNodeType::Text == m_nNodeType;
643 }
644 inline bool SwNode::IsTableNode() const
645 {
646  return SwNodeType::Table == m_nNodeType;
647 }
648 inline bool SwNode::IsSectionNode() const
649 {
651 }
652 inline bool SwNode::IsNoTextNode() const
653 {
654  return bool(SwNodeType::NoTextMask & m_nNodeType);
655 }
656 inline bool SwNode::IsOLENode() const
657 {
658  return SwNodeType::Ole == m_nNodeType;
659 }
660 inline bool SwNode::IsGrfNode() const
661 {
662  return SwNodeType::Grf == m_nNodeType;
663 }
664 
666 {
667  return const_cast<SwNode*>(this)->FindSttNodeByType( eTyp );
668 }
669 inline const SwTableNode* SwNode::FindTableNode() const
670 {
671  return const_cast<SwNode*>(this)->FindTableNode();
672 }
674 {
675  return const_cast<SwNode*>(this)->FindSectionNode();
676 }
678 {
679  return m_pStartOfSection->GetIndex();
680 }
682 {
683  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
684  return pStNd->m_pEndOfSection->GetIndex();
685 }
686 inline const SwEndNode* SwNode::EndOfSectionNode() const
687 {
688  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
689  return pStNd->m_pEndOfSection;
690 }
692 {
693  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
694  return pStNd->m_pEndOfSection;
695 }
696 
698 {
699  return static_cast<SwNodes&>(GetArray());
700 }
701 inline const SwNodes& SwNode::GetNodes() const
702 {
703  return static_cast<SwNodes&>(GetArray());
704 }
705 
707 {
708  return m_pCondColl;
709 }
710 
712 {
713  return m_pCondColl
714  ? *m_pCondColl
715  : *const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn()));
716 }
717 
719 {
721 }
722 
723 //FEATURE::CONDCOLL
724 
725 inline const SfxPoolItem& SwContentNode::GetAttr( sal_uInt16 nWhich,
726  bool bInParents ) const
727 {
728  return GetSwAttrSet().Get( nWhich, bInParents );
729 }
730 
732  : SwNode(rWhere, SwNodeType::PlaceHolder)
733 {
734 }
735 
737 {
738  return static_cast<SwNode*>(BigPtrArray::operator[] ( sal_Int32(n) ));
739 }
740 
741 #endif
742 
743 /* 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:985
const SwEndNode * EndOfSectionNode() const
Definition: node.hxx:686
Starts a section of nodes in the document model.
Definition: node.hxx:313
Base class of the Writer layout elements.
Definition: frame.hxx:315
BigPtrEntry * operator[](sal_Int32) const
Definition: bparr.cxx:82
SwEndNode & operator=(const SwEndNode &rNode)=delete
SwStartNode * m_pStartOfSection
Definition: node.hxx:114
SwNodeOffset EndOfSectionIndex() const
Definition: node.hxx:681
const SwStartNode * FindHeaderStartNode() const
Definition: node.hxx:204
Represents the style of a paragraph.
Definition: fmtcol.hxx:56
Marks a position in the document model.
Definition: pam.hxx:36
SwSection & GetSection()
Definition: node.hxx:544
bool IsSectionNode() const
Definition: node.hxx:648
bool IsGrfNode() const
Definition: node.hxx:660
const SwStartNode * FindFooterStartNode() const
Definition: node.hxx:206
static SwContentNode * GetContentNode(SwDoc &rDoc, SwNodeIndex &rIdx, bool bNext)
Definition: fltshell.cxx:53
SwFormatColl * GetCondFormatColl() const
Definition: node.hxx:706
SwNodeOffset StartOfSectionIndex() const
Definition: node.hxx:677
SwFormatColl * m_pCondColl
Definition: node.hxx:364
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.
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:365
std::unique_ptr< SwTable > m_pTable
Definition: node.hxx:493
static tools::Long s_nSerial
Definition: node.hxx:104
const SwSection & GetSection() const
Definition: node.hxx:543
SwTableNode * GetTableNode()
Definition: node.hxx:603
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:105
SwNodeType GetNodeType() const
Definition: node.hxx:146
void SetModifyAtAttr(bool bSetModifyAtAttr) const
Definition: node.hxx:473
SwEndNode(SwNodes &rNodes, SwNodeOffset nPos, SwStartNode &rSttNd)
for the initial StartNode
Definition: node.cxx:1062
bool GetModifyAtAttr() const
Definition: node.hxx:474
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
Definition: format.hxx:41
bool IsStartNode() const
Definition: node.hxx:628
SwStartNodeType m_eStartNodeType
Definition: node.hxx:320
sal_uInt8 GetAutoFormatLvl() const
Definition: node.hxx:140
const SwTable & GetTable() const
Definition: node.hxx:500
std::vector< SwFrameFormat * > const & GetAnchoredFlys() const
Definition: node.hxx:298
void SetAutoFormatLvl(sal_uInt8 nVal)
Definition: node.hxx:141
sw::WriterMultiListener m_aCondCollListener
Definition: node.hxx:363
bool IsOLENode() const
Definition: node.hxx:656
SwFormatColl & GetAnyFormatColl() const
Definition: node.hxx:711
bool IsContentNode() const
Definition: node.hxx:632
void SetIgnoreDontExpand(bool bNew)
Definition: node.hxx:144
const SwAttrSet * GetpSwAttrSet() const
Definition: node.hxx:451
sal_Int32 GetPos() const
Definition: bparr.hxx:99
std::shared_ptr< const SfxItemSet > mpAttrSet
Attribute-set for all auto attributes of a ContentNode.
Definition: node.hxx:376
Merge
sw_redlinehide: redline node merge state
Definition: node.hxx:94
Style of a layout element.
Definition: frmfmt.hxx:59
bool GoNext(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:291
SwNodeType
Definition: ndtyp.hxx:28
SwEndNode * GetEndNode()
Definition: node.hxx:587
const SwStartNode * StartOfSectionNode() const
Definition: node.hxx:133
SwDoc & GetDoc()
Definition: node.hxx:213
SwIndex & Assign(SwIndexReg *, sal_Int32)
Definition: index.cxx:206
Document fields related interfaces.
SwContentNode * GetContentNode()
Definition: node.hxx:619
SwNodeOffset GetIndex() const
Definition: node.hxx:292
void MakeStartIndex(SwIndex *pIdx)
Definition: node.hxx:399
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:652
Marks a node in the document model.
Definition: ndindex.hxx:32
bool IsEndNode() const
Definition: node.hxx:636
SwNodes & GetNodes()
Node is in which nodes-array/doc?
Definition: node.hxx:697
bool IsIgnoreDontExpand() const
Definition: node.hxx:143
Bookkeeping helper for SwCache caching writer borders.
bool HasSwAttrSet() const
Definition: node.hxx:452
Document links administration interface.
Text operation/manipulation interface.
SwStartNodeType GetStartNodeType() const
Definition: node.hxx:330
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
SwStartNode * GetStartNode()
Definition: node.hxx:595
std::unique_ptr< SwSection > const m_pSection
Definition: node.hxx:535
SwTable is one table in the document model, containing rows (which contain cells).
Definition: swtable.hxx:113
SwNodeType m_nNodeType
Definition: node.hxx:86
Provides access to the formatting devices of a document.
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:218
SwEndNode * m_pEndOfSection
Definition: node.hxx:319
BigPtrArray & GetArray() const
Definition: bparr.hxx:105
SwTable & GetTable()
Definition: node.hxx:501
const SwModify * GetRegisteredIn() const
Definition: calbck.hxx:165
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:419
SwTableNode is derived from SwStartNode.
SwPlaceholderNode(const SwNodeIndex &rWhere)
Definition: node.hxx:731
std::vector< SwFrameFormat * > m_aAnchoredFlys
all SwFrameFormat that are anchored at the node invariant: SwFrameFormat is in the list iff SwFrameFo...
Definition: node.hxx:111
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
Definition: nodeoffset.hxx:16
SwStartNodeType
Definition: ndtyp.hxx:50
const SwStartNode * FindTableBoxStartNode() const
Definition: node.hxx:198
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
Definition: node.hxx:718
SwTableNode * FindTableNode()
Search table node, in which it is.
Definition: node.cxx:357
const SwStartNode * FindFlyStartNode() const
Definition: node.hxx:200
static SwNode * 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:644
SwFormatColl * GetFormatColl() const
Definition: node.hxx:455
struct _xmlTextWriter * xmlTextWriterPtr
SwNode * operator[](SwNodeOffset n) const
Definition: node.hxx:736
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
Definition: calbck.cxx:304
SwSectionNode * GetSectionNode()
Definition: node.hxx:611
Ends a section of nodes in the document model.
Definition: node.hxx:343
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:120
BigPtrEntry & operator=(BigPtrEntry const &)=default
static SwNode * GetStartNode(SwOutlineNodes const *pOutlNds, int nOutlineLevel, SwOutlineNodes::size_type *nOutl)
Definition: docglbl.cxx:89
Merge m_eMerge
Definition: node.hxx:101
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Dumps the node structure to the given destination (file nodes.xml in the current directory by default...
Definition: node.cxx:987
const SfxPoolItem & GetAttr(sal_uInt16 nWhich, bool bInParent=true) const
SS for PoolItems: hard attributation.
Definition: node.hxx:725
tools::Long GetSerial() const
Definition: node.hxx:127
void SetRedlineMergeFlag(Merge const eMerge)
Definition: node.hxx:98
This class is internal, used only during DocumentContentOperationsManager::CopyWithFlyInFly(), and for undo.
Definition: node.hxx:580
bool IsTextNode() const
Definition: node.hxx:640
bool GoPrevious(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:298
Merge GetRedlineMergeFlag() const
Definition: node.hxx:99
std::vector< SwOLENode * > SwOLENodes
Definition: node.hxx:72
void MakeEndIndex(SwIndex *pIdx)
Definition: node.hxx:400
SwStartNode * StartOfSectionNode()
Definition: node.hxx:134
const SwStartNode * FindFootnoteStartNode() const
Definition: node.hxx:202
static SwPageDesc * FindPageDesc(SwDoc *pDoc, sal_uInt16 nPoolId)
Definition: htmlcss1.cxx:1327
bool IsCreateFrameWhenHidingRedlines() const
Definition: node.hxx:95
Base class of the Writer document model elements.
Definition: node.hxx:81