WPSParser.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /* libwps
00003  * Copyright (C) 2002 William Lachance (william.lachance@sympatico.ca)
00004  * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00019  *
00020  * For further information visit http://libwps.sourceforge.net
00021  */
00022 
00023 /*
00024  * This file is in sync with CVS
00025  * /libwpd2/src/lib/WPXParser.h 1.22
00026  */
00027 
00028 
00029 #ifndef WPSPARSER_H
00030 #define WPSPARSER_H
00031 
00032 #include "libwps_internal.h"
00033 
00034 class WPSHeader;
00035 typedef shared_ptr<WPSHeader> WPSHeaderPtr;
00036 
00037 class WPXDocumentInterface;
00038 
00039 class WPSParser
00040 {
00041 public:
00042         WPSParser(WPXInputStreamPtr &input, WPSHeaderPtr &header);
00043         virtual ~WPSParser();
00044 
00045         virtual void parse(WPXDocumentInterface *documentInterface) = 0;
00046 
00047 protected:
00048         WPSHeaderPtr &getHeader()
00049         {
00050                 return m_header;
00051         }
00052         WPXInputStreamPtr &getInput()
00053         {
00054                 return m_input;
00055         }
00056 
00057 private:
00058         WPSParser(const WPSParser &);
00059         WPSParser &operator=(const WPSParser &);
00060         WPXInputStreamPtr m_input;
00061 
00062         WPSHeaderPtr m_header;
00063 };
00064 
00065 #endif /* WPSPARSER_H */
00066 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */