[Libreoffice] [solved] SdrLineAttribute vs LineAttribute

Regina Henschel rb.henschel at t-online.de
Thu Dec 8 10:58:25 PST 2011

Hi all,

Thorsten Behrens schrieb:
> Regina Henschel wrote:
>> in drawinglayer I see class SdrLineAttribute and class
>> LineAttribute, which are nearly the same but SdrLineAttribute has
>> Transparency and DotDashArray. I'm confused. Is class LineAttribute
>> "deprecated" and should not be altered and its use exchanged with
>> SdrLineAttribute?
> Hi Regina,
> I believe LineAttribute is the low-level-graphics version, that's
> e.g. comparable to the vcl gdi expressiveness - I'd thus probably
> not extend it without a need. SdrLineAttribute, conversely, is the
> one used in svx from the Draw objects - so I'd use/extend that for
> the advanced stuff (line ends, I presume?).

from the explanation I got it is clear now, that I need both and the 
property linecap has to be added to both. I have defined 'enum 
B2DLineCap', add a member to ImpLineAttribute and adapted the methods in 
both cases.

Kind regards

More information about the LibreOffice mailing list