COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libgnumeric/include/coopy/GnumericTextBook.h
Go to the documentation of this file.
00001 #ifndef COOPY_GNUMERICTEXTBOOK
00002 #define COOPY_GNUMERICTEXTBOOK
00003 
00004 #include <coopy/TextBook.h>
00005 
00006 #include <string>
00007 #include <vector>
00008 
00009 namespace coopy {
00010   namespace store {
00016     namespace gnumeric {
00017       class GnumericTextBook;
00018       class GnumericTextBookFactory;
00019     }
00020   }
00021 }
00022 
00023 class coopy::store::gnumeric::GnumericTextBook : public TextBook {
00024 private:
00025   void *implementation;
00026   std::vector<std::string> names;
00027   bool dirtyNames;
00028 
00029   void updateNames();
00030 
00031 public:
00032   GnumericTextBook();
00033 
00034   virtual ~GnumericTextBook();
00035 
00036   virtual void clear();
00037 
00038   virtual bool create();
00039 
00040   virtual bool load(const char *fname);
00041 
00042   virtual bool save(const char *fname, const char *format);
00043 
00044   virtual std::vector<std::string> getNames();
00045 
00046   virtual PolySheet readSheet(const std::string& name);
00047   virtual PolySheet readSheetByIndex(int index);
00048 
00049   bool addSheet(const SheetSchema& schema);
00050 };
00051 
00052 
00053 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines