Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_fwlevent.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef PUBLIC_FPDF_FWLEVENT_H_
8#define PUBLIC_FPDF_FWLEVENT_H_
9
10// NOLINTNEXTLINE(build/include)
11#include "fpdfview.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif // __cplusplus
16
17// Key flags.
29
30// Virtual keycodes.
31typedef enum {
69 FWL_VKEY_0 = 0x30,
70 FWL_VKEY_1 = 0x31,
71 FWL_VKEY_2 = 0x32,
72 FWL_VKEY_3 = 0x33,
73 FWL_VKEY_4 = 0x34,
74 FWL_VKEY_5 = 0x35,
75 FWL_VKEY_6 = 0x36,
76 FWL_VKEY_7 = 0x37,
77 FWL_VKEY_8 = 0x38,
78 FWL_VKEY_9 = 0x39,
79 FWL_VKEY_A = 0x41,
80 FWL_VKEY_B = 0x42,
81 FWL_VKEY_C = 0x43,
82 FWL_VKEY_D = 0x44,
83 FWL_VKEY_E = 0x45,
84 FWL_VKEY_F = 0x46,
85 FWL_VKEY_G = 0x47,
86 FWL_VKEY_H = 0x48,
87 FWL_VKEY_I = 0x49,
88 FWL_VKEY_J = 0x4A,
89 FWL_VKEY_K = 0x4B,
90 FWL_VKEY_L = 0x4C,
91 FWL_VKEY_M = 0x4D,
92 FWL_VKEY_N = 0x4E,
93 FWL_VKEY_O = 0x4F,
94 FWL_VKEY_P = 0x50,
95 FWL_VKEY_Q = 0x51,
96 FWL_VKEY_R = 0x52,
97 FWL_VKEY_S = 0x53,
98 FWL_VKEY_T = 0x54,
99 FWL_VKEY_U = 0x55,
201} FWL_VKEYCODE;
202
203#ifdef __cplusplus
204} // extern "C"
205#endif // __cplusplus
206
207#endif // PUBLIC_FPDF_FWLEVENT_H_
virtual bool OnChar(uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)=0
virtual bool OnLButtonDblClk(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)=0
virtual bool OnKillFocus(Mask< FWL_EVENTFLAG > nFlags)=0
virtual bool OnSetFocus(Mask< FWL_EVENTFLAG > nFlags)=0
virtual bool OnLButtonUp(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)=0
virtual void OnMouseEnter(Mask< FWL_EVENTFLAG > nFlags)=0
virtual bool OnRButtonDown(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)=0
virtual bool OnKeyDown(FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags)=0
virtual void OnMouseExit(Mask< FWL_EVENTFLAG > nFlags)=0
virtual bool OnLButtonDown(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)=0
virtual bool OnRButtonUp(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)=0
virtual bool OnMouseMove(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)=0
virtual bool OnMouseWheel(Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta)=0
virtual bool SetIndexSelected(int index, bool selected)=0
virtual bool IsIndexSelected(int index)=0
virtual bool Redo()=0
IPDF_Page * GetPage()
IPDF_Page * GetXFAPage()
static bool OnRButtonUp(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
static bool OnKeyDown(ObservedPtr< CPDFSDK_Annot > &pAnnot, FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlags)
virtual void ReplaceSelection(const WideString &text)=0
virtual void OnLoad()
static bool OnRButtonDown(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
virtual bool CanUndo()=0
virtual WideString GetText()=0
virtual int GetLayoutOrder() const
static bool OnMouseMove(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
virtual CFX_FloatRect GetViewBBox()=0
static bool OnKillFocus(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
CPDF_Page * GetPDFPage()
virtual CPDF_Annot::Subtype GetAnnotSubtype() const =0
virtual bool CanRedo()=0
virtual CFX_FloatRect GetRect() const =0
static bool OnLButtonUp(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
CPDFSDK_Annot(CPDFSDK_PageView *pPageView)
static bool OnMouseWheel(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point, const CFX_Vector &delta)
virtual WideString GetSelectedText()=0
virtual CPDFSDK_BAAnnot * AsBAAnnot()
virtual ~CPDFSDK_Annot()
static void OnMouseEnter(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
virtual bool DoHitTest(const CFX_PointF &point)=0
CPDFSDK_PageView * GetPageView() const
virtual bool SelectAllText()=0
static bool OnChar(ObservedPtr< CPDFSDK_Annot > &pAnnot, uint32_t nChar, Mask< FWL_EVENTFLAG > nFlags)
static bool OnSetFocus(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
virtual void OnDraw(CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, bool bDrawAnnots)=0
virtual void ReplaceAndKeepSelection(const WideString &text)=0
static bool OnLButtonDblClk(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
virtual CPDF_Annot * GetPDFAnnot() const
virtual CPDFXFA_Widget * AsXFAWidget()
virtual UnsafeInputHandlers * GetUnsafeInputHandlers()=0
static void OnMouseExit(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags)
static bool OnLButtonDown(ObservedPtr< CPDFSDK_Annot > &pAnnot, Mask< FWL_EVENTFLAG > nFlags, const CFX_PointF &point)
virtual bool Undo()=0
CPDFXFA_Widget * ToXFAWidget(CPDFSDK_Annot *pAnnot)
@ FWL_EVENTFLAG_ShiftKey
@ FWL_EVENTFLAG_RightButtonDown
@ FWL_EVENTFLAG_LeftButtonDown
@ FWL_EVENTFLAG_AutoRepeat
@ FWL_EVENTFLAG_KeyPad
@ FWL_EVENTFLAG_MiddleButtonDown
@ FWL_EVENTFLAG_MetaKey
@ FWL_EVENTFLAG_AltKey
@ FWL_EVENTFLAG_ControlKey
@ FWL_VKEY_H
@ FWL_VKEY_F1
@ FWL_VKEY_F19
@ FWL_VKEY_Play
@ FWL_VKEY_E
@ FWL_VKEY_F12
@ FWL_VKEY_Command
@ FWL_VKEY_Decimal
@ FWL_VKEY_0
@ FWL_VKEY_Final
@ FWL_VKEY_MEDIA_LAUNCH_APP1
@ FWL_VKEY_Add
@ FWL_VKEY_End
@ FWL_VKEY_Z
@ FWL_VKEY_Zoom
@ FWL_VKEY_OEM_6
@ FWL_VKEY_1
@ FWL_VKEY_Right
@ FWL_VKEY_Up
@ FWL_VKEY_4
@ FWL_VKEY_F11
@ FWL_VKEY_Capital
@ FWL_VKEY_Snapshot
@ FWL_VKEY_Kanji
@ FWL_VKEY_Attn
@ FWL_VKEY_Sleep
@ FWL_VKEY_6
@ FWL_VKEY_RMenu
@ FWL_VKEY_F23
@ FWL_VKEY_Crsel
@ FWL_VKEY_Menu
@ FWL_VKEY_7
@ FWL_VKEY_LWin
@ FWL_VKEY_NumPad9
@ FWL_VKEY_G
@ FWL_VKEY_Home
@ FWL_VKEY_F
@ FWL_VKEY_Shift
@ FWL_VKEY_Down
@ FWL_VKEY_Multiply
@ FWL_VKEY_Unknown
@ FWL_VKEY_ModeChange
@ FWL_VKEY_F21
@ FWL_VKEY_Q
@ FWL_VKEY_BROWSER_Forward
@ FWL_VKEY_MEDIA_LAUN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VKEY_Separator
@ FWL_VKEY_Insert
@ FWL_VKEY_N
@ FWL_VKEY_NoName
@ FWL_VKEY_NumPad2
@ FWL_VKEY_LControl
@ FWL_VKEY_Hanja
@ FWL_VKEY_OEM_3
@ FWL_VKEY_F15
@ FWL_VKEY_NunLock
@ FWL_VKEY_OEM_1
@ FWL_VKEY_C
@ FWL_VKEY_Convert
@ FWL_VKEY_OEM_Period
@ FWL_VKEY_NumPad5
@ FWL_VKEY_Apps
@ FWL_VKEY_LMenu
@ FWL_VKEY_BROWSER_Home
@ FWL_VKEY_Back
@ FWL_VKEY_8
@ FWL_VKEY_NumPad6
@ FWL_VKEY_OEM_Clear
@ FWL_VKEY_BROWSER_Stop
@ FWL_VKEY_U
@ FWL_VKEY_Prior
@ FWL_VKEY_Divide
@ FWL_VKEY_OEM_8
@ FWL_VKEY_F3
@ FWL_VKEY_V
@ FWL_VKEY_F8
@ FWL_VKEY_Exsel
@ FWL_VKEY_Kana
@ FWL_VKEY_OEM_102
@ FWL_VKEY_Left
@ FWL_VKEY_Escape
@ FWL_VKEY_BROWSER_Search
@ FWL_VKEY_F4
@ FWL_VKEY_Clear
@ FWL_VKEY_F7
@ FWL_VKEY_F18
@ FWL_VKEY_OEM_Comma
@ FWL_VKEY_Return
@ FWL_VKEY_OEM_Plus
@ FWL_VKEY_5
@ FWL_VKEY_OEM_4
@ FWL_VKEY_Select
@ FWL_VKEY_F22
@ FWL_VKEY_NonConvert
@ FWL_VKEY_BROWSER_Refresh
@ FWL_VKEY_NumPad4
@ FWL_VKEY_Y
@ FWL_VKEY_B
@ FWL_VKEY_VOLUME_Down
@ FWL_VKEY_PA1
@ FWL_VKEY_MEDIA_LAUNCH_MEDIA_Select
@ FWL_VKEY_RControl
@ FWL_VKEY_F20
@ FWL_VKEY_Delete
@ FWL_VKEY_RShift