2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: docmdi.h
|
2008-04-22 01:38:12 +00:00
|
|
|
// Purpose: interface of wxDocMDIParentFrame and wxDocMDIChildFrame
|
2008-03-08 13:52:38 +00:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
2010-07-13 13:29:13 +00:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 13:52:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxDocMDIParentFrame
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
The wxDocMDIParentFrame class provides a default top-level frame for
|
2008-04-22 01:38:12 +00:00
|
|
|
applications using the document/view framework. This class can only be used
|
|
|
|
for MDI parent frames.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-04-22 01:38:12 +00:00
|
|
|
It cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
|
|
|
|
classes.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxcore}
|
2008-04-22 01:38:12 +00:00
|
|
|
@category{docview}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-04-22 01:38:12 +00:00
|
|
|
@see @ref overview_docview, @ref page_samples_docview, wxMDIParentFrame
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
class wxDocMDIParentFrame : public wxMDIParentFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Constructor.
|
|
|
|
*/
|
|
|
|
wxDocMDIParentFrame();
|
2008-03-09 12:33:59 +00:00
|
|
|
wxDocMDIParentFrame(wxDocManager* manager, wxFrame* parent,
|
2008-03-08 14:43:31 +00:00
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
2008-11-08 15:17:16 +00:00
|
|
|
const wxString& name = wxFrameNameStr);
|
2008-03-08 13:52:38 +00:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor.
|
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual ~wxDocMDIParentFrame();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Creates the window.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
bool Create(wxDocManager* manager, wxFrame* parent,
|
2008-03-08 13:52:38 +00:00
|
|
|
wxWindowID id, const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
2008-11-08 15:17:16 +00:00
|
|
|
const wxString& name = wxFrameNameStr);
|
2008-03-08 13:52:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-03-10 15:24:38 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
/**
|
|
|
|
@class wxDocMDIChildFrame
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-04-22 01:38:12 +00:00
|
|
|
The wxDocMDIChildFrame class provides a default frame for displaying
|
|
|
|
documents on separate windows. This class can only be used for MDI child
|
|
|
|
frames.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
The class is part of the document/view framework supported by wxWidgets,
|
2008-04-22 01:38:12 +00:00
|
|
|
and cooperates with the wxView, wxDocument, wxDocManager and wxDocTemplate
|
|
|
|
classes.
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-03-08 13:52:38 +00:00
|
|
|
@library{wxcore}
|
2008-04-22 01:38:12 +00:00
|
|
|
@category{docview}
|
2008-03-08 14:43:31 +00:00
|
|
|
|
2008-04-22 01:38:12 +00:00
|
|
|
@see @ref overview_docview, @ref page_samples_docview, wxMDIChildFrame
|
2008-03-08 13:52:38 +00:00
|
|
|
*/
|
|
|
|
class wxDocMDIChildFrame : public wxMDIChildFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
Constructor.
|
|
|
|
*/
|
|
|
|
wxDocMDIChildFrame(wxDocument* doc, wxView* view,
|
2008-11-08 15:17:16 +00:00
|
|
|
wxMDIParentFrame* parent, wxWindowID id,
|
2008-03-08 13:52:38 +00:00
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
2008-11-08 15:17:16 +00:00
|
|
|
const wxString& name = wxFrameNameStr);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor.
|
|
|
|
*/
|
2008-09-27 11:21:10 +00:00
|
|
|
virtual ~wxDocMDIChildFrame();
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the document associated with this frame.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxDocument* GetDocument() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the view associated with this frame.
|
|
|
|
*/
|
2008-03-09 16:24:26 +00:00
|
|
|
wxView* GetView() const;
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the document for this frame.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
void SetDocument(wxDocument* doc);
|
2008-03-08 13:52:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the view for this frame.
|
|
|
|
*/
|
2008-03-09 12:33:59 +00:00
|
|
|
void SetView(wxView* view);
|
2008-03-08 13:52:38 +00:00
|
|
|
};
|
2008-03-10 15:24:38 +00:00
|
|
|
|