| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 383 |
| 384 void CFFL_TextField::DoPaste(CPDFSDK_Document* pDocument) | 384 void CFFL_TextField::DoPaste(CPDFSDK_Document* pDocument) |
| 385 { | 385 { |
| 386 | 386 |
| 387 } | 387 } |
| 388 | 388 |
| 389 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) | 389 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) |
| 390 { | 390 { |
| 391 } | 391 } |
| 392 | 392 |
| OLD | NEW |