]> git.saurik.com Git - wxWidgets.git/blob - samples/richedit/wxLayout.h
Trying to fix IPC problems under Linux as reported by VS
[wxWidgets.git] / samples / richedit / wxLayout.h
1 /* -*- c++ -*- */
2
3 #ifndef __WXLAYOUTH__
4 #define __WXLAYOUTH__
5
6 #ifdef __GNUG__
7 #pragma interface
8 #endif
9
10 #include <wx/wx.h>
11
12 #include "wxllist.h"
13 #include "wxlwindow.h"
14 #include "wxlparser.h"
15
16 //-----------------------------------------------------------------------------
17 // derived classes
18 //-----------------------------------------------------------------------------
19
20 class MyFrame;
21 class MyApp;
22
23 //-----------------------------------------------------------------------------
24 // MyFrame
25 //-----------------------------------------------------------------------------
26
27 class MyFrame: public wxFrame
28 {
29 DECLARE_DYNAMIC_CLASS(MyFrame)
30
31 public:
32
33 MyFrame(void);
34 void AddSampleText(wxLayoutList *llist);
35 void Clear(void);
36 void OnCommand( wxCommandEvent &event );
37
38 void OnPrint(wxCommandEvent& event);
39 void OnPrintPreview(wxCommandEvent& event);
40 void OnPrintSetup(wxCommandEvent& event);
41 void OnPageSetup(wxCommandEvent& event);
42 void OnPrintPS(wxCommandEvent& event);
43 void OnPrintPreviewPS(wxCommandEvent& event);
44 void OnPrintSetupPS(wxCommandEvent& event);
45 void OnPageSetupPS(wxCommandEvent& event);
46
47 DECLARE_EVENT_TABLE()
48
49 private:
50 wxLayoutWindow *m_lwin;
51 wxPrintData m_PrintData;
52 };
53
54 //-----------------------------------------------------------------------------
55 // MyApp
56 //-----------------------------------------------------------------------------
57
58 class MyApp: public wxApp
59 {
60 public:
61
62 MyApp(void);
63 virtual bool OnInit(void);
64 };
65
66 #endif // __WXCONVERTH__