JavascriptAction.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/InteractiveFeatures/PdfAction.h"
5 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
6 
7 namespace Aspose
8 {
9 namespace Pdf
10 {
11 class Document;
12 namespace Engine
13 {
14 namespace Data
15 {
16 class IPdfDictionary;
17 } // namespace Data
18 } // namespace Engine
19 namespace Forms
20 {
21 class Field;
22 class Form;
23 class RadioButtonField;
24 class TextBoxField;
25 } // namespace Forms
26 } // namespace Pdf
27 namespace Shared
28 {
29 namespace JavaScript
30 {
31 class JavaScriptEngine;
32 } // namespace JavaScript
33 } // namespace Shared
34 } // namespace Aspose
35 namespace System
36 {
37 namespace IO
38 {
39 class Stream;
40 } // namespace IO
41 class String;
42 } // namespace System
43 
44 namespace Aspose {
45 
46 namespace Pdf {
47 
48 namespace Annotations {
49 
53 class ASPOSE_PDF_SHARED_CLASS JavascriptAction final : public Aspose::Pdf::Annotations::PdfAction
54 {
55  typedef JavascriptAction ThisType;
57 
58  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
59  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
60 
62  friend class Aspose::Pdf::Document;
67 
68 public:
69 
73  ASPOSE_PDF_SHARED_API System::String get_Script();
77  ASPOSE_PDF_SHARED_API void set_Script(System::String value);
78 
83  ASPOSE_PDF_SHARED_API JavascriptAction(System::String javaScript);
84 
85 protected:
86 
87  static System::String ConvertToString(System::SharedPtr<System::IO::Stream> stream);
88 
94 
96  ASPOSE_PDF_SHARED_API void Execute(const System::SharedPtr<Document>& document) override;
99 
100 };
101 
102 } // namespace Annotations
103 } // namespace Pdf
104 } // namespace Aspose
105 
106 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Class representing form object.
Definition: Form.h:172
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Form, CODEPORTING_ARGS(System::SharedPtr< Document > document))
Class representing PDF document
Definition: Document.h:625
Definition: Artifact.h:67
Represents general interface for actions and destinations.
Definition: IAppointment.h:17
Class representing javascript action.
Definition: JavascriptAction.h:53
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
Class representing text box field.
Definition: TextBoxField.h:88
Definition: AFRelationship.h:4
Represents Action in PDF document
Definition: PdfAction.h:75
Class representing radio button field.
Definition: RadioButtonField.h:75
Shared mode: pointer participates in reference counting.
Whole PDF file will be submitted.