Index ¦ Archives ¦ RSS > Category: libreoffice ¦ RSS

Wrapped images in Word (LibreOffice RTF export)

Estimated read time: 1 minutes

I’ve got a report which turned out to be two separate issues. One is a regression from Go-OO 3.2.x, this post is about this part. The other part is about the improvement of both the import/export RTF filter, the bug has some detail on that part as well.

So the problem was that wrapped images (when the image is a frame and not a character) had some extremely small height. I did not notice this bug in LO as an LO-specific extension hides that value, but in Word you can see it:

http://vmiklos.hu/pic/fdo32613-before.png

The fix is to use the height of the containing frame instead of the height of the picture itself, then it’ll look fine:

http://vmiklos.hu/pic/fdo32613-after.png

LibreOffice vs. F13

Estimated read time: 1 minutes

http://vmiklos.hu/pic/lof13.png

About four days ago it has been asked on #libreoffice if it’s possible to bind functions to F13..F16 in Calc. The short answer is no, but it turned out it’s pretty trivial to allow that (and of course not only in Calc).

Cedric’s great post is helpful here to find the relevant code. It also truned out that VCL already supports those keys, so only the user interface has to be improvied to export that feature.

The patch is here.


OSL_TRACE()

Estimated read time: 1 minutes

Background: OSL_TRACE() is an internal LibreOffice macro that is like printf(), but it’s only enabled in debug mode. Without it, you would add a debug printf during development:

printf("debug, foo\n");

then you would comment it out when the code started working,:

//printf("debug, foo\n");

then remove the comment when it breaks again, etc.

In the past, if you built a LibreOffice module, then you executed:

build

inside a module, and in case you wanted debug symbols and such messages you built using:

build debug=t

which increased the debug level to 2 (from 0), where 1 is required for debug symbols, 2 for debug messages. (See the OOo wiki page.)

The recent update, why I’m writing this post: Now this has been changed, and debug=t gives you debug symbols only, but no extra debug output. While this is great in most cases, sometimes you still want the old behaviour to get the debug messages. In that case the solution (as pointed out in the mailing list post) is to use:

build debug=t dbglevel=2

(Hopefully this post will be handy for who missed that post, like I did the first time.)


Slides of my GSoC 2010 Presentation

Estimated read time: 1 minutes

As requested, the slides of my presentation, titled "GSoC project: Improving RTF Export - Presentation of a Go-OO student" are available here.

openSUSE Conference 2010

Estimated read time: 1 minutes

So I have been invited to this year's openSUSE conference in Nurnberg to give a short presentation about my GSoC work (the RTF export rewrite in LibreOffice).

As I expected, the really interesting part was to meet people I never had the ability to meet in person previously - and of course to learn other new stuff. :)

So some of the items I really liked:

  • We actually did some hacking, see here (thanks Cedric for pointing out the issue for me).
  • I learned about trigraphs - thanks Fridrich!
  • I now heard about flat ODF from Muthusuba.
  • Nice jokes by Tor about old UNIX systems where the default installation added a login for Kernighan and Ritchie by default. :)
  • Met great people from the LibreOffice team (Kohei, Noel, Muthu, Cedric, Tor, Fridrich, Petr, Lubos), and outside: Stephan Kulow (coolo, the ex-kde-master) and others.

To sum up: thank you for the invitation, I enjoyed it! :)

© Miklos Vajna. Built using Pelican. Theme by Giulio Fidente on github.