]> git.saurik.com Git - wxWidgets.git/blob - user/wxLayout/wxlwindow.h
Various documentation changes, makefile 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 private:
36 int m_EventId;
37 /// the layout list to be displayed
38 wxLayoutList m_llist;
39 /// have we already set the scrollbars?
40 bool m_ScrollbarsSet;
41 /// if we want to find an object:
42 wxPoint m_FindPos;
43 wxLayoutObjectBase *m_FoundObject;
44
45 DECLARE_EVENT_TABLE()
46 };
47
48 #endif