| 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 "xfa/src/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
| 8 #include "xfa/src/fxfa/src/common/xfa_common.h" | 8 #include "xfa/src/fxfa/src/app/xfa_ffapp.h" |
| 9 #include "xfa/src/fxfa/src/app/xfa_fwladapter.h" | 9 #include "xfa/src/fxfa/src/app/xfa_ffdoc.h" |
| 10 #include "xfa/src/fxfa/src/app/xfa_ffwidget.h" | 10 #include "xfa/src/fxfa/src/app/xfa_ffdocview.h" |
| 11 #include "xfa/src/fxfa/src/app/xfa_fffield.h" | 11 #include "xfa/src/fxfa/src/app/xfa_fffield.h" |
| 12 #include "xfa/src/fxfa/src/app/xfa_ffpageview.h" | 12 #include "xfa/src/fxfa/src/app/xfa_ffpageview.h" |
| 13 #include "xfa/src/fxfa/src/app/xfa_fftextedit.h" | 13 #include "xfa/src/fxfa/src/app/xfa_fftextedit.h" |
| 14 #include "xfa/src/fxfa/src/app/xfa_ffwidget.h" |
| 15 #include "xfa/src/fxfa/src/app/xfa_fwladapter.h" |
| 14 #include "xfa/src/fxfa/src/app/xfa_textlayout.h" | 16 #include "xfa/src/fxfa/src/app/xfa_textlayout.h" |
| 15 #include "xfa/src/fxfa/src/app/xfa_ffapp.h" | 17 #include "xfa/src/fxfa/src/common/xfa_common.h" |
| 16 #include "xfa/src/fxfa/src/app/xfa_ffdocview.h" | |
| 17 #include "xfa/src/fxfa/src/app/xfa_ffdoc.h" | |
| 18 CXFA_FFTextEdit::CXFA_FFTextEdit(CXFA_FFPageView* pPageView, | 18 CXFA_FFTextEdit::CXFA_FFTextEdit(CXFA_FFPageView* pPageView, |
| 19 CXFA_WidgetAcc* pDataAcc) | 19 CXFA_WidgetAcc* pDataAcc) |
| 20 : CXFA_FFField(pPageView, pDataAcc), m_pOldDelegate(NULL) {} | 20 : CXFA_FFField(pPageView, pDataAcc), m_pOldDelegate(NULL) {} |
| 21 CXFA_FFTextEdit::~CXFA_FFTextEdit() { | 21 CXFA_FFTextEdit::~CXFA_FFTextEdit() { |
| 22 if (m_pNormalWidget) { | 22 if (m_pNormalWidget) { |
| 23 IFWL_Widget* pWidget = m_pNormalWidget->GetWidget(); | 23 IFWL_Widget* pWidget = m_pNormalWidget->GetWidget(); |
| 24 IFWL_NoteDriver* pNoteDriver = FWL_GetApp()->GetNoteDriver(); | 24 IFWL_NoteDriver* pNoteDriver = FWL_GetApp()->GetNoteDriver(); |
| 25 pNoteDriver->UnregisterEventTarget(pWidget); | 25 pNoteDriver->UnregisterEventTarget(pWidget); |
| 26 } | 26 } |
| 27 } | 27 } |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 FX_DWORD dwEventID = pEvent->GetClassID(); | 799 FX_DWORD dwEventID = pEvent->GetClassID(); |
| 800 if (dwEventID == FWL_EVTHASH_DTP_SelectChanged) { | 800 if (dwEventID == FWL_EVTHASH_DTP_SelectChanged) { |
| 801 CFWL_Event_DtpSelectChanged* event = (CFWL_Event_DtpSelectChanged*)pEvent; | 801 CFWL_Event_DtpSelectChanged* event = (CFWL_Event_DtpSelectChanged*)pEvent; |
| 802 OnSelectChanged(m_pNormalWidget->GetWidget(), event->iYear, event->iMonth, | 802 OnSelectChanged(m_pNormalWidget->GetWidget(), event->iYear, event->iMonth, |
| 803 event->iDay); | 803 event->iDay); |
| 804 return TRUE; | 804 return TRUE; |
| 805 } else { | 805 } else { |
| 806 return CXFA_FFTextEdit::OnProcessEvent(pEvent); | 806 return CXFA_FFTextEdit::OnProcessEvent(pEvent); |
| 807 } | 807 } |
| 808 } | 808 } |
| OLD | NEW |