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 XFA_INCLUDE_FXFA_FXFA_OBJECTACC_H_ | 7 #ifndef XFA_INCLUDE_FXFA_FXFA_OBJECTACC_H_ |
8 #define XFA_INCLUDE_FXFA_FXFA_OBJECTACC_H_ | 8 #define XFA_INCLUDE_FXFA_FXFA_OBJECTACC_H_ |
9 | 9 |
10 #include "core/include/fxge/fx_dib.h" // For FX_ARGB. | 10 #include "core/include/fxge/fx_dib.h" |
| 11 #include "xfa/src/fxfa/src/common/xfa_object.h" |
11 | 12 |
12 class CXFA_Node; | 13 class CXFA_Node; |
13 class IFX_Locale; | 14 class IFX_Locale; |
14 class CXFA_Data; | |
15 class CXFA_Font; | |
16 class CXFA_Fill; | |
17 class CXFA_Margin; | 15 class CXFA_Margin; |
18 class CXFA_Caption; | 16 class CXFA_Caption; |
19 class CXFA_Para; | 17 class CXFA_Para; |
20 class CXFA_Event; | 18 class CXFA_Event; |
21 class CXFA_Script; | 19 class CXFA_Script; |
22 class CXFA_Value; | 20 class CXFA_Value; |
23 class CXFA_Calculate; | 21 class CXFA_Calculate; |
24 class CXFA_Line; | 22 class CXFA_Line; |
25 class CXFA_Text; | 23 class CXFA_Text; |
26 class CXFA_ExData; | 24 class CXFA_ExData; |
(...skipping 25 matching lines...) Expand all Loading... |
52 class CXFA_EncryptionMethods; | 50 class CXFA_EncryptionMethods; |
53 class CXFA_Reasons; | 51 class CXFA_Reasons; |
54 class CXFA_Manifest; | 52 class CXFA_Manifest; |
55 | 53 |
56 inline FX_BOOL XFA_IsSpace(FX_WCHAR c) { | 54 inline FX_BOOL XFA_IsSpace(FX_WCHAR c) { |
57 return (c == 0x20) || (c == 0x0d) || (c == 0x0a) || (c == 0x09); | 55 return (c == 0x20) || (c == 0x0d) || (c == 0x0a) || (c == 0x09); |
58 } | 56 } |
59 inline FX_BOOL XFA_IsDigit(FX_WCHAR c) { | 57 inline FX_BOOL XFA_IsDigit(FX_WCHAR c) { |
60 return c >= '0' && c <= '9'; | 58 return c >= '0' && c <= '9'; |
61 } | 59 } |
62 typedef CFX_ArrayTemplate<CXFA_Node*> CXFA_NodeArray; | |
63 typedef CFX_ArrayTemplate<CXFA_Object*> CXFA_ObjArray; | 60 typedef CFX_ArrayTemplate<CXFA_Object*> CXFA_ObjArray; |
64 | 61 |
65 class CXFA_Data { | 62 class CXFA_Data { |
66 public: | 63 public: |
67 explicit CXFA_Data(CXFA_Node* pNode) : m_pNode(pNode) {} | 64 explicit CXFA_Data(CXFA_Node* pNode) : m_pNode(pNode) {} |
68 | 65 |
69 operator bool() const { return !!m_pNode; } | 66 operator bool() const { return !!m_pNode; } |
70 CXFA_Node* GetNode() const { return m_pNode; } | 67 CXFA_Node* GetNode() const { return m_pNode; } |
71 XFA_ELEMENT GetClassID() const; | 68 XFA_ELEMENT GetClassID() const; |
72 | 69 |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 class CXFA_Manifest : public CXFA_Data { | 844 class CXFA_Manifest : public CXFA_Data { |
848 public: | 845 public: |
849 explicit CXFA_Manifest(CXFA_Node* pNode) : CXFA_Data(pNode) {} | 846 explicit CXFA_Manifest(CXFA_Node* pNode) : CXFA_Data(pNode) {} |
850 | 847 |
851 XFA_ATTRIBUTEENUM GetAction(); | 848 XFA_ATTRIBUTEENUM GetAction(); |
852 int32_t CountReives(); | 849 int32_t CountReives(); |
853 CFX_WideString GetRefContent(int32_t nIndex); | 850 CFX_WideString GetRefContent(int32_t nIndex); |
854 }; | 851 }; |
855 | 852 |
856 #endif // XFA_INCLUDE_FXFA_FXFA_OBJECTACC_H_ | 853 #endif // XFA_INCLUDE_FXFA_FXFA_OBJECTACC_H_ |
OLD | NEW |