00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ 00002 /* libwpd 00003 * Copyright (C) 2006, 2007 Andrew Ziem 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 */ 00020 00021 #ifndef WPS_H 00022 #define WPS_H 00023 00029 class WPSFPROP 00030 { 00031 public: 00032 WPSFPROP() : m_cch(0), m_rgchProp() {}; 00033 uint8_t m_cch; /* number of bytes in this FPROP */ 00034 std::string m_rgchProp; /* Prefix for a CHP or PAP sufficient to handle differing bits from default */ 00035 }; 00036 00040 class WPSFOD 00041 { 00042 public: 00043 WPSFOD() : m_fcLim(0), m_bfprop(0), m_bfpropAbs(0), m_fprop() {} 00044 uint32_t m_fcLim; /* byte number of last character covered by this FOD */ 00045 uint16_t m_bfprop; /* byte offset from beginning of FOD array to corresponding FPROP */ 00046 uint32_t m_bfpropAbs; /* bfprop from beginning of stream offset */ 00047 WPSFPROP m_fprop; /* character or paragraph formatting */ 00048 }; 00049 00050 #endif 00051 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */ 00052