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/fsdk_mgr.h" | 8 #include "../include/fsdk_mgr.h" |
9 #include "../include/fsdk_actionhandler.h" | 9 #include "../include/fsdk_actionhandler.h" |
10 #include "../include/javascript/IJavaScript.h" | 10 #include "../include/javascript/IJavaScript.h" |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 ASSERT(action); | 557 ASSERT(action); |
558 | 558 |
559 CPDF_Document* pPDFDocument = pDocument->GetDocument(); | 559 CPDF_Document* pPDFDocument = pDocument->GetDocument(); |
560 ASSERT(pPDFDocument != NULL); | 560 ASSERT(pPDFDocument != NULL); |
561 CPDFDoc_Environment* pApp = pDocument->GetEnv(); | 561 CPDFDoc_Environment* pApp = pDocument->GetEnv(); |
562 ASSERT(pApp != NULL); | 562 ASSERT(pApp != NULL); |
563 | 563 |
564 CPDF_Dest MyDest = action.GetDest(pPDFDocument); | 564 CPDF_Dest MyDest = action.GetDest(pPDFDocument); |
565 int nPageIndex = MyDest.GetPageIndex(pPDFDocument); | 565 int nPageIndex = MyDest.GetPageIndex(pPDFDocument); |
566 int nFitType = MyDest.GetZoomMode(); | 566 int nFitType = MyDest.GetZoomMode(); |
567 » const CPDF_Array * pMyArray = (CPDF_Array*)MyDest.m_pObj; | 567 » const CPDF_Array * pMyArray = (CPDF_Array*)MyDest.GetObject(); |
568 float* pPosAry = NULL; | 568 float* pPosAry = NULL; |
569 int sizeOfAry = 0; | 569 int sizeOfAry = 0; |
570 if (pMyArray != NULL) | 570 if (pMyArray != NULL) |
571 { | 571 { |
572 pPosAry = new float[pMyArray->GetCount()]; | 572 pPosAry = new float[pMyArray->GetCount()]; |
573 int j = 0; | 573 int j = 0; |
574 for (int i = 2; i < (int)pMyArray->GetCount(); i++) | 574 for (int i = 2; i < (int)pMyArray->GetCount(); i++) |
575 { | 575 { |
576 pPosAry[j++] = pMyArray->GetFloat(i); | 576 pPosAry[j++] = pMyArray->GetFloat(i); |
577 } | 577 } |
(...skipping 243 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 |