71 typedef enum _ZoomMode {
190 float left,
float bottom,
float right,
float top);
470 typedef enum _NewWindowFlag {
1332 typedef enum _Flags {
1766 typedef enum _OperationType {
1937 typedef enum _TriggerEvent {
2323 #endif // FS_ACTION_H_ Definition: fs_action.h:961
bool IsEmpty() const
Check whether current object is empty or not.
Fit the bounding box of page entirely within the display area when display the page.
Definition: fs_action.h:116
void SetDestinationName(const String &dest_name)
Set the destination name.
Trigger a JavaScript action to be performed after saving a document.
Definition: fs_action.h:1967
Header file for PDF rendition related definitions and classes.
Trigger a JavaScript action to be performed before the field is formatted to display its current valu...
Definition: fs_action.h:1994
bool operator==(const Action &other) const
Equal operator.
Definition: fs_action.h:655
NewWindowFlag GetNewWindowFlag()
Get the flag which is used to decide whether to open the destination document in a new window or not...
Type
Enumeration for action type.
Definition: fs_action.h:424
void SetNewWindowFlag(NewWindowFlag flag)
Set the flag which is used to decide whether to open the destination document in a new window or not...
bool operator==(const Destination &other) const
Equal operator.
"NewWindow" flag is true.
Definition: fs_action.h:474
Definition: fs_annot.h:3503
float GetBottom() const
Get bottom position value.
Action type: movie action.
Definition: fs_action.h:442
JavaScriptAction(const Action &action)
Constructor, with parent class object.
URIAction(const Action &action)
Constructor, with parent class object.
WString GetScript()
Get JavaScript script.
Definition: fs_action.h:1524
Associate rendition to related screen annotation.
Definition: fs_action.h:1776
Destination(objects::PDFArray *dest_array)
Constructor, with a specified PDF array object.
FileSpec GetRootFile()
Get the file specification of the root file which is the root file for the target.
Pause any rendition being played in association with related screen annotation. If no rendition is be...
Definition: fs_action.h:1786
Action type: set-OCG-state action.
Definition: fs_action.h:456
EmbeddedGotoTarget GetTarget()
Get the target which specifies additional path information to the target document.
TriggerEvent
Enumeration for trigger event.
Definition: fs_action.h:1937
NamedAction(const Action &action)
Constructor, with parent class object.
void SetOperationType(OperationType op_type)
Set the operation type of current rendition action when being triggered.
int GetFileAttachmentAnnotIndex()
Get the annotation index which specifies a file attachment annotation in a specified page...
bool IsEmpty() const
Check whether current object is empty or not.
Trigger an action to be performed when the page is closed.
Definition: fs_action.h:1949
static Destination CreateFitPage(const PDFDoc &document, int page_index)
Create a destination object for zoom mode Destination::e_ZoomFitPage.
Definition: fs_action.h:1759
Type GetType()
Get action type.
void SetTrackPositionFlag(bool is_track_position)
Set the value for tracking position flag.
void SetFDFFileSpec(const FileSpec &file_specification)
Set a file specification of a FDF file, from which to import form data.
bool operator==(const AdditionalAction &other) const
Equal operator.
OperationType
Enumeration for operation type to perform when the rendition action is triggered. ...
Definition: fs_action.h:1766
void SetNewWindowFlag(NewWindowFlag flag)
Set the flag which is used to decide whether to open the destination document in a new window or not...
objects::PDFDictionary * GetDict() const
Get the PDF dictionary of current object.
NewWindowFlag GetNewWindowFlag()
Get the flag which is used to decide whether to open the destination document in a new window or not...
int GetRenditionCount() const
Get the count of rendition objects.
Action type: remote go-to action.
Definition: fs_action.h:430
Definition: fs_rendition.h:38
void SetAttachedFileName(const WString &embed_file_name)
Set the embedded file name, which is used in "EmbeddedFile" name tree of current target file...
Definition: fs_basictypes.h:226
AdditionalAction(const PDFDoc &doc, objects::PDFDictionary *pdf_dict=0)
Constructor, from a PDF document or a PDF dictionary (if any).
RenditionAction(const Action &action)
Constructor, with parent class object.
Header file for file operation related definitions and functions.
void SetJavaScript(const WString &script)
Set the JavaScript script to be executed.
Action type: go-to-3D-view action.
Definition: fs_action.h:462
No "NewWindow" flag.
Definition: fs_action.h:476
WIDE STRING CLASS.
Definition: fx_string.h:1470
void SetScreenAnnot(const annots::Screen &screen_annot)
Set related screen annotation.
static Destination CreateXYZ(const PDFDoc &document, int page_index, float left, float top, float zoom_factor)
Create a destination object for zoom mode Destination::e_ZoomXYZ.
void SetFileSpec(const FileSpec &file_specification)
Set a file specification which specifies an application to be launched or a document to be opened or ...
bool GetHideState()
Get the hide state.
String GetName()
Get the name of the action..
Action type: hide action.
Definition: fs_action.h:444
String GetWinDefaultDirectory()
(Windows-specific launch parameters) Get the default directory in standard DOS syntax.
void SetFileSpec(const FileSpec &file_specification)
Set the file specification which specifies the destination file.
bool RemoveAllActions()
Remove all actions.
(Applicable for widget annotation only) Trigger an action to be performed when the annotation receive...
Definition: fs_action.h:2041
Fit the entire width of the page's bounding box within the display area when display the page...
Definition: fs_action.h:122
Definition: fs_action.h:64
Definition: fs_pdfdoc.h:338
void SetFileAttachmentAnnotIndex(int annot_index)
Set the annotation index which specifies a file attachment annotation in a specified page...
void SetScript(const WString &script)
Set JavaScript script.
void SetTarget(const EmbeddedGotoTarget &target)
Set the target.
OperationType GetOperationType()
Get the operation type of current rendition action when being triggered.
Action GetAction(TriggerEvent trigger)
Get an action with specified trigger event type.
Trigger an action to be performed when the cursor enters the annotation's active area.
Definition: fs_action.h:2016
annots::Screen GetScreenAnnot()
Get the related screen annotation.
Trigger an action to be performed when the page containing the annotation is closed.
Definition: fs_action.h:2067
Destination & operator=(const Destination &other)
Assign operator.
Action type: embedded go-to action.
Definition: fs_action.h:432
Action type: reset-form action.
Definition: fs_action.h:450
Stop any rendition being played in association with related screen annotation and remove the associat...
Definition: fs_action.h:1781
int GetPageIndex(const PDFDoc &document) const
Get the index of the destination page.
Action type: submit-form action.
Definition: fs_action.h:448
void RemoveAllSubActions()
Remove all the sub-actions.
Trigger an action to be performed when the page containing the annotation is opened.
Definition: fs_action.h:2058
String GetDestinationName()
Get the destination name which is defined in final target PDF file.
Trigger a JavaScript action to be performed when the field's value is changed.
Definition: fs_action.h:2001
Fit the entire height of the page within the display area when display the page.
Definition: fs_action.h:99
Trigger a JavaScript action to be performed before closing a document.
Definition: fs_action.h:1955
Fit the entire width of the page within the display area when display the page.
Definition: fs_action.h:92
AdditionalAction & operator=(const AdditionalAction &other)
Assign operator.
Action(const PDFDoc &document, objects::PDFDictionary *action_dict)
Constructor, with parameters.
float GetZoomFactor() const
Get zoom factor.
EmbeddedGotoTarget(const PDFDoc &document)
Constructor, with PDF document.
EmbeddedGotoTarget & operator=(const EmbeddedGotoTarget &other)
Assign operator.
bool IsTrackPosition()
Check whether to track the mouse position when the URI is resolved.
void SetName(const String &name)
Set the name of the action..
int GetSubActionCount()
Get the count of sub-actions.
bool IsEmpty() const
Check whether current object is empty or not.
Action type: uniform resource identifier (URI) action.
Definition: fs_action.h:438
ZoomMode
Enumeration for zoom mode.
Definition: fs_action.h:71
Action type: import-data action.
Definition: fs_action.h:452
Trigger an action to be performed when the page is opened.
Definition: fs_action.h:1943
static Destination CreateFromPDFArray(const PDFDoc &document, objects::PDFArray *pdf_array)
Create a destination object from an existing destination array.
String GetWinAppOperation()
(Windows-specific launch parameters) Get the operation name.
Action & operator=(const Action &other)
Assign operator.
bool operator==(const EmbeddedGotoTarget &other) const
Equal operator.
float GetTop() const
Get top position value.
GotoAction(const Action &action)
Constructor, with parent class object.
static Destination CreateFitBHorz(const PDFDoc &document, int page_index, float top)
Create a destination object for zoom mode Destination::e_ZoomFitBHorz.
LaunchAction(const Action &action)
Constructor, with parent class object.
static Destination CreateFitBVert(const PDFDoc &document, int page_index, float left)
Create a destination object for zoom mode Destination::e_ZoomFitBVert.
String GetURI()
Get the URI string.
NewWindowFlag GetNewWindowFlag()
Get the flag which is used to decide whether to open the destination document in a new window or not...
static Destination CreateFitBBox(const PDFDoc &document, int page_index)
Create a destination object for zoom mode Destination::e_ZoomFitBBox.
objects::PDFDictionary * GetDict() const
Get PDF dictionary of current object.
Trigger an action to be performed when the cursor exits the annotation's active area.
Definition: fs_action.h:2022
static Action Create(const PDFDoc &document, Type action_type)
Create a new action, for specified action type.
Trigger a JavaScript action to be performed when the user types a keystroke into a text field or comb...
Definition: fs_action.h:1987
~Destination()
Destructor.
bool operator!=(const AdditionalAction &other) const
Not equal operator.
void SetRootFile(const FileSpec &file_specification)
Set the file specification of the root file which is the root file for the target.
void SetHideState(bool is_hide)
Set the hide state.
~AdditionalAction()
Destructor.
Definition: fs_action.h:688
Action type: JavaScript action.
Definition: fs_action.h:454
EmbeddedGotoAction(const Action &action)
Constructor, with parent class object.
Action type: thread action.
Definition: fs_action.h:436
Definition: fs_action.h:1622
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:198
Fit the entire height of the page's bounding box within the display area when display the page...
Definition: fs_action.h:128
No operation is specified.
Definition: fs_action.h:1768
Definition: fs_pdfpage.h:307
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:216
Trigger an action to be performed when the page containing the annotation is no longer visible in the...
Definition: fs_action.h:2081
objects::PDFDictionary * GetDict() const
Get PDF dictionary of current object.
Header file for common definitions and classes.
Action type: unknown action.
Definition: fs_action.h:426
WString GetAttachedFileName()
Get the embedded file name, which is used in "EmbeddedFile" name tree of current target file...
FileSpec GetFDFFileSpec()
Get the file specification for the FDF file, from which to import form data.
bool DoJSAction(TriggerEvent trigger)
Perform javascript action which is specified by a trigger event type.
bool IsEmpty() const
Check whether current object is empty or not.
Action type: sound action.
Definition: fs_action.h:440
FileSpec GetFileSpec()
Get the file specification which specifies the application to be launched or the document to be opene...
void SetTarget(const EmbeddedGotoTarget &target)
Set the target which specifies additional path information to the target document.
Action type: rendition action.
Definition: fs_action.h:458
Destination GetDestination()
Get the destination information.
void SetFieldNames(const WStringArray &field_names)
Set field name array.
Header file for PDF object related definitions and classes.
void SetSubAction(int index, const Action &sub_action)
Set a sub-action by index.
NewWindowFlag
Enumeration for new window flag.
Definition: fs_action.h:470
String GetRelationship()
Get relationship between current target object and the object that current target object belongs to...
Definition: fs_basictypes.h:342
Fit the entire page within the display area when display the page.
Definition: fs_action.h:86
Trigger an action to be performed when the page containing the annotation becomes visible in the view...
Definition: fs_action.h:2074
static Destination CreateFitHorz(const PDFDoc &document, int page_index, float top)
Create a destination object for zoom mode Destination::e_ZoomFitHorz.
Resume any rendition being played in association with related screen annotation. If no rendition is b...
Definition: fs_action.h:1791
Definition: fs_action.h:740
Definition: fs_filespec.h:38
WStringArray GetFieldNames()
Get all field names from the array of current hide action.
RemoteGotoAction(const Action &action)
Constructor, with parent class object.
String GetWinFileName()
(Windows-specific launch parameters) Get the file name of the application to be launched or the docum...
Definition: fs_annot.h:749
void RemoveRendition(const Rendition &rendition)
Remove a rendition object from current rendition action.
Definition: fs_pdfobject.h:763
~EmbeddedGotoTarget()
Destructor.
Trigger a JavaScript action to be performed before saving a document.
Definition: fs_action.h:1961
bool operator!=(const EmbeddedGotoTarget &other) const
Not equal operator.
Definition: fs_action.h:1930
void SetURI(const String &uri)
Set the URI string.
bool IsTopNull() const
Check if top value is a null object.
Foxit namespace.
Definition: fs_connectedpdf.h:26
void InsertSubAction(int index, const Action &sub_action)
Insert a new sub-action to the location specified by index.
String GetDestinationName()
Get the destination name, which is defined in target PDF file.
Definition: fs_action.h:834
static Destination CreateFitRect(const PDFDoc &document, int page_index, float left, float bottom, float right, float top)
Create a destination object for zoom mode Destination::e_ZoomFitRect.
Action type: named action.
Definition: fs_action.h:446
bool operator!=(const Action &other) const
Not equal operator.
void SetPageIndex(int page_index)
Set the page index which specifies the page that contains the target file attachment annotation...
Definition: fs_action.h:417
Rendition GetRendition(int index)
Get a rendition by index.
(Applicable for widget annotation only) Trigger an action to be performed when the annotation loses t...
Definition: fs_action.h:2049
Trigger a JavaScript action to be performed before printing a document.
Definition: fs_action.h:1973
BYTE STRING CLASS.
Definition: fx_string.h:317
FileSpec GetFileSpec()
Get the file specification which specifies the destination file.
PDFDoc GetDocument()
Get the PDF document, to which current action belongs.
static Destination CreateFitVert(const PDFDoc &document, int page_index, float left)
Create a destination object for zoom mode Destination::e_ZoomFitVert.
Action type: transition action.
Definition: fs_action.h:460
Trigger an action to be performed when the mouse button is pressed inside the annotation's active are...
Definition: fs_action.h:2028
"NewWindow" flag is false.
Definition: fs_action.h:472
Trigger a JavaScript action to be performed to recalculate the value of this field when that of anoth...
Definition: fs_action.h:2010
HideAction(const Action &action)
Constructor, with parent class object.
Trigger an action to be performed when the mouse button is released inside the annotation's active ar...
Definition: fs_action.h:2034
float GetLeft() const
Get left position value.
Trigger a JavaScript action to be performed after printing a document.
Definition: fs_action.h:1979
Display page with a specified position and a specified zoom factor.
Definition: fs_action.h:78
void SetDestination(const Destination &destination)
Set the destination information which specifies where to jump to in the final target file...
Definition: fs_action.h:773
bool IsLeftNull() const
Check if left value is a null object.
void SetRelationship(const String &relationship)
Set relationship between current target object and the object that current target object belongs to...
String GetWinAppParameter()
(Windows-specific launch parameters) Get parameter string to be passed to the specified application...
ImportDataAction(const Action &action)
Constructor, with parent class object.
void SetDestinationName(const String &dest_name)
Set the destination name.
#define NULL
The null-pointer value.
Definition: fx_system.h:773
Fit the page content in a specified rectangle entirely within the display area when display the page...
Definition: fs_action.h:108
Action GetSubAction(int index)
Get a sub-action by index.
WString GetJavaScript()
Get the JavaScript script to be executed.
Destination GetDestination()
Get the destination information which specifies where to jump to in the final target file...
bool RemoveAction(TriggerEvent trigger)
Remove an action with specified trigger event type.
void SetWinLaunchParameter(const String &file_name, const String &default_directory, const String &operation, const String &app_parameter)
(Windows-specific launch parameters)Set Windows-specific launch parameters.
void RemoveSubAction(int index)
Remove a sub-action, specified by index.
EmbeddedGotoTarget GetTarget()
Get the target.
Definition: fs_pdfobject.h:575
void InsertRendition(const Rendition &rendition, int index=-1)
Insert a rendition to current rendition action, at the position specified by index.
objects::PDFArray * GetDestArray() const
Get the destination PDF array.
void SetDestination(const Destination &dest)
Set the destination information.
void SetAction(TriggerEvent trigger, const Action &action)
Set a additional-action for specified trigger event type.
void SetNewWindowFlag(NewWindowFlag flag)
Set the flag which is used to decide whether to open the destination document in a new window or not...
Definition: fs_action.h:1169
Destination::ZoomMode GetZoomMode() const
Get the zoom mode.
Action type: launch action.
Definition: fs_action.h:434
bool operator!=(const Destination &other) const
Not equal operator.
int GetPageIndex()
Get the page index which specifies the page that contains the target file attachment annotation...
Play rendition (which is specified in rendition action), associating it with related screen annotatio...
Definition: fs_action.h:1797
Action type: go-to action.
Definition: fs_action.h:428
Destination GetDestination()
Get the destination information.
Definition: fs_action.h:1563
void SetDestination(const Destination &destination)
Set the destination information, which is used to specify the position in target PDF file to jump to...
float GetRight() const
Get right position value.