| // Copyright 2016 PDFium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| #include "fpdfsdk/cpdfsdk_annot.h" |
| #include "fpdfsdk/cpdfsdk_pageview.h" |
| #include "third_party/base/check.h" |
| CPDFSDK_Annot::CPDFSDK_Annot(CPDFSDK_PageView* pPageView) |
| : m_pPageView(pPageView) { |
| CPDFSDK_Annot::~CPDFSDK_Annot() = default; |
| CPDFSDK_BAAnnot* CPDFSDK_Annot::AsBAAnnot() { |
| CPDFXFA_Widget* CPDFSDK_Annot::AsXFAWidget() { |
| IPDF_Page* CPDFSDK_Annot::GetXFAPage() { |
| return m_pPageView->GetXFAPage(); |
| int CPDFSDK_Annot::GetLayoutOrder() const { |
| CPDF_Annot* CPDFSDK_Annot::GetPDFAnnot() const { |
| IPDF_Page* CPDFSDK_Annot::GetPage() { |
| IPDF_Page* pXFAPage = GetXFAPage(); |
| CPDF_Page* CPDFSDK_Annot::GetPDFPage() { |
| return m_pPageView->GetPDFPage(); |