Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On Tue, 2017-05-02 at 10:50 +0200, Miklos Vajna wrote:
Hi,

On Thu, Apr 27, 2017 at 02:40:26PM +0100, Caolán McNamara <caolanm@re
dhat.com> wrote:
tl;dr: To use a theme png in C++, add #define NAME "path/to/png" to
a .hlst and use BitmapEx foo(NAME)

If I understand correctly, this is also means it's harder to get this
wrong, as you don't have to assign an ID to each & every bitmap,
where the IDs can accidentally collide, correct?

Yeah, bitmap names are now the id, so no collisions and no need to
extend a .hrc block or dig around for a free slot.

As a follow up I've now done the same for non-translatable strings. So
if there's a string which doesn't need to be translated, then don't put
it in a .src just use the string. I've extracted the previously defined
in .src non-translated strings to various module/inc/strings.hxx so in
general only stuff that needs to be translated is in .src files now

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.