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


On 03/05/2013 05:26 PM, Andras Timar wrote:
On Tue, Mar 5, 2013 at 3:49 PM, Stephan Bergmann <sbergman@redhat.com> wrote:
On 03/04/2013 02:36 PM, Krisztian Pinter wrote:

I've been tasked with this easyhack:
https://bugs.freedesktop.org/show_bug.cgi?id=39445

I started with this source, because it seemed easy enough:

http://opengrok.libreoffice.org/xref/core/rsc/source/tools/rsctools.cxx#175


Code in rsc/source/tools (despite the "tools" in the path) is not what
<https://bugs.freedesktop.org/show_bug.cgi?id=39445> "write tools/ pieces
out" talks about.


That's right, Krisztian wanted to replace types defined in
tools/fsys.hxx with types defined in osl/file.hxx. At
http://opengrok.libreoffice.org/xref/core/rsc/source/tools/rsctools.cxx#175
DirEntry::SetExtension() member function is used, and he did not find
similar member function in sal.

Ah, my bad. I was confused by looking at line 175 and not line 181. As the sal/osl file abstraction stuff is URI based, such functionality would probably best fit with (generic) URI handling code. There's low-level functionality at rtl/uri.h[xx] and UNO-based functionality at com.sun.star.uri.UriReferenceFactory idl, neither of which offers any "set extension" functionality, though, and there's tools/urlobj.hxx, which does offer such functionality, but would kinda lead back to square one.

The rsc module implements a resource compiler for .src/.hrc files
(thankfully obsoleted now by moving to .ui files), see rsc/README.


Is this true? AFAIK only dialogs are moving to .ui, strings,
messageboxes etc. stay in .src.

Yeah, that's right, I guess. (Though one would hope that that eventually gets replaced as well, to reduce the number of different concepts?)

Stephan

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.