git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
/* -*- c++ -*- */
 | 
						|
 | 
						|
#ifndef __WXLAYOUTH__
 | 
						|
#define __WXLAYOUTH__
 | 
						|
 | 
						|
#ifdef __GNUG__
 | 
						|
#pragma interface
 | 
						|
#endif
 | 
						|
 | 
						|
#include "wx/wx.h"
 | 
						|
 | 
						|
#include "wxllist.h"
 | 
						|
#include "wxlwindow.h"
 | 
						|
#include "wxlparser.h"
 | 
						|
 | 
						|
//-----------------------------------------------------------------------------
 | 
						|
// derived classes
 | 
						|
//-----------------------------------------------------------------------------
 | 
						|
 | 
						|
class MyFrame;
 | 
						|
class MyApp;
 | 
						|
 | 
						|
//-----------------------------------------------------------------------------
 | 
						|
// MyFrame
 | 
						|
//-----------------------------------------------------------------------------
 | 
						|
 | 
						|
class MyFrame: public wxFrame
 | 
						|
{
 | 
						|
 | 
						|
public:
 | 
						|
 | 
						|
    MyFrame();
 | 
						|
    void AddSampleText(wxLayoutList *llist);
 | 
						|
    void Clear();
 | 
						|
    void OnCommand( wxCommandEvent &event );
 | 
						|
 | 
						|
    void OnPrint(wxCommandEvent& event);
 | 
						|
    void OnPrintPreview(wxCommandEvent& event);
 | 
						|
    void OnPrintSetup(wxCommandEvent& event);
 | 
						|
    void OnPageSetup(wxCommandEvent& event);
 | 
						|
    void OnPrintPS(wxCommandEvent& event);
 | 
						|
    void OnPrintPreviewPS(wxCommandEvent& event);
 | 
						|
    void OnPrintSetupPS(wxCommandEvent& event);
 | 
						|
    void OnPageSetupPS(wxCommandEvent& event);
 | 
						|
 | 
						|
 | 
						|
private:
 | 
						|
    wxLayoutWindow  *m_lwin;
 | 
						|
    wxPrintData m_PrintData;
 | 
						|
 | 
						|
    DECLARE_DYNAMIC_CLASS(MyFrame)
 | 
						|
 | 
						|
    DECLARE_EVENT_TABLE()
 | 
						|
};
 | 
						|
 | 
						|
//-----------------------------------------------------------------------------
 | 
						|
// MyApp
 | 
						|
//-----------------------------------------------------------------------------
 | 
						|
 | 
						|
class MyApp: public wxApp
 | 
						|
{
 | 
						|
public:
 | 
						|
 | 
						|
    MyApp();
 | 
						|
 | 
						|
    virtual bool OnInit();
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
#endif // __WXCONVERTH__
 | 
						|
 |