Hi Heiko,
Thanks for all the pointers. I'm now setting up a fresh VM to go through
the process of building LO, noting any steps that are especially
difficult or not well documented on the wiki.
Then I'll try to update these text strings and let you know how it
goes... :-)
Mike
On 29/07/2017 10:41, Heiko Tietze wrote:
Hi Mike,
the infobar is defined in sfx2/source/dialog/infobar.cxx (headers in include/sfx2/infobar.hxx).
The constructor is defined as
SfxInfoBarWindow( vcl::Window* parent, const OUString& sId,
const OUString& sMessage,
InfoBarType infoBarType,
WinBits nMessageStyle);
meaning you add the infobar text as a parameter, happening in sfx2/source/doc/objserv.cxx with
AppendInfoBar("signature", sMessage, aInfoBarType) where sMessage comes from sMessage =
SfxResId(STR_SIGNATURE_BROKEN) which is a constant defined in include/sfx2/strings.hrc - and, to
cut the long story short, implemented by Caolan on the introduction of gettext() with the correct
sentence style capitalization.
The button is added to the infobar per pInfoBar->addButton(xBtn) having a text set via
xBtn->SetText(SfxResId(STR_SIGNATURE_SHOW)); (all in objserv.cxx for signatures). The green bar
was a temporary implementation by me to show the green color for the success type but I don't
remember any code for a button, more likely I just overrode another call. But searching for the
text with https://opengrok.libreoffice.org returns no result.
Hopefully you now start with your first easyhack :-)
Cheers,
Heiko
--
To unsubscribe e-mail to: design+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/design/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.