]> git.saurik.com Git - wxWidgets.git/blob - user/wxLayout/wxlwindow.h
stream compile fixes
[wxWidgets.git] / user / wxLayout / wxlwindow.h
1 /*-*- c++ -*-********************************************************
2 * wxLwindow.h : a scrolled Window for displaying/entering rich text*
3 * *
4 * (C) 1998 by Karsten Ballüder (Ballueder@usa.net) *
5 * *
6 * $Id$
7 *******************************************************************/
8 #ifndef WXLWINDOW_H
9 #define WXLWINDOW_H
10
11 #ifdef __GNUG__
12 # pragma interface "wxlwindow.h"
13 #endif
14
15 #include <wx/wx.h>
16
17 #include "wxllist.h"
18
19 class wxLayoutWindow : public wxScrolledWindow
20 {
21 public:
22 wxLayoutWindow(wxWindow *parent);
23
24 wxLayoutList & GetLayoutList(void) { return m_llist; }
25
26 //virtual void OnDraw(wxDC &dc);
27 void OnPaint(wxPaintEvent &WXUNUSED(event));
28 virtual void OnMouse(wxMouseEvent& event);
29 virtual void OnChar(wxKeyEvent& event);
30 void UpdateScrollbars(void);
31 void Print(void);
32 void Erase(void)
33 { m_llist.Clear(); Clear(); }
34 void SetEventId(int id) { m_EventId = id; }
35 wxPoint const &GetClickPosition(void) const { return
36 m_ClickPosition; }
37 private:
38 /// for sending events
39 wxWindow *m_Parent;
40 int m_EventId;
41 /// the layout list to be displayed
42 wxLayoutList m_llist;
43 /// have we already set the scrollbars?
44 bool m_ScrollbarsSet;
45 /// if we want to find an object:
46 wxPoint m_FindPos;
47 wxLayoutObjectBase *m_FoundObject;
48 wxPoint m_ClickPosition;
49 DECLARE_EVENT_TABLE()
50 };
51
52 #endif