/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* libwpd * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * For further information visit http://libwpd.sourceforge.net */ /* "This product is not manufactured, approved, or supported by * Corel Corporation or Corel Corporation Limited." */ #ifndef WP5LISTFONTSUSEDPACKET_H #define WP5LISTFONTSUSEDPACKET_H #include "WP5GeneralPacketData.h" #include "WPXMemoryStream.h" #include class WP5ListFontsUsedPacket : public WP5GeneralPacketData { public: WP5ListFontsUsedPacket(WPXInputStream *input, WPXEncryption *encryption, int id, uint32_t dataOffset, uint32_t dataSize, uint16_t packetType); ~WP5ListFontsUsedPacket(); void _readContents(WPXInputStream *input, WPXEncryption *encryption, uint32_t dataSize); int getFontNameOffset(const int fontNumber) const; double getFontSize(const int fontNumber) const; private: uint16_t m_packetType; std::vector m_fontNameOffset; std::vector m_fontSize; }; #endif /* WP5LISTFONTSUSEDPACKET_H */ /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */