OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef PUBLIC_FPDF_EXT_H_ | 7 #ifndef PUBLIC_FPDF_EXT_H_ |
8 #define PUBLIC_FPDF_EXT_H_ | 8 #define PUBLIC_FPDF_EXT_H_ |
9 | 9 |
10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
11 | 11 |
12 #ifdef __cplusplus | 12 #ifdef __cplusplus |
13 extern "C" { | 13 extern "C" { |
14 #endif | 14 #endif |
15 | 15 |
16 //flags for type of unsupport object. | 16 // flags for type of unsupport object. |
17 #define FPDF_UNSP_DOC_XFAFORM 1 | 17 #define FPDF_UNSP_DOC_XFAFORM 1 |
18 #define FPDF_UNSP_DOC_PORTABLECOLLECTION 2 | 18 #define FPDF_UNSP_DOC_PORTABLECOLLECTION 2 |
19 #define FPDF_UNSP_DOC_ATTACHMENT 3 | 19 #define FPDF_UNSP_DOC_ATTACHMENT 3 |
20 #define FPDF_UNSP_DOC_SECURITY 4 | 20 #define FPDF_UNSP_DOC_SECURITY 4 |
21 #define FPDF_UNSP_DOC_SHAREDREVIEW 5 | 21 #define FPDF_UNSP_DOC_SHAREDREVIEW 5 |
22 #define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT 6 | 22 #define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT 6 |
23 #define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM 7 | 23 #define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM 7 |
24 #define FPDF_UNSP_DOC_SHAREDFORM_EMAIL 8 | 24 #define FPDF_UNSP_DOC_SHAREDFORM_EMAIL 8 |
25 #define FPDF_UNSP_ANNOT_3DANNOT 11 | 25 #define FPDF_UNSP_ANNOT_3DANNOT 11 |
26 #define FPDF_UNSP_ANNOT_MOVIE 12 | 26 #define FPDF_UNSP_ANNOT_MOVIE 12 |
27 #define FPDF_UNSP_ANNOT_SOUND 13 | 27 #define FPDF_UNSP_ANNOT_SOUND 13 |
28 #define FPDF_UNSP_ANNOT_SCREEN_MEDIA 14 | 28 #define FPDF_UNSP_ANNOT_SCREEN_MEDIA 14 |
29 #define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA 15 | 29 #define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA 15 |
30 #define FPDF_UNSP_ANNOT_ATTACHMENT 16 | 30 #define FPDF_UNSP_ANNOT_ATTACHMENT 16 |
31 #define FPDF_UNSP_ANNOT_SIG 17 | 31 #define FPDF_UNSP_ANNOT_SIG 17 |
32 | 32 |
33 typedef struct _UNSUPPORT_INFO | 33 typedef struct _UNSUPPORT_INFO { |
34 { | 34 /** |
35 /** | 35 * Version number of the interface. Currently must be 1. |
36 * Version number of the interface. Currently must be 1. | 36 **/ |
37 **/ | 37 int version; |
38 int version; | |
39 | 38 |
40 /** | 39 /** |
41 * Method: FSDK_UnSupport_Handler | 40 * Method: FSDK_UnSupport_Handler |
42 * UnSupport Object process handling function. | 41 * UnSupport Object process handling function. |
43 * Interface Version: | 42 * Interface Version: |
44 * 1 | 43 * 1 |
45 * Implementation Required: | 44 * Implementation Required: |
46 * Yes | 45 * Yes |
47 * Parameters: | 46 * Parameters: |
48 * pThis - Pointer to the interface structure itself. | 47 * pThis - Pointer to the interface structure itself. |
49 * nType - The type of unsupportObject | 48 * nType - The type of unsupportObject |
50 * Return value: | 49 * Return value: |
51 * None. | 50 * None. |
52 * */ | 51 * */ |
53 | 52 |
54 void(*FSDK_UnSupport_Handler)(struct _UNSUPPORT_INFO* pThis, int nType); | 53 void (*FSDK_UnSupport_Handler)(struct _UNSUPPORT_INFO* pThis, int nType); |
55 } UNSUPPORT_INFO; | 54 } UNSUPPORT_INFO; |
56 | 55 |
57 /** | 56 /** |
58 * Function: FSDK_SetUnSpObjProcessHandler | 57 * Function: FSDK_SetUnSpObjProcessHandler |
59 * Setup A UnSupport Object process handler for foxit sdk. | 58 * Setup A UnSupport Object process handler for foxit sdk. |
60 * Parameters: | 59 * Parameters: |
61 * unsp_info - Pointer to a UNSUPPORT_INFO structure. | 60 * unsp_info - Pointer to a UNSUPPORT_INFO structure. |
62 * Return Value: | 61 * Return Value: |
63 * TRUE means successful. FALSE means fails. | 62 * TRUE means successful. FALSE means fails. |
64 **/ | 63 **/ |
65 | 64 |
66 DLLEXPORT FPDF_BOOL STDCALL FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_i
nfo); | 65 DLLEXPORT FPDF_BOOL STDCALL |
| 66 FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_info); |
67 | 67 |
68 //flags for page mode. | 68 // flags for page mode. |
69 | 69 |
70 //Unknown value | 70 // Unknown value |
71 #define PAGEMODE_UNKNOWN -1 | 71 #define PAGEMODE_UNKNOWN -1 |
72 | 72 |
73 //Neither document outline nor thumbnail images visible | 73 // Neither document outline nor thumbnail images visible |
74 #define PAGEMODE_USENONE 0 | 74 #define PAGEMODE_USENONE 0 |
75 | 75 |
76 //Document outline visible | 76 // Document outline visible |
77 #define PAGEMODE_USEOUTLINES 1 | 77 #define PAGEMODE_USEOUTLINES 1 |
78 | 78 |
79 //Thumbnial images visible | 79 // Thumbnial images visible |
80 #define PAGEMODE_USETHUMBS 2 | 80 #define PAGEMODE_USETHUMBS 2 |
81 | 81 |
82 //Full-screen mode, with no menu bar, window controls, or any other window visib
le | 82 // Full-screen mode, with no menu bar, window controls, or any other window |
83 #define PAGEMODE_FULLSCREEN 3 | 83 // visible |
| 84 #define PAGEMODE_FULLSCREEN 3 |
84 | 85 |
85 //Optional content group panel visible | 86 // Optional content group panel visible |
86 #define PAGEMODE_USEOC 4 | 87 #define PAGEMODE_USEOC 4 |
87 | 88 |
88 //Attachments panel visible | 89 // Attachments panel visible |
89 #define PAGEMODE_USEATTACHMENTS 5 | 90 #define PAGEMODE_USEATTACHMENTS 5 |
90 | 91 |
91 | |
92 /** | 92 /** |
93 * Function: FPDFDoc_GetPageMode | 93 * Function: FPDFDoc_GetPageMode |
94 * Get the document's PageMode(How the document should be displayed wh
en opened) | 94 * Get the document's PageMode(How the document should be displayed |
| 95 *when opened) |
95 * Parameters: | 96 * Parameters: |
96 * doc - Handle to document. Returned by FPDF_LoadDocument functi
on. | 97 * doc - Handle to document. Returned by FPDF_LoadDocument |
| 98 *function. |
97 * Return Value: | 99 * Return Value: |
98 * The flags for page mode. | 100 * The flags for page mode. |
99 **/ | 101 **/ |
100 DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document); | 102 DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document); |
101 | 103 |
102 #ifdef __cplusplus | 104 #ifdef __cplusplus |
103 } | 105 } |
104 #endif | 106 #endif |
105 | 107 |
106 #endif // PUBLIC_FPDF_EXT_H_ | 108 #endif // PUBLIC_FPDF_EXT_H_ |
OLD | NEW |