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 "fpdfsdk/formfiller/cffl_listbox.h" | 7 #include "fpdfsdk/formfiller/cffl_listbox.h" |
8 | 8 |
9 #include "fpdfsdk/formfiller/cba_fontmap.h" | 9 #include "fpdfsdk/formfiller/cba_fontmap.h" |
10 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 10 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
11 #include "fpdfsdk/formfiller/cffl_iformfiller.h" | 11 #include "fpdfsdk/formfiller/cffl_iformfiller.h" |
| 12 #include "fpdfsdk/include/cpdfsdk_widget.h" |
12 #include "fpdfsdk/include/fsdk_common.h" | 13 #include "fpdfsdk/include/fsdk_common.h" |
13 #include "fpdfsdk/include/fsdk_mgr.h" | 14 #include "fpdfsdk/include/fsdk_mgr.h" |
14 #include "fpdfsdk/pdfwindow/PWL_ListBox.h" | 15 #include "fpdfsdk/pdfwindow/PWL_ListBox.h" |
15 | 16 |
16 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f | 17 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f |
17 | 18 |
18 CFFL_ListBox::CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget) | 19 CFFL_ListBox::CFFL_ListBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget) |
19 : CFFL_FormFiller(pApp, pWidget) {} | 20 : CFFL_FormFiller(pApp, pWidget) {} |
20 | 21 |
21 CFFL_ListBox::~CFFL_ListBox() {} | 22 CFFL_ListBox::~CFFL_ListBox() {} |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 RestoreState(pPageView); | 198 RestoreState(pPageView); |
198 pRet = GetPDFWindow(pPageView, FALSE); | 199 pRet = GetPDFWindow(pPageView, FALSE); |
199 } else { | 200 } else { |
200 pRet = GetPDFWindow(pPageView, TRUE); | 201 pRet = GetPDFWindow(pPageView, TRUE); |
201 } | 202 } |
202 | 203 |
203 m_pWidget->UpdateField(); | 204 m_pWidget->UpdateField(); |
204 | 205 |
205 return pRet; | 206 return pRet; |
206 } | 207 } |
OLD | NEW |