summaryrefslogtreecommitdiff
path: root/desktop/source/lib/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/lib/init.cxx')
-rw-r--r--desktop/source/lib/init.cxx15
1 files changed, 2 insertions, 13 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index e7a81a1c6099..706d826d6722 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3624,25 +3624,14 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
if (nView < 0)
return;
- // Set/unset mobile phone view for LOK
if (gImpl && (aCommand == ".uno:LOKSetMobile" || aCommand == ".uno:LOKSetMobilePhone"))
{
- comphelper::LibreOfficeKit::setMobilePhone(nView, true);
- return;
- }
- else if (gImpl && (aCommand == ".uno:LOKUnSetMobile" || aCommand == ".uno:LOKUnSetMobilePhone"))
- {
- comphelper::LibreOfficeKit::setMobilePhone(nView, false);
+ comphelper::LibreOfficeKit::setMobilePhone(nView);
return;
}
else if (gImpl && aCommand == ".uno:LOKSetTablet")
{
- comphelper::LibreOfficeKit::setTablet(nView, true);
- return;
- }
- else if (gImpl && aCommand == ".uno:LOKUnSetTablet")
- {
- comphelper::LibreOfficeKit::setTablet(nView, false);
+ comphelper::LibreOfficeKit::setTablet(nView);
return;
}
else if (gImpl && aCommand == ".uno:ToggleOrientation")