ComboBoxField.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/InteractiveFeatures/Forms/ChoiceField.h"
5 #include "Aspose.PDF.Cpp/InteractiveFeatures/Annotations/Annotation.h"
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 class Document;
13 namespace Engine
14 {
15 namespace CommonData
16 {
17 namespace Text
18 {
19 namespace Fonts
20 {
21 class IPdfFont;
22 } // namespace Fonts
23 } // namespace Text
24 } // namespace CommonData
25 namespace Data
26 {
27 class IPdfObject;
28 class IPdfString;
29 class ITrailerable;
30 } // namespace Data
31 } // namespace Engine
32 namespace Forms
33 {
34 class Field;
35 } // namespace Forms
36 class Operator;
37 class Page;
38 class Rectangle;
39 class XfaToPdfConverter;
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 class String;
52 } // namespace System
53 
54 namespace Aspose {
55 
56 namespace Pdf {
57 
58 namespace Forms {
59 
63 class ASPOSE_PDF_SHARED_CLASS ComboBoxField : public Aspose::Pdf::Forms::ChoiceField
64 {
65  typedef ComboBoxField ThisType;
67 
68  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
69  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
70 
72  friend class Aspose::Pdf::XfaToPdfConverter;
73 
74 public:
75 
79  ASPOSE_PDF_SHARED_API bool get_Editable();
83  ASPOSE_PDF_SHARED_API void set_Editable(bool value);
87  ASPOSE_PDF_SHARED_API bool get_SpellCheck();
91  ASPOSE_PDF_SHARED_API void set_SpellCheck(bool value);
92 
96  ASPOSE_PDF_SHARED_API ComboBoxField();
101  ASPOSE_PDF_SHARED_API ComboBoxField(System::SharedPtr<Document> doc);
114 
115 protected:
116 
117  bool get_EnforceHorizontalAlignment() const;
118  void set_EnforceHorizontalAlignment(bool value);
119 
121 
122  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ComboBoxField, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> annotation, System::SharedPtr<Document> document));
127  ASPOSE_PDF_SHARED_API void Initialize(System::SharedPtr<Aspose::Pdf::Engine::Data::ITrailerable> trailer) override;
128  ASPOSE_PDF_SHARED_API bool AppearanceSupported() override;
136  ASPOSE_PDF_SHARED_API System::SharedPtr<Field> CreateCopy() override;
137 
138  virtual ASPOSE_PDF_SHARED_API ~ComboBoxField();
139 
140 private:
141 
142  bool pr_EnforceHorizontalAlignment;
143 
144  System::String Reverse(System::String text);
146 
147 };
148 
149 } // namespace Forms
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
Class representing Combobox field of the form.
Definition: ComboBoxField.h:63
Definition: Artifact.h:67
Base class for acro form fields.
Definition: Field.h:130
Specifies that the member is a field.
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 base class for choice fields.
Definition: ChoiceField.h:57
Definition: AFRelationship.h:4
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:15
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.