Conversion Borderline2 to Borderline
erack at redhat.com
Tue Feb 7 14:50:48 PST 2012
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?
> 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
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
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GnuPG key 0x293C05FD : 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the LibreOffice