Row.h
1 // Copyright 2001-2022 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include <system/shared_ptr.h>
12 
13 #include <Aspose.Words.Cpp/Revisions/ITrackableNode.h>
14 #include <Aspose.Words.Cpp/NodeType.h>
15 #include <Aspose.Words.Cpp/CompositeNode.h>
16 #include <Aspose.Words.Cpp/IRowAttrSource.h>
17 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
18 
19 namespace Aspose
20 {
21 namespace Words
22 {
23 
24 class DocumentBase;
25 
26 class DocumentVisitor;
27 
28 class INodeCloningListener;
29 
30 class Node;
31 
32 namespace Revisions
33 {
34 class EditRevision;
35 class MoveRevision;
36 
37 }
38 
39 namespace Tables
40 {
41 class Cell;
42 class CellCollection;
43 
44 class RowFormat;
45 
46 class Table;
47 
48 }
49 
50 enum class VisitorAction;
51 }
52 }
53 namespace System
54 {
55 class String;
56 }
57 
58 namespace Aspose {
59 
60 namespace Words {
61 
62 namespace Tables {
63 
189 class ASPOSE_WORDS_SHARED_CLASS Row : public Aspose::Words::CompositeNode, public Aspose::Words::IRowAttrSource, public Aspose::Words::Revisions::ITrackableNode
190 {
191  typedef Row ThisType;
193  typedef Aspose::Words::IRowAttrSource BaseType1;
194  typedef Aspose::Words::Revisions::ITrackableNode BaseType2;
195 
196  typedef ::System::BaseTypesInfo<BaseType, BaseType1, BaseType2> ThisTypeBaseTypesInfo;
197  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
198 
199 public:
200  using Aspose::Words::CompositeNode::Clone;
201 
202 public:
203 
248  ASPOSE_WORDS_SHARED_API Aspose::Words::NodeType get_NodeType() const override;
249 
422 
594  ASPOSE_WORDS_SHARED_API bool get_IsFirstRow();
595 
622  ASPOSE_WORDS_SHARED_API bool get_IsLastRow();
623 
796 
969 
1014 
1064 
1126  ASPOSE_WORDS_SHARED_API Row(const System::SharedPtr<Aspose::Words::DocumentBase>& doc);
1127 
1307  ASPOSE_WORDS_SHARED_API bool Accept(System::SharedPtr<Aspose::Words::DocumentVisitor> visitor) override;
1308 
1485  ASPOSE_WORDS_SHARED_API System::String GetText() override;
1486 
1508  ASPOSE_WORDS_SHARED_API void EnsureMinimum();
1509 
1510 protected:
1511 
1513 
1514  ASPOSE_WORDS_SHARED_API Aspose::Words::VisitorAction AcceptStart(System::SharedPtr<Aspose::Words::DocumentVisitor> ) override;
1515  ASPOSE_WORDS_SHARED_API Aspose::Words::VisitorAction AcceptEnd(System::SharedPtr<Aspose::Words::DocumentVisitor> ) override;
1516  ASPOSE_WORDS_SHARED_API System::String GetEndText() override;
1517  ASPOSE_WORDS_SHARED_API bool CanInsert(System::SharedPtr<Aspose::Words::Node> ) override;
1518 
1519  virtual ASPOSE_WORDS_SHARED_API ~Row();
1520 
1521 private:
1522 
1523  System::SharedPtr<Aspose::Words::Revisions::EditRevision> get_InsertRevision() override;
1524  void set_InsertRevision(System::SharedPtr<Aspose::Words::Revisions::EditRevision> ) override;
1525  System::SharedPtr<Aspose::Words::Revisions::EditRevision> get_DeleteRevision() override;
1526  void set_DeleteRevision(System::SharedPtr<Aspose::Words::Revisions::EditRevision> ) override;
1527  System::SharedPtr<Aspose::Words::Revisions::MoveRevision> get_MoveFromRevision() override;
1528  void set_MoveFromRevision(System::SharedPtr<Aspose::Words::Revisions::MoveRevision> ) override;
1529  System::SharedPtr<Aspose::Words::Revisions::MoveRevision> get_MoveToRevision() override;
1530  void set_MoveToRevision(System::SharedPtr<Aspose::Words::Revisions::MoveRevision> ) override;
1531 
1532  __TypeStub<4,4,4,4>::type mField0;
1533  __TypeStub<4,4,4,4>::type mField1;
1537 
1538  System::SharedPtr<System::Object> GetDirectRowAttr(int32_t ) override;
1539  System::SharedPtr<System::Object> FetchRowAttr(int32_t ) override;
1540  System::SharedPtr<System::Object> FetchInheritedRowAttr(int32_t ) override;
1541  void SetRowAttr(int32_t , System::SharedPtr<System::Object> ) override;
1542  void ClearRowAttrs() override;
1543  void ResetToDefaultAttrs() override;
1544  void RemoveMoveRevisions() override;
1545  ASPOSE_WORDS_SHARED_API ThisType* CppMemberwiseClone() const override;
1546 
1547 };
1548 
1549 }
1550 }
1551 }