summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_events.h
blob: 1a240fdb87ab00b9845b8899af0fa7dea557f28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef KSPREAD_EVENTS
#define KSPREAD_EVENTS

#include <tqevent.h>
#include <tqrect.h>
#include <tqstring.h>

#include <string.h>

#include <kparts/event.h>
#include <koffice_export.h>

#include "region.h"
namespace KSpread
{

class KSPREAD_EXPORT SelectionChanged : public KParts::Event
{
public:
    SelectionChanged( const Region&, const TQString& sheet );
    ~SelectionChanged();

    Region region() const { return m_region; }
    TQString sheet() const { return m_sheet; }

    static bool test( const TQEvent* e ) { return KParts::Event::test( e, s_strSelectionChanged ); }

private:
    static const char *s_strSelectionChanged;
    Region m_region;
    TQString m_sheet;
};

} // namespace KSpread

#endif