| 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 "core/fxge/include/cfx_graphstatedata.h" | 11 #include "core/fxge/include/cfx_graphstatedata.h" |
| 12 #include "core/fxge/include/cfx_pathdata.h" | 12 #include "core/fxge/include/cfx_pathdata.h" |
| 13 #include "core/fxge/include/cfx_renderdevice.h" | 13 #include "core/fxge/include/cfx_renderdevice.h" |
| 14 #include "fpdfsdk/formfiller/cffl_checkbox.h" | 14 #include "fpdfsdk/formfiller/cffl_checkbox.h" |
| 15 #include "fpdfsdk/formfiller/cffl_combobox.h" | 15 #include "fpdfsdk/formfiller/cffl_combobox.h" |
| 16 #include "fpdfsdk/formfiller/cffl_formfiller.h" | 16 #include "fpdfsdk/formfiller/cffl_formfiller.h" |
| 17 #include "fpdfsdk/formfiller/cffl_listbox.h" | 17 #include "fpdfsdk/formfiller/cffl_listbox.h" |
| 18 #include "fpdfsdk/formfiller/cffl_pushbutton.h" | 18 #include "fpdfsdk/formfiller/cffl_pushbutton.h" |
| 19 #include "fpdfsdk/formfiller/cffl_radiobutton.h" | 19 #include "fpdfsdk/formfiller/cffl_radiobutton.h" |
| 20 #include "fpdfsdk/formfiller/cffl_textfield.h" | 20 #include "fpdfsdk/formfiller/cffl_textfield.h" |
| 21 #include "fpdfsdk/include/cpdfdoc_environment.h" | |
| 22 #include "fpdfsdk/include/cpdfsdk_document.h" | 21 #include "fpdfsdk/include/cpdfsdk_document.h" |
| 22 #include "fpdfsdk/include/cpdfsdk_environment.h" |
| 23 #include "fpdfsdk/include/cpdfsdk_interform.h" | 23 #include "fpdfsdk/include/cpdfsdk_interform.h" |
| 24 #include "fpdfsdk/include/cpdfsdk_pageview.h" | 24 #include "fpdfsdk/include/cpdfsdk_pageview.h" |
| 25 #include "fpdfsdk/include/cpdfsdk_widget.h" | 25 #include "fpdfsdk/include/cpdfsdk_widget.h" |
| 26 #include "fpdfsdk/pdfwindow/PWL_Utils.h" | 26 #include "fpdfsdk/pdfwindow/PWL_Utils.h" |
| 27 | 27 |
| 28 #define FFL_MAXLISTBOXHEIGHT 140.0f | 28 #define FFL_MAXLISTBOXHEIGHT 140.0f |
| 29 | 29 |
| 30 CFFL_IFormFiller::CFFL_IFormFiller(CPDFDoc_Environment* pApp) | 30 CFFL_IFormFiller::CFFL_IFormFiller(CPDFSDK_Environment* pApp) |
| 31 : m_pApp(pApp), m_bNotifying(FALSE) {} | 31 : m_pApp(pApp), m_bNotifying(FALSE) {} |
| 32 | 32 |
| 33 CFFL_IFormFiller::~CFFL_IFormFiller() {} | 33 CFFL_IFormFiller::~CFFL_IFormFiller() {} |
| 34 | 34 |
| 35 FX_BOOL CFFL_IFormFiller::Annot_HitTest(CPDFSDK_PageView* pPageView, | 35 FX_BOOL CFFL_IFormFiller::Annot_HitTest(CPDFSDK_PageView* pPageView, |
| 36 CPDFSDK_Annot* pAnnot, | 36 CPDFSDK_Annot* pAnnot, |
| 37 CFX_FloatPoint point) { | 37 CFX_FloatPoint point) { |
| 38 CFX_FloatRect rc = pAnnot->GetRect(); | 38 CFX_FloatRect rc = pAnnot->GetRect(); |
| 39 return rc.Contains(point.x, point.y); | 39 return rc.Contains(point.x, point.y); |
| 40 } | 40 } |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 bExit = TRUE; | 998 bExit = TRUE; |
| 999 m_bNotifying = FALSE; | 999 m_bNotifying = FALSE; |
| 1000 return; | 1000 return; |
| 1001 } | 1001 } |
| 1002 } | 1002 } |
| 1003 | 1003 |
| 1004 m_bNotifying = FALSE; | 1004 m_bNotifying = FALSE; |
| 1005 } | 1005 } |
| 1006 } | 1006 } |
| 1007 } | 1007 } |
| OLD | NEW |