| 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/pdfwindow/PDFWindow.h" | 7 #include "../../include/pdfwindow/PDFWindow.h" |
| 8 #include "../../include/pdfwindow/PWL_Wnd.h" | 8 #include "../../include/pdfwindow/PWL_Wnd.h" |
| 9 #include "../../include/pdfwindow/PWL_EditCtrl.h" | 9 #include "../../include/pdfwindow/PWL_EditCtrl.h" |
| 10 #include "../../include/pdfwindow/PWL_ScrollBar.h" | 10 #include "../../include/pdfwindow/PWL_ScrollBar.h" |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 if (pIterator->GetSection(section)) | 554 if (pIterator->GetSection(section)) |
| 555 { | 555 { |
| 556 fFontSize = section.WordProps.fFontSize; | 556 fFontSize = section.WordProps.fFontSize; |
| 557 } | 557 } |
| 558 } | 558 } |
| 559 } | 559 } |
| 560 | 560 |
| 561 return fFontSize; | 561 return fFontSize; |
| 562 } | 562 } |
| 563 | 563 |
| 564 void CPWL_EditCtrl::SetText(FX_LPCWSTR csText) | 564 void CPWL_EditCtrl::SetText(const FX_WCHAR* csText) |
| 565 { | 565 { |
| 566 m_pEdit->SetText(csText); | 566 m_pEdit->SetText(csText); |
| 567 } | 567 } |
| 568 | 568 |
| 569 void CPWL_EditCtrl::CopyText() | 569 void CPWL_EditCtrl::CopyText() |
| 570 { | 570 { |
| 571 } | 571 } |
| 572 | 572 |
| 573 void CPWL_EditCtrl::PasteText() | 573 void CPWL_EditCtrl::PasteText() |
| 574 { | 574 { |
| 575 } | 575 } |
| 576 | 576 |
| 577 void CPWL_EditCtrl::CutText() | 577 void CPWL_EditCtrl::CutText() |
| 578 { | 578 { |
| 579 } | 579 } |
| 580 | 580 |
| 581 void CPWL_EditCtrl::ShowVScrollBar(FX_BOOL bShow) | 581 void CPWL_EditCtrl::ShowVScrollBar(FX_BOOL bShow) |
| 582 { | 582 { |
| 583 } | 583 } |
| 584 | 584 |
| 585 void CPWL_EditCtrl::InsertText(FX_LPCWSTR csText) | 585 void CPWL_EditCtrl::InsertText(const FX_WCHAR* csText) |
| 586 { | 586 { |
| 587 if (!IsReadOnly()) | 587 if (!IsReadOnly()) |
| 588 m_pEdit->InsertText(csText); | 588 m_pEdit->InsertText(csText); |
| 589 } | 589 } |
| 590 | 590 |
| 591 void CPWL_EditCtrl::InsertWord(FX_WORD word, int32_t nCharset) | 591 void CPWL_EditCtrl::InsertWord(FX_WORD word, int32_t nCharset) |
| 592 { | 592 { |
| 593 if (!IsReadOnly()) | 593 if (!IsReadOnly()) |
| 594 m_pEdit->InsertWord(word, nCharset); | 594 m_pEdit->InsertWord(word, nCharset); |
| 595 } | 595 } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 } | 719 } |
| 720 | 720 |
| 721 void CPWL_EditCtrl::SetReadyToInput() | 721 void CPWL_EditCtrl::SetReadyToInput() |
| 722 { | 722 { |
| 723 if (m_bMouseDown) | 723 if (m_bMouseDown) |
| 724 { | 724 { |
| 725 ReleaseCapture(); | 725 ReleaseCapture(); |
| 726 m_bMouseDown = FALSE; | 726 m_bMouseDown = FALSE; |
| 727 } | 727 } |
| 728 } | 728 } |
| OLD | NEW |