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_PARSER_ | 7 #ifndef _FPDF_PARSER_ |
8 #define _FPDF_PARSER_ | 8 #define _FPDF_PARSER_ |
9 #ifndef _FX_BASIC_H_ | 9 #ifndef _FX_BASIC_H_ |
10 #include "../fxcrt/fx_ext.h" | 10 #include "../fxcrt/fx_ext.h" |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 | 786 |
787 FX_FLOAT y; | 787 FX_FLOAT y; |
788 }; | 788 }; |
789 | 789 |
790 #define CPDF_Rect CFX_FloatRect | 790 #define CPDF_Rect CFX_FloatRect |
791 #define CPDF_Matrix CFX_AffineMatrix | 791 #define CPDF_Matrix CFX_AffineMatrix |
792 CFX_ByteString PDF_NameDecode(FX_BSTR orig); | 792 CFX_ByteString PDF_NameDecode(FX_BSTR orig); |
793 CFX_ByteString PDF_NameDecode(const CFX_ByteString& orig); | 793 CFX_ByteString PDF_NameDecode(const CFX_ByteString& orig); |
794 CFX_ByteString PDF_NameEncode(const CFX_ByteString& orig); | 794 CFX_ByteString PDF_NameEncode(const CFX_ByteString& orig); |
795 CFX_ByteString PDF_EncodeString(const CFX_ByteString& src, FX_BOOL bHex = FALSE)
; | 795 CFX_ByteString PDF_EncodeString(const CFX_ByteString& src, FX_BOOL bHex = FALSE)
; |
796 CFX_WideString PDF_DecodeText(const CFX_ByteString& str, CFX_CharMap* pCharMap =
NULL); | |
797 CFX_WideString PDF_DecodeText(FX_LPCBYTE pData, FX_DWORD size, CFX_CharMap* pCha
rMap = NULL); | 796 CFX_WideString PDF_DecodeText(FX_LPCBYTE pData, FX_DWORD size, CFX_CharMap* pCha
rMap = NULL); |
| 797 inline CFX_WideString PDF_DecodeText(const CFX_ByteString& bstr, CFX_CharMap* pC
harMap = NULL) { |
| 798 return PDF_DecodeText((FX_LPCBYTE)bstr.c_str(), bstr.GetLength(), pCharMap); |
| 799 } |
798 CFX_ByteString PDF_EncodeText(FX_LPCWSTR pString, int len = -1, CFX_CharMap* pCh
arMap = NULL); | 800 CFX_ByteString PDF_EncodeText(FX_LPCWSTR pString, int len = -1, CFX_CharMap* pCh
arMap = NULL); |
| 801 inline CFX_ByteString PDF_EncodeText(const CFX_WideString& str, CFX_CharMap* pCh
arMap = NULL) { |
| 802 return PDF_EncodeText(str.c_str(), str.GetLength(), pCharMap); |
| 803 } |
799 FX_FLOAT PDF_ClipFloat(FX_FLOAT f); | 804 FX_FLOAT PDF_ClipFloat(FX_FLOAT f); |
800 class CFDF_Document : public CPDF_IndirectObjects | 805 class CFDF_Document : public CPDF_IndirectObjects |
801 { | 806 { |
802 public: | 807 public: |
803 static CFDF_Document* CreateNewDoc(); | 808 static CFDF_Document* CreateNewDoc(); |
804 static CFDF_Document* ParseFile(IFX_FileRead *pFile, FX_BOOL bOwnFile = FALS
E); | 809 static CFDF_Document* ParseFile(IFX_FileRead *pFile, FX_BOOL bOwnFile = FALS
E); |
805 static CFDF_Document* ParseMemory(FX_LPCBYTE pData, FX_DWORD size); | 810 static CFDF_Document* ParseMemory(FX_LPCBYTE pData, FX_DWORD size); |
806 | 811 |
807 ~CFDF_Document(); | 812 ~CFDF_Document(); |
808 | 813 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 PDF_DATAAVAIL_PAGETREE, | 941 PDF_DATAAVAIL_PAGETREE, |
937 PDF_DATAAVAIL_PAGE, | 942 PDF_DATAAVAIL_PAGE, |
938 PDF_DATAAVAIL_PAGE_LATERLOAD, | 943 PDF_DATAAVAIL_PAGE_LATERLOAD, |
939 PDF_DATAAVAIL_RESOURCES, | 944 PDF_DATAAVAIL_RESOURCES, |
940 PDF_DATAAVAIL_DONE, | 945 PDF_DATAAVAIL_DONE, |
941 PDF_DATAAVAIL_ERROR, | 946 PDF_DATAAVAIL_ERROR, |
942 PDF_DATAAVAIL_LOADALLFILE, | 947 PDF_DATAAVAIL_LOADALLFILE, |
943 PDF_DATAAVAIL_TRAILER_APPEND | 948 PDF_DATAAVAIL_TRAILER_APPEND |
944 }; | 949 }; |
945 #endif | 950 #endif |
OLD | NEW |