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