| 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 | 14 |
| 14 #include "core/fxcrt/include/fx_basic.h" | 15 #include "core/fxcrt/include/fx_basic.h" |
| 15 #include "xfa/fxfa/parser/xfa_doclayout.h" | 16 #include "xfa/fxfa/parser/xfa_doclayout.h" |
| 16 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" | 17 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" |
| 17 | 18 |
| 18 #define XFA_LAYOUT_INVALIDNODE ((CXFA_Node*)(intptr_t)-1) | 19 #define XFA_LAYOUT_INVALIDNODE ((CXFA_Node*)(intptr_t)-1) |
| 19 #define XFA_LAYOUT_FLOAT_PERCISION (0.0005f) | 20 #define XFA_LAYOUT_FLOAT_PERCISION (0.0005f) |
| 20 #define XFA_LAYOUT_FLOAT_MAX FLT_MAX | 21 #define XFA_LAYOUT_FLOAT_MAX FLT_MAX |
| 21 | 22 |
| 22 class CXFA_ContainerLayoutItem; | 23 class CXFA_ContainerLayoutItem; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 CXFA_ContentLayoutItem* m_pOldLayoutItem; | 176 CXFA_ContentLayoutItem* m_pOldLayoutItem; |
| 176 CXFA_Node* m_pCurChildNode; | 177 CXFA_Node* m_pCurChildNode; |
| 177 CXFA_ItemLayoutProcessor* m_pCurChildPreprocessor; | 178 CXFA_ItemLayoutProcessor* m_pCurChildPreprocessor; |
| 178 XFA_ItemLayoutProcessorStages m_nCurChildNodeStage; | 179 XFA_ItemLayoutProcessorStages m_nCurChildNodeStage; |
| 179 FX_FLOAT m_fUsedSize; | 180 FX_FLOAT m_fUsedSize; |
| 180 CXFA_LayoutPageMgr* m_pPageMgr; | 181 CXFA_LayoutPageMgr* m_pPageMgr; |
| 181 std::list<CXFA_Node*> m_PendingNodes; | 182 std::list<CXFA_Node*> m_PendingNodes; |
| 182 FX_BOOL m_bBreakPending; | 183 FX_BOOL m_bBreakPending; |
| 183 CFX_ArrayTemplate<FX_FLOAT> m_rgSpecifiedColumnWidths; | 184 CFX_ArrayTemplate<FX_FLOAT> m_rgSpecifiedColumnWidths; |
| 184 CFX_ArrayTemplate<CXFA_ContentLayoutItem*> m_arrayKeepItems; | 185 CFX_ArrayTemplate<CXFA_ContentLayoutItem*> m_arrayKeepItems; |
| 185 CFX_MapPtrToPtr m_PendingNodesCount; | 186 std::map<CXFA_Node*, int32_t> m_PendingNodesCount; |
| 186 FX_FLOAT m_fLastRowWidth; | 187 FX_FLOAT m_fLastRowWidth; |
| 187 FX_FLOAT m_fLastRowY; | 188 FX_FLOAT m_fLastRowY; |
| 188 FX_FLOAT m_fWidthLimite; | 189 FX_FLOAT m_fWidthLimite; |
| 189 FX_BOOL m_bUseInheriated; | 190 FX_BOOL m_bUseInheriated; |
| 190 XFA_ItemLayoutProcessorResult m_ePreProcessRs; | 191 XFA_ItemLayoutProcessorResult m_ePreProcessRs; |
| 191 FX_BOOL m_bHasAvailHeight; | 192 FX_BOOL m_bHasAvailHeight; |
| 192 }; | 193 }; |
| 193 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode); | 194 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode); |
| 194 | 195 |
| 195 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ | 196 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ |
| OLD | NEW |