1999-06-07 05:57:14 -04:00
|
|
|
/* -*- c++ -*- */
|
|
|
|
|
|
|
|
#ifndef __WXLAYOUTH__
|
|
|
|
#define __WXLAYOUTH__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2003-11-20 12:43:57 -05:00
|
|
|
#include "wx/wx.h"
|
1999-06-07 05:57:14 -04:00
|
|
|
|
|
|
|
#include "wxllist.h"
|
|
|
|
#include "wxlwindow.h"
|
|
|
|
#include "wxlparser.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// derived classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class MyFrame;
|
|
|
|
class MyApp;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// MyFrame
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class MyFrame: public wxFrame
|
|
|
|
{
|
|
|
|
|
2003-11-20 12:43:57 -05:00
|
|
|
public:
|
|
|
|
|
|
|
|
MyFrame();
|
|
|
|
void AddSampleText(wxLayoutList *llist);
|
|
|
|
void Clear();
|
|
|
|
void OnCommand( wxCommandEvent &event );
|
1999-06-07 05:57:14 -04:00
|
|
|
|
|
|
|
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:
|
2003-11-20 12:43:57 -05:00
|
|
|
wxLayoutWindow *m_lwin;
|
|
|
|
wxPrintData m_PrintData;
|
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(MyFrame)
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
1999-06-07 05:57:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// MyApp
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class MyApp: public wxApp
|
|
|
|
{
|
2003-11-20 12:43:57 -05:00
|
|
|
public:
|
|
|
|
|
|
|
|
MyApp();
|
|
|
|
|
|
|
|
virtual bool OnInit();
|
|
|
|
|
1999-06-07 05:57:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WXCONVERTH__
|
2003-11-20 12:43:57 -05:00
|
|
|
|