office-gobmx/include/sax
Jonathan Clark 6f16beca51 tdf#36709 Refactor Converter to separate parsing from unit conversion
Previously, Converter::convertMeasure parsed measure strings and
performed unit conversion in a single call. This was appropriate, as all
such measure strings could be converted to a common unit ahead of time.

tdf#36709, however, will introduce measures that are relative to the
current font and font size. In order to perform layout, the original
measure unit must be preserved and passed along with the original value.

This change introduces Converter::convertMeasureUnit, which parses a
measure string and returns both the value and the unit. Existing unit
conversion code has been refactored to facilitate this change.

Change-Id: Ic8dfda432e1ca117ad80c05c1939ebaf43e79a9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175937
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-11-01 22:41:03 +01:00
..
tools tdf#36709 Refactor Converter to separate parsing from unit conversion 2024-11-01 22:41:03 +01:00
fastattribs.hxx Optimize TokenMap and AttributeList in oox and xo 2024-09-12 23:09:23 +02:00
fastparser.hxx Revert "Convert XFastParser into a normal C++ interface" 2023-06-01 15:07:18 +02:00
fshelper.hxx tdf#146619 Recheck include/ with find-unneeded-includes --noexclude 2023-12-24 12:14:14 +01:00
saxdllapi.h fixincludeguards.sh: include/s* 2013-10-23 23:22:29 +02:00