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

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

Issue 2357203003: Make the I in IFormFiller explicit (Closed)
Patch Set: Remove locals Created 4 years, 2 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 | « fpdfsdk/include/cpdfsdk_widgethandler.h ('k') | no next file » | 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 "core/fxcrt/include/fx_ext.h" 7 #include "core/fxcrt/include/fx_ext.h"
8 #include "xfa/fxfa/app/xfa_ffnotify.h" 8 #include "xfa/fxfa/app/xfa_ffnotify.h"
9 #include "xfa/fxfa/parser/cscript_datawindow.h" 9 #include "xfa/fxfa/parser/cscript_datawindow.h"
10 #include "xfa/fxfa/parser/cscript_eventpseudomodel.h" 10 #include "xfa/fxfa/parser/cscript_eventpseudomodel.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 CFX_WideString wsInteractive; 263 CFX_WideString wsInteractive;
264 CXFA_Node* pPresent = pConfig->GetFirstChildByClass(XFA_Element::Present); 264 CXFA_Node* pPresent = pConfig->GetFirstChildByClass(XFA_Element::Present);
265 if (!pPresent) 265 if (!pPresent)
266 return FALSE; 266 return FALSE;
267 267
268 CXFA_Node* pPDF = pPresent->GetFirstChildByClass(XFA_Element::Pdf); 268 CXFA_Node* pPDF = pPresent->GetFirstChildByClass(XFA_Element::Pdf);
269 if (!pPDF) 269 if (!pPDF)
270 return FALSE; 270 return FALSE;
271 271
272 CXFA_Node* pInteractive = pPDF->GetChild(0, XFA_Element::Interactive); 272 CXFA_Node* pFormFiller = pPDF->GetChild(0, XFA_Element::Interactive);
273 if (pInteractive) { 273 if (pFormFiller) {
274 m_dwDocFlags |= XFA_DOCFLAG_HasInteractive; 274 m_dwDocFlags |= XFA_DOCFLAG_HasInteractive;
275 if (pInteractive->TryContent(wsInteractive) && 275 if (pFormFiller->TryContent(wsInteractive) &&
276 wsInteractive == FX_WSTRC(L"1")) { 276 wsInteractive == FX_WSTRC(L"1")) {
277 m_dwDocFlags |= XFA_DOCFLAG_Interactive; 277 m_dwDocFlags |= XFA_DOCFLAG_Interactive;
278 return TRUE; 278 return TRUE;
279 } 279 }
280 } 280 }
281 return FALSE; 281 return FALSE;
282 } 282 }
283 283
284 CXFA_LocaleMgr* CXFA_Document::GetLocalMgr() { 284 CXFA_LocaleMgr* CXFA_Document::GetLocalMgr() {
285 if (!m_pLocalMgr) { 285 if (!m_pLocalMgr) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 if (!mIDMap.Lookup(FX_HashCode_GetW(wsID, false), pProtoNode)) { 418 if (!mIDMap.Lookup(FX_HashCode_GetW(wsID, false), pProtoNode)) {
419 continue; 419 continue;
420 } 420 }
421 } 421 }
422 if (!pProtoNode) 422 if (!pProtoNode)
423 continue; 423 continue;
424 424
425 MergeNode(this, pUseHrefNode, pProtoNode); 425 MergeNode(this, pUseHrefNode, pProtoNode);
426 } 426 }
427 } 427 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_widgethandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698