<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Replace single toolbar with contextual single"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=125040#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Replace single toolbar with contextual single"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=125040">bug 125040</a>
from <span class="vcard"><a class="email" href="mailto:momonasmon@gmail.com" title="Maxim Monastirsky <momonasmon@gmail.com>"> <span class="fn">Maxim Monastirsky</span></a>
</span></b>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=151110" name="attach_151110" title="Proof of concept patch">attachment 151110</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=151110&action=edit" title="Proof of concept patch">[details]</a></span>
Proof of concept patch
To make it clearer what I mean, I took a few hours to play with the code, and
came up with the attached patch that demonstrates my idea. This uses the
existing single mode toolbar (View > UI > Single Toolbar), and appends to the
end of it some existing contextual toolbar. So e.g. when an image is selected,
the toolbar consists of singlemode.xml + separator + graphicobjectbar.xml. For
the demonstration, I hard-coded some contexts in Writer (Text, Table, Graphic,
OLE, Draw) and mapped them to the existing toolbars. Customization via the
dialog, and support for extensions *works already* with this patch (by request,
I can attach a sample extension, so it could be tested). Customization via
right-click context menu doesn't work yet (but that's just a demonstration
anyway).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>