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

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

Issue 2162503003: Cleanup fgas/crt. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Win 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/xfa_basic_imp.cpp ('k') | xfa/fxfa/parser/xfa_utils.h » ('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 #include "xfa/fxfa/parser/xfa_object.h" 7 #include "xfa/fxfa/parser/xfa_object.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 3607 matching lines...) Expand 10 before | Expand all | Expand 10 after
3618 : (XFA_ATTRIBUTEENUM)(intptr_t)(pAttr->pDefValue), 3618 : (XFA_ATTRIBUTEENUM)(intptr_t)(pAttr->pDefValue),
3619 bNotify); 3619 bNotify);
3620 } break; 3620 } break;
3621 case XFA_ATTRIBUTETYPE_Cdata: 3621 case XFA_ATTRIBUTETYPE_Cdata:
3622 return SetCData(pAttr->eName, CFX_WideString(wsValue), bNotify); 3622 return SetCData(pAttr->eName, CFX_WideString(wsValue), bNotify);
3623 case XFA_ATTRIBUTETYPE_Boolean: 3623 case XFA_ATTRIBUTETYPE_Boolean:
3624 return SetBoolean(pAttr->eName, wsValue != FX_WSTRC(L"0"), bNotify); 3624 return SetBoolean(pAttr->eName, wsValue != FX_WSTRC(L"0"), bNotify);
3625 case XFA_ATTRIBUTETYPE_Integer: 3625 case XFA_ATTRIBUTETYPE_Integer:
3626 return SetInteger( 3626 return SetInteger(
3627 pAttr->eName, 3627 pAttr->eName,
3628 FXSYS_round(FX_wcstof(wsValue.c_str(), wsValue.GetLength())), 3628 FXSYS_round(FX_wcstof(wsValue.c_str(), wsValue.GetLength(), nullptr)),
3629 bNotify); 3629 bNotify);
3630 case XFA_ATTRIBUTETYPE_Measure: 3630 case XFA_ATTRIBUTETYPE_Measure:
3631 return SetMeasure(pAttr->eName, CXFA_Measurement(wsValue), bNotify); 3631 return SetMeasure(pAttr->eName, CXFA_Measurement(wsValue), bNotify);
3632 default: 3632 default:
3633 break; 3633 break;
3634 } 3634 }
3635 return FALSE; 3635 return FALSE;
3636 } 3636 }
3637 FX_BOOL CXFA_Node::GetAttribute(XFA_ATTRIBUTE eAttr, 3637 FX_BOOL CXFA_Node::GetAttribute(XFA_ATTRIBUTE eAttr,
3638 CFX_WideString& wsValue, 3638 CFX_WideString& wsValue,
(...skipping 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after
5263 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode); 5263 return m_pAttachNode->InsertChild(pNewNode, pBeforeNode);
5264 } 5264 }
5265 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { 5265 FX_BOOL CXFA_AttachNodeList::Remove(CXFA_Node* pNode) {
5266 return m_pAttachNode->RemoveChild(pNode); 5266 return m_pAttachNode->RemoveChild(pNode);
5267 } 5267 }
5268 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) { 5268 CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) {
5269 return m_pAttachNode->GetChild( 5269 return m_pAttachNode->GetChild(
5270 iIndex, XFA_Element::Unknown, 5270 iIndex, XFA_Element::Unknown,
5271 m_pAttachNode->GetElementType() == XFA_Element::Subform); 5271 m_pAttachNode->GetElementType() == XFA_Element::Subform);
5272 } 5272 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_basic_imp.cpp ('k') | xfa/fxfa/parser/xfa_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698