| 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 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename | 7 // NOTE: External docs refer to this file as "fpdfview.h", so do not rename |
| 8 // despite lack of consistency with other public files. | 8 // despite lack of consistency with other public files. |
| 9 | 9 |
| 10 #ifndef PUBLIC_FPDFVIEW_H_ | 10 #ifndef PUBLIC_FPDFVIEW_H_ |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } FPDF_BSTR; | 90 } FPDF_BSTR; |
| 91 #endif // PDF_ENABLE_XFA | 91 #endif // PDF_ENABLE_XFA |
| 92 | 92 |
| 93 // For Windows programmers: In most cases it's OK to treat FPDF_WIDESTRING as a | 93 // For Windows programmers: In most cases it's OK to treat FPDF_WIDESTRING as a |
| 94 // Windows unicode string, however, special care needs to be taken if you | 94 // Windows unicode string, however, special care needs to be taken if you |
| 95 // expect to process Unicode larger than 0xffff. | 95 // expect to process Unicode larger than 0xffff. |
| 96 // | 96 // |
| 97 // For Linux/Unix programmers: most compiler/library environments use 4 bytes | 97 // For Linux/Unix programmers: most compiler/library environments use 4 bytes |
| 98 // for a Unicode character, and you have to convert between FPDF_WIDESTRING and | 98 // for a Unicode character, and you have to convert between FPDF_WIDESTRING and |
| 99 // system wide string by yourself. | 99 // system wide string by yourself. |
| 100 #ifdef _WIN32_WCE | |
| 101 typedef const unsigned short* FPDF_STRING; | |
| 102 #else | |
| 103 typedef const char* FPDF_STRING; | 100 typedef const char* FPDF_STRING; |
| 104 #endif | |
| 105 | 101 |
| 106 // Matrix for transformation. | 102 // Matrix for transformation. |
| 107 typedef struct _FS_MATRIX_ { | 103 typedef struct _FS_MATRIX_ { |
| 108 float a; | 104 float a; |
| 109 float b; | 105 float b; |
| 110 float c; | 106 float c; |
| 111 float d; | 107 float d; |
| 112 float e; | 108 float e; |
| 113 float f; | 109 float f; |
| 114 } FS_MATRIX; | 110 } FS_MATRIX; |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 // Function: FPDF_BStr_Clear | 941 // Function: FPDF_BStr_Clear |
| 946 // Helper function to clear a byte string. | 942 // Helper function to clear a byte string. |
| 947 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); | 943 DLLEXPORT FPDF_RESULT STDCALL FPDF_BStr_Clear(FPDF_BSTR* str); |
| 948 #endif // PDF_ENABLE_XFA | 944 #endif // PDF_ENABLE_XFA |
| 949 | 945 |
| 950 #ifdef __cplusplus | 946 #ifdef __cplusplus |
| 951 } | 947 } |
| 952 #endif | 948 #endif |
| 953 | 949 |
| 954 #endif // PUBLIC_FPDFVIEW_H_ | 950 #endif // PUBLIC_FPDFVIEW_H_ |
| OLD | NEW |