| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 280 |
| 281 pEdit->SetReadyToInput(); | 281 pEdit->SetReadyToInput(); |
| 282 CFX_WideString wsText = pEdit->GetText(); | 282 CFX_WideString wsText = pEdit->GetText(); |
| 283 int nCharacters = wsText.GetLength(); | 283 int nCharacters = wsText.GetLength(); |
| 284 CFX_ByteString bsUTFText = wsText.UTF16LE_Encode(); | 284 CFX_ByteString bsUTFText = wsText.UTF16LE_Encode(); |
| 285 unsigned short* pBuffer = (unsigned short*)bsUTFText.c_str(); | 285 unsigned short* pBuffer = (unsigned short*)bsUTFText.c_str(); |
| 286 m_pApp->FFI_OnSetFieldInputFocus(m_pWidget->GetFormField(), pBuffer, | 286 m_pApp->FFI_OnSetFieldInputFocus(m_pWidget->GetFormField(), pBuffer, |
| 287 nCharacters, TRUE); | 287 nCharacters, TRUE); |
| 288 | 288 |
| 289 pEdit->SetEditNotify(this); | 289 pEdit->SetEditNotify(this); |
| 290 // pUndo->BeginEdit(pDocument); | |
| 291 } | 290 } |
| 292 } | 291 } |
| 293 | 292 |
| 294 void CFFL_TextField::OnKillFocus(CPWL_Wnd* pWnd) {} | 293 void CFFL_TextField::OnKillFocus(CPWL_Wnd* pWnd) {} |
| 295 | 294 |
| 296 FX_BOOL CFFL_TextField::CanCopy(CPDFSDK_Document* pDocument) { | |
| 297 return FALSE; | |
| 298 } | |
| 299 | |
| 300 FX_BOOL CFFL_TextField::CanCut(CPDFSDK_Document* pDocument) { | |
| 301 return FALSE; | |
| 302 } | |
| 303 | |
| 304 FX_BOOL CFFL_TextField::CanPaste(CPDFSDK_Document* pDocument) { | |
| 305 return FALSE; | |
| 306 } | |
| 307 | |
| 308 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) {} | 295 void CFFL_TextField::OnAddUndo(CPWL_Edit* pEdit) {} |
| OLD | NEW |