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_FXFA_PARSER_XFA_DOCLAYOUT_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_DOCLAYOUT_H_ |
8 #define XFA_FXFA_PARSER_XFA_DOCLAYOUT_H_ | 8 #define XFA_FXFA_PARSER_XFA_DOCLAYOUT_H_ |
9 | 9 |
10 #include "xfa/fxfa/parser/xfa_document.h" | 10 #include "xfa/fxfa/parser/xfa_document.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 CXFA_ContainerLayoutItem(CXFA_Node* pNode); | 56 CXFA_ContainerLayoutItem(CXFA_Node* pNode); |
57 | 57 |
58 CXFA_LayoutProcessor* GetLayout() const; | 58 CXFA_LayoutProcessor* GetLayout() const; |
59 int32_t GetPageIndex() const; | 59 int32_t GetPageIndex() const; |
60 void GetPageSize(CFX_SizeF& size) const; | 60 void GetPageSize(CFX_SizeF& size) const; |
61 CXFA_Node* GetMasterPage() const; | 61 CXFA_Node* GetMasterPage() const; |
62 | 62 |
63 CXFA_Node* m_pOldSubform; | 63 CXFA_Node* m_pOldSubform; |
64 }; | 64 }; |
65 | 65 |
66 #define XFA_WIDGETSTATUS_Access 0x80000000 | |
67 #define XFA_WIDGETSTATUS_Disabled 0x40000000 | |
68 #define XFA_WIDGETSTATUS_RectCached 0x20000000 | |
69 #define XFA_WIDGETSTATUS_ButtonDown 0x10000000 | |
70 #define XFA_WIDGETSTATUS_Highlight 0x08000000 | |
71 #define XFA_WIDGETSTATUS_TextEditValueChanged 0x04000000 | |
72 | |
73 class CXFA_ContentLayoutItem : public CXFA_LayoutItem { | 66 class CXFA_ContentLayoutItem : public CXFA_LayoutItem { |
74 public: | 67 public: |
75 CXFA_ContentLayoutItem(CXFA_Node* pNode); | 68 CXFA_ContentLayoutItem(CXFA_Node* pNode); |
76 virtual ~CXFA_ContentLayoutItem(); | 69 virtual ~CXFA_ContentLayoutItem(); |
77 | 70 |
78 CXFA_ContentLayoutItem* m_pPrev; | 71 CXFA_ContentLayoutItem* m_pPrev; |
79 CXFA_ContentLayoutItem* m_pNext; | 72 CXFA_ContentLayoutItem* m_pNext; |
80 CFX_PointF m_sPos; | 73 CFX_PointF m_sPos; |
81 CFX_SizeF m_sSize; | 74 CFX_SizeF m_sSize; |
82 uint32_t m_dwStatus; | 75 uint32_t m_dwStatus; |
(...skipping 21 matching lines...) Expand all Loading... |
104 } | 97 } |
105 static inline CXFA_LayoutItem* GetNextSibling(CXFA_LayoutItem* pLayoutItem) { | 98 static inline CXFA_LayoutItem* GetNextSibling(CXFA_LayoutItem* pLayoutItem) { |
106 return pLayoutItem->m_pNextSibling; | 99 return pLayoutItem->m_pNextSibling; |
107 } | 100 } |
108 static inline CXFA_LayoutItem* GetParent(CXFA_LayoutItem* pLayoutItem) { | 101 static inline CXFA_LayoutItem* GetParent(CXFA_LayoutItem* pLayoutItem) { |
109 return pLayoutItem->m_pParent; | 102 return pLayoutItem->m_pParent; |
110 } | 103 } |
111 }; | 104 }; |
112 | 105 |
113 #endif // XFA_FXFA_PARSER_XFA_DOCLAYOUT_H_ | 106 #endif // XFA_FXFA_PARSER_XFA_DOCLAYOUT_H_ |
OLD | NEW |