Proposal: Promote svg support

jaham at gmx.net jaham at gmx.net
Mon Jun 27 21:07:28 BST 2011


On Monday 27 June 2011 17:25:37 Thorsten Zachmann wrote:
> On Sunday, June 26, 2011 18:25:56 jaham at gmx.net wrote:
> > I thought to have a separate lib similar to our odf lib containing the
> > classes  used for loading/saving svg. One of these classes would be an
> > interface which shapes can implement to save/load svg data, i.e. calling
> > it SvgSerializable.
> > 
> > class SvgSerializable
> > {
> > 
> > public:
> >         virtual bool saveSvg(SvgSavingContext &context) = 0;
> >         virtual bool loadSvg(SvgLoadingContext &context) = 0;
> >         // some more required functions
> > 
> > };
> 
> Agreed that having a libs like the odf lib makes sense and that contains
> the stuff like SvgLoadingContext .... However I'm not sure if we need a
> class SvgSerializable. Why not just put that into KoShape directly?

There is no reason other than I was a little hesistant to force svg 
loading/saving support on each shape. Instead I thought making it optionally.
But if there is consent about putting it directly into KoShape, I have no 
problem with that.

Ciao Jan



More information about the calligra-devel mailing list