On Thu, 2013-01-31 at 09:38 -0200, Rodolfo wrote:
I'm drawing a comment control and I need to know two things:
1. The text width (to move text to right side in RTL systems)
2. The text line base (to align it to an horizontal arrow I draw)
By now, I only know how to draw a text with OutputDevice::DrawText(),
so I can't make my hack properly.
if you look at the vcl/inc/vcl/outdev.hxx header there a few things that
might be useful, e.g. GetTextHeight, GetTextWidth, GetTextArray
(depending on what you code looks like, might be worth sending a patch
with "//FIXME: what I want to happen here" in them. e.g. there are
various parts of vcl for Controls which auto-swap the device so that in
RTL mode the Control is swapped around automatically without explicit
RTL positioning.
C.
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.