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_iformfiller.h" | 7 #include "fpdfsdk/formfiller/cffl_iformfiller.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
11 #include "fpdfsdk/formfiller/cffl_checkbox.h" | 11 #include "fpdfsdk/formfiller/cffl_checkbox.h" |
12 #include "fpdfsdk/formfiller/cffl_combobox.h" | 12 #include "fpdfsdk/formfiller/cffl_combobox.h" |
13 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 13 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
14 #include "fpdfsdk/formfiller/cffl_listbox.h" | 14 #include "fpdfsdk/formfiller/cffl_listbox.h" |
15 #include "fpdfsdk/formfiller/cffl_pushbutton.h" | 15 #include "fpdfsdk/formfiller/cffl_pushbutton.h" |
16 #include "fpdfsdk/formfiller/cffl_radiobutton.h" | 16 #include "fpdfsdk/formfiller/cffl_radiobutton.h" |
17 #include "fpdfsdk/formfiller/cffl_textfield.h" | 17 #include "fpdfsdk/formfiller/cffl_textfield.h" |
18 #include "fpdfsdk/include/fsdk_mgr.h" | 18 #include "fpdfsdk/include/fsdk_mgr.h" |
19 #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" | 19 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
20 | 20 |
21 #define FFL_MAXLISTBOXHEIGHT 140.0f | 21 #define FFL_MAXLISTBOXHEIGHT 140.0f |
22 | 22 |
23 CFFL_IFormFiller::CFFL_IFormFiller(CPDFDoc_Environment* pApp) | 23 CFFL_IFormFiller::CFFL_IFormFiller(CPDFDoc_Environment* pApp) |
24 : m_pApp(pApp), m_bNotifying(FALSE) {} | 24 : m_pApp(pApp), m_bNotifying(FALSE) {} |
25 | 25 |
26 CFFL_IFormFiller::~CFFL_IFormFiller() { | 26 CFFL_IFormFiller::~CFFL_IFormFiller() { |
27 for (auto& it : m_Maps) | 27 for (auto& it : m_Maps) |
28 delete it.second; | 28 delete it.second; |
29 m_Maps.clear(); | 29 m_Maps.clear(); |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 bExit = TRUE; | 1007 bExit = TRUE; |
1008 m_bNotifying = FALSE; | 1008 m_bNotifying = FALSE; |
1009 return; | 1009 return; |
1010 } | 1010 } |
1011 } | 1011 } |
1012 | 1012 |
1013 m_bNotifying = FALSE; | 1013 m_bNotifying = FALSE; |
1014 } | 1014 } |
1015 } | 1015 } |
1016 } | 1016 } |
OLD | NEW |