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 #include "xfa/fde/xml/cfx_saxreader.h" | 7 #include "xfa/fde/xml/cfx_saxreader.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "xfa/fxfa/include/xfa_checksum.h" | 11 #include "xfa/fxfa/xfa_checksum.h" |
12 | 12 |
13 enum class CFX_SaxMode { | 13 enum class CFX_SaxMode { |
14 Text = 0, | 14 Text = 0, |
15 NodeStart, | 15 NodeStart, |
16 DeclOrComment, | 16 DeclOrComment, |
17 DeclNode, | 17 DeclNode, |
18 Comment, | 18 Comment, |
19 CommentContent, | 19 CommentContent, |
20 TagName, | 20 TagName, |
21 TagAttributeName, | 21 TagAttributeName, |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 void CFX_SAXReader::SkipCurrentNode() { | 708 void CFX_SAXReader::SkipCurrentNode() { |
709 if (!m_pCurItem) | 709 if (!m_pCurItem) |
710 return; | 710 return; |
711 | 711 |
712 m_pCurItem->m_bSkip = TRUE; | 712 m_pCurItem->m_bSkip = TRUE; |
713 } | 713 } |
714 | 714 |
715 void CFX_SAXReader::SetHandler(CXFA_SAXReaderHandler* pHandler) { | 715 void CFX_SAXReader::SetHandler(CXFA_SAXReaderHandler* pHandler) { |
716 m_pHandler = pHandler; | 716 m_pHandler = pHandler; |
717 } | 717 } |
OLD | NEW |