loleaflet/reference.html | 13 +++++++++++++ loleaflet/src/map/handler/Map.WOPI.js | 6 ++++++ 2 files changed, 19 insertions(+)
New commits: commit 15e2e91fc721710736f8785af5088cefbf9288f8 Author: Samuel Mehrbrodt <[email protected]> AuthorDate: Mon May 13 21:13:15 2019 +0200 Commit: Samuel Mehrbrodt <[email protected]> CommitDate: Tue Jul 16 09:11:21 2019 +0200 Add API methods to hide/show ruler Change-Id: I4d14d9d68e7ebda56c80a1ad678a21c67ffd5ac2 Reviewed-on: https://gerrit.libreoffice.org/72265 Reviewed-by: Samuel Mehrbrodt <[email protected]> Tested-by: Samuel Mehrbrodt <[email protected]> diff --git a/loleaflet/reference.html b/loleaflet/reference.html index 27f969bfd..1d8b8ba83 100644 --- a/loleaflet/reference.html +++ b/loleaflet/reference.html @@ -3210,6 +3210,19 @@ Editor to WOPI host presenting an overlayed dialog. </td> </tr> + <td><code><b>Hide_Ruler</b></code></td> + <td></td> + <td> + Hides the horizontal document ruler (Writer only) + </td> + </tr> + <tr> + <td><code><b>Show_Ruler</b></code></td> + <td></td> + <td> + Shows the horizontal document ruler (Writer only) + </td> + </tr> </table> <h5><a name="toolbar-button-ids">Finding toolbar button IDs</a></h5> diff --git a/loleaflet/src/map/handler/Map.WOPI.js b/loleaflet/src/map/handler/Map.WOPI.js index 97b4c7176..c2783b2f7 100644 --- a/loleaflet/src/map/handler/Map.WOPI.js +++ b/loleaflet/src/map/handler/Map.WOPI.js @@ -263,6 +263,12 @@ L.Map.WOPI = L.Handler.extend({ else if (msg.MessageId === 'Hide_Menubar') { this._map.hideMenubar(); } + else if (msg.MessageId === 'Show_Ruler') { + this._map.showRuler(); + } + else if (msg.MessageId === 'Hide_Ruler') { + this._map.hideRuler(); + } else if (msg.MessageId === 'Set_Settings') { if (msg.Values) { var alwaysActive = msg.Values.AlwaysActive; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
