diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2019-04-05 19:30:45 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-04-10 10:51:51 +0200 |
commit | 3d74ddd190a5087e0a54ef7b14d0a43006745ec3 (patch) | |
tree | c8af061ae29bc376e1df749d4b730863b3d2a3e4 /ure | |
parent | c602bbaa89784681025ae487ad230ed0e86e9acb (diff) |
writerfilter: implement RTF derived styles defaulting
It turns out that the situation fixed in commit
1be0a3fa9ebb22b607c54b47739d4467acfed259 also applies to the definition
of the styles themselves.
To implement the same style import as Word, the style definitions need
to be stored twice: once as read from the file, and another time with
attributes defaulted and deduplicated vs. the parent style; the second
representation is then sent to the domain mapper.
To make this easier, add a bool parameter to cloneAndDeduplicate()
to disable the implicit pPr dereferencing that happens when creating the
hard formatted paragraph properties (this could potentially be cleaned
up further if those paragraph properties would use pPr wrapper
themselves).
Also implement defaulting of line spacing in getDefaultSPRM().
Change-Id: I4810e917697b3af244e5dbdd7f5a45b4767c93fc
Reviewed-on: https://gerrit.libreoffice.org/70320
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'ure')
0 files changed, 0 insertions, 0 deletions