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 "../../public/fpdf_ext.h" | 7 #include "../../public/fpdf_ext.h" |
8 #include "../../third_party/base/nonstd_unique_ptr.h" | 8 #include "../../third_party/base/nonstd_unique_ptr.h" |
9 #include "../include/formfiller/FFL_FormFiller.h" | 9 #include "../include/formfiller/FFL_FormFiller.h" |
10 #include "../include/fsdk_define.h" | 10 #include "../include/fsdk_define.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 if (!pRoot) | 477 if (!pRoot) |
478 return FALSE; | 478 return FALSE; |
479 | 479 |
480 CPDF_Object* pOpenAction = pRoot->GetDict("OpenAction"); | 480 CPDF_Object* pOpenAction = pRoot->GetDict("OpenAction"); |
481 if (!pOpenAction) | 481 if (!pOpenAction) |
482 pOpenAction = pRoot->GetArray("OpenAction"); | 482 pOpenAction = pRoot->GetArray("OpenAction"); |
483 | 483 |
484 if (!pOpenAction) | 484 if (!pOpenAction) |
485 return FALSE; | 485 return FALSE; |
486 | 486 |
487 if (pOpenAction->GetType() == PDFOBJ_ARRAY) | 487 if (pOpenAction->IsArray()) |
488 return TRUE; | 488 return TRUE; |
489 | 489 |
490 if (CPDF_Dictionary* pDict = pOpenAction->AsDictionary()) { | 490 if (CPDF_Dictionary* pDict = pOpenAction->AsDictionary()) { |
491 CPDF_Action action(pDict); | 491 CPDF_Action action(pDict); |
492 if (m_pEnv->GetActionHander()) | 492 if (m_pEnv->GetActionHander()) |
493 m_pEnv->GetActionHander()->DoAction_DocOpen(action, this); | 493 m_pEnv->GetActionHander()->DoAction_DocOpen(action, this); |
494 return TRUE; | 494 return TRUE; |
495 } | 495 } |
496 return FALSE; | 496 return FALSE; |
497 } | 497 } |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 if (!pFocusAnnot) | 1178 if (!pFocusAnnot) |
1179 return NULL; | 1179 return NULL; |
1180 | 1180 |
1181 for (int i = 0; i < m_fxAnnotArray.GetSize(); i++) { | 1181 for (int i = 0; i < m_fxAnnotArray.GetSize(); i++) { |
1182 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); | 1182 CPDFSDK_Annot* pAnnot = (CPDFSDK_Annot*)m_fxAnnotArray.GetAt(i); |
1183 if (pAnnot == pFocusAnnot) | 1183 if (pAnnot == pFocusAnnot) |
1184 return pAnnot; | 1184 return pAnnot; |
1185 } | 1185 } |
1186 return NULL; | 1186 return NULL; |
1187 } | 1187 } |
OLD | NEW |