/*
* ActionContext implementation.
*
* Author:
* Eric Greveson <eric@greveson.co.uk>
*
* Copyright (C) 2013 Eric Greveson
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "desktop.h"
#include "document.h"
#include "layer-model.h"
#include "selection.h"
#include "helper/action-context.h"
namespace Inkscape {
: _selection(NULL)
{
}
{
}
: _selection(NULL)
{
if (desktop) {
}
}
{
if (_selection == NULL) {
return NULL;
}
// Should be the same as the view's document, if view is non-NULL
}
{
return _selection;
}
{
return _view;
}
{
// TODO: this slightly horrible storage of a UI::View::View*, and
// casting to an SPDesktop*, is only done because that's what was
// already the norm in the Inkscape codebase. This seems wrong. Surely
// we should store an SPDesktop* in the first place? Is there a case
// of actions being carried out on a View that is not an SPDesktop?
}
} // namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :