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 _FFL_COMBOBOX_H_ | 7 #ifndef _FFL_COMBOBOX_H_ |
8 #define _FFL_COMBOBOX_H_ | 8 #define _FFL_COMBOBOX_H_ |
| 9 |
| 10 #include "../../../core/include/fxcrt/fx_string.h" |
| 11 #include "FFL_FormFiller.h" |
| 12 |
| 13 class CBA_FontMap; |
| 14 class CPDFSDK_Document; |
9 | 15 |
10 struct FFL_ComboBoxState | 16 struct FFL_ComboBoxState |
11 { | 17 { |
12 int nIndex; | 18 int nIndex; |
13 int nStart; | 19 int nStart; |
14 int nEnd; | 20 int nEnd; |
15 CFX_WideString sValue; | 21 CFX_WideString sValue; |
16 }; | 22 }; |
17 class CBA_FontMap; | |
18 | 23 |
19 class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler, public I
PWL_Edit_Notify | 24 class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler, public I
PWL_Edit_Notify |
20 { | 25 { |
21 public: | 26 public: |
22 CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); | 27 CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); |
23 virtual ~CFFL_ComboBox(); | 28 virtual ~CFFL_ComboBox(); |
24 | 29 |
25 virtual PWL_CREATEPARAM GetCreateParam(); | 30 virtual PWL_CREATEPARAM GetCreateParam(); |
26 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR
AM& cp, CPDFSDK_PageView* pPageView); | 31 virtual CPWL_Wnd* NewPDFWindow(const PWL_CREATEPAR
AM& cp, CPDFSDK_PageView* pPageView); |
27 | 32 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 CFX_WideString GetSelectExportText(); | 67 CFX_WideString GetSelectExportText(); |
63 | 68 |
64 private: | 69 private: |
65 CBA_FontMap* m_pFontMap; | 70 CBA_FontMap* m_pFontMap; |
66 FFL_ComboBoxState m_State; | 71 FFL_ComboBoxState m_State; |
67 //CFFL_IM_BOX m_IMBox; | 72 //CFFL_IM_BOX m_IMBox; |
68 }; | 73 }; |
69 | 74 |
70 #endif //_FFL_COMBOBOX_H_ | 75 #endif //_FFL_COMBOBOX_H_ |
71 | 76 |
OLD | NEW |