Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: xfa/fxfa/parser/cxfa_layoutpagemgr.h

Issue 2612923002: Remove CFX_MapPtrToPtr from xfa/fxfa. (Closed)
Patch Set: endless loop Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/parser/cxfa_document.cpp ('k') | xfa/fxfa/parser/cxfa_layoutpagemgr.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CXFA_LAYOUTPAGEMGR_H_ 7 #ifndef XFA_FXFA_PARSER_CXFA_LAYOUTPAGEMGR_H_
8 #define XFA_FXFA_PARSER_CXFA_LAYOUTPAGEMGR_H_ 8 #define XFA_FXFA_PARSER_CXFA_LAYOUTPAGEMGR_H_
9 9
10 #include <iterator> 10 #include <iterator>
11 #include <list> 11 #include <list>
12 #include <map>
12 13
13 #include "xfa/fxfa/parser/xfa_layout_itemlayout.h" 14 #include "xfa/fxfa/parser/xfa_layout_itemlayout.h"
14 15
15 class CXFA_ContainerRecord; 16 class CXFA_ContainerRecord;
16 class CXFA_LayoutItem; 17 class CXFA_LayoutItem;
17 18
18 class CXFA_LayoutPageMgr { 19 class CXFA_LayoutPageMgr {
19 public: 20 public:
20 explicit CXFA_LayoutPageMgr(CXFA_LayoutProcessor* pLayoutProcessor); 21 explicit CXFA_LayoutPageMgr(CXFA_LayoutProcessor* pLayoutProcessor);
21 ~CXFA_LayoutPageMgr(); 22 ~CXFA_LayoutPageMgr();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 bool bQuery = false, 113 bool bQuery = false,
113 XFA_ATTRIBUTEENUM ePreferredPosition = XFA_ATTRIBUTEENUM_First); 114 XFA_ATTRIBUTEENUM ePreferredPosition = XFA_ATTRIBUTEENUM_First);
114 bool MatchPageAreaOddOrEven(CXFA_Node* pPageArea, bool bLastMatch); 115 bool MatchPageAreaOddOrEven(CXFA_Node* pPageArea, bool bLastMatch);
115 CXFA_Node* GetNextAvailPageArea(CXFA_Node* pTargetPageArea, 116 CXFA_Node* GetNextAvailPageArea(CXFA_Node* pTargetPageArea,
116 CXFA_Node* pTargetContentArea = nullptr, 117 CXFA_Node* pTargetContentArea = nullptr,
117 bool bNewPage = false, 118 bool bNewPage = false,
118 bool bQuery = false); 119 bool bQuery = false);
119 bool GetNextContentArea(CXFA_Node* pTargetContentArea); 120 bool GetNextContentArea(CXFA_Node* pTargetContentArea);
120 void InitPageSetMap(); 121 void InitPageSetMap();
121 void ProcessLastPageSet(); 122 void ProcessLastPageSet();
122 inline bool IsPageSetRootOrderedOccurrence() { 123 bool IsPageSetRootOrderedOccurrence() const {
123 return m_ePageSetMode == XFA_ATTRIBUTEENUM_OrderedOccurrence; 124 return m_ePageSetMode == XFA_ATTRIBUTEENUM_OrderedOccurrence;
124 } 125 }
125 void ClearData(); 126 void ClearData();
126 void MergePageSetContents(); 127 void MergePageSetContents();
127 void LayoutPageSetContents(); 128 void LayoutPageSetContents();
128 void PrepareLayout(); 129 void PrepareLayout();
129 void SaveLayoutItem(CXFA_LayoutItem* pParentLayoutItem); 130 void SaveLayoutItem(CXFA_LayoutItem* pParentLayoutItem);
131
130 CXFA_LayoutProcessor* m_pLayoutProcessor; 132 CXFA_LayoutProcessor* m_pLayoutProcessor;
131 CXFA_Node* m_pTemplatePageSetRoot; 133 CXFA_Node* m_pTemplatePageSetRoot;
132 CXFA_ContainerLayoutItem* m_pPageSetLayoutItemRoot; 134 CXFA_ContainerLayoutItem* m_pPageSetLayoutItemRoot;
133 CXFA_ContainerLayoutItem* m_pPageSetCurRoot; 135 CXFA_ContainerLayoutItem* m_pPageSetCurRoot;
134 std::list<CXFA_ContainerRecord*> m_ProposedContainerRecords; 136 std::list<CXFA_ContainerRecord*> m_ProposedContainerRecords;
135 std::list<CXFA_ContainerRecord*>::iterator m_CurrentContainerRecordIter; 137 std::list<CXFA_ContainerRecord*>::iterator m_CurrentContainerRecordIter;
136 CXFA_Node* m_pCurPageArea; 138 CXFA_Node* m_pCurPageArea;
137 int32_t m_nAvailPages; 139 int32_t m_nAvailPages;
138 int32_t m_nCurPageCount; 140 int32_t m_nCurPageCount;
139 XFA_ATTRIBUTEENUM m_ePageSetMode; 141 XFA_ATTRIBUTEENUM m_ePageSetMode;
140 bool m_bCreateOverFlowPage; 142 bool m_bCreateOverFlowPage;
141 CFX_MapPtrTemplate<CXFA_Node*, int32_t> m_pPageSetMap; 143 std::map<CXFA_Node*, int32_t> m_pPageSetMap;
142 CFX_ArrayTemplate<CXFA_ContainerLayoutItem*> m_PageArray; 144 CFX_ArrayTemplate<CXFA_ContainerLayoutItem*> m_PageArray;
143 }; 145 };
144 146
145 #endif // XFA_FXFA_PARSER_CXFA_LAYOUTPAGEMGR_H_ 147 #endif // XFA_FXFA_PARSER_CXFA_LAYOUTPAGEMGR_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_document.cpp ('k') | xfa/fxfa/parser/cxfa_layoutpagemgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698