Kaydet (Commit) bf748bb2 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

support typing into the spin field

Change-Id: I2cae24d36d1eebf48f52646d84e7f6d291c8e473
Reviewed-on: https://gerrit.libreoffice.org/26492Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst c4a6f300
...@@ -829,7 +829,7 @@ SpinFieldUIObject::~SpinFieldUIObject() ...@@ -829,7 +829,7 @@ SpinFieldUIObject::~SpinFieldUIObject()
} }
void SpinFieldUIObject::execute(const OUString& rAction, void SpinFieldUIObject::execute(const OUString& rAction,
const StringMap& /*rParameters*/) const StringMap& rParameters)
{ {
if (rAction == "UP") if (rAction == "UP")
{ {
...@@ -839,6 +839,17 @@ void SpinFieldUIObject::execute(const OUString& rAction, ...@@ -839,6 +839,17 @@ void SpinFieldUIObject::execute(const OUString& rAction,
{ {
mxSpinField->Down(); mxSpinField->Down();
} }
else if (rAction == "TYPE")
{
if (mxSpinField->GetSubEdit())
{
Edit* pSubEdit = mxSpinField->GetSubEdit();
EditUIObject aSubObject(pSubEdit);
aSubObject.execute(rAction, rParameters);
}
}
else
EditUIObject::execute(rAction, rParameters);
} }
StringMap SpinFieldUIObject::get_state() StringMap SpinFieldUIObject::get_state()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment