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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 | 971 |
972 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() { | 972 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() { |
973 #ifdef PDF_ENABLE_XFA | 973 #ifdef PDF_ENABLE_XFA |
974 return GetPDFXFAPage(); | 974 return GetPDFXFAPage(); |
975 #else // PDF_ENABLE_XFA | 975 #else // PDF_ENABLE_XFA |
976 return GetPDFPage(); | 976 return GetPDFPage(); |
977 #endif // PDF_ENABLE_XFA | 977 #endif // PDF_ENABLE_XFA |
978 } | 978 } |
979 | 979 |
980 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { | 980 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { |
981 if (m_pPageView) | 981 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; |
982 return m_pPageView->GetPDFPage(); | |
983 return NULL; | |
984 } | 982 } |
985 | 983 |
986 #ifdef PDF_ENABLE_XFA | 984 #ifdef PDF_ENABLE_XFA |
987 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() { | 985 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() { |
988 if (m_pPageView) | 986 return m_pPageView ? m_pPageView->GetPDFXFAPage() : nullptr; |
989 return m_pPageView->GetPDFXFAPage(); | |
990 return NULL; | |
991 } | 987 } |
992 #endif // PDF_ENABLE_XFA | 988 #endif // PDF_ENABLE_XFA |
OLD | NEW |