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_LAYOUT_ITEMLAYOUT_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ |
8 #define XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ | 8 #define XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ |
9 | 9 |
10 #include <float.h> | 10 #include <float.h> |
11 | 11 |
12 #include <list> | 12 #include <list> |
13 #include <map> | 13 #include <map> |
14 | 14 |
15 #include "core/fxcrt/include/fx_basic.h" | 15 #include "core/fxcrt/include/fx_basic.h" |
16 #include "xfa/fxfa/parser/xfa_doclayout.h" | 16 #include "xfa/fxfa/include/fxfa_basic.h" |
17 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" | |
18 | 17 |
19 #define XFA_LAYOUT_INVALIDNODE ((CXFA_Node*)(intptr_t)-1) | 18 #define XFA_LAYOUT_INVALIDNODE ((CXFA_Node*)(intptr_t)-1) |
20 #define XFA_LAYOUT_FLOAT_PERCISION (0.0005f) | 19 #define XFA_LAYOUT_FLOAT_PERCISION (0.0005f) |
21 #define XFA_LAYOUT_FLOAT_MAX FLT_MAX | 20 #define XFA_LAYOUT_FLOAT_MAX FLT_MAX |
22 | 21 |
23 class CXFA_ContainerLayoutItem; | 22 class CXFA_ContainerLayoutItem; |
24 class CXFA_ContentLayoutItem; | 23 class CXFA_ContentLayoutItem; |
25 class CXFA_ItemLayoutProcessor; | 24 class CXFA_ItemLayoutProcessor; |
26 class CXFA_LayoutPageMgr; | 25 class CXFA_LayoutPageMgr; |
| 26 class CXFA_LayoutProcessor; |
27 class CXFA_Node; | 27 class CXFA_Node; |
28 | 28 |
29 enum XFA_ItemLayoutProcessorResult { | 29 enum XFA_ItemLayoutProcessorResult { |
30 XFA_ItemLayoutProcessorResult_Done, | 30 XFA_ItemLayoutProcessorResult_Done, |
31 XFA_ItemLayoutProcessorResult_PageFullBreak, | 31 XFA_ItemLayoutProcessorResult_PageFullBreak, |
32 XFA_ItemLayoutProcessorResult_RowFullBreak, | 32 XFA_ItemLayoutProcessorResult_RowFullBreak, |
33 XFA_ItemLayoutProcessorResult_ManualBreak, | 33 XFA_ItemLayoutProcessorResult_ManualBreak, |
34 }; | 34 }; |
35 | 35 |
36 enum XFA_ItemLayoutProcessorStages { | 36 enum XFA_ItemLayoutProcessorStages { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 FX_FLOAT m_fLastRowWidth; | 188 FX_FLOAT m_fLastRowWidth; |
189 FX_FLOAT m_fLastRowY; | 189 FX_FLOAT m_fLastRowY; |
190 FX_FLOAT m_fWidthLimite; | 190 FX_FLOAT m_fWidthLimite; |
191 FX_BOOL m_bUseInheriated; | 191 FX_BOOL m_bUseInheriated; |
192 XFA_ItemLayoutProcessorResult m_ePreProcessRs; | 192 XFA_ItemLayoutProcessorResult m_ePreProcessRs; |
193 FX_BOOL m_bHasAvailHeight; | 193 FX_BOOL m_bHasAvailHeight; |
194 }; | 194 }; |
195 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode); | 195 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode); |
196 | 196 |
197 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ | 197 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ |
OLD | NEW |