WP6CommentAnnotationPacket.h
Go to the documentation of this file.
00001 /* libwpd
00002  * Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
00003  *  
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00017  *
00018  * For further information visit http://libwpd.sourceforge.net
00019  */
00020 
00021 /* "This product is not manufactured, approved, or supported by 
00022  * Corel Corporation or Corel Corporation Limited."
00023  */
00024 
00025 #ifndef WP6COMMENTANNOTATIONPACKET_H
00026 #define WP6COMMENTANNOTATIONPACKET_H
00027 #include "WP6PrefixDataPacket.h"
00028 #include "WP6Listener.h"
00029 #include "WPXStream.h"
00030 
00031 class WP6CommentAnnotationPacket : public WP6PrefixDataPacket
00032 {
00033 public:
00034         WP6CommentAnnotationPacket(WPXInputStream *input, WPXEncryption *encryption, int id, uint32_t dataOffset, uint32_t dataSize);
00035         ~WP6CommentAnnotationPacket();
00036         void _readContents(WPXInputStream *input, WPXEncryption *encryption);
00037         void parse(WP6Listener * /*listener*/) const {}
00038         uint8_t getAnnotationFlag() const { return m_flags; }
00039         uint16_t getTextPID() const { return m_textPID; }
00040 
00041 private:
00042         WP6CommentAnnotationPacket(const WP6CommentAnnotationPacket&);             
00043         WP6CommentAnnotationPacket& operator=(const WP6CommentAnnotationPacket&);
00044         uint16_t m_textPID;
00045         uint8_t m_flags;
00046 };
00047 #endif /* WP6COMMENTANNOTATIONPACKET_H */