Chromium Code Reviews| 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 |
| 11 #include <string> | |
| 11 #if defined(_WIN32) && !defined(__WINDOWS__) | 12 #if defined(_WIN32) && !defined(__WINDOWS__) |
| 12 #include <windows.h> | 13 #include <windows.h> |
| 13 #endif | 14 #endif |
| 14 | 15 |
| 15 // Data types | 16 // Data types |
| 16 typedef void* FPDF_MODULEMGR; | 17 typedef void* FPDF_MODULEMGR; |
| 17 | 18 |
| 18 // PDF types | 19 // PDF types |
| 19 typedef void* FPDF_DOCUMENT; | 20 typedef void* FPDF_DOCUMENT; |
| 20 typedef void* FPDF_PAGE; | 21 typedef void* FPDF_PAGE; |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 595 | 596 |
| 596 // Function: FPDF_VIEWERREF_GetDuplex | 597 // Function: FPDF_VIEWERREF_GetDuplex |
| 597 // Returns the paper handling option to be used when printi ng from print dialog. | 598 // Returns the paper handling option to be used when printi ng from print dialog. |
| 598 // Parameters: | 599 // Parameters: |
| 599 // document - Handle to the loaded document. | 600 // document - Handle to the loaded document. |
| 600 // Return value: | 601 // Return value: |
| 601 // The paper handling option to be used when printing. | 602 // The paper handling option to be used when printing. |
| 602 // | 603 // |
| 603 DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen t); | 604 DLLEXPORT FPDF_DUPLEXTYPE STDCALL FPDF_VIEWERREF_GetDuplex(FPDF_DOCUMENT documen t); |
| 604 | 605 |
| 606 // Function: FPDF_CountNamedDests | |
| 607 // Get the count of named destinations in the PDF document. | |
| 608 // Parameters: | |
| 609 // document - Handle to a document | |
| 610 // Return value: | |
| 611 // The count of named destinations. | |
| 612 DLLEXPORT FPDF_DWORD STDCALL FPDF_CountNamedDests(FPDF_DOCUMENT document); | |
| 613 | |
| 605 // Function: FPDF_GetNamedDestByName | 614 // Function: FPDF_GetNamedDestByName |
| 606 // get a special dest handle by the index. | 615 // get a special dest handle by the index. |
| 607 // Parameters: | 616 // Parameters: |
| 608 // document - Handle to the loaded document. | 617 // document - Handle to the loaded document. |
| 609 // name - The name of a special named dest . | 618 // name - The name of a special named dest . |
| 610 // Return value: | 619 // Return value: |
| 611 // The handle of the dest. | 620 // The handle of the dest. |
| 612 // | 621 // |
| 613 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_ BYTESTRING name); | 622 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDestByName(FPDF_DOCUMENT document,FPDF_ BYTESTRING name); |
| 614 | 623 |
| 624 // Function: FPDF_GetNamedDest | |
| 625 // Get the specified named destinations of the PDF document by index. | |
| 626 // Parameters: | |
| 627 // document - Handle to a document | |
| 628 // index - The index of named destination. | |
| 629 // name - The name of the named destinatio n. | |
| 630 // Return value: | |
| 631 // The destination handle of a named destination. | |
| 632 DLLEXPORT FPDF_DEST STDCALL FPDF_GetNamedDest(FPDF_DOCUMENT document, int index, std::string name); | |
|
Tom Sepez
2015/01/01 01:10:07
This is inside an extern C block, so we don't get
raymes
2015/01/05 22:38:09
This seems like it is just an in-parameter, is tha
Bo Xu
2015/01/05 22:46:52
Ohh, my mistake, this should be passed by referenc
| |
| 633 | |
| 634 | |
| 615 #ifdef __cplusplus | 635 #ifdef __cplusplus |
| 616 }; | 636 }; |
| 617 #endif | 637 #endif |
| 618 | 638 |
| 619 #endif // _FPDFVIEW_H_ | 639 #endif // _FPDFVIEW_H_ |
| OLD | NEW |