Hi,
Usually I get around with adding config stuff in extension. But I miss something here…
The error I get:
(com.sun.star.uno.RuntimeException) { { Message = "bad root element <toolbar> in file:///home/cono/.../uno_packages/cache/uno_packages/luvfe06d.tmp_/Adpt_Instellingen.oxt/soffice.cfg/modules/swriter/toolbar/standardbar.xml", Context = (com.sun.star.uno.XInterface) @0 } }
The soffice.cfg/modules/swriter/toolbar/standardbar.xml is the file that was created by manually changing the toolbar (hiding an item). The file is declared in the manifest.xml of the extension.
Part of the standardbar.xml file:
<?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:toolbaritem xlink:href=".uno:OpenUrl" toolbar:visible="false"/>
<toolbar:toolbaritem xlink:href=".uno:AddDirect"/>
<toolbar:toolbaritem xlink:href=".uno:NewDoc" toolbar:visible="false"/>
<toolbar:toolbaritem xlink:href=".uno:OpenFromWriter"/>
<toolbar:toolbaritem xlink:href=".uno:Save"/>
<toolbar:toolbaritem xlink:href=".uno:SaveAs" toolbar:visible="false"/>
<toolbar:toolbaritem xlink:href=".uno:SendMail" toolbar:visible="false"/>
<toolbar:toolbarseparator/>
Hints very much appreciated,
Cor