LayerList * Block::getLayerList()
{
- Drawing * g = getGraphic();
+ Drawing * d = GetDrawing();
- if (g)
- return g->getLayerList();
+ if (d)
+ return d->getLayerList();
return NULL;
}
BlockList * Block::getBlockList()
{
- Drawing * g = getGraphic();
+ Drawing * d = GetDrawing();
- if (g)
- return g->getBlockList();
+ if (d)
+ return d->getBlockList();
return NULL;
}
bool Block::save()
{
- Drawing * g = getGraphic();
+ Drawing * d = GetDrawing();
- if (g)
- return g->save();
+ if (d)
+ return d->save();
return false;
}
bool Block::saveAs(const QString & filename, RS2::FormatType type)
{
- Drawing * g = getGraphic();
+ Drawing * d = GetDrawing();
- if (g)
- return g->saveAs(filename, type);
+ if (d)
+ return d->saveAs(filename, type);
return false;
}
/**
* Sets the parent documents modified status to 'm'.
*/
-void Block::setModified(bool m)
+void Block::setModified(bool state)
{
- Drawing * p = getGraphic();
+ Drawing * d = GetDrawing();
- if (p)
- p->setModified(m);
+ if (d)
+ d->setModified(state);
- modified = m;
+ modified = state;
}
/** @return RS2::EntityBlock */