-
Pallavi Jadhav yazdı
Issue : - In styles.xml, beforeAutospacing property was set to true. - In code LO grab bags AustoSpacing property using "ParaInteropGrabBag". - But ParaInteropGrabBag had only an entry for direct paragraph properties, not paragraph styles. - Hence while importing AustoSpacing property from styles.xml, LO was throwing exception as "Some style properties could not be set: Unknown property: ParaInteropGrabBag". Implementation : - Added "ParaInteropGarbBag" entry for Paragraph styles in sw/source/core/unocore/unomap.cxx - Removed code from StyleSheetTable::ApplyStyleSheets() as it was previously added to "Ignore" the AutoSpacing property. The code was previously added beacuse due to AutpSpacing in styles.xml, LO was throwing an exception and this was causing unhandling of properties after AutoSpacing. So to prevent unhandling of other properties due to AutoSpacing property, a check was added to "Ignore" AutoSpacing, thus enabling handling of properties after AutoSpacing. Please refer to : https://gerrit.libreoffice.org/#/c/8902/ But as now we have to "Preserve AutoSpacing" this check needs to be removed in order to set it in StyelSheetTable.cxx. - Added Export Unit test case Change-Id: I6748f97befcdf40643e75388766e05740290306b Reviewed-on: https://gerrit.libreoffice.org/9561Reviewed-by:
Miklos Vajna <vmiklos@collabora.co.uk> Tested-by:
Miklos Vajna <vmiklos@collabora.co.uk>
ef829348