[Bug 45789] automatic row height in reports

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jan 30 05:26:35 PST 2016


https://bugs.documentfoundation.org/show_bug.cgi?id=45789

--- Comment #49 from Lionel Elie Mamane <lionel at mamane.lu> ---
(In reply to kerem from comment #45)
> (In reply to Lionel Elie Mamane from comment #44)

>> The saving of the report definition happens in C++, in
>> reportdesign/source/filter/xml/
>> I think it is particularly in reportdesign/source/filter/xml/xmlExport.cxx
>> function void ORptExport::exportContainer(const Reference< XSection>&
>> _xSection)
>> looks relevant; need to set the right attribute or style for "automatic
>> height" there.

> Okey I understand. So I change something in function void
> ORptExport::exportContainer(const Reference< XSection>&_xSection). I change
> that about the "automatic height", is true? In addition to, are there any
> your suggestions? 

Sorry it took me so long to answer. Basically, yes, that is my guess, but that
is about step 3 from comment 22. We also (first?) need to do steps 1 and 2 from
comment 22. See also comment 24 and comment 26.

To summarise: the work is to add a property "AutoGrow" to every control. It
needs to be added to the control models and to the UI that allows to user to
set that property. Then, in RptExport::exportContainer, if any of the controls
of this row has "AutoGrow" set to true, then set the "automatic row height"
attribute" on the whole row.

Code pointers are in comment 22, except that in step 3, the code pointer is
probably wrong and should be replaced by what I say in comment 44. Steps 1 and
2 are still valid. Sorry for the mixup.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20160130/1c5b6efe/attachment.html>


More information about the LibreOffice mailing list