1998-06-29 08:44:36 -04:00
|
|
|
/* -*- 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
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(MyFrame)
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
MyFrame(void);
|
|
|
|
void Edit(void);
|
|
|
|
void AddSampleText(wxLayoutList &llist);
|
|
|
|
void Clear(void);
|
|
|
|
void OnCommand( wxCommandEvent &event );
|
1998-08-14 04:33:33 -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);
|
|
|
|
|
1998-06-29 08:44:36 -04:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxLayoutWindow *m_lwin;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// MyApp
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class MyApp: public wxApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
MyApp(void);
|
|
|
|
virtual bool OnInit(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WXCONVERTH__
|