summaryrefslogtreecommitdiff
path: root/svl/CppunitTest_svl_items.mk
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-03-20 14:49:15 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-03-20 16:28:39 +0100
commiteb128a7d6bbc27b4dbbf9461c81c90e40203b114 (patch)
tree594c5ccfadd78b58cef53668b5dd6c92b11d6ced /svl/CppunitTest_svl_items.mk
parent0fb66ff74cbe2e767b91f05b123c782f59ac39ab (diff)
sw: make ODT export of paragraph auto-styles deterministic
If a complex enough document is loaded into Writer and saved as ODT, then the content.xml's automatic paragraph styles (P<num>) are re-ordered on each save, which leads to unnecessary noise. The actual random order is created during import by the time we convert direct formatting (e.g. from HTML import) to autostyles, as StylePoolImpl::maRoot stores autostyles in a map that orders autostyle parents based on their pointer address. This has benefits like automatic ordering of item sets and fast comparison, so don't change that, but extend the svl API to also track the name of those parents. This way by the time StylePool::createIterator() would iterate over those autostyles, it can order the parents by their name, so two import->export runs will result in the same autostyle ordering. (This appears to be the only indeterminism in content.xml for a test HTML input, while meta.xml and settings.xml still changes all the time.) Change-Id: I1cfcae2c664a5c5c3dee48be733046979c1593ed Reviewed-on: https://gerrit.libreoffice.org/69469 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'svl/CppunitTest_svl_items.mk')
-rw-r--r--svl/CppunitTest_svl_items.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/svl/CppunitTest_svl_items.mk b/svl/CppunitTest_svl_items.mk
index c8e5e0699635..28e8772d71ad 100644
--- a/svl/CppunitTest_svl_items.mk
+++ b/svl/CppunitTest_svl_items.mk
@@ -15,6 +15,7 @@ $(eval $(call gb_CppunitTest_use_sdk_api,svl_items))
$(eval $(call gb_CppunitTest_add_exception_objects,svl_items, \
svl/qa/unit/items/test_IndexedStyleSheets \
+ svl/qa/unit/items/stylepool \
))
$(eval $(call gb_CppunitTest_use_libraries,svl_items, \