void OpSnapToGrid::Do(OpDescriptor*) { DocView *pDocView = DocView::GetSelected(); if (pDocView != NULL) pDocView->SetSnapToGridState(!pDocView->GetSnapToGridState()); End(); }
OpState OpSnapToGrid::GetState(String_256*, OpDescriptor*) { OpState OpSt; DocView *pDocView = DocView::GetSelected(); if (pDocView != NULL) OpSt.Ticked = pDocView->GetSnapToGridState(); return OpSt; }