| 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 "../../include/formfiller/FFL_TextField.h" | 7 #include "../../include/formfiller/FFL_TextField.h" |
| 8 #include "../../include/formfiller/FFL_CBA_Fontmap.h" | 8 #include "../../include/formfiller/FFL_CBA_Fontmap.h" |
| 9 | 9 |
| 10 /* ------------------------------- CFFL_TextField ------------------------------
- */ | 10 /* ------------------------------- CFFL_TextField ------------------------------
- */ |
| 11 | 11 |
| 12 CFFL_TextField::CFFL_TextField(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot)
: | 12 CFFL_TextField::CFFL_TextField(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot)
: |
| 13 CFFL_FormFiller(pApp, pAnnot), | 13 CFFL_FormFiller(pApp, pAnnot), |
| 14 m_pFontMap(NULL)//, | 14 m_pFontMap(NULL)//, |
| 15 //m_pSpellCheck(NULL) | 15 //m_pSpellCheck(NULL) |
| 16 { | 16 { |
| 17 m_State.nStart = m_State.nEnd = 0; | 17 m_State.nStart = m_State.nEnd = 0; |
| 18 } | 18 } |
| 19 | 19 |
| 20 CFFL_TextField::~CFFL_TextField() | 20 CFFL_TextField::~CFFL_TextField() |
| 21 { | 21 { |
| 22 » if (m_pFontMap) | 22 delete m_pFontMap; |
| 23 » { | |
| 24 » » delete m_pFontMap; | |
| 25 » » m_pFontMap = NULL; | |
| 26 » } | |
| 27 | |
| 28 } | 23 } |
| 29 | 24 |
| 30 PWL_CREATEPARAM CFFL_TextField::GetCreateParam() | 25 PWL_CREATEPARAM CFFL_TextField::GetCreateParam() |
| 31 { | 26 { |
| 32 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam(); | 27 PWL_CREATEPARAM cp = CFFL_FormFiller::GetCreateParam(); |
| 33 | 28 |
| 34 ASSERT(m_pWidget != NULL); | 29 ASSERT(m_pWidget != NULL); |
| 35 int nFlags = m_pWidget->GetFieldFlags(); | 30 int nFlags = m_pWidget->GetFieldFlags(); |
| 36 | 31 |
| 37 | 32 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 377 |
| 383 void CFFL_TextField::DoPaste(CPDFSDK_Document* pDocument) | 378 void CFFL_TextField::DoPaste(CPDFSDK_Document* pDocument) |
| 384 { | 379 { |
| 385 | 380 |
| 386 } | 381 } |
| 387 | 382 |
| 388 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) | 383 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) |
| 389 { | 384 { |
| 390 } | 385 } |
| 391 | 386 |
| OLD | NEW |