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


Hi Dietmar,

On Saturday, 2012-02-04 18:47:40 +0100, Dietmar wrote:

is there a method to convert Borderline2 to Borderline (and vice versa),
I can use in a Java extension?

Unfortunately not.

Background is that I have the linestyle and linewidth in Borderline2 and
I want to apply those to Tableborders which still need the Borderline.

I'm working on a TableBorder2 property that contains BorderLine2 instead
of BorderLine, that will be for 3.6 though so probably doesn't help you
right now with your actual problem.

Simple type casting or picking the innerlinewidth etc. shows zero
values.

That might also be due to some bugs around the BorderLine properties,
which we only recently fixed. Master and 3-5 may already be better,
some fixes are also in 3-5-0. Especially if for non-double lines only
InnerLineWidth was set and OuterLineWidth was 0 then no border was
drawn, may be workarounded by setting OuterLineWidth instead.

Before doing a conversion tool myself, i would like to know if this has
already been done.
If not, can someone point me to the code where Borderline2 is
interpreted, so that I can reuse that code?

You can peek into editeng/source/items/frmitems.cxx methods
SvxBoxItem::LineToSvxLine() and lcl_lineToSvxLine() and
editeng/source/items/borderline.cxx method
SvxBorderLine::GuessLinesWidths().

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Attachment: pgphXWpNY5gdd.pgp
Description: PGP signature


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.