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 #include "../../include/formfiller/FormFiller.h" | 7 #include "fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h" |
8 #include "../../include/formfiller/FFL_FormFiller.h" | 8 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" |
9 #include "../../include/formfiller/FFL_ListBox.h" | 9 #include "fpdfsdk/include/formfiller/FFL_IFormFiller.h" |
10 //#include "../../include/formfiller/FFL_Module.h" | 10 #include "fpdfsdk/include/formfiller/FFL_ListBox.h" |
11 #include "../../include/formfiller/FFL_IFormFiller.h" | 11 #include "fpdfsdk/include/formfiller/FormFiller.h" |
12 //#include "../../include/formfiller/FFL_Undo.h" | |
13 #include "../../include/formfiller/FFL_CBA_Fontmap.h" | |
14 | 12 |
15 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f | 13 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f |
16 | 14 |
17 /* ------------------------------- CFFL_ListBox ------------------------------- | 15 /* ------------------------------- CFFL_ListBox ------------------------------- |
18 */ | 16 */ |
19 | 17 |
20 CFFL_ListBox::CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget) | 18 CFFL_ListBox::CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget) |
21 : CFFL_FormFiller(pApp, pWidget), m_pFontMap(NULL) {} | 19 : CFFL_FormFiller(pApp, pWidget), m_pFontMap(NULL) {} |
22 | 20 |
23 CFFL_ListBox::~CFFL_ListBox() { | 21 CFFL_ListBox::~CFFL_ListBox() { |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 if (bRestoreValue) { | 219 if (bRestoreValue) { |
222 RestoreState(pPageView); | 220 RestoreState(pPageView); |
223 pRet = GetPDFWindow(pPageView, FALSE); | 221 pRet = GetPDFWindow(pPageView, FALSE); |
224 } else | 222 } else |
225 pRet = GetPDFWindow(pPageView, TRUE); | 223 pRet = GetPDFWindow(pPageView, TRUE); |
226 | 224 |
227 m_pWidget->UpdateField(); | 225 m_pWidget->UpdateField(); |
228 | 226 |
229 return pRet; | 227 return pRet; |
230 } | 228 } |
OLD | NEW |