commit: PNG snapshots of MathML in no MathML plugin.

From: <msevior_at_physics.unimelb.edu.au>
Date: Sat Jan 29 2005 - 10:03:14 CET

CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: tools/abimathview/plugin.m4
CVS: tools/abimathview/xp/AbiMathView.cpp
CVS: tools/abimathview/xp/AbiMathView.h
CVS: tools/abimathview/xp/gr_Abi_CharArea.cpp
CVS: tools/abimathview/xp/gr_Abi_ColorArea.cpp
CVS: tools/abimathview/xp/gr_Abi_DefaultShaper.cpp
CVS: tools/abimathview/xp/gr_Abi_GlyphArea.cpp
CVS: tools/abimathview/xp/gr_Abi_InkArea.cpp
CVS: tools/abimathview/xp/gr_Abi_MathGraphicDevice.cpp
CVS: tools/abimathview/xp/gr_Abi_RenderingContext.cpp
CVS: tools/abimathview/xp/gr_Abi_StandardSymbolsShaper.cpp
CVS: ----------------------------------------------------------------------
Code to make PNG snapshots of Math.

CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: src/af/gr/unix/gr_UnixGraphics.cpp
CVS: src/af/gr/unix/gr_UnixImage.cpp
CVS: src/af/gr/xp/gr_EmbedManager.cpp
CVS: src/af/gr/xp/gr_EmbedManager.h src/af/xap/xp/xad_Document.h
CVS: src/af/xap/xp/xap_App.cpp src/af/xap/xp/xap_App.h
CVS: src/text/fmt/xp/fp_MathRun.cpp src/text/fmt/xp/fp_MathRun.h
CVS: src/text/fmt/xp/fv_View.cpp src/text/ptbl/xp/pd_Document.cpp
CVS: src/text/ptbl/xp/pd_Document.h src/wp/ap/unix/ap_UnixApp.cpp
CVS: src/wp/ap/unix/ap_UnixApp.h
CVS: src/wp/impexp/xp/ie_exp_AbiWord_1.cpp
CVS: ----------------------------------------------------------------------
PNG snapshotting code for MathML

OK this basically works now. AbiWord's without the mathML plugin get
a PNG snapshot in it's place.

See attached file for an example.

There are a couple of things that need fixing.

1. The snapshot doesn;t zoom correctly.
2. The Ascent/descent of the snapshot is wrong. Basically the descent is
always zero.

Both these can be fixed pretty easily and this code can be easily applied
to any other embeddable plugin we write.

Cheers!

Martin

Received on Sat Jan 29 10:04:31 2005

This archive was generated by hypermail 2.1.8 : Sat Jan 29 2005 - 10:04:33 CET