diff options
author | Jan Holesovsky <kendy@collabora.com> | 2020-06-03 19:46:42 +0300 |
---|---|---|
committer | Mert Tumer <mert.tumer@collabora.com> | 2020-09-28 11:53:16 +0200 |
commit | 4ad8773821f73fa0df665f4d2d4682237a7af677 (patch) | |
tree | 3ac0bcc358fdb427b00f2413dbc63272f69d5b4d /wsd/FileServer.cpp | |
parent | document broker: handle tile request without tile cache (diff) | |
download | online-4ad8773821f73fa0df665f4d2d4682237a7af677.tar.gz online-4ad8773821f73fa0df665f4d2d4682237a7af677.zip |
Make various bits of the UI configurable.
This adds the infrastructure to be able to pass the info which elements
like the statusbar / ruler / sidebar are supposed to be shown or hidden
on startup of the editor.
Change-Id: I188264dec6961074444934ff5fd7088e23b170d4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103169
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Diffstat (limited to 'wsd/FileServer.cpp')
-rw-r--r-- | wsd/FileServer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp index fcf8531731..56ff498012 100644 --- a/wsd/FileServer.cpp +++ b/wsd/FileServer.cpp @@ -677,6 +677,8 @@ void FileServerRequestHandler::preprocessFile(const HTTPRequest& request, LOG_TRC("access_token=" << accessToken << ", access_token_ttl=" << accessTokenTtl); const std::string accessHeader = form.get("access_header", ""); LOG_TRC("access_header=" << accessHeader); + const std::string uiDefaults = form.get("ui_defaults", ""); + LOG_TRC("ui_defaults=" << uiDefaults); // Escape bad characters in access token. // This is placed directly in javascript in loleaflet.html, we need to make sure @@ -718,6 +720,7 @@ void FileServerRequestHandler::preprocessFile(const HTTPRequest& request, Poco::replaceInPlace(preprocess, std::string("%HOST%"), cnxDetails.getWebSocketUrl()); Poco::replaceInPlace(preprocess, std::string("%VERSION%"), std::string(LOOLWSD_VERSION_HASH)); Poco::replaceInPlace(preprocess, std::string("%SERVICE_ROOT%"), responseRoot); + Poco::replaceInPlace(preprocess, std::string("%UI_DEFAULTS%"), uiDefaultsToJSON(uiDefaults)); const auto& config = Application::instance().config(); std::string protocolDebug = "false"; |