7#ifndef FPDFSDK_CPDFSDK_BAANNOT_H_
8#define FPDFSDK_CPDFSDK_BAANNOT_H_
10#include "core/fpdfdoc/cpdf_aaction.h"
11#include "core/fpdfdoc/cpdf_action.h"
12#include "core/fpdfdoc/cpdf_annot.h"
13#include "core/fxcrt/fx_coordinates.h"
14#include "core/fxcrt/fx_string.h"
15#include "core/fxcrt/unowned_ptr.h"
16#include "core/fxge/cfx_renderdevice.h"
17#include "fpdfsdk/cpdfsdk_annot.h"
21class CPDFSDK_PageView;
38 bool bDrawAnnots)
override;
39 bool DoHitTest(
const CFX_PointF& point)
override;
92 const CFX_PointF& point)
override;
94 const CFX_PointF& point)
override;
96 const CFX_PointF& point)
override;
98 const CFX_PointF& point)
override;
100 const CFX_PointF& point,
101 const CFX_Vector& delta)
override;
103 const CFX_PointF& point)
override;
105 const CFX_PointF& point)
override;
106 bool OnChar(uint32_t nChar,
Mask<FWL_EVENTFLAG> nFlags)
override;
107 bool OnKeyDown(FWL_VKEYCODE nKeyCode,
Mask<FWL_EVENTFLAG> nFlags)
override;
111 void SetOpenState(
bool bOpenState);
112 void UpdateAnnotRects();
113 void InvalidateRect();
115 bool is_focused_ =
false;
CPDFSDK_Annot * GetFirstAnnot()
CPDFSDK_Annot * GetLastAnnot()
CPDFSDK_AnnotIterator(CPDFSDK_PageView *pPageView, const std::vector< CPDF_Annot::Subtype > &subtypes_to_iterate)
CPDFSDK_Annot * GetNextAnnot(CPDFSDK_Annot *pAnnot)
CPDFSDK_Annot * GetPrevAnnot(CPDFSDK_Annot *pAnnot)
virtual CPDF_Annot::Subtype GetAnnotSubtype() const =0
virtual CPDF_Annot * GetPDFAnnot() const
const CPDF_Dictionary * GetAnnotDict() const
CPDF_Annot * GetPDFAnnot() const override
CFX_FloatRect GetViewBBox() override
WideString GetAnnotName() const
void SetAnnotName(const WideString &sName)
void ReplaceSelection(const WideString &text) override
bool SetIndexSelected(int index, bool selected) override
bool OnChar(uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags) override
CPDF_Annot::Subtype GetAnnotSubtype() const override
bool OnMouseWheel(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta) override
bool OnMouseMove(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
bool IsIndexSelected(int index) override
bool SelectAllText() override
virtual void DrawAppearance(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, CPDF_Annot::AppearanceMode mode)
bool DoHitTest(const CFX_PointF &point) override
int GetLayoutOrder() const override
CPDFSDK_BAAnnot(CPDF_Annot *pAnnot, CPDFSDK_PageView *pPageView)
bool OnLButtonDown(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
void ReplaceAndKeepSelection(const WideString &text) override
BorderStyle GetBorderStyle() const
bool OnSetFocus(Mask< FWL_EVENTFLAG > nFlags) override
int GetBorderWidth() const
void SetBorderStyle(BorderStyle nStyle)
CPDF_Action GetAction() const
void ClearCachedAnnotAP()
void SetFlags(uint32_t nFlags)
CPDFSDK_BAAnnot * AsBAAnnot() override
virtual bool IsAppearanceValid()
WideString GetSelectedText() override
CFX_FloatRect GetRect() const override
bool OnLButtonDblClk(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
CPDF_AAction GetAAction() const
bool OnRButtonUp(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
bool OnLButtonUp(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
~CPDFSDK_BAAnnot() override
WideString GetText() override
void OnDraw(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, bool bDrawAnnots) override
bool OnRButtonDown(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point) override
CPDF_Dest GetDestination() const
bool OnKeyDown(FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags) override
ByteString GetAppState() const
bool IsFocusableAnnot(const CPDF_Annot::Subtype &annot_type) const
uint32_t GetFlags() const
void SetBorderWidth(int nWidth)
bool OnKillFocus(Mask< FWL_EVENTFLAG > nFlags) override
RetainPtr< CPDF_Dictionary > GetMutableAnnotDict()
RetainPtr< CPDF_Dictionary > GetAPDict()
virtual CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT)
void OnMouseEnter(Mask< FWL_EVENTFLAG > nFlags) override
CPDFSDK_Annot::UnsafeInputHandlers * GetUnsafeInputHandlers() override
void OnMouseExit(Mask< FWL_EVENTFLAG > nFlags) override
CPDF_Page * GetPDFPage() const
CFX_FloatRect GetRect() const
bool operator==(const char *ptr) const