Home | History | Annotate | Download | only in fpdfsdk

Lines Matching refs:pAnnot

32 bool CPDFSDK_WidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) {
33 ASSERT(pAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::WIDGET);
34 if (pAnnot->IsSignatureWidget())
37 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot);
55 CPDFSDK_Annot* CPDFSDK_WidgetHandler::NewAnnot(CPDF_Annot* pAnnot,
59 pInterForm->GetInterForm(), pAnnot->GetAnnotDict());
63 CPDFSDK_Widget* pWidget = new CPDFSDK_Widget(pAnnot, pPage, pInterForm);
79 void CPDFSDK_WidgetHandler::ReleaseAnnot(CPDFSDK_Annot* pAnnot) {
80 ASSERT(pAnnot);
83 m_pFormFiller->OnDelete(pAnnot);
85 std::unique_ptr<CPDFSDK_Widget> pWidget(static_cast<CPDFSDK_Widget*>(pAnnot));
92 CPDFSDK_Annot* pAnnot,
96 if (pAnnot->IsSignatureWidget()) {
97 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance(
101 m_pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device);
106 CPDFSDK_Annot::ObservedPtr* pAnnot,
108 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
109 m_pFormFiller->OnMouseEnter(pPageView, pAnnot, nFlag);
113 CPDFSDK_Annot::ObservedPtr* pAnnot,
115 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
116 m_pFormFiller->OnMouseExit(pPageView, pAnnot, nFlag);
120 CPDFSDK_Annot::ObservedPtr* pAnnot,
123 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
124 return m_pFormFiller->OnLButtonDown(pPageView, pAnnot, nFlags, point);
130 CPDFSDK_Annot::ObservedPtr* pAnnot,
133 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
134 return m_pFormFiller->OnLButtonUp(pPageView, pAnnot, nFlags, point);
140 CPDFSDK_Annot::ObservedPtr* pAnnot,
143 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
144 return m_pFormFiller->OnLButtonDblClk(pPageView, pAnnot, nFlags, point);
150 CPDFSDK_Annot::ObservedPtr* pAnnot,
153 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
154 return m_pFormFiller->OnMouseMove(pPageView, pAnnot, nFlags, point);
160 CPDFSDK_Annot::ObservedPtr* pAnnot,
164 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
165 return m_pFormFiller->OnMouseWheel(pPageView, pAnnot, nFlags, zDelta,
172 CPDFSDK_Annot::ObservedPtr* pAnnot,
175 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
176 return m_pFormFiller->OnRButtonDown(pPageView, pAnnot, nFlags, point);
182 CPDFSDK_Annot::ObservedPtr* pAnnot,
185 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
186 return m_pFormFiller->OnRButtonUp(pPageView, pAnnot, nFlags, point);
192 CPDFSDK_Annot::ObservedPtr* pAnnot,
198 bool CPDFSDK_WidgetHandler::OnChar(CPDFSDK_Annot* pAnnot,
201 if (!pAnnot->IsSignatureWidget() && m_pFormFiller)
202 return m_pFormFiller->OnChar(pAnnot, nChar, nFlags);
207 bool CPDFSDK_WidgetHandler::OnKeyDown(CPDFSDK_Annot* pAnnot,
210 if (!pAnnot->IsSignatureWidget() && m_pFormFiller)
211 return m_pFormFiller->OnKeyDown(pAnnot, nKeyCode, nFlag);
216 bool CPDFSDK_WidgetHandler::OnKeyUp(CPDFSDK_Annot* pAnnot,
222 void CPDFSDK_WidgetHandler::OnLoad(CPDFSDK_Annot* pAnnot) {
223 if (pAnnot->IsSignatureWidget())
226 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot);
239 CPDFSDK_PageView* pPageView = pAnnot->GetPageView();
248 bool CPDFSDK_WidgetHandler::OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
250 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
251 return m_pFormFiller->OnSetFocus(pAnnot, nFlag);
256 bool CPDFSDK_WidgetHandler::OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
258 if (!(*pAnnot)->IsSignatureWidget() && m_pFormFiller)
259 return m_pFormFiller->OnKillFocus(pAnnot, nFlag);
273 CPDFSDK_Annot* pAnnot) {
274 if (!pAnnot->IsSignatureWidget() && m_pFormFiller)
275 return CFX_FloatRect(m_pFormFiller->GetViewBBox(pPageView, pAnnot));
281 CPDFSDK_Annot* pAnnot,
284 ASSERT(pAnnot);
285 return GetViewBBox(pPageView, pAnnot).Contains(point);