[Libreoffice-bugs] [Bug 137547] Change label "Recent" to "No recent character" or "No recent color" when no recent character or color selected

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 12 07:27:59 UTC 2020


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

--- Comment #5 from Heiko Tietze <heiko.tietze at documentfoundation.org> ---
First, you have to make the label available at code. Add
std::unique_ptr<weld::Label> m_xRecentLabel; to the header file
charmapcontrol.hxx. Load the control per  ",
m_xRecentLabel(m_xBuilder->weld_label("label2"))" in
SfxCharmapCtrl::SfxCharmapCtrl() (sequence matters, so place the command where
you added the label in the header file). Now you may set the label to either
"Recent" or "No Recent Characters" depending on "m_aRecentCharList.size()>0".
Add <sfx2/strings.hrc> to the includes, define the two string variables there,
and use m_xRecentLabel->set_label(SfxResId(STR_RECENT)); (or STR_NORECENT
respectively). Find a good place for this so the label is set initially and
responds when recent items are deleted.

If you want to continue, please use "take" at the field assignee and set status
to assigned.

-- 
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/20201112/4c079bc4/attachment.htm>


More information about the Libreoffice-bugs mailing list