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 CORE_FXCRT_INCLUDE_FX_XML_H_ | 7 #ifndef CORE_FXCRT_FX_XML_H_ |
8 #define CORE_FXCRT_INCLUDE_FX_XML_H_ | 8 #define CORE_FXCRT_FX_XML_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "core/fxcrt/include/fx_basic.h" | 13 #include "core/fxcrt/fx_basic.h" |
14 | 14 |
15 class CXML_AttrItem { | 15 class CXML_AttrItem { |
16 public: | 16 public: |
17 bool Matches(const CFX_ByteString& space, const CFX_ByteString& name) const; | 17 bool Matches(const CFX_ByteString& space, const CFX_ByteString& name) const; |
18 | 18 |
19 CFX_ByteString m_QSpaceName; | 19 CFX_ByteString m_QSpaceName; |
20 CFX_ByteString m_AttrName; | 20 CFX_ByteString m_AttrName; |
21 CFX_WideString m_Value; | 21 CFX_WideString m_Value; |
22 }; | 22 }; |
23 | 23 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 CXML_Element* m_pParent; | 163 CXML_Element* m_pParent; |
164 CFX_ByteString m_QSpaceName; | 164 CFX_ByteString m_QSpaceName; |
165 CFX_ByteString m_TagName; | 165 CFX_ByteString m_TagName; |
166 CXML_AttrMap m_AttrMap; | 166 CXML_AttrMap m_AttrMap; |
167 std::vector<ChildRecord> m_Children; | 167 std::vector<ChildRecord> m_Children; |
168 | 168 |
169 friend class CXML_Parser; | 169 friend class CXML_Parser; |
170 friend class CXML_Composer; | 170 friend class CXML_Composer; |
171 }; | 171 }; |
172 | 172 |
173 #endif // CORE_FXCRT_INCLUDE_FX_XML_H_ | 173 #endif // CORE_FXCRT_FX_XML_H_ |
OLD | NEW |