Add postMessage methods to show/hide toolbar buttons

(cherry picked from commit c0d0ad7368)

Change-Id: Ib5ecde5a53aa0aae2346e360423e72025edade3a
This commit is contained in:
Samuel Mehrbrodt 2018-11-29 09:32:56 +01:00 committed by Ashod Nakashian
parent 30cc128690
commit 11f5154432

View file

@ -3223,6 +3223,30 @@ Editor to WOPI host
Shows the horizontal document ruler (Writer only)
</td>
</tr>
<tr>
<td><code><b>Hide_Button</b></code></td>
<td>
<code><nobr>id: &lt;string&gt;</nobr></code>
</td>
<td>
Hides a button from the toolbar.<br/>
<code>id</code> is the button ID as defined in the
<a href="https://opengrok.libreoffice.org/search?project=online&q=&defs=createToolbar">createToolbar</a>
function in <a href="https://opengrok.libreoffice.org/xref/online/loleaflet/js/toolbar.js">loleaflet/js/toolbar.js</a>.
</td>
</tr>
<tr>
<td><code><b>Show_Button</b></code></td>
<td>
<code><nobr>id: &lt;string&gt;</nobr></code>
</td>
<td>
Hides a button from the toolbar.<br/>
<code>id</code> is the button ID as defined in the
<a href="https://opengrok.libreoffice.org/search?project=online&q=&defs=createToolbar">createToolbar</a>
function in <a href="https://opengrok.libreoffice.org/xref/online/loleaflet/js/toolbar.js">loleaflet/js/toolbar.js</a>.
</td>
</tr>
</table>
<h5><a name="toolbar-button-ids">Finding toolbar button IDs</a></h5>