Hi,

Attached is a patch file that modifies PdfWriter.h. It makes PdfWriter usable as a base class.

Ilan


On 5/5/2014 10:12, zyx wrote:
On Mon, 2014-05-05 at 10:08 +0300, Ilan Zisser wrote:
No problem. Attached.
	Hi,
please do not send it only to me, I'm just an ordinary user of PoDoFo as
you are, Dominik only gave me commit right for some other work I made in
a separate PoDoFo branch. Reply to the list instead, please.

By the way, the patch contains changes in license block, that doesn't
feel right, I suppose you created the patch with a wrong version of
the .old file. Also,  once you use patches the 'signatures of your name'
are not needed in the code, because the patch defines what exactly you
changed.
	Bye,
	zyx


Index: PdfWriter.h
===================================================================
--- PdfWriter.h (revision 1598)
+++ PdfWriter.h (working copy)
@@ -100,7 +100,7 @@
      *
      *  \param pDevice write to the specified device 
      */
-    void Write( PdfOutputDevice* pDevice );
+    virtual void Write( PdfOutputDevice* pDevice );
 
     /** Set the write mode to use when writing the PDF.
      *  \param eWriteMode write mode
@@ -192,7 +192,7 @@
      *  \param bPrevEntry if true a prev entry is added to the trailer object 
with a value of 0
      *  \param bOnlySizeKey write only the size key
      */
-    void FillTrailerObject( PdfObject* pTrailer, pdf_long lSize, bool 
bPrevEntry, bool bOnlySizeKey ) const;
+    virtual void FillTrailerObject( PdfObject* pTrailer, pdf_long lSize, bool 
bPrevEntry, bool bOnlySizeKey ) const;
 
  protected:
     /**
@@ -202,15 +202,16 @@
 
     /** Writes the pdf header to the current file.
      *  \param pDevice write to this output device
-     */       
-    void PODOFO_LOCAL WritePdfHeader( PdfOutputDevice* pDevice );
+     */
 
+    virtual void PODOFO_LOCAL WritePdfHeader( PdfOutputDevice* pDevice );
+
     /** Write pdf objects to file
      *  \param pDevice write to this output device
      *  \param vecObjects write all objects in this vector to the file
      *  \param pXref add all written objects to this XRefTable
-     */ 
-    void WritePdfObjects( PdfOutputDevice* pDevice, const PdfVecObjects& 
vecObjects, PdfXRef* pXref ) PODOFO_LOCAL;
+     */
+    virtual void WritePdfObjects( PdfOutputDevice* pDevice, const 
PdfVecObjects& vecObjects, PdfXRef* pXref ) PODOFO_LOCAL;
 
     /** Creates a file identifier which is required in several
      *  PDF workflows. 
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to