00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 00003 /* AbiSource Program Utilities 00004 * Copyright (C) 2001-2003 Francis James Franklin <fjf@alinameridon.com> 00005 * Copyright (C) 2001-2003 AbiSource, Inc. 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU General Public License 00009 * as published by the Free Software Foundation; either version 2 00010 * of the License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00020 * 02110-1301 USA. 00021 */ 00022 00023 #ifndef UTHTML_H 00024 #define UTHTML_H 00025 00026 /* pre-emptive dismissal; ut_types.h is needed by just about everything, 00027 * so even if it's commented out in-file that's still a lot of work for 00028 * the preprocessor to do... 00029 */ 00030 #ifndef UT_TYPES_H 00031 #include "ut_types.h" 00032 #endif 00033 #include "ut_xml.h" 00034 00035 class ABI_EXPORT UT_HTML : public UT_XML 00036 { 00037 public: 00038 UT_HTML (const char * szEncoding = 0); 00039 00040 ~UT_HTML (); 00041 00042 UT_Error parse (const char * szFilename); 00043 UT_Error parse (const char * buffer, UT_uint32 length); 00044 00045 private: 00046 std::string m_encoding; 00047 }; 00048 00049 #endif