kspread
kspread_events.h00001 #ifndef KSPREAD_EVENTS
00002 #define KSPREAD_EVENTS
00003
00004 #include <qevent.h>
00005 #include <qrect.h>
00006 #include <qstring.h>
00007
00008 #include <string.h>
00009
00010 #include <kparts/event.h>
00011 #include <koffice_export.h>
00012
00013 #include "region.h"
00014 namespace KSpread
00015 {
00016
00017 class KSPREAD_EXPORT SelectionChanged : public KParts::Event
00018 {
00019 public:
00020 SelectionChanged( const Region&, const QString& sheet );
00021 ~SelectionChanged();
00022
00023 Region region() const { return m_region; }
00024 QString sheet() const { return m_sheet; }
00025
00026 static bool test( const QEvent* e ) { return KParts::Event::test( e, s_strSelectionChanged ); }
00027
00028 private:
00029 static const char *s_strSelectionChanged;
00030 Region m_region;
00031 QString m_sheet;
00032 };
00033
00034 }
00035
00036 #endif
|