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 "ndarr.hxx"
27 #include "ndtyp.hxx"
28 #include "index.hxx"
29 #include "fmtcol.hxx"
30 
31 #include <memory>
32 #include <vector>
33 
34 class SwContentFrame;
35 class SwContentNode;
36 class SwDoc;
37 class SwEndNode;
38 class SwFrame;
39 class SwFrameFormat;
40 class SwGrfNode;
41 class SwNoTextNode;
42 class SwNodeIndex;
43 class SwOLENode;
44 class SwRect;
45 class SwSection;
46 class SwSectionFormat;
47 class SwTOXBase;
48 class SwSectionNode;
49 class SwStartNode;
50 class SwTabFrame;
51 class SwRootFrame;
52 class SwTable;
53 class SwTableNode;
54 class SwTableBox;
55 class SwTextNode;
56 class SwPageDesc;
57 class SwViewShell;
58 struct SwPosition;
59 class IStyleAccess;
68 class IDocumentListItems;
69 class Point;
70 enum class SvxFrameDirection;
71 typedef std::vector<SwOLENode*> SwOLENodes; // docary.hxx
72 
73 namespace drawinglayer::attribute {
74  class SdrAllFillAttributesHelper;
75  typedef std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr;
76 }
77 
80  : private BigPtrEntry
81 {
82  friend class SwNodes;
83 
85 
87  sal_uInt8 m_nAFormatNumLvl : 3;
88  bool m_bIgnoreDontExpand : 1;
89 
90 public:
92  enum class Merge { None, First, NonFirst, Hidden };
94  return m_eMerge == Merge::None || m_eMerge == Merge::First;
95  }
96  void SetRedlineMergeFlag(Merge const eMerge) { m_eMerge = eMerge; }
97  Merge GetRedlineMergeFlag() const { return m_eMerge; }
98 private:
100 
101 #ifdef DBG_UTIL
104 #endif
105 
109  std::unique_ptr<std::vector<SwFrameFormat*>> m_pAnchoredFlys;
110 
111 protected:
113 
114  SwNode( const SwNodeIndex &rWhere, const SwNodeType nNodeId );
115 
117  SwNode( SwNodes& rNodes, sal_uLong nPos, const SwNodeType nNodeId );
118 
119 public:
122  virtual ~SwNode() override = 0;
123 
124 #ifdef DBG_UTIL
125  tools::Long GetSerial() const { return m_nSerial; }
126 #endif
127 
128  sal_uInt16 GetSectionLevel() const;
129 
130  inline sal_uLong StartOfSectionIndex() const;
131  const SwStartNode* StartOfSectionNode() const { return m_pStartOfSection; }
132  SwStartNode* StartOfSectionNode() { return m_pStartOfSection; }
133 
134  inline sal_uLong EndOfSectionIndex() const;
135  inline const SwEndNode* EndOfSectionNode() const;
136  inline SwEndNode* EndOfSectionNode();
137 
138  sal_uInt8 GetAutoFormatLvl() const { return m_nAFormatNumLvl; }
139  void SetAutoFormatLvl( sal_uInt8 nVal ) { m_nAFormatNumLvl = nVal; }
140 
141  bool IsIgnoreDontExpand() const { return m_bIgnoreDontExpand; }
142  void SetIgnoreDontExpand( bool bNew ) { m_bIgnoreDontExpand = bNew; }
143 
144  SwNodeType GetNodeType() const { return m_nNodeType; }
145 
146  inline SwStartNode *GetStartNode();
147  inline const SwStartNode *GetStartNode() const;
148  inline SwContentNode *GetContentNode();
149  inline const SwContentNode *GetContentNode() const;
150  inline SwEndNode *GetEndNode();
151  inline const SwEndNode *GetEndNode() const;
152  inline SwTextNode *GetTextNode();
153  inline const SwTextNode *GetTextNode() const;
154  inline SwOLENode *GetOLENode();
155  inline const SwOLENode *GetOLENode() const;
156  inline SwNoTextNode *GetNoTextNode();
157  inline const SwNoTextNode *GetNoTextNode() const;
158  inline SwGrfNode *GetGrfNode();
159  inline const SwGrfNode *GetGrfNode() const;
160  inline SwTableNode *GetTableNode();
161  inline const SwTableNode *GetTableNode() const;
162  inline SwSectionNode *GetSectionNode();
163  inline const SwSectionNode *GetSectionNode() const;
164 
165  inline bool IsStartNode() const;
166  inline bool IsContentNode() const;
167  inline bool IsEndNode() const;
168  inline bool IsTextNode() const;
169  inline bool IsTableNode() const;
170  inline bool IsSectionNode() const;
171  inline bool IsOLENode() const;
172  inline bool IsNoTextNode() const;
173  inline bool IsGrfNode() const;
174 
181  bool IsInRedlines() const;
182 
185  SwTableNode *FindTableNode();
186  inline const SwTableNode *FindTableNode() const;
187 
190  SwSectionNode *FindSectionNode();
191  inline const SwSectionNode *FindSectionNode() const;
192 
193  SwStartNode* FindSttNodeByType( SwStartNodeType eTyp );
194  inline const SwStartNode* FindSttNodeByType( SwStartNodeType eTyp ) const;
195 
197  { return FindSttNodeByType( SwTableBoxStartNode ); }
199  { return FindSttNodeByType( SwFlyStartNode ); }
201  { return FindSttNodeByType( SwFootnoteStartNode ); }
203  { return FindSttNodeByType( SwHeaderStartNode ); }
205  { return FindSttNodeByType( SwFooterStartNode ); }
206 
208  inline SwNodes& GetNodes();
209  inline const SwNodes& GetNodes() const;
210 
212  {
213  return GetNodes().GetDoc();
214  }
215 
216  const SwDoc& GetDoc() const
217  {
218  return GetNodes().GetDoc();
219  }
220 
223  const IDocumentSettingAccess* getIDocumentSettingAccess() const;
224 
227  const IDocumentDeviceAccess& getIDocumentDeviceAccess() const;
228 
231  const IDocumentMarkAccess* getIDocumentMarkAccess() const;
232 
235  const IDocumentRedlineAccess& getIDocumentRedlineAccess() const;
236 
239  const IDocumentStylePoolAccess& getIDocumentStylePoolAccess() const;
240 
243  const IDocumentDrawModelAccess& getIDocumentDrawModelAccess() const;
244 
247  const IDocumentLayoutAccess& getIDocumentLayoutAccess() const;
248  IDocumentLayoutAccess& getIDocumentLayoutAccess();
249 
252  const IDocumentLinksAdministration& getIDocumentLinksAdministration() const;
253  IDocumentLinksAdministration& getIDocumentLinksAdministration();
254 
257  const IDocumentFieldsAccess& getIDocumentFieldsAccess() const;
258  IDocumentFieldsAccess& getIDocumentFieldsAccess();
259 
262  IDocumentContentOperations& getIDocumentContentOperations();
263 
266  IStyleAccess& getIDocumentStyleAccess();
267 
269  IDocumentListItems& getIDocumentListItems();
270 
272  bool IsInVisibleArea( SwViewShell const * pSh ) const;
274  bool IsInProtectSect() const;
277  bool IsProtect() const;
278 
282  const SwPageDesc* FindPageDesc( size_t* pPgDescNdIdx = nullptr ) const;
283 
285  SwFrameFormat* GetFlyFormat() const;
286 
288  SwTableBox* GetTableBox() const;
289 
290  sal_uLong GetIndex() const { return GetPos(); }
291 
292  const SwTextNode* FindOutlineNodeOfLevel(sal_uInt8 nLvl, SwRootFrame const* pLayout = nullptr) const;
293 
294  sal_uInt8 HasPrevNextLayNode() const;
295 
296  std::vector<SwFrameFormat *> const* GetAnchoredFlys() const { return m_pAnchoredFlys.get(); }
297  void AddAnchoredFly(SwFrameFormat *);
298  void RemoveAnchoredFly(SwFrameFormat *);
299 
303  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const;
304 
305 private:
306  SwNode( const SwNode & rNodes ) = delete;
307  SwNode & operator= ( const SwNode & rNodes ) = delete;
308 };
309 
311 class SAL_DLLPUBLIC_RTTI SwStartNode: public SwNode
312 {
313  friend class SwNode;
314  friend class SwNodes;
315  friend class SwEndNode;
316 
319 
321  SwStartNode( SwNodes& rNodes, sal_uLong nPos );
322 
323 protected:
324  SwStartNode( const SwNodeIndex &rWhere,
325  const SwNodeType nNodeType = SwNodeType::Start,
327 public:
328  SwStartNodeType GetStartNodeType() const { return m_eStartNodeType; }
329 
331  void CheckSectionCondColl() const;
332 
333  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override;
334 
335 private:
336  SwStartNode( const SwStartNode & rNode ) = delete;
337  SwStartNode & operator= ( const SwStartNode & rNode ) = delete;
338 };
339 
341 class SwEndNode : public SwNode
342 {
343  friend class SwNodes;
344  friend class SwTableNode;
345  friend class SwSectionNode;
346 
348  SwEndNode( SwNodes& rNodes, sal_uLong nPos, SwStartNode& rSttNd );
349 
350 protected:
351  SwEndNode( const SwNodeIndex &rWhere, SwStartNode& rSttNd );
352 
353 private:
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 protected:
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
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 protected:
538  virtual ~SwSectionNode() override;
539 
540 public:
541  SwSectionNode(SwNodeIndex const&,
542  SwSectionFormat & rFormat, SwTOXBase const*const pTOXBase);
543 
544  const SwSection& GetSection() const { return *m_pSection; }
545  SwSection& GetSection() { return *m_pSection; }
546 
547  SwFrame *MakeFrame( SwFrame* );
548 
553  void MakeOwnFrames(SwNodeIndex* pIdxBehind, SwNodeIndex* pEnd = nullptr);
554 
557  void DelFrames(SwRootFrame const* pLayout = nullptr, bool bForce = false);
558 
561  void MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx);
562 
563  SwSectionNode* MakeCopy( SwDoc&, const SwNodeIndex& ) const;
564 
566  void NodesArrChgd();
567 
570  bool IsContentHidden() const;
571 
572 };
573 
579 class SwPlaceholderNode final : private SwNode
580 {
581 private:
582  friend class SwNodes;
583  SwPlaceholderNode(const SwNodeIndex &rWhere);
584 };
585 
587 {
588  return SwNodeType::End == m_nNodeType ? static_cast<SwEndNode*>(this) : nullptr;
589 }
590 inline const SwEndNode *SwNode::GetEndNode() const
591 {
592  return SwNodeType::End == m_nNodeType ? static_cast<const SwEndNode*>(this) : nullptr;
593 }
595 {
596  return SwNodeType::Start & m_nNodeType ? static_cast<SwStartNode*>(this) : nullptr;
597 }
598 inline const SwStartNode *SwNode::GetStartNode() const
599 {
600  return SwNodeType::Start & m_nNodeType ? static_cast<const SwStartNode*>(this) : nullptr;
601 }
603 {
604  return SwNodeType::Table == m_nNodeType ? static_cast<SwTableNode*>(this) : nullptr;
605 }
606 inline const SwTableNode *SwNode::GetTableNode() const
607 {
608  return SwNodeType::Table == m_nNodeType ? static_cast<const SwTableNode*>(this) : nullptr;
609 }
611 {
612  return SwNodeType::Section == m_nNodeType ? static_cast<SwSectionNode*>(this) : nullptr;
613 }
615 {
616  return SwNodeType::Section == m_nNodeType ? static_cast<const SwSectionNode*>(this) : nullptr;
617 }
619 {
620  return SwNodeType::ContentMask & m_nNodeType ? static_cast<SwContentNode*>(this) : nullptr;
621 }
623 {
624  return SwNodeType::ContentMask & m_nNodeType ? static_cast<const SwContentNode*>(this) : nullptr;
625 }
626 
627 inline bool SwNode::IsStartNode() const
628 {
629  return bool(SwNodeType::Start & m_nNodeType);
630 }
631 inline bool SwNode::IsContentNode() const
632 {
633  return bool(SwNodeType::ContentMask & m_nNodeType);
634 }
635 inline bool SwNode::IsEndNode() const
636 {
637  return SwNodeType::End == m_nNodeType;
638 }
639 inline bool SwNode::IsTextNode() const
640 {
641  return SwNodeType::Text == m_nNodeType;
642 }
643 inline bool SwNode::IsTableNode() const
644 {
645  return SwNodeType::Table == m_nNodeType;
646 }
647 inline bool SwNode::IsSectionNode() const
648 {
650 }
651 inline bool SwNode::IsNoTextNode() const
652 {
653  return bool(SwNodeType::NoTextMask & m_nNodeType);
654 }
655 inline bool SwNode::IsOLENode() const
656 {
657  return SwNodeType::Ole == m_nNodeType;
658 }
659 inline bool SwNode::IsGrfNode() const
660 {
661  return SwNodeType::Grf == m_nNodeType;
662 }
663 
665 {
666  return const_cast<SwNode*>(this)->FindSttNodeByType( eTyp );
667 }
668 inline const SwTableNode* SwNode::FindTableNode() const
669 {
670  return const_cast<SwNode*>(this)->FindTableNode();
671 }
673 {
674  return const_cast<SwNode*>(this)->FindSectionNode();
675 }
677 {
678  return m_pStartOfSection->GetIndex();
679 }
681 {
682  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
683  return pStNd->m_pEndOfSection->GetIndex();
684 }
685 inline const SwEndNode* SwNode::EndOfSectionNode() const
686 {
687  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
688  return pStNd->m_pEndOfSection;
689 }
691 {
692  const SwStartNode* pStNd = IsStartNode() ? static_cast<const SwStartNode*>(this) : m_pStartOfSection;
693  return pStNd->m_pEndOfSection;
694 }
695 
697 {
698  return static_cast<SwNodes&>(GetArray());
699 }
700 inline const SwNodes& SwNode::GetNodes() const
701 {
702  return static_cast<SwNodes&>(GetArray());
703 }
704 
706 {
707  return m_pCondColl;
708 }
709 
711 {
712  return m_pCondColl
713  ? *m_pCondColl
714  : *const_cast<SwFormatColl*>(static_cast<const SwFormatColl*>(GetRegisteredIn()));
715 }
716 
718 {
720 }
721 
722 //FEATURE::CONDCOLL
723 
724 inline const SfxPoolItem& SwContentNode::GetAttr( sal_uInt16 nWhich,
725  bool bInParents ) const
726 {
727  return GetSwAttrSet().Get( nWhich, bInParents );
728 }
729 
731  : SwNode(rWhere, SwNodeType::PlaceHolder)
732 {
733 }
734 
736 {
737  return static_cast<SwNodePtr>(BigPtrArray::operator[] ( n ));
738 }
739 
740 #endif
741 
742 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwStartNode * FindSttNodeByType(SwStartNodeType eTyp)
Definition: node.cxx:762
SwSectionNode * FindSectionNode()
Search section node, in which it is.
Definition: ndsect.cxx:983
const SwEndNode * EndOfSectionNode() const
Definition: node.hxx:685
Starts a section of nodes in the document model.
Definition: node.hxx:311
Base class of the Writer layout elements.
Definition: frame.hxx:298
sal_uLong GetIndex() const
Definition: node.hxx:290
SwEndNode & operator=(const SwEndNode &rNode)=delete
SwStartNode * m_pStartOfSection
Definition: node.hxx:112
const SwStartNode * FindHeaderStartNode() const
Definition: node.hxx:202
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:545
bool IsSectionNode() const
Definition: node.hxx:647
bool IsGrfNode() const
Definition: node.hxx:659
sal_uLong StartOfSectionIndex() const
Definition: node.hxx:676
const SwStartNode * FindFooterStartNode() const
Definition: node.hxx:204
static SwContentNode * GetContentNode(SwDoc &rDoc, SwNodeIndex &rIdx, bool bNext)
Definition: fltshell.cxx:53
SwFormatColl * GetCondFormatColl() const
Definition: node.hxx:705
SwFormatColl * m_pCondColl
Definition: node.hxx:364
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:30
Provides access to the marks of a document.
Definition: doc.hxx:186
SwSectionNode is derived from SwStartNode.
SwNodePtr operator[](sal_uLong n) const
Definition: node.hxx:735
SvxFrameDirection
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
Definition: calbck.cxx:111
Of course Writer needs its own rectangles.
Definition: swrect.hxx:35
The root element of a Writer document layout.
Definition: rootfrm.hxx:82
virtual bool GetInfo(SfxPoolItem &) const override
Definition: calbck.cxx:188
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:102
const SwSection & GetSection() const
Definition: node.hxx:544
SwTableNode * GetTableNode()
Definition: node.hxx:602
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:879
tools::Long m_nSerial
Definition: node.hxx:103
SwNodeType GetNodeType() const
Definition: node.hxx:144
void SetModifyAtAttr(bool bSetModifyAtAttr) const
Definition: node.hxx:473
bool GetModifyAtAttr() const
Definition: node.hxx:474
std::shared_ptr< SdrAllFillAttributesHelper > SdrAllFillAttributesHelperPtr
Definition: format.hxx:38
bool IsStartNode() const
Definition: node.hxx:627
SwStartNodeType m_eStartNodeType
Definition: node.hxx:318
std::vector< SwFrameFormat * > const * GetAnchoredFlys() const
Definition: node.hxx:296
sal_uInt8 GetAutoFormatLvl() const
Definition: node.hxx:138
const SwTable & GetTable() const
Definition: node.hxx:500
void SetAutoFormatLvl(sal_uInt8 nVal)
Definition: node.hxx:139
sw::WriterMultiListener m_aCondCollListener
Definition: node.hxx:363
bool IsOLENode() const
Definition: node.hxx:655
SwFormatColl & GetAnyFormatColl() const
Definition: node.hxx:710
bool IsContentNode() const
Definition: node.hxx:631
void SetIgnoreDontExpand(bool bNew)
Definition: node.hxx:142
struct _xmlTextWriter * xmlTextWriterPtr
const SwAttrSet * GetpSwAttrSet() const
Definition: node.hxx:451
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:376
Merge
sw_redlinehide: redline node merge state
Definition: node.hxx:92
Style of a layout element.
Definition: frmfmt.hxx:58
bool GoNext(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:289
SwNodeType
Definition: ndtyp.hxx:28
SwEndNode * GetEndNode()
Definition: node.hxx:586
const SwStartNode * StartOfSectionNode() const
Definition: node.hxx:131
SwDoc & GetDoc()
Definition: node.hxx:211
SwIndex & Assign(SwIndexReg *, sal_Int32)
Definition: index.cxx:206
Document fields related interfaces.
SwContentNode * GetContentNode()
Definition: node.hxx:618
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:651
Marks a node in the document model.
Definition: ndindex.hxx:31
bool IsEndNode() const
Definition: node.hxx:635
SwNodes & GetNodes()
Node is in which nodes-array/doc?
Definition: node.hxx:696
bool IsIgnoreDontExpand() const
Definition: node.hxx:141
bool HasSwAttrSet() const
Definition: node.hxx:452
Document links administration interface.
Text operation/manipulation interface.
SwStartNodeType GetStartNodeType() const
Definition: node.hxx:328
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
SwStartNode * GetStartNode()
Definition: node.hxx:594
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:111
SwNodeType m_nNodeType
Definition: node.hxx:84
Provides access to the formatting devices of a document.
sal_uLong EndOfSectionIndex() const
Definition: node.hxx:680
BigPtrEntry * operator[](sal_uLong) const
Definition: bparr.cxx:82
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:80
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:216
sal_uLong GetPos() const
Definition: bparr.hxx:97
SwEndNode * m_pEndOfSection
Definition: node.hxx:317
BigPtrArray & GetArray() const
Definition: bparr.hxx:103
SwTable & GetTable()
Definition: node.hxx:501
const SwModify * GetRegisteredIn() const
Definition: calbck.hxx:163
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:393
std::unique_ptr< std::vector< SwFrameFormat * > > m_pAnchoredFlys
all SwFrameFormat that are anchored at the node invariant: SwFrameFormat is in the list iff SwFrameFo...
Definition: node.hxx:109
SwTableNode is derived from SwStartNode.
SwPlaceholderNode(const SwNodeIndex &rWhere)
Definition: node.hxx:730
SwStartNodeType
Definition: ndtyp.hxx:50
const SwStartNode * FindTableBoxStartNode() const
Definition: node.hxx:196
const SwAttrSet & GetSwAttrSet() const
Does node has already its own auto-attributes? Access to SwAttrSet.
Definition: node.hxx:717
SwTableNode * FindTableNode()
Search table node, in which it is.
Definition: node.cxx:355
const SwStartNode * FindFlyStartNode() const
Definition: node.hxx:198
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:643
SwFormatColl * GetFormatColl() const
Definition: node.hxx:455
SwSectionNode * GetSectionNode()
Definition: node.hxx:610
Ends a section of nodes in the document model.
Definition: node.hxx:341
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:116
Merge m_eMerge
Definition: node.hxx:99
const SfxPoolItem & GetAttr(sal_uInt16 nWhich, bool bInParent=true) const
SS for PoolItems: hard attributation.
Definition: node.hxx:724
tools::Long GetSerial() const
Definition: node.hxx:125
void SetRedlineMergeFlag(Merge const eMerge)
Definition: node.hxx:96
This class is internal, used only during DocumentContentOperationsManager::CopyWithFlyInFly(), and for undo.
Definition: node.hxx:579
bool IsTextNode() const
Definition: node.hxx:639
bool GoPrevious(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
Definition: pam.cxx:296
Merge GetRedlineMergeFlag() const
Definition: node.hxx:97
SwEndNode(SwNodes &rNodes, sal_uLong nPos, SwStartNode &rSttNd)
for the initial StartNode
Definition: node.cxx:1063
std::vector< SwOLENode * > SwOLENodes
Definition: node.hxx:70
void MakeEndIndex(SwIndex *pIdx)
Definition: node.hxx:400
SwStartNode * StartOfSectionNode()
Definition: node.hxx:132
const SwStartNode * FindFootnoteStartNode() const
Definition: node.hxx:200
static SwPageDesc * FindPageDesc(SwDoc *pDoc, sal_uInt16 nPoolId)
Definition: htmlcss1.cxx:1327
bool IsCreateFrameWhenHidingRedlines() const
Definition: node.hxx:93
Base class of the Writer document model elements.
Definition: node.hxx:79