Summary: | opendocument-exchange between openoffice and koffice does not work very good | ||
---|---|---|---|
Product: | kword | Reporter: | m.wege |
Component: | general | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED LATER | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
m.wege
2006-11-18 15:40:59 UTC
SVN commit 606781 by dfaure: Write out the "office:font-face-decls" into the styles.xml as well (not only content.xml) so that OOo accepts to load the fonts that we are specifying CCBUG: 137536 M +3 -0 KWDocument.cpp --- branches/koffice/1.6/koffice/kword/KWDocument.cpp #606780:606781 @@ -3112,6 +3112,9 @@ KoStoreDevice stylesDev( store ); KoXmlWriter* stylesWriter = createOasisXmlWriter( &stylesDev, "office:document-styles" ); + // Yeah we need to save the same font faces in both content.xml and styles.xml... + savingContext.writeFontFaces( *stylesWriter ); + stylesWriter->startElement( "office:styles" ); if ( saveFlag == SaveAll ) Simple way to reproduce: Start Kword and use the "Colourful Document" template. Save the document as the default format (.odt). Open it in OpenOffice. the colours are different, the font is different, even the formatting is different. The same result can be achieved by creating a document in OO.org and opening it in kword... |