Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

monrtfwr.h

Go to the documentation of this file.
00001 #ifndef _MONRTFWR_H_INCLUDED_
00002 #define _MONRTFWR_H_INCLUDED_
00003 //**********************************************************************
00004 //                                                                     *
00005 //    Filename:      monrtfwr.h                                        *
00006 //    Date:          16 Feb 2002                                       *
00007 //    File Version:  1                                                 *
00008 //                                                                     *
00009 //    Author:        Chris White (whitecf@bcs.org.uk)                  *
00010 //    Company:       Monitor Computing Services Ltd.                   *
00011 //                                                                     *
00012 //**********************************************************************
00013 //                                                                     *
00014 //    Copyright (C) 2002  Monitor Computing Services Ltd.              *
00015 //                                                                     *
00016 //    This program is free software; you can redistribute it and/or    *
00017 //    modify it under the terms of the GNU General Public License      *
00018 //    as published by the Free Software Foundation; either version 2   *
00019 //    of the License, or any later version.                            *
00020 //                                                                     *
00021 //    This program is distributed in the hope that it will be useful,  *
00022 //    but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00023 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00024 //    GNU General Public License for more details.                     *
00025 //                                                                     *
00026 //    You should have received a copy of the GNU General Public        *
00027 //    License (http://www.gnu.org/copyleft/gpl.html) along with this   *
00028 //    program; if not, write to:                                       *
00029 //       The Free Software Foundation Inc.,                            *
00030 //       59 Temple Place - Suite 330,                                  *
00031 //       Boston, MA  02111-1307,                                       *
00032 //       USA.                                                          *
00033 //                                                                     *
00034 //**********************************************************************
00035 //                                                                     *
00036 //    Notes:                                                           *
00037 //                                                                     *
00038 //**********************************************************************
00039 
00040 #include "mondocwr.h"
00041 
00042 
00043 class MonRtfWriter : public MonDocWriter
00044 {
00045 public:
00046 
00047   MonRtfWriter(const char  *inFileName);
00048   virtual ~MonRtfWriter();
00049 
00050   virtual void  Begin();
00051   virtual void  leftMargin(float  inches);
00052   virtual void  rightMargin(float  inches);
00053   virtual void  topMargin(float  inches);
00054   virtual void  bottomMargin(float  inches);
00055   virtual void  leftIndent(float  inches);
00056   virtual void  firstLineIndent(float  inches);
00057   virtual void  write(char  charToWrite);
00058   virtual void  writeHardSpace();
00059   virtual void  justify();
00060   virtual void  leftJustify();
00061   virtual void  endParagraph();
00062   virtual void  endPage()   ;
00063   virtual void  End();
00064 
00065 protected:
00066 
00067   class ofstream      *output;
00068   static const float  twipsPerInch;
00069 };
00070 
00071 
00072 #endif

Generated on Sun Jul 20 02:35:50 2003 for WordWise to RTF, Win32 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002