Lines Matching defs:doc
28 #include "doc.h"
43 bool DrawingView::OnCreate(wxDocument *doc, long WXUNUSED(flags) )
48 frame = wxGetApp().CreateChildFrame(doc, this, true);
75 doc->GetCommandProcessor()->SetEditMenu(((MyFrame *)frame)->editMenu);
76 doc->GetCommandProcessor()->Initialize();
148 DrawingDocument *doc = (DrawingDocument *)GetDocument();
149 doc->GetCommandProcessor()->Submit(new DrawingCommand(_T("Cut Last Segment"), DOODLE_CUT, doc, (DoodleSegment *) NULL));
154 bool TextEditView::OnCreate(wxDocument *doc, long WXUNUSED(flags) )
156 frame = wxGetApp().CreateChildFrame(doc, this, false);
248 DrawingDocument *doc = (DrawingDocument *)view->GetDocument();
250 doc->GetCommandProcessor()->Submit(new DrawingCommand(_T("Add Segment"), DOODLE_ADD, doc, currentSegment));