OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FXFA_FORMFILLER_ANNOTHANDLER_IMP_H | 7 #ifndef _FXFA_FORMFILLER_ANNOTHANDLER_IMP_H |
8 #define _FXFA_FORMFILLER_ANNOTHANDLER_IMP_H | 8 #define _FXFA_FORMFILLER_ANNOTHANDLER_IMP_H |
9 class CXFA_FFDocView; | 9 class CXFA_FFDocView; |
10 class CXFA_FFWidgetHandler : public IXFA_WidgetHandler | 10 class CXFA_FFWidgetHandler : public IXFA_WidgetHandler |
11 { | 11 { |
12 public: | 12 public: |
13 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView); | 13 CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView); |
14 ~CXFA_FFWidgetHandler(); | 14 ~CXFA_FFWidgetHandler(); |
15 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent, XFA_W
IDGETTYPE eType, IXFA_Widget* hBefore = NULL); | 15 virtual IXFA_Widget* CreateWidget(IXFA_Widget* hParent, XFA_W
IDGETTYPE eType, IXFA_Widget* hBefore = NULL); |
16 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget); | 16 virtual IXFA_PageView* GetPageView(IXFA_Widget* hWidget); |
17 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF
&rt); | 17 virtual void GetRect(IXFA_Widget* hWidget, CFX_RectF
&rt); |
18 virtual FX_DWORD GetStatus(IXFA_Widget* hWidget); | 18 virtual FX_DWORD GetStatus(IXFA_Widget* hWidget); |
19 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget, CFX_RectF
&rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE); | 19 virtual FX_BOOL GetBBox(IXFA_Widget* hWidget, CFX_RectF
&rtBox, FX_DWORD dwStatus, FX_BOOL bDrawFocus = FALSE); |
20 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget); | 20 virtual CXFA_WidgetAcc* GetDataAcc(IXFA_Widget* hWidget); |
21 virtual void» » » GetName(IXFA_Widget* hWidget, CFX_WideSt
ring &wsName, FX_INT32 iNameType = 0); | 21 virtual void» » » GetName(IXFA_Widget* hWidget, CFX_WideSt
ring &wsName, int32_t iNameType = 0); |
22 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, CFX_Wid
eString &wsToolTip); | 22 virtual FX_BOOL GetToolTip(IXFA_Widget* hWidget, CFX_Wid
eString &wsToolTip); |
23 virtual void SetPrivateData(IXFA_Widget* hWidget, FX_
LPVOID module_id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback); | 23 virtual void SetPrivateData(IXFA_Widget* hWidget, FX_
LPVOID module_id, FX_LPVOID pData, PD_CALLBACK_FREEDATA callback); |
24 virtual FX_LPVOID GetPrivateData(IXFA_Widget* hWidget, FX_
LPVOID module_id); | 24 virtual FX_LPVOID GetPrivateData(IXFA_Widget* hWidget, FX_
LPVOID module_id); |
25 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget); | 25 virtual FX_BOOL OnMouseEnter(IXFA_Widget* hWidget); |
26 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget); | 26 virtual FX_BOOL OnMouseExit(IXFA_Widget* hWidget); |
27 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget, FX_DWORD dwF
lags, FX_FLOAT fx, FX_FLOAT fy); | 27 virtual FX_BOOL OnLButtonDown(IXFA_Widget* hWidget, FX_DWORD dwF
lags, FX_FLOAT fx, FX_FLOAT fy); |
28 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget, FX_DWORD dwFla
gs, FX_FLOAT fx, FX_FLOAT fy); | 28 virtual FX_BOOL OnLButtonUp(IXFA_Widget* hWidget, FX_DWORD dwFla
gs, FX_FLOAT fx, FX_FLOAT fy); |
29 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget, FX_DWORD d
wFlags, FX_FLOAT fx, FX_FLOAT fy); | 29 virtual FX_BOOL OnLButtonDblClk(IXFA_Widget* hWidget, FX_DWORD d
wFlags, FX_FLOAT fx, FX_FLOAT fy); |
30 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget, FX_DWORD dwFla
gs, FX_FLOAT fx, FX_FLOAT fy); | 30 virtual FX_BOOL OnMouseMove(IXFA_Widget* hWidget, FX_DWORD dwFla
gs, FX_FLOAT fx, FX_FLOAT fy); |
31 virtual FX_BOOL» » OnMouseWheel(IXFA_Widget* hWidget, FX_DWORD dwFl
ags, FX_SHORT zDelta, FX_FLOAT fx, FX_FLOAT fy); | 31 virtual FX_BOOL» » OnMouseWheel(IXFA_Widget* hWidget, FX_DWORD dwFl
ags, int16_t zDelta, FX_FLOAT fx, FX_FLOAT fy); |
32 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget, FX_DWORD dwF
lags, FX_FLOAT fx, FX_FLOAT fy); | 32 virtual FX_BOOL OnRButtonDown(IXFA_Widget* hWidget, FX_DWORD dwF
lags, FX_FLOAT fx, FX_FLOAT fy); |
33 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget, FX_DWORD dwFla
gs, FX_FLOAT fx, FX_FLOAT fy); | 33 virtual FX_BOOL OnRButtonUp(IXFA_Widget* hWidget, FX_DWORD dwFla
gs, FX_FLOAT fx, FX_FLOAT fy); |
34 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget, FX_DWORD d
wFlags, FX_FLOAT fx, FX_FLOAT fy); | 34 virtual FX_BOOL OnRButtonDblClk(IXFA_Widget* hWidget, FX_DWORD d
wFlags, FX_FLOAT fx, FX_FLOAT fy); |
35 | 35 |
36 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget, FX_DWORD dwKeyCo
de, FX_DWORD dwFlags); | 36 virtual FX_BOOL OnKeyDown(IXFA_Widget* hWidget, FX_DWORD dwKeyCo
de, FX_DWORD dwFlags); |
37 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget, FX_DWORD dwKeyCode
, FX_DWORD dwFlags); | 37 virtual FX_BOOL OnKeyUp(IXFA_Widget* hWidget, FX_DWORD dwKeyCode
, FX_DWORD dwFlags); |
38 virtual FX_BOOL OnChar(IXFA_Widget* hWidget, FX_DWORD dwChar, FX
_DWORD dwFlags); | 38 virtual FX_BOOL OnChar(IXFA_Widget* hWidget, FX_DWORD dwChar, FX
_DWORD dwFlags); |
39 virtual FX_DWORD OnHitTest(IXFA_Widget* hWidget, FX_FLOAT fx, FX_
FLOAT fy); | 39 virtual FX_DWORD OnHitTest(IXFA_Widget* hWidget, FX_FLOAT fx, FX_
FLOAT fy); |
40 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, FX_FLOAT fx, F
X_FLOAT fy); | 40 virtual FX_BOOL OnSetCursor(IXFA_Widget* hWidget, FX_FLOAT fx, F
X_FLOAT fy); |
41 virtual void RenderWidget(IXFA_Widget* hWidget, CFX_Graphics*
pGS, CFX_Matrix* pMatrix = NULL, FX_BOOL bHighlight = FALSE); | 41 virtual void RenderWidget(IXFA_Widget* hWidget, CFX_Graphics*
pGS, CFX_Matrix* pMatrix = NULL, FX_BOOL bHighlight = FALSE); |
42 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA_EVENTTY
PE eEventType); | 42 virtual FX_BOOL HasEvent(CXFA_WidgetAcc* pWidgetAcc, XFA_EVENTTY
PE eEventType); |
43 virtual FX_INT32» ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_EventParam
* pParam); | 43 virtual int32_t» ProcessEvent(CXFA_WidgetAcc* pWidgetAcc, CXFA_EventParam
* pParam); |
44 protected: | 44 protected: |
45 CXFA_Node* CreateWidgetFormItem(XFA_WIDGETTYPE eType, CXFA_Node* pP
arent, CXFA_Node* pBefore) const; | 45 CXFA_Node* CreateWidgetFormItem(XFA_WIDGETTYPE eType, CXFA_Node* pP
arent, CXFA_Node* pBefore) const; |
46 | 46 |
47 CXFA_Node* CreatePushButton(CXFA_Node* pParent, CXFA_Node* pBefore)
const; | 47 CXFA_Node* CreatePushButton(CXFA_Node* pParent, CXFA_Node* pBefore)
const; |
48 CXFA_Node* CreateCheckButton(CXFA_Node* pParent, CXFA_Node* pBefore
) const; | 48 CXFA_Node* CreateCheckButton(CXFA_Node* pParent, CXFA_Node* pBefore
) const; |
49 CXFA_Node* CreateExclGroup(CXFA_Node* pParent, CXFA_Node* pBefore)
const; | 49 CXFA_Node* CreateExclGroup(CXFA_Node* pParent, CXFA_Node* pBefore)
const; |
50 CXFA_Node* CreateRadioButton(CXFA_Node* pParent, CXFA_Node* pBefore
) const; | 50 CXFA_Node* CreateRadioButton(CXFA_Node* pParent, CXFA_Node* pBefore
) const; |
51 CXFA_Node* CreateDatetimeEdit(CXFA_Node* pParent, CXFA_Node* pBefor
e) const; | 51 CXFA_Node* CreateDatetimeEdit(CXFA_Node* pParent, CXFA_Node* pBefor
e) const; |
52 CXFA_Node* CreateDecimalField(CXFA_Node* pParent, CXFA_Node* pBefor
e) const; | 52 CXFA_Node* CreateDecimalField(CXFA_Node* pParent, CXFA_Node* pBefor
e) const; |
53 CXFA_Node* CreateNumericField(CXFA_Node* pParent, CXFA_Node* pBefor
e) const; | 53 CXFA_Node* CreateNumericField(CXFA_Node* pParent, CXFA_Node* pBefor
e) const; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual FX_BOOL Delete(IXFA_Widget* hWidget); | 95 virtual FX_BOOL Delete(IXFA_Widget* hWidget); |
96 virtual FX_BOOL DeSelect(IXFA_Widget* hWidget); | 96 virtual FX_BOOL DeSelect(IXFA_Widget* hWidget); |
97 virtual FX_BOOL CanUndo(IXFA_Widget* hWidget); | 97 virtual FX_BOOL CanUndo(IXFA_Widget* hWidget); |
98 virtual FX_BOOL CanRedo(IXFA_Widget* hWidget); | 98 virtual FX_BOOL CanRedo(IXFA_Widget* hWidget); |
99 virtual FX_BOOL Undo(IXFA_Widget* hWidget); | 99 virtual FX_BOOL Undo(IXFA_Widget* hWidget); |
100 virtual FX_BOOL Redo(IXFA_Widget* hWidget); | 100 virtual FX_BOOL Redo(IXFA_Widget* hWidget); |
101 virtual FX_BOOL GetSuggestWords(IXFA_Widget* hWidget, CFX_PointF
pointf, CFX_ByteStringArray &sSuggest); | 101 virtual FX_BOOL GetSuggestWords(IXFA_Widget* hWidget, CFX_PointF
pointf, CFX_ByteStringArray &sSuggest); |
102 virtual FX_BOOL ReplaceSpellCheckWord(IXFA_Widget* hWidget, CFX_
PointF pointf, FX_BSTR bsReplace); | 102 virtual FX_BOOL ReplaceSpellCheckWord(IXFA_Widget* hWidget, CFX_
PointF pointf, FX_BSTR bsReplace); |
103 }; | 103 }; |
104 #endif | 104 #endif |
OLD | NEW |