MarkupParagraph.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/array.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 class Matrix;
14 class Point;
15 namespace Text
16 {
17 class MarkupSection;
18 class PageMarkup;
19 class ParagraphAbsorber;
20 class TextFragment;
21 class TextReplaceOptions;
22 } // namespace Text
23 } // namespace Pdf
24 } // namespace Aspose
25 namespace System
26 {
27 namespace Collections
28 {
29 namespace Generic
30 {
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 MarkupParagraph final : public System::Object
46 {
47  typedef MarkupParagraph ThisType;
48  typedef System::Object BaseType;
49 
50  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
51  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
52 
56 
57 public:
58 
63  ASPOSE_PDF_SHARED_API System::ArrayPtr<System::SharedPtr<Point>> get_Points();
72  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Collections::Generic::List<int32_t>> get_ContinuationPageNumbers() const;
90  ASPOSE_PDF_SHARED_API System::String get_Text();
94  ASPOSE_PDF_SHARED_API void set_Text(System::String value);
95 
96 protected:
97 
102  ASPOSE_PDF_SHARED_API void set_SecondaryPoints(System::SharedPtr<System::Collections::Generic::List<System::ArrayPtr<System::SharedPtr<Point>>>> value);
106  ASPOSE_PDF_SHARED_API void set_ContinuationPageNumbers(System::SharedPtr<System::Collections::Generic::List<int32_t>> value);
107  System::SharedPtr<Matrix> get_NormalizationMatrix() const;
108 
114 
115  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(MarkupParagraph, CODEPORTING_ARGS(System::SharedPtr<TextReplaceOptions> textReplaceOptions));
116 
123 
124  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(MarkupParagraph, CODEPORTING_ARGS(System::SharedPtr<Matrix> normalizationMatrix, System::SharedPtr<TextReplaceOptions> textReplaceOptions));
129  void SetText(System::String value);
130  void TransformPoints(System::SharedPtr<Matrix> matrix);
131  void AddPoints(System::ArrayPtr<System::SharedPtr<Point>> points);
132  void ConstructPolygon();
133 
134 private:
135 
141  System::SharedPtr<Matrix> _normalizationMatrix;
142  System::String _text;
143  System::SharedPtr<TextReplaceOptions> _textReplaceOptions;
144 
145  System::String ConstructText();
146 
147 };
148 
149 } // namespace Text
150 } // namespace Pdf
151 } // namespace Aspose
152 
153 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:67
Represents a markup section - the rectangular region of a page that contains text and can be visually...
Definition: MarkupSection.h:46
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.
Represents an absorber object of page structure objects such as sections and paragraphs. Performs search for sections and paragraphs of text and provides access for rectangles and polydons that describes it in text coordinate space. Also performs text segments search and provides access to search results via TextFragments collections grouped by structure elements.
Definition: ParagraphAbsorber.h:54
Definition: AFRelationship.h:4
A printer&#39;s point (1/72 of an inch).
List forward declaration.
Definition: Artifact.h:74
Represents a paragraph.
Definition: MarkupParagraph.h:45
Page markup represented by collections of MarkupSection and MarkupParagraph.
Definition: PageMarkup.h:53
Whole PDF file will be submitted.