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/cpdfsdk_environment.h" | 9 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" |
10 #include "fpdfsdk/cpdfsdk_widget.h" | 10 #include "fpdfsdk/cpdfsdk_widget.h" |
11 #include "fpdfsdk/formfiller/cba_fontmap.h" | 11 #include "fpdfsdk/formfiller/cba_fontmap.h" |
12 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 12 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
13 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" | 13 #include "fpdfsdk/formfiller/cffl_interactiveformfiller.h" |
14 #include "fpdfsdk/fsdk_common.h" | 14 #include "fpdfsdk/fsdk_common.h" |
15 #include "fpdfsdk/pdfwindow/PWL_ListBox.h" | 15 #include "fpdfsdk/pdfwindow/PWL_ListBox.h" |
16 #include "third_party/base/ptr_util.h" | 16 #include "third_party/base/ptr_util.h" |
17 | 17 |
18 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f | 18 #define FFL_DEFAULTLISTBOXFONTSIZE 12.0f |
19 | 19 |
20 CFFL_ListBox::CFFL_ListBox(CPDFSDK_Environment* pApp, CPDFSDK_Annot* pWidget) | 20 CFFL_ListBox::CFFL_ListBox(CPDFSDK_FormFillEnvironment* pApp, |
| 21 CPDFSDK_Annot* pWidget) |
21 : CFFL_FormFiller(pApp, pWidget) {} | 22 : CFFL_FormFiller(pApp, pWidget) {} |
22 | 23 |
23 CFFL_ListBox::~CFFL_ListBox() {} | 24 CFFL_ListBox::~CFFL_ListBox() {} |
24 | 25 |
25 PWL_CREATEPARAM CFFL_ListBox::GetCreateParam() { | 26 PWL_CREATEPARAM CFFL_ListBox::GetCreateParam() { |
26 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam(); | 27 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam(); |
27 | 28 |
28 uint32_t dwFieldFlag = m_pWidget->GetFieldFlags(); | 29 uint32_t dwFieldFlag = m_pWidget->GetFieldFlags(); |
29 | 30 |
30 if (dwFieldFlag & FIELDFLAG_MULTISELECT) { | 31 if (dwFieldFlag & FIELDFLAG_MULTISELECT) { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 RestoreState(pPageView); | 200 RestoreState(pPageView); |
200 pRet = GetPDFWindow(pPageView, FALSE); | 201 pRet = GetPDFWindow(pPageView, FALSE); |
201 } else { | 202 } else { |
202 pRet = GetPDFWindow(pPageView, TRUE); | 203 pRet = GetPDFWindow(pPageView, TRUE); |
203 } | 204 } |
204 | 205 |
205 m_pWidget->UpdateField(); | 206 m_pWidget->UpdateField(); |
206 | 207 |
207 return pRet; | 208 return pRet; |
208 } | 209 } |
OLD | NEW |