]>
Commit | Line | Data |
---|---|---|
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 | ||
16 | class MyFrame; | |
17 | class MyApp; | |
18 | ||
19 | //----------------------------------------------------------------------------- | |
20 | // MyFrame | |
21 | //----------------------------------------------------------------------------- | |
22 | ||
23 | class MyFrame: public wxFrame | |
24 | { | |
25 | ||
26 | public: | |
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 | ||
43 | private: | |
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 | ||
56 | class MyApp: public wxApp | |
57 | { | |
58 | public: | |
59 | ||
60 | MyApp(); | |
61 | ||
62 | virtual bool OnInit(); | |
63 | ||
64 | }; | |
65 | ||
66 | #endif // __WXCONVERTH__ | |
67 |