]>
Commit | Line | Data |
---|---|---|
6c11b526 KB |
1 | /* -*- c++ -*- */ |
2 | ||
3 | #ifndef __WXLAYOUTH__ | |
4 | #define __WXLAYOUTH__ | |
5 | ||
6 | #ifdef __GNUG__ | |
7 | #pragma interface | |
8 | #endif | |
9 | ||
62a11776 | 10 | #include "wx/wx.h" |
6c11b526 KB |
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 | { | |
6c11b526 | 29 | |
62a11776 DS |
30 | public: |
31 | ||
32 | MyFrame(); | |
33 | void AddSampleText(wxLayoutList *llist); | |
34 | void Clear(); | |
35 | void OnCommand( wxCommandEvent &event ); | |
6c11b526 KB |
36 | |
37 | void OnPrint(wxCommandEvent& event); | |
38 | void OnPrintPreview(wxCommandEvent& event); | |
39 | void OnPrintSetup(wxCommandEvent& event); | |
40 | void OnPageSetup(wxCommandEvent& event); | |
41 | void OnPrintPS(wxCommandEvent& event); | |
42 | void OnPrintPreviewPS(wxCommandEvent& event); | |
43 | void OnPrintSetupPS(wxCommandEvent& event); | |
44 | void OnPageSetupPS(wxCommandEvent& event); | |
45 | ||
6c11b526 KB |
46 | |
47 | private: | |
62a11776 DS |
48 | wxLayoutWindow *m_lwin; |
49 | wxPrintData m_PrintData; | |
50 | ||
51 | DECLARE_DYNAMIC_CLASS(MyFrame) | |
52 | ||
53 | DECLARE_EVENT_TABLE() | |
6c11b526 KB |
54 | }; |
55 | ||
56 | //----------------------------------------------------------------------------- | |
57 | // MyApp | |
58 | //----------------------------------------------------------------------------- | |
59 | ||
60 | class MyApp: public wxApp | |
61 | { | |
62a11776 DS |
62 | public: |
63 | ||
64 | MyApp(); | |
65 | ||
66 | virtual bool OnInit(); | |
67 | ||
6c11b526 KB |
68 | }; |
69 | ||
70 | #endif // __WXCONVERTH__ | |
62a11776 | 71 |