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 _FX_SAX_ | 7 #ifndef XFA_SRC_FGAS_INCLUDE_FX_SAX_H_ |
8 #define _FX_SAX_ | 8 #define XFA_SRC_FGAS_INCLUDE_FX_SAX_H_ |
| 9 |
9 class IFX_SAXReaderHandler; | 10 class IFX_SAXReaderHandler; |
10 class IFX_SAXReader; | 11 class IFX_SAXReader; |
11 #define FX_SAXPARSEMODE_NotConvert_amp 0x0001 | 12 #define FX_SAXPARSEMODE_NotConvert_amp 0x0001 |
12 #define FX_SAXPARSEMODE_NotConvert_lt 0x0002 | 13 #define FX_SAXPARSEMODE_NotConvert_lt 0x0002 |
13 #define FX_SAXPARSEMODE_NotConvert_gt 0x0004 | 14 #define FX_SAXPARSEMODE_NotConvert_gt 0x0004 |
14 #define FX_SAXPARSEMODE_NotConvert_apos 0x0008 | 15 #define FX_SAXPARSEMODE_NotConvert_apos 0x0008 |
15 #define FX_SAXPARSEMODE_NotConvert_quot 0x0010 | 16 #define FX_SAXPARSEMODE_NotConvert_quot 0x0010 |
16 #define FX_SAXPARSEMODE_NotConvert_sharp 0x0020 | 17 #define FX_SAXPARSEMODE_NotConvert_sharp 0x0020 |
17 #define FX_SAXPARSEMODE_NotSkipSpace 0x0100 | 18 #define FX_SAXPARSEMODE_NotSkipSpace 0x0100 |
18 enum FX_SAXNODE { | 19 enum FX_SAXNODE { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void Release() = 0; | 54 virtual void Release() = 0; |
54 virtual int32_t StartParse(IFX_FileRead* pFile, | 55 virtual int32_t StartParse(IFX_FileRead* pFile, |
55 FX_DWORD dwStart = 0, | 56 FX_DWORD dwStart = 0, |
56 FX_DWORD dwLen = -1, | 57 FX_DWORD dwLen = -1, |
57 FX_DWORD dwParseMode = 0) = 0; | 58 FX_DWORD dwParseMode = 0) = 0; |
58 virtual int32_t ContinueParse(IFX_Pause* pPause = NULL) = 0; | 59 virtual int32_t ContinueParse(IFX_Pause* pPause = NULL) = 0; |
59 virtual void SkipCurrentNode() = 0; | 60 virtual void SkipCurrentNode() = 0; |
60 virtual void SetHandler(IFX_SAXReaderHandler* pHandler) = 0; | 61 virtual void SetHandler(IFX_SAXReaderHandler* pHandler) = 0; |
61 }; | 62 }; |
62 IFX_SAXReader* FX_SAXReader_Create(); | 63 IFX_SAXReader* FX_SAXReader_Create(); |
63 #endif | 64 |
| 65 #endif // XFA_SRC_FGAS_INCLUDE_FX_SAX_H_ |
OLD | NEW |