[Libreoffice-commits] core.git: vcl/README.GDIMetaFile

Chris Sherlock chris.sherlock79 at gmail.com
Tue Dec 9 12:00:24 PST 2014


 vcl/README.GDIMetaFile |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 4e27152046e80c7f4b676920727a1130c83559bb
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Wed Dec 10 06:56:23 2014 +1100

    vcl: update REAME.GDIMetaFile
    
    Change-Id: Ica56b6b07f8fc521882d15c1bf95cc6c162b4fd1

diff --git a/vcl/README.GDIMetaFile b/vcl/README.GDIMetaFile
index b7282a3..f594885 100644
--- a/vcl/README.GDIMetaFile
+++ b/vcl/README.GDIMetaFile
@@ -189,20 +189,19 @@ Basic pseudocode
 ----------------
 
 The following illustrates an exceptionally basic and incomplete implementation of how to use
-GDIMetafile (TODO: put this into a unit test, or a vcl demo app).
+GDIMetafile. An example can be found at vcl/workben/mtfdemo.cxx
 
 
-main()
+DemoWin::Paint()
 {
     // assume that VCL has been initialized and a new application created
 
     Window* pWin = new WorkWindow();
     GDIMetaFile* pMtf = new GDIMetaFile();
 
-    ifstream aInFile;
-    aInFile.open("example.emf");
+    SvFileStream aFileStream("example.emf", STEAM_READ);
 
-    pMtf->Read(aInFile);
+    ReadWindowMetafile(aFileStream, pMtf);
     pMtf->Play(pWin);
     
 }


More information about the Libreoffice-commits mailing list