Index: fpdfsdk/cpdfsdk_baannot.cpp |
diff --git a/fpdfsdk/cpdfsdk_baannot.cpp b/fpdfsdk/cpdfsdk_baannot.cpp |
index 6a4ba86d94f99d6bb490c0146f47f2649520d398..ab5dc65c30c7ca38b231747bad28ddda01d9e988 100644 |
--- a/fpdfsdk/cpdfsdk_baannot.cpp |
+++ b/fpdfsdk/cpdfsdk_baannot.cpp |
@@ -23,6 +23,10 @@ CPDF_Annot* CPDFSDK_BAAnnot::GetPDFAnnot() const { |
return m_pAnnot; |
} |
+CPDF_Annot* CPDFSDK_BAAnnot::GetPDFPopupAnnot() const { |
+ return m_pAnnot->GetPopupAnnot(); |
+} |
+ |
CPDF_Dictionary* CPDFSDK_BAAnnot::GetAnnotDict() const { |
return m_pAnnot->GetAnnotDict(); |
} |
@@ -402,3 +406,10 @@ void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice, |
m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device, |
CPDF_Annot::Normal, nullptr); |
} |
+ |
+void CPDFSDK_BAAnnot::SetOpenState(bool bOpenState) { |
+ if (!m_pAnnot->GetPopupAnnot()) |
+ return; |
+ |
dsinclair
2016/08/24 14:00:20
if (CPDF_Annot* pAnnot = m_pAnnot->GetPopupAnnot()
jaepark
2016/08/24 18:37:49
Done.
|
+ m_pAnnot->GetPopupAnnot()->SetOpenState(bOpenState); |
+} |