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 _FXFA_NODEACC_H | 7 #ifndef _FXFA_NODEACC_H |
8 #define _FXFA_NODEACC_H | 8 #define _FXFA_NODEACC_H |
9 class CXFA_Node; | 9 class CXFA_Node; |
10 class IFX_Locale; | 10 class IFX_Locale; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 inline FX_BOOL XFA_IsSpace(FX_WCHAR c) | 52 inline FX_BOOL XFA_IsSpace(FX_WCHAR c) |
53 { | 53 { |
54 return (c == 0x20) || (c == 0x0d) || (c == 0x0a) || (c == 0x09); | 54 return (c == 0x20) || (c == 0x0d) || (c == 0x0a) || (c == 0x09); |
55 } | 55 } |
56 inline FX_BOOL XFA_IsDigit(FX_WCHAR c) | 56 inline FX_BOOL XFA_IsDigit(FX_WCHAR c) |
57 { | 57 { |
58 return c >= '0' && c <= '9'; | 58 return c >= '0' && c <= '9'; |
59 } | 59 } |
60 typedef CFX_ArrayTemplate<CXFA_Node*> CXFA_NodeArray; | 60 typedef CFX_ArrayTemplate<CXFA_Node*> CXFA_NodeArray; |
61 typedef CFX_ArrayTemplate<CXFA_Object*> CXFA_ObjArray; | 61 typedef CFX_ArrayTemplate<CXFA_Object*> CXFA_ObjArray; |
62 class CXFA_Data : public CFX_Object | 62 class CXFA_Data |
63 { | 63 { |
64 public: | 64 public: |
65 CXFA_Data(CXFA_Node* pNode) : m_pNode(pNode) {} | 65 CXFA_Data(CXFA_Node* pNode) : m_pNode(pNode) {} |
66 operator CXFA_Node*() const | 66 operator CXFA_Node*() const |
67 { | 67 { |
68 return m_pNode; | 68 return m_pNode; |
69 } | 69 } |
70 CXFA_Node* GetNode() | 70 CXFA_Node* GetNode() |
71 { | 71 { |
72 return m_pNode; | 72 return m_pNode; |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 }; | 922 }; |
923 class CXFA_Manifest : public CXFA_Data | 923 class CXFA_Manifest : public CXFA_Data |
924 { | 924 { |
925 public: | 925 public: |
926 CXFA_Manifest(CXFA_Node* pNode) : CXFA_Data(pNode) {} | 926 CXFA_Manifest(CXFA_Node* pNode) : CXFA_Data(pNode) {} |
927 XFA_ATTRIBUTEENUM GetAction(); | 927 XFA_ATTRIBUTEENUM GetAction(); |
928 FX_INT32 CountReives(); | 928 FX_INT32 CountReives(); |
929 CFX_WideString GetRefContent(FX_INT32 nIndex); | 929 CFX_WideString GetRefContent(FX_INT32 nIndex); |
930 }; | 930 }; |
931 #endif | 931 #endif |
OLD | NEW |