damages.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KSPREAD_DAMAGES
00021 #define KSPREAD_DAMAGES
00022
00023 #include <qvaluelist.h>
00024
00025 class KSpreadCell;
00026 class KSpreadSheet;
00027
00028 namespace KSpread
00029 {
00030
00031 class Damage
00032 {
00033 public:
00034
00035 typedef enum
00036 {
00037 Nothing = 0,
00038 Document,
00039 Workbook,
00040 Sheet,
00041 Range,
00042 Cell
00043 } Type;
00044
00045 virtual Type type() const { return Nothing; }
00046 };
00047
00048 class CellDamage : public Damage
00049 {
00050 public:
00051
00052 CellDamage( KSpreadCell* cell );
00053
00054 virtual ~CellDamage();
00055
00056 virtual Type type() const { return Cell; }
00057
00058 KSpreadCell* cell();
00059
00060 private:
00061 class Private;
00062 Private *d;
00063 };
00064
00065 class SheetDamage : public Damage
00066 {
00067 public:
00068
00069 enum
00070 {
00071 None = 0,
00072 ContentChanged,
00073 PropertiesChanged,
00074 Hidden,
00075 Shown
00076 };
00077
00078 SheetDamage( KSpreadSheet* sheet, int action );
00079
00080 virtual ~SheetDamage();
00081
00082 virtual Type type() const { return Sheet; }
00083
00084 KSpreadSheet* sheet() const;
00085
00086 int action() const;
00087
00088 private:
00089 class Private;
00090 Private *d;
00091 };
00092
00093
00094 }
00095
00096 #endif // KSPREAD_DAMAGES
This file is part of the documentation for kspread Library Version 1.4.2.