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

Side by Side Diff: fpdfsdk/include/formfiller/FFL_ComboBox.h

Issue 1809193002: Move fpdfsdk/include/formfiller to fpdfsdk/formfiller. (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 | « fpdfsdk/include/formfiller/FFL_CheckBox.h ('k') | fpdfsdk/include/formfiller/FFL_FormFiller.h » ('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 FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_
9
10 #include "core/include/fxcrt/fx_string.h"
11 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
12
13 class CBA_FontMap;
14
15 struct FFL_ComboBoxState {
16 int nIndex;
17 int nStart;
18 int nEnd;
19 CFX_WideString sValue;
20 };
21
22 class CFFL_ComboBox : public CFFL_FormFiller,
23 public IPWL_FocusHandler,
24 public IPWL_Edit_Notify {
25 public:
26 CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget);
27 ~CFFL_ComboBox() override;
28
29 // CFFL_FormFiller:
30 PWL_CREATEPARAM GetCreateParam() override;
31 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp,
32 CPDFSDK_PageView* pPageView) override;
33 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags) override;
34 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override;
35 void SaveData(CPDFSDK_PageView* pPageView) override;
36 void GetActionData(CPDFSDK_PageView* pPageView,
37 CPDF_AAction::AActionType type,
38 PDFSDK_FieldAction& fa) override;
39 void SetActionData(CPDFSDK_PageView* pPageView,
40 CPDF_AAction::AActionType type,
41 const PDFSDK_FieldAction& fa) override;
42 FX_BOOL IsActionDataChanged(CPDF_AAction::AActionType type,
43 const PDFSDK_FieldAction& faOld,
44 const PDFSDK_FieldAction& faNew) override;
45 void SaveState(CPDFSDK_PageView* pPageView) override;
46 void RestoreState(CPDFSDK_PageView* pPageView) override;
47 CPWL_Wnd* ResetPDFWindow(CPDFSDK_PageView* pPageView,
48 FX_BOOL bRestoreValue) override;
49
50 // IPWL_FocusHandler:
51 void OnSetFocus(CPWL_Wnd* pWnd) override;
52 void OnKillFocus(CPWL_Wnd* pWnd) override;
53
54 // IPWL_Edit_Notify:
55 void OnAddUndo(CPWL_Edit* pEdit) override;
56
57 #ifdef PDF_ENABLE_XFA
58 // CFFL_FormFiller:
59 FX_BOOL IsFieldFull(CPDFSDK_PageView* pPageView) override;
60 #endif // PDF_ENABLE_XFA
61
62 private:
63 CFX_WideString GetSelectExportText();
64
65 CBA_FontMap* m_pFontMap;
66 FFL_ComboBoxState m_State;
67 };
68
69 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/formfiller/FFL_CheckBox.h ('k') | fpdfsdk/include/formfiller/FFL_FormFiller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698