| 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 "../include/fsdk_define.h" | 7 #include "../include/fsdk_define.h" |
| 8 #include "../include/fpdfxfa/fpdfxfa_doc.h" | 8 #include "../include/fpdfxfa/fpdfxfa_doc.h" |
| 9 #include "../include/fsdk_mgr.h" | 9 #include "../include/fsdk_mgr.h" |
| 10 #include "../include/fsdk_actionhandler.h" | 10 #include "../include/fsdk_actionhandler.h" |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 ASSERT(action); | 558 ASSERT(action); |
| 559 | 559 |
| 560 CPDF_Document* pPDFDocument = pDocument->GetDocument()->GetPDFDoc(); | 560 CPDF_Document* pPDFDocument = pDocument->GetDocument()->GetPDFDoc(); |
| 561 ASSERT(pPDFDocument != NULL); | 561 ASSERT(pPDFDocument != NULL); |
| 562 CPDFDoc_Environment* pApp = pDocument->GetEnv(); | 562 CPDFDoc_Environment* pApp = pDocument->GetEnv(); |
| 563 ASSERT(pApp != NULL); | 563 ASSERT(pApp != NULL); |
| 564 | 564 |
| 565 CPDF_Dest MyDest = action.GetDest(pPDFDocument); | 565 CPDF_Dest MyDest = action.GetDest(pPDFDocument); |
| 566 int nPageIndex = MyDest.GetPageIndex(pPDFDocument); | 566 int nPageIndex = MyDest.GetPageIndex(pPDFDocument); |
| 567 int nFitType = MyDest.GetZoomMode(); | 567 int nFitType = MyDest.GetZoomMode(); |
| 568 » const CPDF_Array * pMyArray = (CPDF_Array*)MyDest.m_pObj; | 568 » const CPDF_Array * pMyArray = (CPDF_Array*)MyDest.GetObject(); |
| 569 float* pPosAry = NULL; | 569 float* pPosAry = NULL; |
| 570 int sizeOfAry = 0; | 570 int sizeOfAry = 0; |
| 571 if (pMyArray != NULL) | 571 if (pMyArray != NULL) |
| 572 { | 572 { |
| 573 pPosAry = new float[pMyArray->GetCount()]; | 573 pPosAry = new float[pMyArray->GetCount()]; |
| 574 int j = 0; | 574 int j = 0; |
| 575 for (int i = 2; i < (int)pMyArray->GetCount(); i++) | 575 for (int i = 2; i < (int)pMyArray->GetCount(); i++) |
| 576 { | 576 { |
| 577 pPosAry[j++] = pMyArray->GetFloat(i); | 577 pPosAry[j++] = pMyArray->GetFloat(i); |
| 578 } | 578 } |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 | 821 |
| 822 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Sound(const CPDF_Action& action, CP
DFSDK_Document* pDocument) | 822 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Sound(const CPDF_Action& action, CP
DFSDK_Document* pDocument) |
| 823 { | 823 { |
| 824 return FALSE; | 824 return FALSE; |
| 825 } | 825 } |
| 826 | 826 |
| 827 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Movie(const CPDF_Action& action, CP
DFSDK_Document* pDocument) | 827 FX_BOOL CPDFSDK_MediaActionHandler::DoAction_Movie(const CPDF_Action& action, CP
DFSDK_Document* pDocument) |
| 828 { | 828 { |
| 829 return FALSE; | 829 return FALSE; |
| 830 } | 830 } |
| OLD | NEW |