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

Side by Side Diff: xfa/fxfa/parser/cxfa_containerlayoutitem.cpp

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month 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_calculate.cpp ('k') | xfa/fxfa/parser/cxfa_contentlayoutitem.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 2016 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 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h" 7 #include "xfa/fxfa/parser/cxfa_containerlayoutitem.h"
8 8
9 #include "xfa/fxfa/parser/cxfa_layoutpagemgr.h" 9 #include "xfa/fxfa/parser/cxfa_layoutpagemgr.h"
10 #include "xfa/fxfa/parser/cxfa_layoutprocessor.h" 10 #include "xfa/fxfa/parser/cxfa_layoutprocessor.h"
11 #include "xfa/fxfa/parser/cxfa_measurement.h" 11 #include "xfa/fxfa/parser/cxfa_measurement.h"
12 12
13 CXFA_ContainerLayoutItem::CXFA_ContainerLayoutItem(CXFA_Node* pNode) 13 CXFA_ContainerLayoutItem::CXFA_ContainerLayoutItem(CXFA_Node* pNode)
14 : CXFA_LayoutItem(pNode, FALSE), m_pOldSubform(nullptr) {} 14 : CXFA_LayoutItem(pNode, false), m_pOldSubform(nullptr) {}
15 15
16 CXFA_LayoutProcessor* CXFA_ContainerLayoutItem::GetLayout() const { 16 CXFA_LayoutProcessor* CXFA_ContainerLayoutItem::GetLayout() const {
17 return m_pFormNode->GetDocument()->GetLayoutProcessor(); 17 return m_pFormNode->GetDocument()->GetLayoutProcessor();
18 } 18 }
19 19
20 int32_t CXFA_ContainerLayoutItem::GetPageIndex() const { 20 int32_t CXFA_ContainerLayoutItem::GetPageIndex() const {
21 return m_pFormNode->GetDocument() 21 return m_pFormNode->GetDocument()
22 ->GetLayoutProcessor() 22 ->GetLayoutProcessor()
23 ->GetLayoutPageMgr() 23 ->GetLayoutPageMgr()
24 ->GetPageIndex(this); 24 ->GetPageIndex(this);
(...skipping 10 matching lines...) Expand all
35 if (pMedium->GetEnum(XFA_ATTRIBUTE_Orientation) == 35 if (pMedium->GetEnum(XFA_ATTRIBUTE_Orientation) ==
36 XFA_ATTRIBUTEENUM_Landscape) { 36 XFA_ATTRIBUTEENUM_Landscape) {
37 size = CFX_SizeF(size.y, size.x); 37 size = CFX_SizeF(size.y, size.x);
38 } 38 }
39 return size; 39 return size;
40 } 40 }
41 41
42 CXFA_Node* CXFA_ContainerLayoutItem::GetMasterPage() const { 42 CXFA_Node* CXFA_ContainerLayoutItem::GetMasterPage() const {
43 return m_pFormNode; 43 return m_pFormNode;
44 } 44 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_calculate.cpp ('k') | xfa/fxfa/parser/cxfa_contentlayoutitem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698