From koffice-devel Sat Apr 09 09:02:55 2005 From: Thomas Zander Date: Sat, 09 Apr 2005 09:02:55 +0000 To: koffice-devel Subject: Re: Export filters Message-Id: <200504091102.58892.zander () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=111303740700101 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1265335022==" --===============1265335022== Content-Type: multipart/signed; boundary="nextPart2026293.zCDFX0FXgU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2026293.zCDFX0FXgU Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I suggest to just put it in two classes and create a third with a name like= =20 AbstractQtExporter or whatever your creativity gives you. With one method (abstact) private abstract QPainter initPainter(); It (IIRC) not really hard to place two filters in one Makefile.am file; and= =20 therefor sharing the dir. But please make sure you have two different=20 classes as the 'real' filter. Just to make it easier to learn things.. IMO. Any other opinions on the subject? On Friday 08 April 2005 22:55, Inge Wallin wrote: > Hi, > > I have now succeeded in creating the first export filter for KChart: PNG > (yay for me!). It is not 100% finished - the user can't select the size > yet - but it actually produces nice looking PNGs. > > Thanks to the excellent capabilities of Qt, it turns out that (at least > in theory) it will be almost trivial to create a SVG export filter as > well. My question is now: Is it the preferred style to create a separate > output filter for SVG or can / should I let the current filter also > create the SVG. > > The reason for the question is that the SVG filter would be an exact copy > of the PNG filter except for maybe 3 or 4 lines of code. > > -Inge =2D-=20 Thomas Zander --nextPart2026293.zCDFX0FXgU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCV5pCCojCW6H2z/QRApU/AJ9Wr6PT+WufqXvxt0rRGySSQZekIwCfd+si QICOwRwAgCiCXl9sPXBmf58= =9R2M -----END PGP SIGNATURE----- --nextPart2026293.zCDFX0FXgU-- --===============1265335022== 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 --===============1265335022==--