[Libreoffice-bugs] [Bug 92484] UI: lock toolbar by default

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 20 15:25:58 UTC 2020


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

--- Comment #24 from ahmad_g <ganzouri97 at gmail.com> ---
(In reply to Heiko Tietze from comment #22)
> Flagged my hesitation comments as obsolete. Toolbars should become locked by
> default and have to get unlocked manually. It requires to add the property
> Locked=true in *WindowState.xcu (and reset the profile).
> 
> For example,
> officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
> 
> <node oor:name="private:resource/toolbar/standardbar" oor:op="replace">
> ...     
>   <prop oor:name="Locked" oor:type="xs:boolean">
>     <value>true</value>
>   </prop>
> ...
> </node>
> 
> It's a lot of grunt work...
> 
> "find . -name *WindowState.xcu"
> ./officecfg/registry/data/org/openoffice/Office/UI/WriterFormWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/WriterWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/ChartWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/MathWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/DbRelationWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/XFormsWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/StartModuleWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.
> xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/BasicIDEWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/DbQueryWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/WriterWebWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/DbTableWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/WriterReportWindowState.
> xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/DbReportWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/DbBrowserWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/BaseWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/DbTableDataWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/DrawWindowState.xcu
> ./officecfg/registry/data/org/openoffice/Office/UI/CalcWindowState.xcu
> (and some other non-relevant files)
> 
> grep "private:resource/toolbar/"
> officecfg/registry/data/org/openoffice/Office/UI/WriterGlobalWindowState.xcu
>       <node oor:name="private:resource/toolbar/standardbar" oor:op="replace">
>       <node oor:name="private:resource/toolbar/findbar" oor:op="replace">
>       <node oor:name="private:resource/toolbar/textobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/toolbar" oor:op="replace">
>       <node oor:name="private:resource/toolbar/tableobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/numobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/drawingobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/alignmentbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/bezierobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/extrusionobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/formtextobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/formsfilterbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/formsnavigationbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/formcontrols"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/moreformcontrols"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/formdesign" oor:op="replace">
>       <node oor:name="private:resource/toolbar/frameobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/fullscreenbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/graffilterbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/graphicobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/insertbar" oor:op="replace">
>       <node oor:name="private:resource/toolbar/oleobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/optimizetablebar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/previewobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/drawtextobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/viewerbar" oor:op="replace">
>       <node oor:name="private:resource/toolbar/drawbar" oor:op="replace">
>       <node oor:name="private:resource/toolbar/mediaobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/colorbar" oor:op="replace">
>       <node oor:name="private:resource/toolbar/basicshapes" oor:op="replace">
>       <node oor:name="private:resource/toolbar/arrowshapes" oor:op="replace">
>       <node oor:name="private:resource/toolbar/flowchartshapes"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/starshapes" oor:op="replace">
>       <node oor:name="private:resource/toolbar/symbolshapes"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/calloutshapes"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/fontworkobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/fontworkshapetype"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/navigationobjectbar"
> oor:op="replace">
>       <node oor:name="private:resource/toolbar/changes" oor:op="replace">
>       <node oor:name="private:resource/toolbar/textstylebar"
> oor:op="replace">


Could it be done by changing this line to locked(true)?

Code pointer :
https://opengrok.libreoffice.org/xref/core/framework/source/uiconfiguration/windowstateconfiguration.cxx?r=8c6ca694#156

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200220/6bfc667c/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list