WP6Listener.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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 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 WP6LISTENER_H
00027 #define WP6LISTENER_H
00028  
00029 #include "WPXListener.h"
00030 #include "WP6FileStructure.h"
00031 
00032 #include <vector>
00033 #include "WP6PrefixDataPacket.h"
00034 
00035 class WPXString;
00036 class WP6DefaultInitialFontPacket;
00037 class WP6PrefixData;
00038 
00039 enum WP6OutlineLocation { paragraphGroup, indexHeader };
00040 
00041 class WP6Listener : public WPXListener
00042 {
00043 public:
00044         WP6Listener(std::vector<WPXPageSpan *> *pageList, WPXHLListenerImpl *listenerImpl);
00045         virtual void setDate(const uint16_t year, const uint8_t month, const uint8_t day,
00046                              const uint8_t hour, const uint8_t minute, const uint8_t second,
00047                              const uint8_t dayOfWeek, const uint8_t timeZone, const uint8_t unused) = 0;
00048         virtual void setExtendedInformation(const uint16_t type, const WPXString &data) = 0;
00049         virtual void characterColorChange(const uint8_t red, const uint8_t green, const uint8_t blue) = 0;
00050         virtual void characterShadingChange(const uint8_t shading) = 0;
00051         virtual void highlightChange(const bool isOn, const RGBSColor color) = 0;
00052         virtual void fontChange(const uint16_t matchedFontPointSize, const uint16_t fontPID) = 0;
00053         virtual void updateOutlineDefinition(const WP6OutlineLocation outlineLocation, const uint16_t outlineHash,
00054                                              const uint8_t *numberingMethods, const uint8_t tabBehaviourFlag) = 0;
00055         virtual void paragraphNumberOn(const uint16_t outlineHash, const uint8_t level, const uint8_t flag) = 0;
00056         virtual void paragraphNumberOff() = 0;
00057         virtual void displayNumberReferenceGroupOn(const uint8_t subGroup, const uint8_t level) = 0;
00058         virtual void displayNumberReferenceGroupOff(const uint8_t subGroup) = 0;
00059         virtual void styleGroupOn(const uint8_t subGroup) = 0;
00060         virtual void styleGroupOff(const uint8_t subGroup) = 0;
00061         virtual void globalOn(const uint8_t systemStyle) = 0;
00062         virtual void globalOff() = 0;
00063         virtual void noteOn(const uint16_t textPID) = 0;
00064         virtual void noteOff(const WPXNoteType noteType) = 0;
00065         virtual void headerFooterGroup(const uint8_t headerFooterType, const uint8_t occurenceBits, const uint16_t textPID) = 0;
00066         virtual void suppressPageCharacteristics(const uint8_t suppressCode) = 0;
00067         virtual void insertRow(const uint16_t rowHeight, const bool isMinimumHeight, const bool isHeaderRow) = 0;
00068         virtual void insertCell(const uint8_t colSpan, const uint8_t rowSpan, const uint8_t borderBits, 
00069                                 const RGBSColor * cellFgColor, const RGBSColor * cellBgColor,
00070                                 const RGBSColor * cellBorderColor, const WPXVerticalAlignment cellVerticalAlignment, 
00071                                 const bool useCellAttributes, const uint32_t cellAttributes) = 0;
00072 
00073         void setPrefixData(WP6PrefixData *prefixData) { m_prefixData = prefixData; }
00074         const WP6PrefixDataPacket * getPrefixDataPacket(const int prefixID) const;
00075                 
00076         // for getting low-level messages from the parser
00077         virtual void undoChange(const uint8_t undoType, const uint16_t undoLevel);
00078 
00079 private:
00080         WP6PrefixData *m_prefixData;
00081 };
00082 
00083 #endif /* WP6LISTENER_H */

Generated on Sat Dec 10 16:49:56 2005 for libwpd by doxygen 1.4.5