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> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 CFX_ArrayTemplate<FX_FLOAT>* m_prgSpecifiedColumnWidths; | 56 CFX_ArrayTemplate<FX_FLOAT>* m_prgSpecifiedColumnWidths; |
57 FX_FLOAT m_fCurColumnWidth; | 57 FX_FLOAT m_fCurColumnWidth; |
58 FX_BOOL m_bCurColumnWidthAvaiable; | 58 FX_BOOL m_bCurColumnWidthAvaiable; |
59 CXFA_ItemLayoutProcessor* m_pOverflowProcessor; | 59 CXFA_ItemLayoutProcessor* m_pOverflowProcessor; |
60 CXFA_Node* m_pOverflowNode; | 60 CXFA_Node* m_pOverflowNode; |
61 }; | 61 }; |
62 | 62 |
63 class CXFA_ItemLayoutProcessor { | 63 class CXFA_ItemLayoutProcessor { |
64 public: | 64 public: |
65 CXFA_ItemLayoutProcessor(CXFA_Node* pNode, CXFA_LayoutPageMgr* pPageMgr); | 65 CXFA_ItemLayoutProcessor(CXFA_Node* pNode, CXFA_LayoutPageMgr* pPageMgr); |
| 66 ~CXFA_ItemLayoutProcessor(); |
66 | 67 |
67 XFA_ItemLayoutProcessorResult DoLayout( | 68 XFA_ItemLayoutProcessorResult DoLayout( |
68 FX_BOOL bUseBreakControl, | 69 FX_BOOL bUseBreakControl, |
69 FX_FLOAT fHeightLimit, | 70 FX_FLOAT fHeightLimit, |
70 FX_FLOAT fRealHeight = XFA_LAYOUT_FLOAT_MAX, | 71 FX_FLOAT fRealHeight = XFA_LAYOUT_FLOAT_MAX, |
71 CXFA_LayoutContext* pContext = NULL); | 72 CXFA_LayoutContext* pContext = NULL); |
72 | 73 |
73 void GetCurrentComponentPos(FX_FLOAT& fAbsoluteX, FX_FLOAT& fAbsoluteY); | 74 void GetCurrentComponentPos(FX_FLOAT& fAbsoluteX, FX_FLOAT& fAbsoluteY); |
74 | 75 |
75 void GetCurrentComponentSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); | 76 void GetCurrentComponentSize(FX_FLOAT& fWidth, FX_FLOAT& fHeight); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 FX_FLOAT m_fLastRowWidth; | 188 FX_FLOAT m_fLastRowWidth; |
188 FX_FLOAT m_fLastRowY; | 189 FX_FLOAT m_fLastRowY; |
189 FX_FLOAT m_fWidthLimite; | 190 FX_FLOAT m_fWidthLimite; |
190 FX_BOOL m_bUseInheriated; | 191 FX_BOOL m_bUseInheriated; |
191 XFA_ItemLayoutProcessorResult m_ePreProcessRs; | 192 XFA_ItemLayoutProcessorResult m_ePreProcessRs; |
192 FX_BOOL m_bHasAvailHeight; | 193 FX_BOOL m_bHasAvailHeight; |
193 }; | 194 }; |
194 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode); | 195 FX_BOOL XFA_ItemLayoutProcessor_IsTakingSpace(CXFA_Node* pNode); |
195 | 196 |
196 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ | 197 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_ITEMLAYOUT_H_ |
OLD | NEW |