[Libreoffice] Dynamic arrays in chartitempool

René Kjellerup rk.katana.steel at gmail.com
Sat Oct 16 09:47:32 PDT 2010


Wow... a simple symbol mistake of the brain, all the includes seemed to have
hxx extension so....

It complies now pulling a diff together.
 On Oct 16, 2010 3:30 PM, "René Kjellerup" <rk.katana.steel at gmail.com>
wrote:
> Okay I've now a beginning of a build of chart2 and I've added:
> #include <sal/macros.h>
> To the file, but the compilation says that the file is not found,
> So where do one add the sal depends to the module? (or simply the
includes)
> On Oct 14, 2010 10:11 PM, "Michael Meeks" <michael.meeks at novell.com>
wrote:
>> Hi Rene,
>>
>> On Thu, 2010-10-14 at 19:05 +0200, René Kjellerup wrote:
>>> I've looked through the calc's chart2 source and translated and spell
>>> corrected a few comments in the view code
>>
>> Cool - nice work thanks for that; I pushed it.
>>
>>> in the ChartItemPool I've added the use of SAL_N_ELEMENTS(array) too
>>
>> Yep; the slight issue here though is that we need to re-arrange the
>> code a bit. Your changes would work, but only if SCH_ATTR_START == 0 -
>> since the range is offset otherwise. It would work if we had:
>>
>> - for( i = SCHATTR_START; i <= SCHATTR_END; i++ )
>> + for( i = 0; i <= SAL_N_ELEMENTS(pItemInfos); i++ )
>> {
>> - pItemInfos[i - SCHATTR_START]._nSID = 0;
>> + pItemInfos[i]._nSID = 0;
>>
>> etc. ;-) it could perhaps be re-factored like that if you want, but
>> prolly best to compile/test it.
>>
>> Anyhow - thanks for your work ! looking forward to what you work on
>> next - is there any area of LibreOffice you're particularly interested
>> in contributing to ?
>>
>> All the best,
>>
>> Michael.
>>
>> --
>> michael.meeks at novell.com <><, Pseudo Engineer, itinerant idiot
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101016/88870ef6/attachment.htm>


More information about the LibreOffice mailing list