Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1304)

Side by Side Diff: xfa/src/fxfa/app/xfa_ffchoicelist.h

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/src/fxfa/app/xfa_ffcheckbutton.cpp ('k') | xfa/src/fxfa/app/xfa_ffchoicelist.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
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 XFA_SRC_FXFA_APP_XFA_FFCHOICELIST_H_
8 #define XFA_SRC_FXFA_APP_XFA_FFCHOICELIST_H_
9
10 #include "xfa/src/fxfa/app/xfa_fffield.h"
11 #include "xfa/src/fxfa/app/xfa_ffpageview.h"
12
13 class CXFA_FFListBox : public CXFA_FFField {
14 public:
15 CXFA_FFListBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
16 virtual ~CXFA_FFListBox();
17 virtual FX_BOOL LoadWidget();
18 virtual FX_BOOL OnKillFocus(CXFA_FFWidget* pNewWidget);
19
20 protected:
21 virtual FX_BOOL CommitData();
22 virtual FX_BOOL UpdateFWLData();
23 virtual FX_BOOL IsDataChanged();
24 FX_DWORD GetAlignment();
25
26 public:
27 void OnSelectChanged(IFWL_Widget* pWidget, const CFX_Int32Array& arrSels);
28 void SetItemState(int32_t nIndex, FX_BOOL bSelected);
29 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1);
30 void DeleteItem(int32_t nIndex);
31 virtual int32_t OnProcessMessage(CFWL_Message* pMessage);
32 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent);
33 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics,
34 const CFX_Matrix* pMatrix = NULL);
35
36 protected:
37 IFWL_WidgetDelegate* m_pOldDelegate;
38 };
39 class CXFA_FFComboBox : public CXFA_FFField {
40 public:
41 CXFA_FFComboBox(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc);
42 virtual ~CXFA_FFComboBox();
43 virtual FX_BOOL GetBBox(CFX_RectF& rtBox,
44 FX_DWORD dwStatus,
45 FX_BOOL bDrawFocus = FALSE);
46 virtual FX_BOOL LoadWidget();
47 virtual void UpdateWidgetProperty();
48 virtual FX_BOOL OnRButtonUp(FX_DWORD dwFlags, FX_FLOAT fx, FX_FLOAT fy);
49 virtual FX_BOOL OnKillFocus(CXFA_FFWidget* pNewWidget);
50 virtual FX_BOOL CanUndo();
51 virtual FX_BOOL CanRedo();
52 virtual FX_BOOL Undo();
53 virtual FX_BOOL Redo();
54
55 virtual FX_BOOL CanCopy();
56 virtual FX_BOOL CanCut();
57 virtual FX_BOOL CanPaste();
58 virtual FX_BOOL CanSelectAll();
59 virtual FX_BOOL Copy(CFX_WideString& wsCopy);
60 virtual FX_BOOL Cut(CFX_WideString& wsCut);
61 virtual FX_BOOL Paste(const CFX_WideString& wsPaste);
62 virtual FX_BOOL SelectAll();
63 virtual FX_BOOL Delete();
64 virtual FX_BOOL DeSelect();
65 void OpenDropDownList();
66
67 protected:
68 virtual FX_BOOL PtInActiveRect(FX_FLOAT fx, FX_FLOAT fy);
69 virtual FX_BOOL CommitData();
70 virtual FX_BOOL UpdateFWLData();
71 virtual FX_BOOL IsDataChanged();
72 FX_DWORD GetAlignment();
73 void FWLEventSelChange(CXFA_EventParam* pParam);
74
75 CFX_WideString m_wsNewValue;
76
77 public:
78 void OnTextChanged(IFWL_Widget* pWidget, const CFX_WideString& wsChanged);
79 void OnSelectChanged(IFWL_Widget* pWidget,
80 const CFX_Int32Array& arrSels,
81 FX_BOOL bLButtonUp);
82 void OnPreOpen(IFWL_Widget* pWidget);
83 void OnPostOpen(IFWL_Widget* pWidget);
84 void SetItemState(int32_t nIndex, FX_BOOL bSelected);
85 void InsertItem(const CFX_WideStringC& wsLabel, int32_t nIndex = -1);
86 void DeleteItem(int32_t nIndex);
87 virtual int32_t OnProcessMessage(CFWL_Message* pMessage);
88 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent);
89 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics,
90 const CFX_Matrix* pMatrix = NULL);
91
92 protected:
93 IFWL_WidgetDelegate* m_pOldDelegate;
94 };
95
96 #endif // XFA_SRC_FXFA_APP_XFA_FFCHOICELIST_H_
OLDNEW
« no previous file with comments | « xfa/src/fxfa/app/xfa_ffcheckbutton.cpp ('k') | xfa/src/fxfa/app/xfa_ffchoicelist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698