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