RadioButtonOptionField.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 
6 #include "Aspose.PDF.Cpp/InteractiveFeatures/Forms/Field.h"
7 #include "Aspose.PDF.Cpp/InteractiveFeatures/Annotations/Annotation.h"
8 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
9 
10 namespace Aspose
11 {
12 namespace Pdf
13 {
14 class Document;
15 namespace Engine
16 {
17 namespace Data
18 {
19 class IPdfObject;
20 class ITrailerable;
21 } // namespace Data
22 } // namespace Engine
23 namespace Forms
24 {
25 enum class BoxShape;
26 enum class BoxStyle;
27 class ChoiceField;
28 class RadioButtonField;
29 } // namespace Forms
30 class Operator;
31 class Page;
32 class PageGenerator;
33 class Rectangle;
34 namespace Text
35 {
36 class TextFragment;
37 } // namespace Text
38 class XfaToPdfConverter;
39 class XForm;
40 } // namespace Pdf
41 } // namespace Aspose
42 namespace System
43 {
44 namespace Collections
45 {
46 namespace Generic
47 {
48 template <typename> class List;
49 } // namespace Generic
50 } // namespace Collections
51 } // namespace System
52 
53 namespace Aspose {
54 
55 namespace Pdf {
56 
57 namespace Forms {
58 
62 class ASPOSE_PDF_SHARED_CLASS RadioButtonOptionField final : public Aspose::Pdf::Forms::Field
63 {
66 
67  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
68  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
69 
70  friend class Aspose::Pdf::PageGenerator;
74  friend class Aspose::Pdf::XfaToPdfConverter;
75 
76 public:
77 
81  ASPOSE_PDF_SHARED_API System::String get_OptionName();
85  ASPOSE_PDF_SHARED_API void set_OptionName(System::String value);
89  ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Text::TextFragment> get_Caption() const;
93  ASPOSE_PDF_SHARED_API void set_Caption(System::SharedPtr<Aspose::Pdf::Text::TextFragment> value);
97  ASPOSE_PDF_SHARED_API BoxStyle get_Style();
101  ASPOSE_PDF_SHARED_API void set_Style(BoxStyle value);
102 
106  ASPOSE_PDF_SHARED_API RadioButtonOptionField();
113 
114 protected:
115 
117 
122  BoxShape get_Shape();
127  void set_Shape(BoxShape value);
131  System::String get_NormalCaption();
135  void set_NormalCaption(System::String value);
136 
143 
144  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(RadioButtonOptionField, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> annotation, System::SharedPtr<Document> document));
145  ASPOSE_PDF_SHARED_API void AttachToPage(System::SharedPtr<Aspose::Pdf::Page> page) override;
150  ASPOSE_PDF_SHARED_API void Initialize(System::SharedPtr<Aspose::Pdf::Engine::Data::ITrailerable> trailer) override;
151  ASPOSE_PDF_SHARED_API bool AppearanceSupported() override;
159  ASPOSE_PDF_SHARED_API void UpdateAppearance(System::SharedPtr<Aspose::Pdf::Annotations::Annotation> annotation) override;
160  void UnregisterObjects();
162  void setOptionName(System::String value);
163  System::String getOptionName();
164  ASPOSE_PDF_SHARED_API System::SharedPtr<Field> CreateCopy() override;
165 
166  virtual ASPOSE_PDF_SHARED_API ~RadioButtonOptionField();
167 
168 private:
169 
170  System::String optionName;
171  static System::String fontName;
173  BoxShape _shape;
174 
175  void circle(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Operator>>> op, double x, double y, double r);
177 
178 };
179 
180 } // namespace Forms
181 } // namespace Pdf
182 } // namespace Aspose
183 
184 
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
Definition: Artifact.h:67
BoxStyle
Represents styles of check box.
Definition: BoxStyle.h:18
Base class for acro form fields.
Definition: Field.h:130
System::WeakPtr< RadioButtonField > owner
Definition: RadioButtonOptionField.h:116
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.
Class represents item of RadioButton field.
Definition: RadioButtonOptionField.h:62
Represents base class for choice fields.
Definition: ChoiceField.h:57
Definition: AFRelationship.h:4
Subclass of System::SmartPtr which sets itself to weak mode at construction. Please note that this cl...
Definition: TextFragmentState.h:69
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:15
Class representing radio button field.
Definition: RadioButtonField.h:75
List forward declaration.
Definition: Artifact.h:74
The coordinates are in the page coordinate context.
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
Whole PDF file will be submitted.