dependencies.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KSPREAD_DEPENDENCIES
00021 #define KSPREAD_DEPENDENCIES
00022
00023 #include <qvaluelist.h>
00024
00025 #include "kspread_util.h"
00026
00027 class KSpreadSheet;
00028
00029
00030 namespace KSpread {
00031
00032
00033 struct DependencyList;
00034
00038 struct RangeDependency {
00039 int cellrow, cellcolumn;
00040 KSpreadSheet *cellsheet;
00041 KSpreadRange range;
00042 };
00043
00044
00051 class DependencyManager {
00052 public:
00054 DependencyManager (KSpreadSheet *s);
00056 ~DependencyManager ();
00057
00059 void reset ();
00060
00062 void cellChanged (const KSpreadPoint &cell);
00064 void rangeChanged (const KSpreadRange &range);
00066 void rangeListChanged (const RangeList &rangeList);
00067
00069 RangeList getDependencies (const KSpreadPoint &cell);
00071 QValueList<KSpreadPoint> getDependants (const KSpreadPoint &cell);
00072 protected:
00073
00075 DependencyList *deps;
00076 friend class DependencyList;
00077 };
00078
00079
00080 }
00081
00082 #endif // KSPREAD_DEPENDENCIES
00083
This file is part of the documentation for kspread Library Version 1.4.2.