• Home
  • Raw
  • Download

Lines Matching refs:pAnnot

33 bool CPDFSDK_WidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) {  in CanAnswer()  argument
34 ASSERT(pAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::WIDGET); in CanAnswer()
35 if (pAnnot->IsSignatureWidget()) in CanAnswer()
38 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in CanAnswer()
55 CPDFSDK_Annot* CPDFSDK_WidgetHandler::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot() argument
59 pInterForm->GetInterForm(), pAnnot->GetAnnotDict()); in NewAnnot()
63 CPDFSDK_Widget* pWidget = new CPDFSDK_Widget(pAnnot, pPage, pInterForm); in NewAnnot()
79 void CPDFSDK_WidgetHandler::ReleaseAnnot(CPDFSDK_Annot* pAnnot) { in ReleaseAnnot() argument
80 ASSERT(pAnnot); in ReleaseAnnot()
83 m_pFormFiller->OnDelete(pAnnot); in ReleaseAnnot()
85 std::unique_ptr<CPDFSDK_Widget> pWidget(static_cast<CPDFSDK_Widget*>(pAnnot)); in ReleaseAnnot()
92 CPDFSDK_Annot* pAnnot, in OnDraw() argument
96 if (pAnnot->IsSignatureWidget()) { in OnDraw()
97 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance( in OnDraw()
101 m_pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device); in OnDraw()
106 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnMouseEnter() argument
108 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnMouseEnter()
109 m_pFormFiller->OnMouseEnter(pPageView, pAnnot, nFlag); in OnMouseEnter()
113 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnMouseExit() argument
115 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnMouseExit()
116 m_pFormFiller->OnMouseExit(pPageView, pAnnot, nFlag); in OnMouseExit()
120 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnLButtonDown() argument
123 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnLButtonDown()
124 return m_pFormFiller->OnLButtonDown(pPageView, pAnnot, nFlags, point); in OnLButtonDown()
130 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnLButtonUp() argument
133 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnLButtonUp()
134 return m_pFormFiller->OnLButtonUp(pPageView, pAnnot, nFlags, point); in OnLButtonUp()
140 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnLButtonDblClk() argument
143 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnLButtonDblClk()
144 return m_pFormFiller->OnLButtonDblClk(pPageView, pAnnot, nFlags, point); in OnLButtonDblClk()
150 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnMouseMove() argument
153 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnMouseMove()
154 return m_pFormFiller->OnMouseMove(pPageView, pAnnot, nFlags, point); in OnMouseMove()
160 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnMouseWheel() argument
164 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnMouseWheel()
165 return m_pFormFiller->OnMouseWheel(pPageView, pAnnot, nFlags, zDelta, in OnMouseWheel()
172 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnRButtonDown() argument
175 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnRButtonDown()
176 return m_pFormFiller->OnRButtonDown(pPageView, pAnnot, nFlags, point); in OnRButtonDown()
182 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnRButtonUp() argument
185 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnRButtonUp()
186 return m_pFormFiller->OnRButtonUp(pPageView, pAnnot, nFlags, point); in OnRButtonUp()
192 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnRButtonDblClk() argument
198 bool CPDFSDK_WidgetHandler::OnChar(CPDFSDK_Annot* pAnnot, in OnChar() argument
201 if (!pAnnot->IsSignatureWidget() && m_pFormFiller) in OnChar()
202 return m_pFormFiller->OnChar(pAnnot, nChar, nFlags); in OnChar()
207 bool CPDFSDK_WidgetHandler::OnKeyDown(CPDFSDK_Annot* pAnnot, in OnKeyDown() argument
210 if (!pAnnot->IsSignatureWidget() && m_pFormFiller) in OnKeyDown()
211 return m_pFormFiller->OnKeyDown(pAnnot, nKeyCode, nFlag); in OnKeyDown()
216 bool CPDFSDK_WidgetHandler::OnKeyUp(CPDFSDK_Annot* pAnnot, in OnKeyUp() argument
222 void CPDFSDK_WidgetHandler::OnLoad(CPDFSDK_Annot* pAnnot) { in OnLoad() argument
223 if (pAnnot->IsSignatureWidget()) in OnLoad()
226 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnLoad()
244 CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); in OnLoad()
253 bool CPDFSDK_WidgetHandler::OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot, in OnSetFocus() argument
255 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnSetFocus()
256 return m_pFormFiller->OnSetFocus(pAnnot, nFlag); in OnSetFocus()
261 bool CPDFSDK_WidgetHandler::OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot, in OnKillFocus() argument
263 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller) in OnKillFocus()
264 return m_pFormFiller->OnKillFocus(pAnnot, nFlag); in OnKillFocus()
278 CPDFSDK_Annot* pAnnot) { in GetViewBBox() argument
279 if (!pAnnot->IsSignatureWidget() && m_pFormFiller) in GetViewBBox()
280 return CFX_FloatRect(m_pFormFiller->GetViewBBox(pPageView, pAnnot)); in GetViewBBox()
284 WideString CPDFSDK_WidgetHandler::GetSelectedText(CPDFSDK_Annot* pAnnot) { in GetSelectedText() argument
285 if (!pAnnot->IsSignatureWidget() && m_pFormFiller) in GetSelectedText()
286 return m_pFormFiller->GetSelectedText(pAnnot); in GetSelectedText()
291 void CPDFSDK_WidgetHandler::ReplaceSelection(CPDFSDK_Annot* pAnnot, in ReplaceSelection() argument
293 if (!pAnnot->IsSignatureWidget() && m_pFormFiller) in ReplaceSelection()
294 m_pFormFiller->ReplaceSelection(pAnnot, text); in ReplaceSelection()
298 CPDFSDK_Annot* pAnnot, in HitTest() argument
301 ASSERT(pAnnot); in HitTest()
302 return GetViewBBox(pPageView, pAnnot).Contains(point); in HitTest()