Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef STAR_FILE_MANAGER
00039 # define STAR_FILE_MANAGER
00040
00041 #include <vector>
00042
00043 #include "STOFFDebug.hxx"
00044 #include "STOFFEntry.hxx"
00045 #include "STOFFInputStream.hxx"
00046 #include "STOFFOLEParser.hxx"
00047
00048 namespace StarFileManagerInternal
00049 {
00050 struct State;
00051 }
00052
00053 class StarObject;
00054 class StarZone;
00055
00061 class StarFileManager
00062 {
00063 public:
00065 StarFileManager();
00067 virtual ~StarFileManager();
00068
00070
00072 static void checkUnparsed(STOFFInputStreamPtr input, shared_ptr<STOFFOLEParser> oleParser, char const *password);
00073
00075 static bool readOLEDirectory(shared_ptr<STOFFOLEParser> oleParser, shared_ptr<STOFFOLEParser::OleDirectory> ole, STOFFEmbeddedObject &image);
00076
00078 static bool readImageDocument(STOFFInputStreamPtr input, librevenge::RVNGBinaryData &data, std::string const &fileName);
00080 static bool readMathDocument(STOFFInputStreamPtr input, std::string const &fileName, StarObject &doc);
00081
00083 static bool readEmbeddedPicture(shared_ptr<STOFFOLEParser> oleParser, std::string const &fileName, STOFFEmbeddedObject &image);
00085 static bool readEmbeddedPicture(STOFFInputStreamPtr input, librevenge::RVNGBinaryData &data, std::string &dataType, std::string const &fileName);
00086
00087
00088
00090 static bool readOleObject(STOFFInputStreamPtr input, librevenge::RVNGBinaryData &data, std::string const &fileName);
00092 static bool readOutPlaceObject(STOFFInputStreamPtr input, libstoff::DebugFile &ascii);
00093
00095 static bool readJobSetUp(StarZone &zone, bool usePrinterLen);
00097 static bool readFont(StarZone &zone);
00099 static bool readSVGDI(StarZone &zone);
00100
00101 protected:
00102
00103
00104
00105
00106 private:
00108 shared_ptr<StarFileManagerInternal::State> m_state;
00109 };
00110 #endif
00111