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

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

Issue 2170473002: Rename xfa_doclayout and xfa_document_layout_imp files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa_parser_I
Patch Set: Review fixes Created 4 years, 5 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_layoutitem.cpp ('k') | xfa/fxfa/parser/cxfa_layoutprocessor.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 2016 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_DOCUMENT_LAYOUT_IMP_H_ 7 #ifndef XFA_FXFA_PARSER_CXFA_LAYOUTPROCESSOR_H_
8 #define XFA_FXFA_PARSER_XFA_DOCUMENT_LAYOUT_IMP_H_ 8 #define XFA_FXFA_PARSER_CXFA_LAYOUTPROCESSOR_H_
9 9
10 #include "xfa/fxfa/parser/xfa_doclayout.h" 10 #include "core/fxcrt/include/fx_system.h"
11 #include "xfa/fxfa/parser/xfa_object.h"
11 12
13 class CXFA_ContainerLayoutItem;
14 class CXFA_Document;
12 class CXFA_ItemLayoutProcessor; 15 class CXFA_ItemLayoutProcessor;
16 class CXFA_LayoutItem;
13 class CXFA_LayoutPageMgr; 17 class CXFA_LayoutPageMgr;
14 class CXFA_ContainerLayoutItem; 18 class CXFA_Node;
19 class IFX_Pause;
15 20
16 class CXFA_LayoutProcessor { 21 class CXFA_LayoutProcessor {
17 public: 22 public:
18 CXFA_LayoutProcessor(CXFA_Document* pDocument); 23 CXFA_LayoutProcessor(CXFA_Document* pDocument);
19 ~CXFA_LayoutProcessor(); 24 ~CXFA_LayoutProcessor();
20 25
21 CXFA_Document* GetDocument() const; 26 CXFA_Document* GetDocument() const;
22 int32_t StartLayout(FX_BOOL bForceRestart = FALSE); 27 int32_t StartLayout(FX_BOOL bForceRestart = FALSE);
23 int32_t DoLayout(IFX_Pause* pPause = nullptr); 28 int32_t DoLayout(IFX_Pause* pPause = nullptr);
24 FX_BOOL IncrementLayout(); 29 FX_BOOL IncrementLayout();
25 int32_t CountPages() const; 30 int32_t CountPages() const;
26 CXFA_ContainerLayoutItem* GetPage(int32_t index) const; 31 CXFA_ContainerLayoutItem* GetPage(int32_t index) const;
27 CXFA_LayoutItem* GetLayoutItem(CXFA_Node* pFormItem); 32 CXFA_LayoutItem* GetLayoutItem(CXFA_Node* pFormItem);
28 33
29 void AddChangedContainer(CXFA_Node* pContainer); 34 void AddChangedContainer(CXFA_Node* pContainer);
30 void SetForceReLayout(FX_BOOL bForceRestart) { m_bNeeLayout = bForceRestart; } 35 void SetForceReLayout(FX_BOOL bForceRestart) { m_bNeeLayout = bForceRestart; }
31 CXFA_ContainerLayoutItem* GetRootLayoutItem() const; 36 CXFA_ContainerLayoutItem* GetRootLayoutItem() const;
32 CXFA_ItemLayoutProcessor* GetRootRootItemLayoutProcessor() { 37 CXFA_ItemLayoutProcessor* GetRootRootItemLayoutProcessor() {
33 return m_pRootItemLayoutProcessor; 38 return m_pRootItemLayoutProcessor;
34 } 39 }
35 CXFA_LayoutPageMgr* GetLayoutPageMgr() { return m_pLayoutPageMgr; } 40 CXFA_LayoutPageMgr* GetLayoutPageMgr() { return m_pLayoutPageMgr; }
36 41
37 protected: 42 private:
38 void ClearLayoutData(); 43 void ClearLayoutData();
39 44
40 FX_BOOL IsNeedLayout(); 45 FX_BOOL IsNeedLayout();
41 46
42 CXFA_Document* m_pDocument; 47 CXFA_Document* m_pDocument;
43 CXFA_ItemLayoutProcessor* m_pRootItemLayoutProcessor; 48 CXFA_ItemLayoutProcessor* m_pRootItemLayoutProcessor;
44 CXFA_LayoutPageMgr* m_pLayoutPageMgr; 49 CXFA_LayoutPageMgr* m_pLayoutPageMgr;
45 CXFA_NodeArray m_rgChangedContainers; 50 CXFA_NodeArray m_rgChangedContainers;
46 uint32_t m_nProgressCounter; 51 uint32_t m_nProgressCounter;
47 FX_BOOL m_bNeeLayout; 52 FX_BOOL m_bNeeLayout;
48 }; 53 };
49 54
50 #endif // XFA_FXFA_PARSER_XFA_DOCUMENT_LAYOUT_IMP_H_ 55 #endif // XFA_FXFA_PARSER_CXFA_LAYOUTPROCESSOR_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_layoutitem.cpp ('k') | xfa/fxfa/parser/cxfa_layoutprocessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698