diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index c7763b608a28..86212ed28e8e 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2163,6 +2163,9 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, SvNumberFormatter::resetTheCurrencyTable(); } + const OUString aDeviceFormFactor = extractParameter(aOptions, "DeviceFormFactor"); + SfxLokHelper::setDeviceFormFactor(aDeviceFormFactor); + uno::Sequence<css::beans::PropertyValue> aFilterOptions(2); aFilterOptions[0] = css::beans::PropertyValue( "FilterOptions", 0, @@ -3637,17 +3640,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma if (nView < 0) return; - if (gImpl && (aCommand == ".uno:LOKSetMobile" || aCommand == ".uno:LOKSetMobilePhone")) - { - comphelper::LibreOfficeKit::setMobilePhone(nView); - return; - } - else if (gImpl && aCommand == ".uno:LOKSetTablet") - { - comphelper::LibreOfficeKit::setTablet(nView); - return; - } - else if (gImpl && aCommand == ".uno:ToggleOrientation") + if (gImpl && aCommand == ".uno:ToggleOrientation") { ExecuteOrientationChange(); return; @@ -4897,6 +4890,9 @@ static int doc_createViewWithOptions(LibreOfficeKitDocument* pThis, comphelper::LibreOfficeKit::setLocale(LanguageTag(aLanguage)); } + const OUString aDeviceFormFactor = extractParameter(aOptions, "DeviceFormFactor"); + SfxLokHelper::setDeviceFormFactor(aDeviceFormFactor); + int nId = SfxLokHelper::createView(); #ifdef IOS |