From: Marc Maurer (j.m.maurer@student.utwente.nl)
Date: Sat Sep 27 2003 - 14:08:08 EDT
This commit adds (fully transparent) support for the WP4.2 document
format to libwpd.
Some important notes (for developers):
- Added complete infrastructure to parse WP4.2 documents (and perhaps
even earlier versions). Basic text import is supported. Additional
features will come.
- Added a WPDocument class, which automatically instantiates the right
parser for the given document (ie. the WP5 parser, WP6 parser or WP4.2
Parser).
- The WPDocument _now_ assumes a document is in the WP4.2 format, when
the WP6 and WP5 parsers fail to recognize the file header. To be able to
detect if a file uses the WP4.2 format, some heuristics are needed (will
do ASAP), since WP4.2 files do not have a header indicating its format.
- I think I broke support for the low level utilities wpd2text and
wpd2raw. wpd2html works fine, and can load any supported document type
- I'll add a static "isFileFormatSupported()" function to WPDocument in
the very near future.
- Merged the WP6HLParser and WP6LLParser
- The AbiWord plugin is already working in my tree as a proof of
concept. I was able to load a complex WP4.2 document without any
problems. Yay!
- The current WP42HLListener is a mess. Do not look at it. I'll fix it
ASAP.
- I hope I didn't forgot to cvs add any files
- Next on my TODO: basic WP5.x framework.
Have fun.
Marc
Add support for WP4.2 document types
CVS:
----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: src/conv/Makefile.am src/conv/html/main.cpp
CVS: src/lib/Makefile.am src/lib/WP6EOLGroup.cpp
CVS: src/lib/WP6FillStylePacket.cpp
CVS: src/lib/WP6GeneralTextPacket.cpp
CVS: src/lib/WP6HLStylesListener.cpp src/lib/WP6HLStylesListener.h
CVS: src/lib/WPXHLListener.h src/lib/WPXHeader.cpp
CVS: src/lib/WPXParser.cpp src/lib/WPXParser.h src/lib/libwpd.h
CVS: src/lib/libwpd_internal.h src/lib/libwpd_support.h
CVS: Added Files:
CVS: src/lib/WP42FileStructure.h src/lib/WP42HLListener.cpp
CVS: src/lib/WP42HLListener.h src/lib/WP42LLListener.h
CVS: src/lib/WP42Parser.cpp src/lib/WP42Parser.h
CVS: src/lib/WP42Part.cpp src/lib/WP42Part.h
CVS: src/lib/WP42UnsupportedVariableLengthGroup.cpp
CVS: src/lib/WP42UnsupportedVariableLengthGroup.h
CVS: src/lib/WP42VariableLengthGroup.cpp
CVS: src/lib/WP42VariableLengthGroup.h src/lib/WP5Parser.cpp
CVS: src/lib/WP5Parser.h src/lib/WP6Parser.cpp src/lib/WP6Parser.h
CVS: src/lib/WPDocument.cpp src/lib/WPDocument.h
CVS: Removed Files:
CVS: src/lib/WP6HLParser.cpp src/lib/WP6HLParser.h
CVS: src/lib/WP6LLParser.cpp src/lib/WP6LLParser.h
CVS:
----------------------------------------------------------------------
-- Marc Maurer <j.m.maurer@student.utwente.nl>
This archive was generated by hypermail 2.1.4 : Sat Sep 27 2003 - 14:16:52 EDT