AbsorbedRow.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/shared_ptr.h>
5 #include <system/icomparable.h>
6 #include <cstdint>
7 
8 #include "Aspose.PDF.Cpp/Text/TableAbsorber/ITableElement.h"
9 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Pdf
14 {
15 class FlowConverter;
16 class Rectangle;
17 namespace Text
18 {
19 class AbsorbedCell;
20 class TableAbsorber;
21 } // namespace Text
22 } // namespace Pdf
23 } // namespace Aspose
24 namespace System
25 {
26 namespace Collections
27 {
28 namespace Generic
29 {
30 template <typename> class IList;
31 template <typename> class List;
32 } // namespace Generic
33 } // namespace Collections
34 } // namespace System
35 
36 namespace Aspose {
37 
38 namespace Pdf {
39 
40 namespace Text {
41 
45 class ASPOSE_PDF_SHARED_CLASS AbsorbedRow : public Aspose::Pdf::Text::ITableElement, public System::IComparable<System::SharedPtr<Aspose::Pdf::Text::AbsorbedRow>>
46 {
47  typedef AbsorbedRow ThisType;
50 
51  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
52  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
53 
55  friend class Aspose::Pdf::FlowConverter;
56 
57 public:
58 
66  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Rectangle> get_Rectangle() override;
67 
78  ASPOSE_PDF_SHARED_API int32_t CompareTo(System::SharedPtr<AbsorbedRow> other) override;
79 
80 protected:
81 
86  void SetRectangle(System::SharedPtr<Aspose::Pdf::Rectangle> rectangle);
87 
93 
94  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(AbsorbedRow, CODEPORTING_ARGS(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<AbsorbedCell>>> cells));
95 
101 
102  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(AbsorbedRow, CODEPORTING_ARGS(System::SharedPtr<AbsorbedCell> cell));
107  void AddCell(System::SharedPtr<AbsorbedCell> cell);
111  void RecomputeRectangle();
112 
113 private:
114 
117 
118 };
119 
120 } // namespace Text
121 } // namespace Pdf
122 } // namespace Aspose
123 
124 
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Definition: Artifact.h:67
This interface represents an element of existing table extracted by TableAbsorber.
Definition: ITableElement.h:25
Defines a method that compares two objects. Objects of this class should only be allocated using Syst...
Definition: icomparable.h:15
Represents row of table that exist on the page
Definition: AbsorbedRow.h:45
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Represents a text type.
Definition: AFRelationship.h:4
List forward declaration.
Definition: Artifact.h:74
Represents an absorber object of table elements. Performs search and provides access to search result...
Definition: TableAbsorber.h:63
Whole PDF file will be submitted.