--===============0730001678== Content-Type: multipart/signed; boundary="nextPart1372652.gYC6UXRKz4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1372652.gYC6UXRKz4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 30. October 2008 09:20:40 James Richard Tyrer wrote: > jaham@gmx.net wrote: > > Hi folks... > > > > I investigated why autosave does not work correctly when the user > > opened a template, modified the content and does not save it manually > > to another file before the autosave timer has run out. > > When autosave kicks in it tries to save the document in the native > > format (see KoDocument::slotAutoSave). When saving it checks the > > outputMimeType which is a KoDocument internal variable to determine if > > it should save to oasis or the old native format. Unfortunately the > > outputMimeType is not set (i.e. is empty) when a template was loaded. > > This means it tries to save to the old native format. At least for > > Karbon that does not work, as there is no code to save to the old > > format anymore. > > One solution for Karbon would be to just overload the virtual > > KoDocument slot openTemplate and set the outputMimeType to Karbon > > native format odg. Another solution (also for other KOffice apps) would > > be to check the mimetype of the template in KoDocument::openTemplate > > and set that as the outputMimeType. > > > > Any other ideas or suggestions? > > Part of the problem is that (trying KWord) it is possible to open a > template. That should not happen. =20 In the context of this thread we are probably talking about something quite= =20 different then what you mean. The documentation goes into templates quite extensively if you are curious. =2D-=20 Thomas Zander --nextPart1372652.gYC6UXRKz4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkkKtVcACgkQCojCW6H2z/QofQCbBWqJ5WFApwIaJrhJJbptMTfH G8sAoOEfCYH7IxjBhYP9B2T04+QIJ2FH =RuKR -----END PGP SIGNATURE----- --nextPart1372652.gYC6UXRKz4-- --===============0730001678== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============0730001678==--