OLD | NEW |
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/include/xfa_ffpageview.h" | 7 #include "xfa/fxfa/include/xfa_ffpageview.h" |
8 | 8 |
9 #include "xfa/fde/fde_render.h" | 9 #include "xfa/fde/fde_render.h" |
10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" | 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 263 } |
264 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::GetTraverseWidget( | 264 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::GetTraverseWidget( |
265 CXFA_FFWidget* pWidget) { | 265 CXFA_FFWidget* pWidget) { |
266 CXFA_WidgetAcc* pAcc = pWidget->GetDataAcc(); | 266 CXFA_WidgetAcc* pAcc = pWidget->GetDataAcc(); |
267 CXFA_Node* pTraversal = pAcc->GetNode()->GetChild(0, XFA_ELEMENT_Traversal); | 267 CXFA_Node* pTraversal = pAcc->GetNode()->GetChild(0, XFA_ELEMENT_Traversal); |
268 if (pTraversal) { | 268 if (pTraversal) { |
269 CXFA_Node* pTraverse = pTraversal->GetChild(0, XFA_ELEMENT_Traverse); | 269 CXFA_Node* pTraverse = pTraversal->GetChild(0, XFA_ELEMENT_Traverse); |
270 if (pTraverse) { | 270 if (pTraverse) { |
271 CFX_WideString wsTraverseWidgetName; | 271 CFX_WideString wsTraverseWidgetName; |
272 if (pTraverse->GetAttribute(XFA_ATTRIBUTE_Ref, wsTraverseWidgetName)) { | 272 if (pTraverse->GetAttribute(XFA_ATTRIBUTE_Ref, wsTraverseWidgetName)) { |
273 return FindWidgetByName(wsTraverseWidgetName.AsWideStringC(), pWidget); | 273 return FindWidgetByName(wsTraverseWidgetName.AsStringC(), pWidget); |
274 } | 274 } |
275 } | 275 } |
276 } | 276 } |
277 return NULL; | 277 return NULL; |
278 } | 278 } |
279 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::FindWidgetByName( | 279 CXFA_FFWidget* CXFA_FFTabOrderPageWidgetIterator::FindWidgetByName( |
280 const CFX_WideStringC& wsWidgetName, | 280 const CFX_WideStringC& wsWidgetName, |
281 CXFA_FFWidget* pRefWidget) { | 281 CXFA_FFWidget* pRefWidget) { |
282 return pRefWidget->GetDocView()->GetWidgetByName(wsWidgetName, pRefWidget); | 282 return pRefWidget->GetDocView()->GetWidgetByName(wsWidgetName, pRefWidget); |
283 } | 283 } |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 CXFA_LayoutItem* pLayoutItem) { | 413 CXFA_LayoutItem* pLayoutItem) { |
414 if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) { | 414 if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) { |
415 if (!pWidget->IsLoaded() && | 415 if (!pWidget->IsLoaded() && |
416 (pWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) { | 416 (pWidget->GetStatus() & XFA_WIDGETSTATUS_Visible)) { |
417 pWidget->LoadWidget(); | 417 pWidget->LoadWidget(); |
418 } | 418 } |
419 return pWidget; | 419 return pWidget; |
420 } | 420 } |
421 return NULL; | 421 return NULL; |
422 } | 422 } |
OLD | NEW |