Re: Updating vcl EMF+ Renderer without using the cppcanvas metafile renderer

2016-05-12 Thread Armin Le Grand

Hi,

Am 12.05.2016 um 08:27 schrieb Aptitude Testing Team:

To fix this, I believe that it should be possible to copy
cppcanvas/source/mtrenderer/emfplus.cxx into vcl/source/filter/wmf

and

adapt it to use "class WinMtfOutput"


I'd move it instead of copying. WinMtfOutput as-is won't cut it, you
need to extend it to cover more modern graphic operations. Caveat
emptor, that might require extensions to the internal StarView metafile
format then with some ripple-effects.

Another (IMO better) option is to convert it into a drawinglayer
primitive filter. Armin on Cc for further details on that topic.


Thinking about it. I believe the best approach will be to use svgio as a
framework (I will call it wmfio). Since svg (I believe) is the newest.
Then in 4 stages, slowly port the WMF/EMF/EMF+ code
1) WMF
2) EMF
3) EMF+
4) Strip out the old code (If any remnants exist).

I will make a start, and see where it takes me.


Fantastic, long needed thing to start with - ping if you have questions!

Regards,
ALG





___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


--
--
ALG (PGP Key: EE1C 4B3F E751 D8BC C485 DEC1 3C59 F953 D81C F4A2)

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Updating vcl EMF+ Renderer without using the cppcanvas metafile renderer

2016-05-12 Thread Thorsten Behrens
Aptitude Testing Team wrote:
> Thinking about it. I believe the best approach will be to use svgio as a
> framework (I will call it wmfio). Since svg (I believe) is the newest.
> Then in 4 stages, slowly port the WMF/EMF/EMF+ code
> 1) WMF
> 2) EMF
> 3) EMF+
> 4) Strip out the old code (If any remnants exist).
> 
Sounds great! :)

Cheers,

-- Thorsten


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


RE: Updating vcl EMF+ Renderer without using the cppcanvas metafile renderer

2016-05-12 Thread Aptitude Testing Team

> > To fix this, I believe that it should be possible to copy
> > cppcanvas/source/mtrenderer/emfplus.cxx into vcl/source/filter/wmf
> and
> > adapt it to use "class WinMtfOutput"
> >
> I'd move it instead of copying. WinMtfOutput as-is won't cut it, you
> need to extend it to cover more modern graphic operations. Caveat
> emptor, that might require extensions to the internal StarView metafile
> format then with some ripple-effects.
> 
> Another (IMO better) option is to convert it into a drawinglayer
> primitive filter. Armin on Cc for further details on that topic.
> 

Thinking about it. I believe the best approach will be to use svgio as a
framework (I will call it wmfio). Since svg (I believe) is the newest.
Then in 4 stages, slowly port the WMF/EMF/EMF+ code
1) WMF
2) EMF
3) EMF+
4) Strip out the old code (If any remnants exist).

I will make a start, and see where it takes me.



___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Updating vcl EMF+ Renderer without using the cppcanvas metafile renderer

2016-05-11 Thread Thorsten Behrens
Aptitude Testing Team wrote:
> To fix this, I believe that it should be possible to copy
> cppcanvas/source/mtrenderer/emfplus.cxx into vcl/source/filter/wmf
> and adapt it to use "class WinMtfOutput"
> 
I'd move it instead of copying. WinMtfOutput as-is won't cut it, you
need to extend it to cover more modern graphic operations. Caveat
emptor, that might require extensions to the internal StarView
metafile format then with some ripple-effects.

Another (IMO better) option is to convert it into a drawinglayer
primitive filter. Armin on Cc for further details on that topic.

> There was a comment in
> http://nabble.documentfoundation.org/Query-about-the-direction-of-EMF-EMF-pr
> ocessing-td4132203.html#a4132247 by Thorsten that suggests there are further
> issues.
> 
Nah, that was referring to dump cppcanvas - getting rid of EMF+ there
is a useful first step.

Cheers,

-- Thorsten


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice