KOffice – TDE office suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
717B

  1. #ifndef KSPREAD_EVENTS
  2. #define KSPREAD_EVENTS
  3. #include <tqevent.h>
  4. #include <tqrect.h>
  5. #include <tqstring.h>
  6. #include <string.h>
  7. #include <kparts/event.h>
  8. #include <koffice_export.h>
  9. #include "region.h"
  10. namespace KSpread
  11. {
  12. class KSPREAD_EXPORT SelectionChanged : public KParts::Event
  13. {
  14. public:
  15. SelectionChanged( const Region&, const TQString& sheet );
  16. ~SelectionChanged();
  17. Region region() const { return m_region; }
  18. TQString sheet() const { return m_sheet; }
  19. static bool test( const TQEvent* e ) { return KParts::Event::test( e, s_strSelectionChanged ); }
  20. private:
  21. static const char *s_strSelectionChanged;
  22. Region m_region;
  23. TQString m_sheet;
  24. };
  25. } // namespace KSpread
  26. #endif