libwps: WPSParser.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# WPSParser.h

Go to the documentation of this file.

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