Enable C linkage in fpdfppo.h
[pdfium.git] / fpdfsdk / include / fpdf_ext.h
index a8f268a..96e3c85 100644 (file)
-// Copyright 2014 PDFium Authors. All rights reserved.\r
-// Use of this source code is governed by a BSD-style license that can be\r
-// found in the LICENSE file.\r
\r
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
-\r
-#ifndef _FPDF_EXT_H_\r
-#define _FPDF_EXT_H_\r
-\r
-#ifndef _FPDFVIEW_H_\r
-#include "fpdfview.h"\r
-#endif\r
-\r
-#ifdef __cplusplus\r
-extern "C" {\r
-#endif\r
-\r
-//flags for type of unsupport object.\r
-#define FPDF_UNSP_DOC_XFAFORM                          1\r
-#define FPDF_UNSP_DOC_PORTABLECOLLECTION       2\r
-#define FPDF_UNSP_DOC_ATTACHMENT                       3\r
-#define FPDF_UNSP_DOC_SECURITY                         4\r
-#define FPDF_UNSP_DOC_SHAREDREVIEW                     5\r
-#define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT       6\r
-#define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM    7\r
-#define FPDF_UNSP_DOC_SHAREDFORM_EMAIL         8\r
-#define FPDF_UNSP_ANNOT_3DANNOT                                11\r
-#define FPDF_UNSP_ANNOT_MOVIE                          12\r
-#define FPDF_UNSP_ANNOT_SOUND                          13\r
-#define FPDF_UNSP_ANNOT_SCREEN_MEDIA           14\r
-#define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA       15\r
-#define FPDF_UNSP_ANNOT_ATTACHMENT                     16\r
-#define FPDF_UNSP_ANNOT_SIG                                    17\r
-\r
-typedef        struct _UNSUPPORT_INFO\r
-{\r
-       /**\r
-       * Version number of the interface. Currently must be 1.\r
-       **/\r
-       int version;\r
-       \r
-       /** \r
-       * Method: FSDK_UnSupport_Handler\r
-       *                        UnSupport Object process handling function.\r
-       * Interface Version:\r
-       *                       1\r
-       * Implementation Required:\r
-       *                       Yes\r
-       * Parameters:\r
-       *               pThis           -       Pointer to the interface structure itself.\r
-       *               nType           -       The type of unsupportObject\r
-       *       Return value:\r
-       *               None.\r
-       * */\r
-\r
-       void(*FSDK_UnSupport_Handler)(_UNSUPPORT_INFO* pThis,int nType);\r
-}UNSUPPORT_INFO;\r
-\r
-\r
-/**\r
- * Function: FSDK_SetUnSpObjProcessHandler\r
- *                      Setup A UnSupport Object process handler for foxit sdk. \r
- * Parameters:\r
- *                     unsp_info               -       Pointer to a UNSUPPORT_INFO structure.\r
- * Return Value:\r
- *                     TRUE means successful. FALSE means fails. \r
- **/\r
-\r
-DLLEXPORT FPDF_BOOL STDCALL FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_info);\r
-\r
-//flags for page mode. \r
-\r
-//Unknown value\r
-#define PAGEMODE_UNKONOWN              -1\r
-\r
-//Neither document outline nor thumbnail images visible\r
-#define PAGEMODE_USENONE               0\r
-\r
-//Document outline visible\r
-#define PAGEMODE_USEOUTLINES   1\r
-\r
-//Thumbnial images visible\r
-#define PAGEMODE_USETHUMBS             2\r
-\r
-//Full-screen mode, with no menu bar, window controls, or any other window visible\r
-#define PAGEMODE_FULLSCREEN            3\r
-\r
-//Optional content group panel visible\r
-#define PAGEMODE_USEOC                 4\r
-\r
-//Attachments panel visible\r
-#define PAGEMODE_USEATTACHMENTS        5\r
-\r
-\r
-/**\r
- * Function: FPDFDoc_GetPageMode\r
- *                      Get the document's PageMode(How the document should be displayed when opened) \r
- * Parameters:\r
- *                     doc             -       Handle to document. Returned by FPDF_LoadDocument function.\r
- * Return Value:\r
- *                     The flags for page mode.\r
- **/\r
-DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document);\r
-\r
-#ifdef __cplusplus\r
-};\r
-#endif\r
-#endif\r
+// Copyright 2014 PDFium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+
+#ifndef _FPDF_EXT_H_
+#define _FPDF_EXT_H_
+
+#ifndef _FPDFVIEW_H_
+#include "fpdfview.h"
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+//flags for type of unsupport object.
+#define FPDF_UNSP_DOC_XFAFORM                          1
+#define FPDF_UNSP_DOC_PORTABLECOLLECTION       2
+#define FPDF_UNSP_DOC_ATTACHMENT                       3
+#define FPDF_UNSP_DOC_SECURITY                         4
+#define FPDF_UNSP_DOC_SHAREDREVIEW                     5
+#define FPDF_UNSP_DOC_SHAREDFORM_ACROBAT       6
+#define FPDF_UNSP_DOC_SHAREDFORM_FILESYSTEM    7
+#define FPDF_UNSP_DOC_SHAREDFORM_EMAIL         8
+#define FPDF_UNSP_ANNOT_3DANNOT                                11
+#define FPDF_UNSP_ANNOT_MOVIE                          12
+#define FPDF_UNSP_ANNOT_SOUND                          13
+#define FPDF_UNSP_ANNOT_SCREEN_MEDIA           14
+#define FPDF_UNSP_ANNOT_SCREEN_RICHMEDIA       15
+#define FPDF_UNSP_ANNOT_ATTACHMENT                     16
+#define FPDF_UNSP_ANNOT_SIG                                    17
+
+typedef        struct _UNSUPPORT_INFO
+{
+       /**
+       * Version number of the interface. Currently must be 1.
+       **/
+       int version;
+       
+       /** 
+       * Method: FSDK_UnSupport_Handler
+       *                        UnSupport Object process handling function.
+       * Interface Version:
+       *                       1
+       * Implementation Required:
+       *                       Yes
+       * Parameters:
+       *               pThis           -       Pointer to the interface structure itself.
+       *               nType           -       The type of unsupportObject
+       *       Return value:
+       *               None.
+       * */
+
+       void(*FSDK_UnSupport_Handler)(_UNSUPPORT_INFO* pThis,int nType);
+}UNSUPPORT_INFO;
+
+
+/**
+ * Function: FSDK_SetUnSpObjProcessHandler
+ *                      Setup A UnSupport Object process handler for foxit sdk. 
+ * Parameters:
+ *                     unsp_info               -       Pointer to a UNSUPPORT_INFO structure.
+ * Return Value:
+ *                     TRUE means successful. FALSE means fails. 
+ **/
+
+DLLEXPORT FPDF_BOOL STDCALL FSDK_SetUnSpObjProcessHandler(UNSUPPORT_INFO* unsp_info);
+
+//flags for page mode. 
+
+//Unknown value
+#define PAGEMODE_UNKNOWN               -1
+
+//Neither document outline nor thumbnail images visible
+#define PAGEMODE_USENONE               0
+
+//Document outline visible
+#define PAGEMODE_USEOUTLINES   1
+
+//Thumbnial images visible
+#define PAGEMODE_USETHUMBS             2
+
+//Full-screen mode, with no menu bar, window controls, or any other window visible
+#define PAGEMODE_FULLSCREEN            3
+
+//Optional content group panel visible
+#define PAGEMODE_USEOC                 4
+
+//Attachments panel visible
+#define PAGEMODE_USEATTACHMENTS        5
+
+
+/**
+ * Function: FPDFDoc_GetPageMode
+ *                      Get the document's PageMode(How the document should be displayed when opened) 
+ * Parameters:
+ *                     doc             -       Handle to document. Returned by FPDF_LoadDocument function.
+ * Return Value:
+ *                     The flags for page mode.
+ **/
+DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document);
+
+#ifdef __cplusplus
+};
+#endif
+#endif