DateField.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/InteractiveFeatures/Forms/TextBoxField.h"
5 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
6 
7 namespace Aspose
8 {
9 namespace Pdf
10 {
11 class Document;
12 class Image;
13 class Page;
14 class Rectangle;
15 } // namespace Pdf
16 } // namespace Aspose
17 namespace System
18 {
19 class DateTime;
20 } // namespace System
21 
22 namespace Aspose {
23 
24 namespace Pdf {
25 
26 namespace Forms {
27 
34 class ASPOSE_PDF_SHARED_CLASS DateField : public Aspose::Pdf::Forms::TextBoxField
35 {
36  typedef DateField ThisType;
38 
39  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
41 
42 public:
43 
47  ASPOSE_PDF_SHARED_API System::DateTime get_DateTimeValue();
51  ASPOSE_PDF_SHARED_API void set_DateTimeValue(System::DateTime value);
58  ASPOSE_PDF_SHARED_API System::String get_DateFormat() const;
65  ASPOSE_PDF_SHARED_API void set_DateFormat(System::String value);
66 
70  ASPOSE_PDF_SHARED_API DateField();
75  ASPOSE_PDF_SHARED_API DateField(System::SharedPtr<Document> doc);
81  ASPOSE_PDF_SHARED_API DateField(System::SharedPtr<Aspose::Pdf::Page> page, System::SharedPtr<Rectangle> rect);
87  ASPOSE_PDF_SHARED_API DateField(System::SharedPtr<Document> doc, System::SharedPtr<Rectangle> rect);
88 
93  ASPOSE_PDF_SHARED_API void Init(System::SharedPtr<Aspose::Pdf::Page> page);
99  ASPOSE_PDF_SHARED_API void AddImage(System::SharedPtr<Image> image);
100 
101 protected:
102 
103  virtual ASPOSE_PDF_SHARED_API ~DateField();
104 
105 private:
106 
107  System::String _dateFormat;
108  static const System::String jsCalendar;
109 
110 };
111 
112 } // namespace Forms
113 } // namespace Pdf
114 } // namespace Aspose
115 
116 
Date field with calendar view.
Definition: DateField.h:34
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Definition: Artifact.h:67
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Class representing text box field.
Definition: TextBoxField.h:88
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
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:49
The coordinates are in the page coordinate context.
means saving without change of format, i.e. as PDF use it please instead of &#39;SaveFormat.None&#39;, that is obsolete one
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
Whole PDF file will be submitted.