summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pdfwindow')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_combo_box.cpp4
-rw-r--r--fpdfsdk/pdfwindow/cpwl_combo_box.h2
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit.cpp4
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit_ctrl.h2
5 files changed, 10 insertions, 10 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_combo_box.cpp b/fpdfsdk/pdfwindow/cpwl_combo_box.cpp
index e5076332f6..484027eba2 100644
--- a/fpdfsdk/pdfwindow/cpwl_combo_box.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_combo_box.cpp
@@ -227,9 +227,9 @@ void CPWL_ComboBox::GetEditSelection(int32_t& nStartChar,
m_pEdit->GetSelection(nStartChar, nEndChar);
}
-void CPWL_ComboBox::Clear() {
+void CPWL_ComboBox::ClearSelection() {
if (m_pEdit)
- m_pEdit->Clear();
+ m_pEdit->ClearSelection();
}
void CPWL_ComboBox::CreateChildWnd(const PWL_CREATEPARAM& cp) {
diff --git a/fpdfsdk/pdfwindow/cpwl_combo_box.h b/fpdfsdk/pdfwindow/cpwl_combo_box.h
index a38ffa785f..12c0fe9878 100644
--- a/fpdfsdk/pdfwindow/cpwl_combo_box.h
+++ b/fpdfsdk/pdfwindow/cpwl_combo_box.h
@@ -74,7 +74,7 @@ class CPWL_ComboBox : public CPWL_Wnd {
void SetEditSelection(int32_t nStartChar, int32_t nEndChar);
void GetEditSelection(int32_t& nStartChar, int32_t& nEndChar) const;
- void Clear();
+ void ClearSelection();
void SelectAll();
bool IsPopup() const;
diff --git a/fpdfsdk/pdfwindow/cpwl_edit.cpp b/fpdfsdk/pdfwindow/cpwl_edit.cpp
index ac1cfa94ba..89361b5835 100644
--- a/fpdfsdk/pdfwindow/cpwl_edit.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_edit.cpp
@@ -136,7 +136,7 @@ bool CPWL_Edit::CanCut() const {
void CPWL_Edit::CutText() {
if (!CanCut())
return;
- m_pEdit->Clear();
+ m_pEdit->ClearSelection();
}
void CPWL_Edit::OnCreated() {
@@ -430,7 +430,7 @@ void CPWL_Edit::SetLimitChar(int32_t nLimitChar) {
}
void CPWL_Edit::ReplaceSel(const CFX_WideString& wsText) {
- m_pEdit->Clear();
+ m_pEdit->ClearSelection();
m_pEdit->InsertText(wsText, FX_CHARSET_Default);
}
diff --git a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
index 726218989a..7b90579a5f 100644
--- a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
@@ -169,7 +169,7 @@ bool CPWL_EditCtrl::OnKeyDown(uint16_t nChar, uint32_t nFlag) {
return true;
case FWL_VKEY_Unknown:
if (!IsSHIFTpressed(nFlag))
- Clear();
+ ClearSelection();
else
CutText();
return true;
@@ -233,7 +233,7 @@ bool CPWL_EditCtrl::OnChar(uint16_t nChar, uint32_t nFlag) {
if (m_pEdit->IsSelected() && word == FWL_VKEY_Back)
word = FWL_VKEY_Unknown;
- Clear();
+ ClearSelection();
switch (word) {
case FWL_VKEY_Back:
@@ -342,9 +342,9 @@ void CPWL_EditCtrl::GetSelection(int32_t& nStartChar, int32_t& nEndChar) const {
m_pEdit->GetSelection(nStartChar, nEndChar);
}
-void CPWL_EditCtrl::Clear() {
+void CPWL_EditCtrl::ClearSelection() {
if (!IsReadOnly())
- m_pEdit->Clear();
+ m_pEdit->ClearSelection();
}
void CPWL_EditCtrl::SelectAll() {
diff --git a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.h b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.h
index 04ec6e8a25..fca3bd8fe4 100644
--- a/fpdfsdk/pdfwindow/cpwl_edit_ctrl.h
+++ b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.h
@@ -28,7 +28,7 @@ class CPWL_EditCtrl : public CPWL_Wnd {
CFX_WideString GetText() const;
void SetSelection(int32_t nStartChar, int32_t nEndChar);
void GetSelection(int32_t& nStartChar, int32_t& nEndChar) const;
- void Clear();
+ void ClearSelection();
void SelectAll();
CFX_PointF GetScrollPos() const;