Add a SwTextBoxHelper::findTextBoxes() variant that takes an SwNode

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 31 October 2014 10:53 UTC

This method is called by the ODF export for each paragraph, so limiting the result for TextBoxes anchored to a single paragraph helps to avoid iterating over all the frames for each paragraph.

For a test document of 2000 mail merge records and 16 frames, the times for css::text::MailMerge::execute() are 8m18.811s -> 7m53.575s.

6606313 Add a SwTextBoxHelper::findTextBoxes() variant that takes an SwNode
sw/inc/textboxhelper.hxx | 8 ++++++++
sw/source/core/doc/textboxhelper.cxx | 33 ++++++++++++++++++++++++++++++++
sw/source/core/unocore/unoportenum.cxx | 2 +-
3 files changed, 42 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share