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_baseannot.h" | 9 #include "../include/fsdk_baseannot.h" |
10 | 10 |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 ASSERT(m_pAnnot != NULL); | 589 ASSERT(m_pAnnot != NULL); |
590 | 590 |
591 return m_pAnnot->GetSubType(); | 591 return m_pAnnot->GetSubType(); |
592 } | 592 } |
593 | 593 |
594 CFX_ByteString CPDFSDK_Annot::GetSubType() const | 594 CFX_ByteString CPDFSDK_Annot::GetSubType() const |
595 { | 595 { |
596 return ""; | 596 return ""; |
597 } | 597 } |
598 | 598 |
599 void CPDFSDK_Annot::ResetAppearance() | |
600 { | |
601 ASSERT(FALSE); | |
602 } | |
603 | |
604 void CPDFSDK_Annot::DrawAppearance(CFX_RenderDevice* pDevice, const CPDF_Matrix*
pUser2Device, | 599 void CPDFSDK_Annot::DrawAppearance(CFX_RenderDevice* pDevice, const CPDF_Matrix*
pUser2Device, |
605 CPDF_Annot::A
ppearanceMode mode, const CPDF_RenderOptions* pOptions) | 600 CPDF_Annot::A
ppearanceMode mode, const CPDF_RenderOptions* pOptions) |
606 { | 601 { |
607 ASSERT(m_pPageView != NULL); | 602 ASSERT(m_pPageView != NULL); |
608 ASSERT(m_pAnnot != NULL); | 603 ASSERT(m_pAnnot != NULL); |
609 | 604 |
610 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Devic
e, mode, pOptions); | 605 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Devic
e, mode, pOptions); |
611 } | 606 } |
612 | 607 |
613 FX_BOOL CPDFSDK_Annot::IsAppearanceValid() | 608 FX_BOOL CPDFSDK_Annot::IsAppearanceValid() |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 return ; | 1173 return ; |
1179 } | 1174 } |
1180 | 1175 |
1181 CPDF_Page* CPDFSDK_Annot::GetPDFPage() | 1176 CPDF_Page* CPDFSDK_Annot::GetPDFPage() |
1182 { | 1177 { |
1183 if(m_pPageView) | 1178 if(m_pPageView) |
1184 return m_pPageView->GetPDFPage(); | 1179 return m_pPageView->GetPDFPage(); |
1185 return NULL; | 1180 return NULL; |
1186 } | 1181 } |
1187 | 1182 |
OLD | NEW |