office-gobmx/xmloff/source/style
Regina Henschel 567dbcf687 tdf#161327 Interpret angle units in dr3d:end-angle ..
.. and draw:rotation in <draw:hatch> element.

ODF 1.1 has not specified the syntax of datatype 'angle'. Since ODF 1.2
it is specified as double with unit "deg", "grad" or "rad", or without
unit. The unit-less value is specified to be in degrees. But OOo, AOO
and all LO versions had written the value unit-less in 1/10th of a
degree in some cases.

To fix it, LibreOffic will be enabled to read units. When then the
active versions are able to read units, starting with the then actual
version, LibreOffice will write angles with unit 'deg'.

This has already be done for gradients, see tdf#89475. This patch
starts the first step to make LibreOffice able to read units for
dr3d:end-angle (UNO D3DEndAngle) and for draw:rotation (UNO
FillHatch.Angle). I have not found further cases of writing 1/10deg.

The patch still writes unit-less 1/10th of a degree for export to
ODF 1.3 and earlier. When it is time to write unit degree or when
LibreOffice supports the next ODF versions, some places need to be
adapted. They are marked.

The converter convertAngle is renamed to convert10thDegAngle() to
indicate, that it is special. The parts, which were specific to
gradients are moved to the gradients, so that it is now usable for
dr3d:angle and draw:rotation too.

I intend to write next a patch that enables LibreOffice to read angle
units for cases where LibreOffice already writes unit-less values in
degree. That is not so urgent, but to bring LibreOffice nearer to ODF,
reading angle units should be implemented nevertheless.

The file xmlbahdl.hxx is moved from xmloff/source/style to xmloff/inc
to have access to it from xmloff/source/draw.

Change-Id: I8ffc2735f8bcfefb86efa80eb05f900c32403f31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168336
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2024-06-11 10:29:17 +02:00
..
adjushdl.cxx
adjushdl.hxx
AttributeContainerHandler.cxx
backhdl.cxx
backhdl.hxx
bordrhdl.cxx
bordrhdl.hxx
breakhdl.cxx
breakhdl.hxx
cdouthdl.cxx
cdouthdl.hxx
chrhghdl.cxx
chrhghdl.hxx
chrlohdl.cxx
chrlohdl.hxx
csmaphdl.cxx
csmaphdl.hxx
DashStyle.cxx
DrawAspectHdl.cxx
DrawAspectHdl.hxx
durationhdl.cxx
durationhdl.hxx
EnumPropertyHdl.cxx
escphdl.cxx
escphdl.hxx
FillStyleContext.cxx
FillStyleContext.hxx
fonthdl.cxx
fonthdl.hxx
GradientStyle.cxx tdf#161327 Interpret angle units in dr3d:end-angle .. 2024-06-11 10:29:17 +02:00
HatchStyle.cxx tdf#161327 Interpret angle units in dr3d:end-angle .. 2024-06-11 10:29:17 +02:00
ImageStyle.cxx
impastpl.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
impastpl.hxx
kernihdl.cxx
kernihdl.hxx
lspachdl.cxx
lspachdl.hxx
MarkerStyle.cxx
MultiPropertySetHelper.cxx replace createFromAscii with OUString literals in MultiPropertySetHelper 2024-05-06 08:26:15 +02:00
NamedBoolPropertyHdl.cxx
numehelp.cxx
opaquhdl.cxx
opaquhdl.hxx
PageHeaderFooterContext.cxx
PageHeaderFooterContext.hxx
PageMasterExportPropMapper.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
PageMasterExportPropMapper.hxx
PageMasterImportContext.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
PageMasterImportPropMapper.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
PageMasterImportPropMapper.hxx
PageMasterPropHdl.cxx
PageMasterPropHdl.hxx
PageMasterPropHdlFactory.cxx tdf#161327 Interpret angle units in dr3d:end-angle .. 2024-06-11 10:29:17 +02:00
PageMasterPropMapper.cxx
PageMasterStyleMap.cxx
PagePropertySetContext.cxx
PagePropertySetContext.hxx
postuhdl.cxx
postuhdl.hxx
prhdlfac.cxx tdf#161327 Interpret angle units in dr3d:end-angle .. 2024-06-11 10:29:17 +02:00
prstylecond.cxx
prstylei.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
shadwhdl.cxx
shadwhdl.hxx
shdwdhdl.cxx
shdwdhdl.hxx
SinglePropertySetInfoCache.cxx
styleexp.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
StyleMap.cxx
StylePropertiesContext.cxx
StylePropertiesContext.hxx
tabsthdl.cxx
tabsthdl.hxx
TransGradientStyle.cxx tdf#161327 Interpret angle units in dr3d:end-angle .. 2024-06-11 10:29:17 +02:00
undlihdl.cxx
undlihdl.hxx
weighhdl.cxx
weighhdl.hxx
WordWrapPropertyHdl.cxx
xmlaustp.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
XMLBackgroundImageContext.cxx
XMLBackgroundImageExport.cxx
xmlbahdl.cxx tdf#161327 Interpret angle units in dr3d:end-angle .. 2024-06-11 10:29:17 +02:00
XMLBitmapLogicalSizePropertyHandler.cxx
XMLBitmapRepeatOffsetPropertyHandler.cxx
XMLClipPropertyHandler.cxx
XMLConstantsPropertyHandler.cxx
XMLElementPropertyContext.cxx
xmlexppr.cxx
XMLFillBitmapSizePropertyHandler.cxx
XMLFontAutoStylePool.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
XMLFontStylesContext.cxx
XMLFontStylesContext_impl.hxx
XMLFootnoteSeparatorExport.cxx
XMLFootnoteSeparatorExport.hxx
XMLFootnoteSeparatorImport.cxx
XMLFootnoteSeparatorImport.hxx
xmlimppr.cxx
XMLIsPercentagePropertyHandler.cxx
xmlnume.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
xmlnumfe.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
xmlnumfi.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
xmlnumi.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
XMLPageExport.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00
XMLPercentOrMeasurePropertyHandler.cxx
xmlprcon.cxx
xmlprhdl.cxx
xmlprmap.cxx
XMLRectangleMembersHandler.cxx
XMLRtlGutterPropertyHandler.cxx
xmlstyle.cxx
xmltabe.cxx
xmltabi.cxx
XMLThemeContext.cxx loplugin:ostr in xmloff 2024-05-15 20:37:38 +02:00