summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/formfiller')
-rw-r--r--fpdfsdk/formfiller/cffl_combobox.cpp8
-rw-r--r--fpdfsdk/formfiller/cffl_textfield.cpp6
2 files changed, 7 insertions, 7 deletions
diff --git a/fpdfsdk/formfiller/cffl_combobox.cpp b/fpdfsdk/formfiller/cffl_combobox.cpp
index 175ccb7409..cbd00bc171 100644
--- a/fpdfsdk/formfiller/cffl_combobox.cpp
+++ b/fpdfsdk/formfiller/cffl_combobox.cpp
@@ -132,7 +132,7 @@ void CFFL_ComboBox::GetActionData(CPDFSDK_PageView* pPageView,
fa.bFieldFull = pEdit->IsTextFull();
int nSelStart = 0;
int nSelEnd = 0;
- pEdit->GetSel(nSelStart, nSelEnd);
+ pEdit->GetSelection(nSelStart, nSelEnd);
fa.nSelEnd = nSelEnd;
fa.nSelStart = nSelStart;
fa.sValue = pEdit->GetText();
@@ -170,7 +170,7 @@ void CFFL_ComboBox::SetActionData(CPDFSDK_PageView* pPageView,
if (CPWL_ComboBox* pComboBox =
static_cast<CPWL_ComboBox*>(GetPDFWindow(pPageView, false))) {
if (CPWL_Edit* pEdit = pComboBox->GetEdit()) {
- pEdit->SetSel(fa.nSelStart, fa.nSelEnd);
+ pEdit->SetSelection(fa.nSelStart, fa.nSelEnd);
pEdit->ReplaceSel(fa.sChange);
}
}
@@ -203,7 +203,7 @@ void CFFL_ComboBox::SaveState(CPDFSDK_PageView* pPageView) {
m_State.nIndex = pComboBox->GetSelect();
if (CPWL_Edit* pEdit = pComboBox->GetEdit()) {
- pEdit->GetSel(m_State.nStart, m_State.nEnd);
+ pEdit->GetSelection(m_State.nStart, m_State.nEnd);
m_State.sValue = pEdit->GetText();
}
}
@@ -219,7 +219,7 @@ void CFFL_ComboBox::RestoreState(CPDFSDK_PageView* pPageView) {
} else {
if (CPWL_Edit* pEdit = pComboBox->GetEdit()) {
pEdit->SetText(m_State.sValue);
- pEdit->SetSel(m_State.nStart, m_State.nEnd);
+ pEdit->SetSelection(m_State.nStart, m_State.nEnd);
}
}
}
diff --git a/fpdfsdk/formfiller/cffl_textfield.cpp b/fpdfsdk/formfiller/cffl_textfield.cpp
index d598419c1b..0f330b58f1 100644
--- a/fpdfsdk/formfiller/cffl_textfield.cpp
+++ b/fpdfsdk/formfiller/cffl_textfield.cpp
@@ -186,7 +186,7 @@ void CFFL_TextField::SetActionData(CPDFSDK_PageView* pPageView,
case CPDF_AAction::KeyStroke:
if (CPWL_Edit* pEdit = GetEdit(pPageView, false)) {
pEdit->SetFocus();
- pEdit->SetSel(fa.nSelStart, fa.nSelEnd);
+ pEdit->SetSelection(fa.nSelStart, fa.nSelEnd);
pEdit->ReplaceSel(fa.sChange);
}
break;
@@ -217,7 +217,7 @@ void CFFL_TextField::SaveState(CPDFSDK_PageView* pPageView) {
if (!pWnd)
return;
- pWnd->GetSel(m_State.nStart, m_State.nEnd);
+ pWnd->GetSelection(m_State.nStart, m_State.nEnd);
m_State.sValue = pWnd->GetText();
}
@@ -229,7 +229,7 @@ void CFFL_TextField::RestoreState(CPDFSDK_PageView* pPageView) {
return;
pWnd->SetText(m_State.sValue);
- pWnd->SetSel(m_State.nStart, m_State.nEnd);
+ pWnd->SetSelection(m_State.nStart, m_State.nEnd);
}
CPWL_Wnd* CFFL_TextField::ResetPDFWindow(CPDFSDK_PageView* pPageView,