| Index: fpdfsdk/include/ipdfsdk_annothandler.h
|
| diff --git a/fpdfsdk/include/ipdfsdk_annothandler.h b/fpdfsdk/include/ipdfsdk_annothandler.h
|
| index d2f9010b76c858f142de3d5e99db05efcd2f1108..f1db6983c0ae759ab9368512c7496ce4f7a86b7a 100644
|
| --- a/fpdfsdk/include/ipdfsdk_annothandler.h
|
| +++ b/fpdfsdk/include/ipdfsdk_annothandler.h
|
| @@ -9,11 +9,11 @@
|
|
|
| #include "core/fxcrt/include/fx_basic.h"
|
| #include "core/fxcrt/include/fx_coordinates.h"
|
| +#include "fpdfsdk/include/cpdfsdk_annot.h"
|
|
|
| class CFX_Matrix;
|
| class CFX_RenderDevice;
|
| class CPDF_Annot;
|
| -class CPDFSDK_Annot;
|
| class CPDFSDK_PageView;
|
|
|
| #ifdef PDF_ENABLE_XFA
|
| @@ -49,43 +49,44 @@ class IPDFSDK_AnnotHandler {
|
| virtual void OnLoad(CPDFSDK_Annot* pAnnot) = 0;
|
| virtual void OnDelete(CPDFSDK_Annot* pAnnot) = 0;
|
| virtual void OnRelease(CPDFSDK_Annot* pAnnot) = 0;
|
| +
|
| virtual void OnMouseEnter(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlag) = 0;
|
| virtual void OnMouseExit(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlag) = 0;
|
| virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| short zDelta,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView,
|
| - CPDFSDK_Annot* pAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| uint32_t nFlags,
|
| const CFX_FloatPoint& point) = 0;
|
| virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot,
|
| @@ -95,11 +96,13 @@ class IPDFSDK_AnnotHandler {
|
| virtual FX_BOOL OnKeyUp(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag) = 0;
|
| virtual void OnDeSelected(CPDFSDK_Annot* pAnnot) = 0;
|
| virtual void OnSelected(CPDFSDK_Annot* pAnnot) = 0;
|
| - virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0;
|
| - virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0;
|
| + virtual FX_BOOL OnSetFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| + uint32_t nFlag) = 0;
|
| + virtual FX_BOOL OnKillFocus(CPDFSDK_Annot::ObservedPtr* pAnnot,
|
| + uint32_t nFlag) = 0;
|
| #ifdef PDF_ENABLE_XFA
|
| - virtual FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot,
|
| - CPDFSDK_Annot* pNewAnnot) = 0;
|
| + virtual FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot::ObservedPtr* pOldAnnot,
|
| + CPDFSDK_Annot::ObservedPtr* pNewAnnot) = 0;
|
| #endif // PDF_ENABLE_XFA
|
| };
|
|
|
|
|