| 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_PAGEMGR_NEW_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_LAYOUT_PAGEMGR_NEW_H_ |
| 8 #define XFA_FXFA_PARSER_XFA_LAYOUT_PAGEMGR_NEW_H_ | 8 #define XFA_FXFA_PARSER_XFA_LAYOUT_PAGEMGR_NEW_H_ |
| 9 | 9 |
| 10 #include "xfa/fxfa/parser/xfa_doclayout.h" | 10 #include "xfa/fxfa/parser/xfa_doclayout.h" |
| 11 #include "xfa/fxfa/parser/xfa_layout_itemlayout.h" | 11 #include "xfa/fxfa/parser/xfa_layout_itemlayout.h" |
| 12 | 12 |
| 13 class CXFA_ContainerRecord { | 13 class CXFA_ContainerRecord { |
| 14 public: | 14 public: |
| 15 CXFA_ContainerRecord(CXFA_ContainerLayoutItem* pPageSet = NULL, | 15 CXFA_ContainerRecord(CXFA_ContainerLayoutItem* pPageSet = NULL, |
| 16 CXFA_ContainerLayoutItem* pPageArea = NULL, | 16 CXFA_ContainerLayoutItem* pPageArea = NULL, |
| 17 CXFA_ContainerLayoutItem* pContentArea = NULL) | 17 CXFA_ContainerLayoutItem* pContentArea = NULL) |
| 18 : pCurPageSet(pPageSet), | 18 : pCurPageSet(pPageSet), |
| 19 pCurPageArea(pPageArea), | 19 pCurPageArea(pPageArea), |
| 20 pCurContentArea(pContentArea) {} | 20 pCurContentArea(pContentArea) {} |
| 21 CXFA_ContainerLayoutItem* pCurPageSet; | 21 CXFA_ContainerLayoutItem* pCurPageSet; |
| 22 CXFA_ContainerLayoutItem* pCurPageArea; | 22 CXFA_ContainerLayoutItem* pCurPageArea; |
| 23 CXFA_ContainerLayoutItem* pCurContentArea; | 23 CXFA_ContainerLayoutItem* pCurContentArea; |
| 24 }; | 24 }; |
| 25 |
| 25 class CXFA_LayoutPageMgr { | 26 class CXFA_LayoutPageMgr { |
| 26 public: | 27 public: |
| 27 CXFA_LayoutPageMgr(CXFA_LayoutProcessor* pLayoutProcessor); | 28 CXFA_LayoutPageMgr(CXFA_LayoutProcessor* pLayoutProcessor); |
| 28 ~CXFA_LayoutPageMgr(); | 29 ~CXFA_LayoutPageMgr(); |
| 30 |
| 29 FX_BOOL InitLayoutPage(CXFA_Node* pFormNode); | 31 FX_BOOL InitLayoutPage(CXFA_Node* pFormNode); |
| 30 FX_BOOL PrepareFirstPage(CXFA_Node* pRootSubform); | 32 FX_BOOL PrepareFirstPage(CXFA_Node* pRootSubform); |
| 31 FX_FLOAT GetAvailHeight(); | 33 FX_FLOAT GetAvailHeight(); |
| 32 FX_BOOL GetNextAvailContentHeight(FX_FLOAT fChildHeight); | 34 FX_BOOL GetNextAvailContentHeight(FX_FLOAT fChildHeight); |
| 33 void SubmitContentItem(CXFA_ContentLayoutItem* pContentLayoutItem, | 35 void SubmitContentItem(CXFA_ContentLayoutItem* pContentLayoutItem, |
| 34 XFA_ItemLayoutProcessorResult eStatus); | 36 XFA_ItemLayoutProcessorResult eStatus); |
| 35 void FinishPaginatedPageSets(); | 37 void FinishPaginatedPageSets(); |
| 36 void SyncLayoutData(); | 38 void SyncLayoutData(); |
| 37 int32_t GetPageCount() const; | 39 int32_t GetPageCount() const; |
| 38 CXFA_ContainerLayoutItem* GetPage(int32_t index) const; | 40 CXFA_ContainerLayoutItem* GetPage(int32_t index) const; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 CXFA_Node* m_pCurPageArea; | 145 CXFA_Node* m_pCurPageArea; |
| 144 int32_t m_nAvailPages; | 146 int32_t m_nAvailPages; |
| 145 int32_t m_nCurPageCount; | 147 int32_t m_nCurPageCount; |
| 146 XFA_ATTRIBUTEENUM m_ePageSetMode; | 148 XFA_ATTRIBUTEENUM m_ePageSetMode; |
| 147 FX_BOOL m_bCreateOverFlowPage; | 149 FX_BOOL m_bCreateOverFlowPage; |
| 148 CFX_MapPtrTemplate<CXFA_Node*, int32_t> m_pPageSetMap; | 150 CFX_MapPtrTemplate<CXFA_Node*, int32_t> m_pPageSetMap; |
| 149 CFX_ArrayTemplate<CXFA_ContainerLayoutItem*> m_PageArray; | 151 CFX_ArrayTemplate<CXFA_ContainerLayoutItem*> m_PageArray; |
| 150 }; | 152 }; |
| 151 | 153 |
| 152 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_PAGEMGR_NEW_H_ | 154 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_PAGEMGR_NEW_H_ |
| OLD | NEW |