Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_Edit.cpp

Issue 1171733003: Remove typdefs for pointer types in fx_system.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual fixes. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "../../../core/include/fxcrt/fx_safe_types.h" 7 #include "../../../core/include/fxcrt/fx_safe_types.h"
8 #include "../../include/pdfwindow/PDFWindow.h" 8 #include "../../include/pdfwindow/PDFWindow.h"
9 #include "../../include/pdfwindow/PWL_Caret.h" 9 #include "../../include/pdfwindow/PWL_Caret.h"
10 #include "../../include/pdfwindow/PWL_Edit.h" 10 #include "../../include/pdfwindow/PWL_Edit.h"
(...skipping 19 matching lines...) Expand all
30 30
31 CFX_ByteString CPWL_Edit::GetClassName() const 31 CFX_ByteString CPWL_Edit::GetClassName() const
32 { 32 {
33 return PWL_CLASSNAME_EDIT; 33 return PWL_CLASSNAME_EDIT;
34 } 34 }
35 35
36 void CPWL_Edit::OnDestroy() 36 void CPWL_Edit::OnDestroy()
37 { 37 {
38 } 38 }
39 39
40 void CPWL_Edit::SetText(FX_LPCWSTR csText) 40 void CPWL_Edit::SetText(const FX_WCHAR* csText)
41 { 41 {
42 CFX_WideString swText = csText; 42 CFX_WideString swText = csText;
43 43
44 if (HasFlag(PES_RICH)) 44 if (HasFlag(PES_RICH))
45 { 45 {
46 CFX_ByteString sValue = CFX_ByteString::FromUnicode(swText); 46 CFX_ByteString sValue = CFX_ByteString::FromUnicode(swText);
47 47
48 if (CXML_Element * pXML = CXML_Element::Parse(sValue.c_str(), sV alue.GetLength())) 48 if (CXML_Element * pXML = CXML_Element::Parse(sValue.c_str(), sV alue.GetLength()))
49 { 49 {
50 int32_t nCount = pXML->CountChildren(); 50 int32_t nCount = pXML->CountChildren();
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 } 858 }
859 } 859 }
860 } 860 }
861 } 861 }
862 862
863 void CPWL_Edit::SetLimitChar(int32_t nLimitChar) 863 void CPWL_Edit::SetLimitChar(int32_t nLimitChar)
864 { 864 {
865 m_pEdit->SetLimitChar(nLimitChar); 865 m_pEdit->SetLimitChar(nLimitChar);
866 } 866 }
867 867
868 void CPWL_Edit::ReplaceSel(FX_LPCWSTR csText) 868 void CPWL_Edit::ReplaceSel(const FX_WCHAR* csText)
869 { 869 {
870 m_pEdit->Clear(); 870 m_pEdit->Clear();
871 m_pEdit->InsertText(csText); 871 m_pEdit->InsertText(csText);
872 } 872 }
873 873
874 CPDF_Rect CPWL_Edit::GetFocusRect() const 874 CPDF_Rect CPWL_Edit::GetFocusRect() const
875 { 875 {
876 return CPDF_Rect(); 876 return CPDF_Rect();
877 } 877 }
878 878
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 IFX_Edit::GeneratePageObjects(pPageObjects, m_pEdit, ptOffset, NULL, CPW L_Utils::PWLColorToFXColor(GetTextColor(),GetTransparency()), ObjArray); 1311 IFX_Edit::GeneratePageObjects(pPageObjects, m_pEdit, ptOffset, NULL, CPW L_Utils::PWLColorToFXColor(GetTextColor(),GetTransparency()), ObjArray);
1312 } 1312 }
1313 1313
1314 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjects* pPageObjects, 1314 void CPWL_Edit::GeneratePageObjects(CPDF_PageObjects* pPageObjects,
1315 const CP DF_Point& ptOffset) 1315 const CP DF_Point& ptOffset)
1316 { 1316 {
1317 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray; 1317 CFX_ArrayTemplate<CPDF_TextObject*> ObjArray;
1318 IFX_Edit::GeneratePageObjects(pPageObjects, m_pEdit, ptOffset, NULL, CPW L_Utils::PWLColorToFXColor(GetTextColor(),GetTransparency()), ObjArray); 1318 IFX_Edit::GeneratePageObjects(pPageObjects, m_pEdit, ptOffset, NULL, CPW L_Utils::PWLColorToFXColor(GetTextColor(),GetTransparency()), ObjArray);
1319 } 1319 }
1320 1320
OLDNEW
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698