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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "core/include/fxcrt/fx_ext.h" | 9 #include "core/include/fxcrt/fx_ext.h" |
10 #include "fpdfsdk/include/fsdk_baseannot.h" | 10 #include "fpdfsdk/include/fsdk_baseannot.h" |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 | 950 |
951 return CPDF_Action(); | 951 return CPDF_Action(); |
952 } | 952 } |
953 | 953 |
954 void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice, | 954 void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice, |
955 CFX_Matrix* pUser2Device, | 955 CFX_Matrix* pUser2Device, |
956 CPDF_RenderOptions* pOptions) { | 956 CPDF_RenderOptions* pOptions) { |
957 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal); | 957 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal); |
958 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device, | 958 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device, |
959 CPDF_Annot::Normal, NULL); | 959 CPDF_Annot::Normal, NULL); |
960 | |
961 return; | |
962 } | 960 } |
963 | 961 |
964 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() { | 962 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() { |
965 return GetPDFPage(); | 963 return GetPDFPage(); |
966 } | 964 } |
967 | 965 |
968 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { | 966 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { |
969 if (m_pPageView) | 967 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; |
970 return m_pPageView->GetPDFPage(); | |
971 return NULL; | |
972 } | 968 } |
OLD | NEW |