DefaultAppearance.h
1
#pragma once
2
// Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3
4
#include <system/string.h>
5
#include <drawing/color.h>
6
7
#include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8
9
namespace
Aspose
10
{
11
namespace
Pdf
12
{
13
namespace
Annotations
14
{
15
class
FreeTextAnnotation;
16
class
WidgetAnnotation;
17
}
// namespace Annotations
18
namespace
Engine
19
{
20
namespace
CommonData
21
{
22
namespace
PageContent
23
{
24
class
PageContentCommandProcessor;
25
}
// namespace PageContent
26
}
// namespace CommonData
27
namespace
Data
28
{
29
class
IPdfDictionary;
30
class
IPdfPrimitive;
31
class
ITrailerable;
32
}
// namespace Data
33
}
// namespace Engine
34
namespace
Forms
35
{
36
class
ComboBoxField;
37
class
Form
;
38
class
TextBoxField;
39
}
// namespace Forms
40
class
Operator;
41
namespace
Tests
42
{
43
class
RegressionTests_v9_6;
44
}
// namespace Tests
45
namespace
Text
46
{
47
class
Font;
48
}
// namespace Text
49
class
TextBoxFieldXfa;
50
}
// namespace Pdf
51
}
// namespace Aspose
52
namespace
System
53
{
54
namespace
Collections
55
{
56
namespace
Generic
57
{
58
template
<
typename
>
class
List
;
59
}
// namespace Generic
60
}
// namespace Collections
61
}
// namespace System
62
63
namespace
Aspose
{
64
65
namespace
Pdf
{
66
67
namespace
Annotations {
68
72
class
ASPOSE_PDF_SHARED_CLASS
DefaultAppearance
final :
public
System::Object
73
{
74
typedef
DefaultAppearance
ThisType
;
75
typedef
System::Object
BaseType
;
76
77
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
78
ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
79
80
friend
class
Aspose::Pdf::Annotations::FreeTextAnnotation
;
81
friend
class
Aspose::Pdf::Annotations::WidgetAnnotation
;
82
friend
class
Aspose::Pdf::Forms::TextBoxField
;
83
friend
class
Aspose::Pdf::Forms::ComboBoxField
;
84
friend
class
Aspose::Pdf::Forms::Form
;
85
friend
class
Aspose::Pdf::TextBoxFieldXfa;
86
friend
class
Aspose::Pdf::Tests::RegressionTests_v9_6;
87
88
public
:
89
93
ASPOSE_PDF_SHARED_API
double
get_FontSize()
const
;
97
ASPOSE_PDF_SHARED_API
void
set_FontSize(
double
value);
101
ASPOSE_PDF_SHARED_API
System::Drawing::Color
get_TextColor()
const
;
105
ASPOSE_PDF_SHARED_API
void
set_TextColor(
System::Drawing::Color
value);
109
ASPOSE_PDF_SHARED_API
System::String
get_FontName();
113
ASPOSE_PDF_SHARED_API
void
set_FontName(
System::String
value);
117
ASPOSE_PDF_SHARED_API
System::String
get_FontResourceName()
const
;
121
ASPOSE_PDF_SHARED_API
void
set_FontResourceName(
System::String
value);
125
ASPOSE_PDF_SHARED_API
System::SharedPtr<Aspose::Pdf::Text::Font>
get_Font()
const
;
129
ASPOSE_PDF_SHARED_API
System::String
get_Text();
130
134
ASPOSE_PDF_SHARED_API
DefaultAppearance
();
141
ASPOSE_PDF_SHARED_API
DefaultAppearance
(
System::String
fontName,
double
fontSize,
System::Drawing::Color
textColor);
148
ASPOSE_PDF_SHARED_API
DefaultAppearance
(
System::SharedPtr<Aspose::Pdf::Text::Font>
font,
double
fontSize,
System::Drawing::Color
textColor);
149
150
protected
:
151
155
System::Drawing::Color
get_BorderColor()
const
;
159
void
set_BorderColor(
System::Drawing::Color
value);
160
161
DefaultAppearance
(
System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfDictionary>
EngineDict);
162
163
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
DefaultAppearance
, CODEPORTING_ARGS(
System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfDictionary>
EngineDict));
164
165
DefaultAppearance
(
System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfPrimitive>
appearance);
166
167
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
DefaultAppearance
, CODEPORTING_ARGS(
System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfPrimitive>
appearance));
168
System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfPrimitive>
GetProgram(
System::SharedPtr<Aspose::Pdf::Engine::Data::ITrailerable>
trailerable);
169
170
private
:
171
172
System::Drawing::Color
_textColor;
173
System::Drawing::Color
_borderColor;
174
double
_fontSize;
175
System::String
_resourceName;
176
System::String
_fontName;
177
System::SharedPtr<Aspose::Pdf::Text::Font>
_font;
178
System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfDictionary>
EngineDict;
179
180
static
System::SharedPtr<Aspose::Pdf::Engine::CommonData::PageContent::PageContentCommandProcessor>
& processor();
181
void
UpdateDict();
182
void
ReadAppearance(
System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfPrimitive>
appearance);
183
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator>
>> GetOperators();
184
System::String
GetProgramText();
185
186
};
187
188
}
// namespace Annotations
189
}
// namespace Pdf
190
}
// namespace Aspose
191
192
Aspose::Pdf::AFRelationship::Data
Data
System::String
String class used across the library. Is a substitute for C# System.String when translating code...
Definition:
string.h:121
System::Collections::Generic::List
class ASPOSECPP_SHARED_CLASS List
Definition:
ienumerable.h:17
Aspose::Pdf::Forms::ComboBoxField
Class representing Combobox field of the form.
Definition:
ComboBoxField.h:63
Aspose::Pdf::Forms::Form
Class representing form object.
Definition:
Form.h:172
System::Object
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition:
object.h:64
System
Definition:
Artifact.h:67
Aspose::Pdf::Annotations::FreeTextAnnotation
Represents a free text annotation that displays text directly on the page. Unlike an ordinary text an...
Definition:
FreeTextAnnotation.h:91
Aspose::Pdf::Annotations::DefaultAppearance
Describes default appearance of field (font, text size and color).
Definition:
DefaultAppearance.h:72
Aspose::Pdf::Annotations::WidgetAnnotation
Class representing widget annotation.
Definition:
WidgetAnnotation.h:93
Tests
Definition:
signed_info.h:13
System::SmartPtr
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition:
fwd.h:22
Aspose::Pdf::Facades::StampType::Form
Stamp if Form.
Aspose::Pdf::Forms::TextBoxField
Class representing text box field.
Definition:
TextBoxField.h:88
Aspose
Definition:
AFRelationship.h:4
System::Drawing::Color
Represents a color. This type should be allocated on stack and passed to functions by value or by ref...
Definition:
color.h:23
Aspose::Pdf::Annotations::AnnotationType::Text
Text annotation type.
Aspose::Pdf::Facades::SubmitFormFlag::Pdf
Whole PDF file will be submitted.