[Libreoffice-ux-advise] [Bug 132860] UI: Paragraph style name field should be grayed out for default styles (can't be editted)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 12 02:24:07 UTC 2020


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

Jim Raykowski <raykowj at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jim Raykowski <raykowj at gmail.com> ---
This is an edit control that is read only for non home made styles. The cursor
doesn't show for the gtk3 backend like it does for the sal backends I have
tested, x11, kf5, qt5.

I found this comment in the code:
// Set the field read-only if it is NOT an user-defined style
// but allow selecting and copying 

The ability to copy the name to the clipboard will be lost for non home made
styles if this is changed to be a grayed out. If this can be lived with, here
are some code pointers to help do it:

code pointers:

core/sfx2/source/dialog/mgetempl.hxx
study class SfxManageStyleSheetPage, m_xName is our friend

core/sfx2/source/dialog/mgetempl.cxx
look in the SfxManageStyleSheetPage constructor for Widget Flag settings for
m_xName for non home made user defined styles. set_.*
set_sensitive is the function to set weld widgets sensitive flag which will
make them grey or not gray :-)

it may be fun to get the Glade out to examine
core/sfx2/uiconfig/ui/managestylepage.ui
One might possibly want to begin with the sensitive Widget Flag off.

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


More information about the Libreoffice-ux-advise mailing list