[Libreoffice-ux-advise] [Bug 106681] Feature Request: Ability to assign character styles to toolbar buttons...

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Mar 23 00:34:28 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=106681

--- Comment #9 from vermontpoet at gmail.com ---
Update. It works:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE toolbar:toolbar PUBLIC "-//OpenOffice.org//DTD OfficeDocument
1.0//EN" "toolbar.dtd">
<toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar"
xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:uiname="Styles">
 <toolbar:toolbaritem xlink:href=".uno:DesignerDialog" toolbar:text="Styles"/>
 <toolbar:toolbaritem
xlink:href=".uno:StyleApply?Style:string=Default%20Style&FamilyName:string=CharacterStyles"
toolbar:text="Default"/>
 <toolbar:toolbaritem
xlink:href=".uno:StyleApply?Style:string=Emphasis&FamilyName:string=CharacterStyles"
toolbar:text="Italics"/>
 <toolbar:toolbaritem
xlink:href=".uno:StyleApply?Style:string=Strong%20Emphasis&FamilyName:string=CharacterStyles"
toolbar:text="Bold"/>
</toolbar:toolbar>

I initially tried to edit the custom toolbar while it was blank. That didn't
work because syntax was missing (and I wouldn't know enough to recognize it). I
then tried adding the Styles button before adding my own lines. Adding the
Styles button via LO's customize option apparently reconfigured the xml file so
that I could edit it successfully. (?) I'm guessing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list