-
- // in a normal multiple document application a canvas is associated with
- // one view from the beginning until the end, but to support the single
- // document mode in which all documents reuse the same MyApp::GetCanvas()
- // we need to allow switching the canvas from one view to another one
-
- void SetView(wxView* view)
- {
- wxASSERT_MSG( !m_view, "shouldn't be already associated with a view" );
-
- m_view = view;
- }
-
- void ResetView()
- {
- wxASSERT_MSG( m_view, "should be associated with a view" );
-
- m_view = NULL;
- }
-
-protected: