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

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

Issue 2165993002: Move xfa_basic_imp to cxfa_widetextread. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review feedback 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_node.cpp ('k') | xfa/fxfa/parser/cxfa_scriptcontext.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_para.h" 7 #include "xfa/fxfa/parser/cxfa_para.h"
8 8
9 #include "xfa/fxfa/parser/cxfa_measurement.h"
9 #include "xfa/fxfa/parser/xfa_object.h" 10 #include "xfa/fxfa/parser/xfa_object.h"
10 11
11 CXFA_Para::CXFA_Para(CXFA_Node* pNode) : CXFA_Data(pNode) {} 12 CXFA_Para::CXFA_Para(CXFA_Node* pNode) : CXFA_Data(pNode) {}
12 13
13 int32_t CXFA_Para::GetHorizontalAlign() { 14 int32_t CXFA_Para::GetHorizontalAlign() {
14 XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_Left; 15 XFA_ATTRIBUTEENUM eAttr = XFA_ATTRIBUTEENUM_Left;
15 m_pNode->TryEnum(XFA_ATTRIBUTE_HAlign, eAttr); 16 m_pNode->TryEnum(XFA_ATTRIBUTE_HAlign, eAttr);
16 return eAttr; 17 return eAttr;
17 } 18 }
18 19
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 CXFA_Measurement ms; 51 CXFA_Measurement ms;
51 m_pNode->TryMeasure(XFA_ATTRIBUTE_SpaceBelow, ms); 52 m_pNode->TryMeasure(XFA_ATTRIBUTE_SpaceBelow, ms);
52 return ms.ToUnit(XFA_UNIT_Pt); 53 return ms.ToUnit(XFA_UNIT_Pt);
53 } 54 }
54 55
55 FX_FLOAT CXFA_Para::GetTextIndent() { 56 FX_FLOAT CXFA_Para::GetTextIndent() {
56 CXFA_Measurement ms; 57 CXFA_Measurement ms;
57 m_pNode->TryMeasure(XFA_ATTRIBUTE_TextIndent, ms); 58 m_pNode->TryMeasure(XFA_ATTRIBUTE_TextIndent, ms);
58 return ms.ToUnit(XFA_UNIT_Pt); 59 return ms.ToUnit(XFA_UNIT_Pt);
59 } 60 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_node.cpp ('k') | xfa/fxfa/parser/cxfa_scriptcontext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698