fs_obsolete.h
Go to the documentation of this file.
1 
17 #ifndef _FSCRT_OBSOLETE_H_
18 #define _FSCRT_OBSOLETE_H_
19 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 
32 #ifndef _FSPDF_DEF_HANDLER_ACTION_
33 #define _FSPDF_DEF_HANDLER_ACTION_
34 
44 typedef struct _FSPDF_ACTION_HANDLER
45 {
52 
64  FS_RESULT (*Release)(FS_LPVOID clientData);
65 
81  FS_RESULT (*InvalidateRect)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_INT32 pageIndex, FSCRT_RECTF* pdfRect);
82 
94  FS_RESULT (*GetCurrentPageIndex)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_INT32* pageIndex);
95 
106  FS_RESULT (*SetCurrentPageIndex)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_INT32 pageIndex);
107 
120  FS_RESULT (*GetRotation)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_INT32 pageIndex, FS_INT32* rotation);
121 
134  FS_RESULT (*ExecuteNamedAction)(FS_LPVOID clientData, FSCRT_DOCUMENT document, const FSCRT_BSTR* namedAction);
135 
146  FS_RESULT (*SetChangeMark)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_BOOL changeMark);
147 
158  FS_RESULT (*GetChangeMark)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_BOOL* changeMark);
159 
184  FS_RESULT (*GetOpenedDocs)(FS_LPVOID clientData, FSCRT_DOCUMENT* docs, FS_INT32* count);
185 
217  FS_RESULT (*Alert)(FS_LPVOID clientData, const FSCRT_BSTR* msg, const FSCRT_BSTR* title, FS_INT32 type, FS_INT32 icon, FS_INT32* retCode);
218 
235  FS_RESULT (*Beep)(FS_LPVOID clientData, FS_INT32 type);
236 
256  FS_RESULT (*Response)(FS_LPVOID clientData, const FSCRT_BSTR* question, const FSCRT_BSTR* title, const FSCRT_BSTR* defaultValue,
257  const FSCRT_BSTR* label, FS_BOOL isPassword, FSCRT_BSTR* response);
258 
270  FS_RESULT (*GetFilePath)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FSCRT_BSTR* filePath);
271 
292  FS_RESULT (*Mail)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_BOOL bUI, const FSCRT_BSTR* To,
293  const FSCRT_BSTR* Subject, const FSCRT_BSTR* CC, const FSCRT_BSTR* BCC, const FSCRT_BSTR* Msg);
294 
313  FS_RESULT (*Print)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_BOOL isUI, FS_INT32 start, FS_INT32 end, FS_BOOL isSilent ,
314  FS_BOOL isShrinkToFit, FS_BOOL isPrintAsImage, FS_BOOL isReverse, FS_BOOL isAnnotations);
315 
328  FS_RESULT (*SubmitForm)(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_LPVOID formData, FS_DWORD length, const FSCRT_BSTR* URL);
329 
339  FS_RESULT (*LaunchURL)(FS_LPVOID clientData, const FSCRT_BSTR* URL);
340 
353  FS_RESULT (*BrowseFile)(FS_LPVOID clientData, FSCRT_BSTR* filePath);
354 
365  FS_RESULT (*GetLanguage)(FS_LPVOID clientData, FS_INT32* language);
366 
367  /*
368  * @brief Optional callback function to get identity properties of the current user.
369  *
370  * @param[in] clientData The user-supplied data.
371  * @param[out] identityProperties Pointer to a ::FSPDF_IDENTITYPROPERTIES structure that receives the identity properties.
372  *
373  * @return ::FSCRT_ERRCODE_SUCCESS for success.<br>
374  * For more error codes, please refer to macro definitions {@link FSCRT_ERRCODE_SUCCESS FSCRT_ERRCODE_XXX}.
375  */
376  FS_RESULT (*GetIdentityProperties)(FS_LPVOID clientData, FSPDF_IDENTITYPROPERTIES* identityProperties);
377 
392  FS_RESULT (*PopupMenu)(FS_LPVOID clientData, const FSPDF_MENULIST* menus, FS_INT32 count, FSCRT_BSTR* seletedMenu);
394 
395 #endif /* _FSPDF_DEF_HANDLER_ACTION_ */
396 
422 FS_RESULT FSPDF_Doc_SetActionHandler(FSCRT_DOCUMENT document, FSPDF_ACTION_HANDLER* actionHandler);
423 
424 #ifndef _FSPDF_DEF_STRUCTURE_ENUMPAGESIZEHANDLER_
425 #define _FSPDF_DEF_STRUCTURE_ENUMPAGESIZEHANDLER_
426 
436 typedef struct _FSPDF_ENUMPAGESIZEHANDLER
437 {
444 
445  /*
446  * @brief Enumerate page size of a PDF page.
447  *
448  * @details Foxit SDK calls this function to enumerate page size for each page, and the application can get page size quickly
449  * from the parameter <i>pageWidth</i> and <i>pageHeight</i>, with <i>pageIndex</i> in this callback function.<br>
450  * Application is not suggested to call any API of Foxit SDK inside this callback function since it may reduce the speed of enumerating all page size.
451  *
452  * @param[in] clientData Pointer to user-defined data.
453  * @param[in] pageIndex Index of a PDF page. starting from 0.
454  * @param[in] pageWidth Width of a PDF page.
455  * @param[in] pageHeight Height of a PDF page.
456  *
457  * @return ::FSCRT_ERRCODE_SUCCESS for success.<br>
458  * ::FSCRT_ERRCODE_UNRECOVERABLE if function finds an unrecoverable error internally.<br>
459  * For more error codes, please refer to macro definitions {@link FSCRT_ERRCODE_SUCCESS FSCRT_ERRCODE_XXX}.
460  */
461  FS_RESULT (*EnumPageSize)(FS_LPVOID clientData, FS_INT32 pageIndex, FS_FLOAT pageWidth, FS_FLOAT pageHeight);
463 
464 #endif //_FSPDF_DEF_STRUCTURE_ENUMPAGESIZEHANDLER_
465 
495 FS_RESULT FSPDF_Doc_EnumAllPageSize(FSCRT_DOCUMENT document, FSPDF_ENUMPAGESIZEHANDLER* enumHandler);
496 
497 #ifndef _FSPDF_DEF_MACRO_TEXTDIRECTION_
498 #define _FSPDF_DEF_MACRO_TEXTDIRECTION_
499 
508 #define FSPDF_TEXTDIRECTION_LEFT -1
509 
510 #define FSPDF_TEXTDIRECTION_RIGHT 1
511 
512 #define FSPDF_TEXTDIRECTION_UP -2
513 
514 #define FSPDF_TEXTDIRECTION_DOWN 2
515 
517 #endif /* _FSPDF_DEF_MACRO_TEXTDIRECTION_ */
518 
553 FS_RESULT FSPDF_TextPage_GetNextCharIndexByDirection(FSPDF_TEXTPAGE textPage, FS_INT32 curIndex, FS_INT32 direction, FS_INT32* nextIndex);
554 
555 #ifndef FSPDF_RENDERCONTEXTFLAG_LIMITEDIMAGECACHE
556 
564 #define FSPDF_RENDERCONTEXTFLAG_LIMITEDIMAGECACHE 0x0010
565 #endif
566 
567 
568 #ifdef __cplusplus
569 };
570 #endif
571  /* group FSAPP */
573 
574 #endif /* _FSCRT_APP_R_H_ */
575 
FS_LPVOID clientData
User-defined data.
Definition: fs_obsolete.h:443
Structure for identity properties of the current user of the application.
Definition: fpdf_document_r.h:1210
Structure for rectangle, in float.
Definition: fs_base_r.h:2078
float FS_FLOAT
32-bit floating-point number, single precision.
Definition: fs_base_r.h:148
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
FS_LPVOID clientData
User-defined data.
Definition: fs_obsolete.h:51
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
Structure for menu list.
Definition: fpdf_document_r.h:1228
FS_RESULT FSPDF_Doc_EnumAllPageSize(FSCRT_DOCUMENT document, FSPDF_ENUMPAGESIZEHANDLER *enumHandler)
Enumerate the size of all page.
int FS_BOOL
Boolean type (This should be TRUE or FALSE).
Definition: fs_base_r.h:133
Structure for action handler information.
Definition: fs_obsolete.h:44
void * FS_LPVOID
A pointer to any types.
Definition: fs_base_r.h:127
Structure for byte string.
Definition: fs_base_r.h:611
FS_RESULT FSPDF_TextPage_GetNextCharIndexByDirection(FSPDF_TEXTPAGE textPage, FS_INT32 curIndex, FS_INT32 direction, FS_INT32 *nextIndex)
Get index of next character of a specific character in a specific direction.
FS_RESULT FSPDF_Doc_SetActionHandler(FSCRT_DOCUMENT document, FSPDF_ACTION_HANDLER *actionHandler)
Set the action handler to the PDF document.
Structure for page size enumeration.
Definition: fs_obsolete.h:436
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160

Foxit Corporation