AbsorbedCell.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 BorderInfo;
16 class FlowConverter;
17 class Rectangle;
18 namespace Text
19 {
20 class TableAbsorber;
21 class TextFragment;
22 class TextFragmentCollection;
23 } // namespace Text
24 } // namespace Pdf
25 } // namespace Aspose
26 
27 namespace Aspose {
28 
29 namespace Pdf {
30 
31 namespace Text {
32 
36 class ASPOSE_PDF_SHARED_CLASS AbsorbedCell : public Aspose::Pdf::Text::ITableElement, public System::IComparable<System::SharedPtr<Aspose::Pdf::Text::AbsorbedCell>>
37 {
38  typedef AbsorbedCell ThisType;
41 
42  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
43  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
44 
46  friend class Aspose::Pdf::FlowConverter;
47 
48 public:
49 
53  ASPOSE_PDF_SHARED_API System::SharedPtr<TextFragmentCollection> get_TextFragments() const;
57  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Rectangle> get_Rectangle() override;
61  ASPOSE_PDF_SHARED_API int32_t get_ColSpan() const;
64  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::BorderInfo> get_BorderInfo() const;
65 
77  ASPOSE_PDF_SHARED_API int32_t CompareTo(System::SharedPtr<AbsorbedCell> other) override;
78 
79 protected:
80 
86 
87  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(AbsorbedCell, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Rectangle> rectangle));
88 
97 
98  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(AbsorbedCell, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Rectangle> rectangle, int32_t columnSpan, System::SharedPtr<Aspose::Pdf::BorderInfo> borderInfo));
104  bool AddTextFragment(System::SharedPtr<TextFragment> fragment);
109  bool ClearFragments();
110 
111 private:
112 
115  int32_t _colSpan;
117 
118 };
119 
120 } // namespace Text
121 } // namespace Pdf
122 } // namespace Aspose
123 
124 
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 cell of table that exist on the page
Definition: AbsorbedCell.h:36
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
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.