00001 #ifndef _MONDOCWR_H_INCLUDED_ 00002 #define _MONDOCWR_H_INCLUDED_ 00003 //********************************************************************** 00004 // * 00005 // Filename: mondocwr.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 class MonDocWriter 00041 { 00042 public: 00043 00044 virtual ~MonDocWriter() {;} 00045 00046 virtual void Begin() = 0; 00047 virtual void leftMargin(float inches) = 0; 00048 virtual void rightMargin(float inches) = 0; 00049 virtual void topMargin(float inches) = 0; 00050 virtual void bottomMargin(float inches) = 0; 00051 virtual void leftIndent(float inches) = 0; 00052 virtual void firstLineIndent(float inches) = 0; 00053 virtual void write(char charToWrite) = 0; 00054 virtual void writeHardSpace() = 0; 00055 virtual void justify() = 0; 00056 virtual void leftJustify() = 0; 00057 virtual void endParagraph() = 0; 00058 virtual void endPage() = 0; 00059 virtual void End() = 0; 00060 00061 protected: 00062 00063 MonDocWriter() {;} 00064 MonDocWriter(MonDocWriter&) {;} 00065 MonDocWriter(MonDocWriter*) {;} 00066 }; 00067 00068 00069 #endif