if (document->getLayerList())
document->getLayerList()->removeListener(graphicView);
if (document->getBlockList())
document->getBlockList()->removeListener(graphicView);
if (document->getLayerList())
document->getLayerList()->removeListener(graphicView);
if (document->getBlockList())
document->getBlockList()->removeListener(graphicView);