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 | 7 |
8 #ifndef _FPDFVIEW_H_ | 8 #ifndef _FPDFVIEW_H_ |
9 #define _FPDFVIEW_H_ | 9 #define _FPDFVIEW_H_ |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 typedef void* FPDF_TEXTPAGE; | 27 typedef void* FPDF_TEXTPAGE; |
28 typedef void* FPDF_SCHHANDLE; | 28 typedef void* FPDF_SCHHANDLE; |
29 typedef void* FPDF_PAGELINK; | 29 typedef void* FPDF_PAGELINK; |
30 typedef void* FPDF_HMODULE; | 30 typedef void* FPDF_HMODULE; |
31 typedef void* FPDF_DOCSCHHANDLE; | 31 typedef void* FPDF_DOCSCHHANDLE; |
32 | 32 |
33 typedef void* FPDF_BOOKMARK; | 33 typedef void* FPDF_BOOKMARK; |
34 typedef void* FPDF_DEST; | 34 typedef void* FPDF_DEST; |
35 typedef void* FPDF_ACTION; | 35 typedef void* FPDF_ACTION; |
36 typedef void* FPDF_LINK; | 36 typedef void* FPDF_LINK; |
| 37 typedef void* FPDF_PAGERANGE; |
37 | 38 |
38 // Basic data types | 39 // Basic data types |
39 typedef int FPDF_BOOL; | 40 typedef int FPDF_BOOL; |
40 typedef int FPDF_ERROR; | 41 typedef int FPDF_ERROR; |
41 typedef unsigned long FPDF_DWORD; | 42 typedef unsigned long FPDF_DWORD; |
42 | 43 |
43 typedef float FS_FLOAT; | 44 typedef float FS_FLOAT; |
44 | 45 |
| 46 // Duplex types |
| 47 typedef enum _FPDF_DUPLEXTYPE_ { |
| 48 DuplexUndefined = 0, |
| 49 Simplex, |
| 50 DuplexFlipShortEdge, |
| 51 DuplexFlipLongEdge |
| 52 } FPDF_DUPLEXTYPE; |
| 53 |
45 // String types | 54 // String types |
46 typedef unsigned short FPDF_WCHAR; | 55 typedef unsigned short FPDF_WCHAR; |
47 typedef unsigned char const* FPDF_LPCBYTE; | 56 typedef unsigned char const* FPDF_LPCBYTE; |
48 | 57 |
49 // FPDFSDK may use three types of strings: byte string, wide string (UTF-16LE en
coded), and platform dependent string | 58 // FPDFSDK may use three types of strings: byte string, wide string (UTF-16LE en
coded), and platform dependent string |
50 typedef const char* FPDF_BYTESTRING; | 59 typedef const char* FPDF_BYTESTRING; |
51 | 60 |
52 typedef const unsigned short* FPDF_WIDESTRING; // Foxit PDF SDK
always use UTF-16LE encoding wide string, | 61 typedef const unsigned short* FPDF_WIDESTRING; // Foxit PDF SDK
always use UTF-16LE encoding wide string, |
53
// each character use 2 bytes (except surrogatio
n), with low byte first. | 62
// each character use 2 bytes (except surrogatio
n), with low byte first. |
54 | 63 |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 | 563 |
555 // Function: FPDF_VIEWERREF_GetPrintScaling | 564 // Function: FPDF_VIEWERREF_GetPrintScaling |
556 // Whether the PDF document prefers to be scaled or not. | 565 // Whether the PDF document prefers to be scaled or not. |
557 // Parameters: | 566 // Parameters: |
558 // document - Handle to the loaded document. | 567 // document - Handle to the loaded document. |
559 // Return value: | 568 // Return value: |
560 // None. | 569 // None. |
561 // | 570 // |
562 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen
t); | 571 DLLEXPORT FPDF_BOOL STDCALL FPDF_VIEWERREF_GetPrintScaling(FPDF_DOCUMENT documen
t); |
563 | 572 |
| 573 // Function: FPDF_VIEWERREF_GetNumCopies |
| 574 // Returns the number of copies to be printed. |
| 575 // Parameters: |
| 576 // document - Handle to the loaded document. |
| 577 // Return value: |
| 578 // The number of copies to be printed. |
| 579 // |
| 580 DLLEXPORT int STDCALL FPDF_VIEWERREF_GetNumCopies(FPDF_DOCUMENT document); |
| 581 |
| 582 // Function: FPDF_VIEWERREF_GetPrintPageRange |
| 583 // Page numbers to initialize print dialog box when file is
printed. |
| 584 // Parameters: |
| 585 // document - Handle to the loaded document. |
| 586 // Return value: |
| 587 // The print page range to be used for printing. |
| 588 // |
| 589 DLLEXPORT FPDF_PAGERANGE STDCALL FPDF_VIEWERREF_GetPrintPageRange(FPDF_DOCUMENT
document); |
| 590 |
| 591 // Function: FPDF_VIEWERREF_GetDuplex |
| 592 // Returns the paper handling option to be used when printi
ng from print dialog. |
| 593 // Parameters: |
| 594 // document - Handle to the loaded document. |
| 595 // Return value: |
| 596 // The paper handling option to be used when printing. |
| 597 // |
| 598 DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen
t); |
| 599 |
564 // Function: FPDF_GetNamedDestByName | 600 // Function: FPDF_GetNamedDestByName |
565 // get a special dest handle by the index. | 601 // get a special dest handle by the index. |
566 // Parameters: | 602 // Parameters: |
567 // document - Handle to the loaded document. | 603 // document - Handle to the loaded document. |
568 // name - The name of a special named dest
. | 604 // name - The name of a special named dest
. |
569 // Return value: | 605 // Return value: |
570 // The handle of the dest. | 606 // The handle of the dest. |
571 // | 607 // |
572 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); | 608 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_
BYTESTRING name); |
573 | 609 |
574 #ifdef __cplusplus | 610 #ifdef __cplusplus |
575 }; | 611 }; |
576 #endif | 612 #endif |
577 | 613 |
578 #endif // _FPDFVIEW_H_ | 614 #endif // _FPDFVIEW_H_ |
OLD | NEW |