Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

WP6LLListener.h

Go to the documentation of this file.
00001 /* libwpd
00002  * Copyright (C) 2002 William Lachance (william.lachance@sympatico.ca)
00003  * Copyright (C) 2002 Marc Maurer (j.m.maurer@student.utwente.nl)
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00018  *
00019  * For further information visit http://libwpd.sourceforge.net
00020  */
00021 
00022 /* "This product is not manufactured, approved, or supported by
00023  * Corel Corporation or Corel Corporation Limited."
00024  */
00025 
00026 #ifndef WP6LLLISTENER_H
00027 #define WP6LLLISTENER_H
00028 
00029 #include "WP6PrefixDataPacket.h"
00030 
00031 class WPXString;
00032 class WP6DefaultInitialFontPacket;
00033 class WP6PrefixData;
00034 
00035 enum WP6OutlineLocation { paragraphGroup, indexHeader };
00036 
00037 class WP6LLListener
00038 {
00039 public:
00040         WP6LLListener() : m_prefixData(NULL) {}
00041         virtual ~WP6LLListener() {}
00042         virtual void setDate(const uint16_t year, const uint8_t month, const uint8_t day,
00043                              const uint8_t hour, const uint8_t minute, const uint8_t second,
00044                              const uint8_t dayOfWeek, const uint8_t timeZone, const uint8_t unused) = 0;
00045         virtual void setExtendedInformation(const uint16_t type, const WPXString &data) = 0;
00046         virtual void characterColorChange(const uint8_t red, const uint8_t green, const uint8_t blue) = 0;
00047         virtual void characterShadingChange(const uint8_t shading) = 0;
00048         virtual void highlightChange(const bool isOn, const RGBSColor color) = 0;
00049         virtual void fontChange(const uint16_t matchedFontPointSize, const uint16_t fontPID) = 0;
00050         virtual void undoChange(const uint8_t undoType, const uint16_t undoLevel) = 0;
00051         virtual void updateOutlineDefinition(const WP6OutlineLocation outlineLocation, const uint16_t outlineHash,
00052                                              const uint8_t *numberingMethods, const uint8_t tabBehaviourFlag) = 0;
00053         virtual void paragraphNumberOn(const uint16_t outlineHash, const uint8_t level, const uint8_t flag) = 0;
00054         virtual void paragraphNumberOff() = 0;
00055         virtual void displayNumberReferenceGroupOn(const uint8_t subGroup, const uint8_t level) = 0;
00056         virtual void displayNumberReferenceGroupOff(const uint8_t subGroup) = 0;
00057         virtual void styleGroupOn(const uint8_t subGroup) = 0;
00058         virtual void styleGroupOff(const uint8_t subGroup) = 0;
00059         virtual void globalOn(const uint8_t systemStyle) = 0;
00060         virtual void globalOff() = 0;
00061         virtual void noteOn(const uint16_t textPID) = 0;
00062         virtual void noteOff(const WPXNoteType noteType) = 0;
00063         virtual void headerFooterGroup(const uint8_t headerFooterType, const uint8_t occurenceBits, const uint16_t textPID) = 0;
00064         virtual void suppressPageCharacteristics(const uint8_t suppressCode) = 0;
00065 
00066         void setPrefixData(WP6PrefixData *prefixData) { m_prefixData = prefixData; }
00067         const WP6PrefixDataPacket * getPrefixDataPacket(const int prefixID) const;
00068 
00069 
00070 private:
00071         WP6PrefixData *m_prefixData;
00072 };
00073 
00074 #endif /* WP6LLLISTENER_H */

Generated on Wed Aug 17 17:43:57 2005 for libwpd by doxygen 1.3.9.1