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" |
(...skipping 17 matching lines...) Expand all Loading... |
28 ~CXFA_LayoutPageMgr(); | 28 ~CXFA_LayoutPageMgr(); |
29 FX_BOOL InitLayoutPage(CXFA_Node* pFormNode); | 29 FX_BOOL InitLayoutPage(CXFA_Node* pFormNode); |
30 FX_BOOL PrepareFirstPage(CXFA_Node* pRootSubform); | 30 FX_BOOL PrepareFirstPage(CXFA_Node* pRootSubform); |
31 FX_FLOAT GetAvailHeight(); | 31 FX_FLOAT GetAvailHeight(); |
32 FX_BOOL GetNextAvailContentHeight(FX_FLOAT fChildHeight); | 32 FX_BOOL GetNextAvailContentHeight(FX_FLOAT fChildHeight); |
33 void SubmitContentItem(CXFA_ContentLayoutItem* pContentLayoutItem, | 33 void SubmitContentItem(CXFA_ContentLayoutItem* pContentLayoutItem, |
34 XFA_ItemLayoutProcessorResult eStatus); | 34 XFA_ItemLayoutProcessorResult eStatus); |
35 void FinishPaginatedPageSets(); | 35 void FinishPaginatedPageSets(); |
36 void SyncLayoutData(); | 36 void SyncLayoutData(); |
37 int32_t GetPageCount() const; | 37 int32_t GetPageCount() const; |
38 IXFA_LayoutPage* GetPage(int32_t index) const; | 38 CXFA_ContainerLayoutItem* GetPage(int32_t index) const; |
39 int32_t GetPageIndex(const IXFA_LayoutPage* pPage) const; | 39 int32_t GetPageIndex(const CXFA_ContainerLayoutItem* pPage) const; |
40 inline CXFA_ContainerLayoutItem* GetRootLayoutItem() const { | 40 inline CXFA_ContainerLayoutItem* GetRootLayoutItem() const { |
41 return m_pPageSetLayoutItemRoot; | 41 return m_pPageSetLayoutItemRoot; |
42 } | 42 } |
43 FX_BOOL ProcessBreakBeforeOrAfter(CXFA_Node* pBreakNode, | 43 FX_BOOL ProcessBreakBeforeOrAfter(CXFA_Node* pBreakNode, |
44 FX_BOOL bBefore, | 44 FX_BOOL bBefore, |
45 CXFA_Node*& pBreakLeaderNode, | 45 CXFA_Node*& pBreakLeaderNode, |
46 CXFA_Node*& pBreakTrailerNode, | 46 CXFA_Node*& pBreakTrailerNode, |
47 FX_BOOL& bCreatePage); | 47 FX_BOOL& bCreatePage); |
48 FX_BOOL ProcessOverflow(CXFA_Node* pFormNode, | 48 FX_BOOL ProcessOverflow(CXFA_Node* pFormNode, |
49 CXFA_Node*& pLeaderNode, | 49 CXFA_Node*& pLeaderNode, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 CXFA_Node* m_pCurPageArea; | 143 CXFA_Node* m_pCurPageArea; |
144 int32_t m_nAvailPages; | 144 int32_t m_nAvailPages; |
145 int32_t m_nCurPageCount; | 145 int32_t m_nCurPageCount; |
146 XFA_ATTRIBUTEENUM m_ePageSetMode; | 146 XFA_ATTRIBUTEENUM m_ePageSetMode; |
147 FX_BOOL m_bCreateOverFlowPage; | 147 FX_BOOL m_bCreateOverFlowPage; |
148 CFX_MapPtrTemplate<CXFA_Node*, int32_t> m_pPageSetMap; | 148 CFX_MapPtrTemplate<CXFA_Node*, int32_t> m_pPageSetMap; |
149 CFX_ArrayTemplate<CXFA_ContainerLayoutItem*> m_PageArray; | 149 CFX_ArrayTemplate<CXFA_ContainerLayoutItem*> m_PageArray; |
150 }; | 150 }; |
151 | 151 |
152 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_PAGEMGR_NEW_H_ | 152 #endif // XFA_FXFA_PARSER_XFA_LAYOUT_PAGEMGR_NEW_H_ |
OLD | NEW |