diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-03-02 12:21:53 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-03-02 15:07:02 +0100 |
commit | 632804b1f9066f5ac701338e500ae5c0ed1875dd (patch) | |
tree | 242350f684c6a7974253b5543bddf5b3534f735e | |
parent | 69ff012f1a2d10b3284586474f2add4e88eabcfb (diff) |
vcl: document that it's possible to dump GDIMetaFile to XML
Change-Id: I921577df6c905e935d05ff0e9d2b2c6e8d22cc89
-rw-r--r-- | vcl/README | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/vcl/README b/vcl/README index ebf8ee456116..d995cdc76358 100644 --- a/vcl/README +++ b/vcl/README @@ -76,6 +76,20 @@ The way COM is used in LO generally: - oslWorkerWrapperFunction() puts every thread spawned via oslCreateThread() into MTA (free-threaded) +== GDIMetafile == + +GDIMetafile is a vector drawing representation that corresponds directly +to the SVM (StarView Metafile) format; it is extremely important as +an intermediate format in all sorts of drawing and printing operations. + +There is a class MetafileXmlDump in include/test/mtfxmldump.hxx that +can store a GDIMetafile as XML, which makes debugging much easier +since you can just use "diff" to see changes. + +To use it you need to link against "test" library and then (because +"test" is not part of the installation) run with: +LD_LIBRARY_PATH=workdir/LinkTarget/Library:workdir/UnpackedTarball/cppunit/src/cppunit/.libs instdir/program/soffice + == EMF+ == emf+ is vector file format used by MSO and is successor of wmf and @@ -159,13 +173,13 @@ Printing from Writer works like this: 1) individual pages print by passing an appropriate OutputDevice to XRenderable 2) in drawinglayer, a VclMetafileProcessor2D is used to record everything on - the page (because the OutputDevice has been set up to record a MetaFile) -3) the pages' MetaFiles are converted to PDF by the vcl::PDFWriter + the page (because the OutputDevice has been set up to record a GDIMetaFile) +3) the pages' GDIMetaFiles are converted to PDF by the vcl::PDFWriter in vcl/source/gdi/pdfwriter* Creating the ODF thumbnail for the first page works as above except step 3 is: -3) the MetaFile is replayed to create the thumbnail +3) the GDIMetaFile is replayed to create the thumbnail On-screen display differs in step 1 and 2: |