Пример #1
0
void OpSnapToGrid::Do(OpDescriptor*)
{
	DocView *pDocView = DocView::GetSelected();

	if (pDocView != NULL)
		pDocView->SetSnapToGridState(!pDocView->GetSnapToGridState());

	End();
}
Пример #2
0
OpState OpSnapToGrid::GetState(String_256*, OpDescriptor*)
{
	OpState OpSt;

	DocView *pDocView = DocView::GetSelected();
	if (pDocView != NULL)
		OpSt.Ticked = pDocView->GetSnapToGridState();
	
	return OpSt;
}