OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_FXFA_PARSER_CXFA_DATA_H_ | |
8 #define XFA_FXFA_PARSER_CXFA_DATA_H_ | |
9 | |
10 #include "core/fxcrt/include/fx_system.h" | |
11 #include "core/include/fxge/fx_dib.h" | |
12 #include "xfa/include/fxfa/fxfa_basic.h" | |
13 | |
14 class CXFA_Node; | |
15 | |
16 class CXFA_Data { | |
17 public: | |
18 static FX_ARGB ToColor(const CFX_WideStringC& wsValue); | |
dsinclair
2016/04/06 14:56:03
This seemed like the best place for the XFA_WStrin
| |
19 | |
20 explicit CXFA_Data(CXFA_Node* pNode) : m_pNode(pNode) {} | |
21 | |
22 operator bool() const { return !!m_pNode; } | |
23 CXFA_Node* GetNode() const { return m_pNode; } | |
24 XFA_ELEMENT GetClassID() const; | |
25 | |
26 protected: | |
27 FX_BOOL TryMeasure(XFA_ATTRIBUTE eAttr, | |
28 FX_FLOAT& fValue, | |
29 FX_BOOL bUseDefault = FALSE) const; | |
30 FX_BOOL SetMeasure(XFA_ATTRIBUTE eAttr, FX_FLOAT fValue); | |
31 | |
32 CXFA_Node* m_pNode; | |
33 }; | |
34 | |
35 #endif // XFA_FXFA_PARSER_CXFA_DATA_H_ | |
OLD | NEW |