kspread Library API Documentation

kspread_interpreter.h

00001 #ifndef __kspread_interpreter_h__
00002 #define __kspread_interpreter_h__
00003 
00004 #include <koscript.h>
00005 
00006 #include "kspread_global.h"
00007 
00008 class KSParseNode;
00009 class KSContext;
00010 
00011 class KSpreadCell;
00012 class KSpreadDoc;
00013 class KSpreadSheet;
00014 
00015 class KSpreadInterpreter : public KSInterpreter
00016 {
00017 public:
00018   typedef KSSharedPtr<KSpreadInterpreter> Ptr;
00019 
00020   KSpreadInterpreter( KSpreadDoc* );
00021 
00022   KSParseNode* parse( KSContext& context, KSpreadSheet* sheet, const QString& formula );
00023   bool evaluate( KSContext& context, KSParseNode*, KSpreadSheet*, KSpreadCell* );
00024 
00025   KSNamespace* globalNamespace()const  { return m_global; }
00026 
00027   virtual bool processExtension( KSContext& context, KSParseNode* node );
00028 
00029   KSpreadDoc* document()const { return m_doc; }
00030   KSpreadSheet* sheet()const { return m_sheet; }
00031   KSpreadCell* cell() const { return m_cell; }
00032 
00033 private:
00034   KSpreadCell* m_cell;
00035   KSpreadDoc* m_doc;
00036   KSpreadSheet* m_sheet;
00037 };
00038 
00039 #endif
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:13 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003