| 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 ------------------------------
- */ |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 pWnd->AttachFFLData(this); | 107 pWnd->AttachFFLData(this); |
| 108 pWnd->Create(cp); | 108 pWnd->Create(cp); |
| 109 | 109 |
| 110 | 110 |
| 111 | 111 |
| 112 ASSERT(m_pApp != NULL); | 112 ASSERT(m_pApp != NULL); |
| 113 CFFL_IFormFiller* pIFormFiller = m_pApp->GetIFormFiller(); | 113 CFFL_IFormFiller* pIFormFiller = m_pApp->GetIFormFiller(); |
| 114 pWnd->SetFillerNotify(pIFormFiller); | 114 pWnd->SetFillerNotify(pIFormFiller); |
| 115 | 115 |
| 116 ASSERT(m_pWidget != NULL); | 116 ASSERT(m_pWidget != NULL); |
| 117 » FX_INT32 nMaxLen = m_pWidget->GetMaxLen(); | 117 » int32_t nMaxLen = m_pWidget->GetMaxLen(); |
| 118 CFX_WideString swValue = m_pWidget->GetValue(); | 118 CFX_WideString swValue = m_pWidget->GetValue(); |
| 119 | 119 |
| 120 if (nMaxLen > 0) | 120 if (nMaxLen > 0) |
| 121 { | 121 { |
| 122 if (pWnd->HasFlag(PES_CHARARRAY)) | 122 if (pWnd->HasFlag(PES_CHARARRAY)) |
| 123 { | 123 { |
| 124 pWnd->SetCharArray(nMaxLen); | 124 pWnd->SetCharArray(nMaxLen); |
| 125 pWnd->SetAlignFormatV(PEAV_CENTER); | 125 pWnd->SetAlignFormatV(PEAV_CENTER); |
| 126 } | 126 } |
| 127 else | 127 else |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 void CFFL_TextField::DoPaste(CPDFSDK_Document* pDocument) | 374 void CFFL_TextField::DoPaste(CPDFSDK_Document* pDocument) |
| 375 { | 375 { |
| 376 | 376 |
| 377 } | 377 } |
| 378 | 378 |
| 379 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) | 379 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) |
| 380 { | 380 { |
| 381 } | 381 } |
| 382 | 382 |
| OLD | NEW |