Lines Matching defs:doc
30 #include "doc.h"
86 bool csDiagramView::OnCreate(wxDocument *doc, long WXUNUSED(flags))
89 frame = wxGetApp().CreateChildFrame(doc, this, &editMenu);
97 doc->GetCommandProcessor()->SetEditMenu(editMenu);
98 doc->GetCommandProcessor()->Initialize();
101 csDiagramDocument *diagramDoc = (csDiagramDocument *)doc;
196 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
197 wxObjectList::compatibility_iterator node = doc->GetDiagram()->GetShapeList()->GetFirst();
212 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
213 wxObjectList::compatibility_iterator node = doc->GetDiagram()->GetShapeList()->GetFirst();
227 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
228 event.Enable(doc->GetCommandProcessor()->CanUndo());
233 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
234 event.Enable(doc->GetCommandProcessor()->CanRedo());
239 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
242 wxGetApp().GetDiagramClipboard().Copy(doc->GetDiagram());
260 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
263 if (wxGetApp().GetDiagramClipboard().Copy(doc->GetDiagram()))
274 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
276 wxGetApp().GetDiagramClipboard().Paste(doc->GetDiagram());
281 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
284 wxGetApp().GetDiagramClipboard().Copy(doc->GetDiagram());
288 wxGetApp().GetDiagramClipboard().Paste(doc->GetDiagram(), NULL, 20, 20);
320 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
324 csDiagramCommand* cmd = new csDiagramCommand(_T("Cut"), doc);
345 doc->GetCommandProcessor()->Submit(cmd);
352 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
356 csDiagramCommand* command = new csDiagramCommand(op, doc);
370 doc->GetCommandProcessor()->Submit(command);
376 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
403 csDiagramCommand* cmd = new csDiagramCommand(_T("Change colour"), doc);
417 doc->GetCommandProcessor()->Submit(cmd);
465 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
472 csDiagramCommand* cmd = new csDiagramCommand(_T("Point size"), doc);
495 doc->GetCommandProcessor()->Submit(cmd);
538 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
539 wxObjectList::compatibility_iterator node = doc->GetDiagram()->GetShapeList()->GetFirst();
558 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
572 csDiagramCommand* cmd = new csDiagramCommand(stateName, doc);
607 doc->GetCommandProcessor()->Submit(cmd);
660 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
661 csDiagramCommand* cmd = new csDiagramCommand(_T("Align"), doc);
731 doc->GetCommandProcessor()->Submit(cmd);
743 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
744 csDiagramCommand* cmd = new csDiagramCommand(_T("New line point"), doc);
759 doc->GetCommandProcessor()->Submit(cmd);
764 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
765 csDiagramCommand* cmd = new csDiagramCommand(_T("Cut line point"), doc);
780 doc->GetCommandProcessor()->Submit(cmd);
785 csDiagramDocument *doc = (csDiagramDocument *)GetDocument();
786 csDiagramCommand* cmd = new csDiagramCommand(_T("Straighten lines"), doc);
801 doc->GetCommandProcessor()->Submit(cmd);