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

Side by Side Diff: fpdfsdk/formfiller/cffl_combobox.h

Issue 2333413003: Rename CPDFDoc_Environment to CPDFSDK_Environment (Closed)
Patch Set: Review feedback Created 4 years, 3 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/formfiller/cffl_checkbox.cpp ('k') | fpdfsdk/formfiller/cffl_combobox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_ 7 #ifndef FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_
8 #define FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_ 8 #define FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
11 #include "fpdfsdk/formfiller/cffl_formfiller.h" 11 #include "fpdfsdk/formfiller/cffl_formfiller.h"
12 12
13 class CBA_FontMap; 13 class CBA_FontMap;
14 14
15 struct FFL_ComboBoxState { 15 struct FFL_ComboBoxState {
16 int nIndex; 16 int nIndex;
17 int nStart; 17 int nStart;
18 int nEnd; 18 int nEnd;
19 CFX_WideString sValue; 19 CFX_WideString sValue;
20 }; 20 };
21 21
22 class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler { 22 class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler {
23 public: 23 public:
24 CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); 24 CFFL_ComboBox(CPDFSDK_Environment* pApp, CPDFSDK_Annot* pWidget);
25 ~CFFL_ComboBox() override; 25 ~CFFL_ComboBox() override;
26 26
27 // CFFL_FormFiller: 27 // CFFL_FormFiller:
28 PWL_CREATEPARAM GetCreateParam() override; 28 PWL_CREATEPARAM GetCreateParam() override;
29 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp, 29 CPWL_Wnd* NewPDFWindow(const PWL_CREATEPARAM& cp,
30 CPDFSDK_PageView* pPageView) override; 30 CPDFSDK_PageView* pPageView) override;
31 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags) override; 31 FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags) override;
32 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override; 32 FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView) override;
33 void SaveData(CPDFSDK_PageView* pPageView) override; 33 void SaveData(CPDFSDK_PageView* pPageView) override;
34 void GetActionData(CPDFSDK_PageView* pPageView, 34 void GetActionData(CPDFSDK_PageView* pPageView,
(...skipping 19 matching lines...) Expand all
54 #endif // PDF_ENABLE_XFA 54 #endif // PDF_ENABLE_XFA
55 55
56 private: 56 private:
57 CFX_WideString GetSelectExportText(); 57 CFX_WideString GetSelectExportText();
58 58
59 CBA_FontMap* m_pFontMap; 59 CBA_FontMap* m_pFontMap;
60 FFL_ComboBoxState m_State; 60 FFL_ComboBoxState m_State;
61 }; 61 };
62 62
63 #endif // FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_ 63 #endif // FPDFSDK_FORMFILLER_CFFL_COMBOBOX_H_
OLDNEW
« no previous file with comments | « fpdfsdk/formfiller/cffl_checkbox.cpp ('k') | fpdfsdk/formfiller/cffl_combobox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698