TextObjects.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.Pub.Cpp/aspose_pub_api_defs.h"
8
9namespace Aspose
10{
11namespace Pdf
12{
13namespace Text
14{
15class Font;
16} // namespace Text
17} // namespace Pdf
18namespace Pub
19{
20class ParagraphStyle;
21class PdfDocumentBuilder;
22class TextGroup;
23class TextPartDisplayParams;
24class TextStyle;
25} // namespace Pub
26} // namespace Aspose
27namespace System
28{
29namespace Collections
30{
31namespace Generic
32{
33template <typename> class List;
34} // namespace Generic
35} // namespace Collections
36} // namespace System
37
38namespace Aspose {
39
40namespace Pub {
41
43{
46
47 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
48 RTTI_INFO_DECL();
49
50public:
51
54
56
59
60private:
61
62 System::String _fontName;
64
65};
66
70class ASPOSE_PUB_SHARED_CLASS TextGroup : public System::Object
71{
72 typedef TextGroup ThisType;
74
75 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
76 ASPOSE_PUB_SHARED_RTTI_INFO_DECL();
77
78 friend class Aspose::Pub::PdfDocumentBuilder;
79
80public:
81
85 ASPOSE_PUB_SHARED_API System::String get_Text() const;
89 ASPOSE_PUB_SHARED_API System::SharedPtr<TextStyle> get_Style() const;
90
96 ASPOSE_PUB_SHARED_API TextGroup(System::String text, System::SharedPtr<TextStyle> style);
97
102 ASPOSE_PUB_SHARED_API void UpdateText(System::String newText);
103
104protected:
105
107
109
110private:
111
112 System::String _text;
115
116};
117
121class ASPOSE_PUB_SHARED_CLASS TextParagraph : public System::Object
122{
123 typedef TextParagraph ThisType;
124 typedef System::Object BaseType;
125
126 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
127 ASPOSE_PUB_SHARED_RTTI_INFO_DECL();
128
129public:
130
138 ASPOSE_PUB_SHARED_API System::SharedPtr<ParagraphStyle> get_Style() const;
139
146
147private:
148
151
152};
153
165{
167 typedef System::Object BaseType;
168
169 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
170 RTTI_INFO_DECL();
171
172public:
173
189 float get_FontSize() const;
190
197
205
206private:
207
208 System::String _text;
211 float _fontSize;
212
213};
214
215} // namespace Pub
216} // namespace Aspose
217
218
Definition TextObjects.h:43
void SetFontData(System::ArrayPtr< uint8_t > value)
void SetFontName(System::String name)
System::String get_FontName() const
Text group.
Definition TextObjects.h:71
ASPOSE_PUB_SHARED_API void UpdateText(System::String newText)
Updates text.
ASPOSE_PUB_SHARED_API System::String get_Text() const
Text in group.
System::SharedPtr< TextPartDisplayParams > get_TextDisplayParams() const
ASPOSE_PUB_SHARED_API System::SharedPtr< TextStyle > get_Style() const
Style for text group.
void SetTextDisplayParams(System::SharedPtr< TextPartDisplayParams > value)
ASPOSE_PUB_SHARED_API TextGroup(System::String text, System::SharedPtr< TextStyle > style)
Constructor.
Represents PUB text paragraph.
Definition TextObjects.h:122
ASPOSE_PUB_SHARED_API System::SharedPtr< ParagraphStyle > get_Style() const
Style of paragraph.
ASPOSE_PUB_SHARED_API System::ArrayPtr< System::SharedPtr< TextGroup > > get_TextParts()
Text groups.
ASPOSE_PUB_SHARED_API TextParagraph(System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< TextGroup > > > textParts, System::SharedPtr< ParagraphStyle > style)
Constructor.
Designed to hold text which sholud be displayed for end users. Cases like document 383....
Definition TextObjects.h:165
float get_FontSize() const
Font size of the text part.
System::SharedPtr< Aspose::Pdf::Text::Font > get_Font() const
Font of the text part.
TextPartDisplayParams(System::String text, System::SharedPtr< Aspose::Pub::TextStyle > style)
Constructor.
void SetFontData(System::SharedPtr< Aspose::Pdf::Text::Font > font, float fontSize)
void UpdateText(System::String newText)
Updates text.
System::String get_Text() const
Text.
System::SharedPtr< Aspose::Pub::TextStyle > get_TextStyle() const
Text style.
void UpdateTextStyle(System::SharedPtr< Aspose::Pub::TextStyle > value)
List forward declaration.
Definition list.h:127
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition object.h:65
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition string.h:122
@ Pdf
Means export to PDF format.
Definition Document.h:13
class ASPOSECPP_SHARED_CLASS List
Definition ienumerable.h:17
Definition Document.h:55