action.cpp revision bb570f4a1d5e09297904205e0eca9db94f763b2c
/*
* SPAction implementation.
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2003 Lauris Kaplinski
*
* This code is in public domain
*/
#include <string.h>
#include "debug/timestamp.h"
#include "debug/simple-event.h"
#include "debug/event-tracker.h"
#include "desktop.h"
#include "document.h"
/**
* SPAction vtable initialization.
*/
static void
{
}
/**
* Callback for SPAction object initialization.
*/
static void
{
}
/**
* Called before SPAction object destruction.
*/
static void
{
}
/**
* Create new SPAction object and set its properties.
*/
SPAction *
{
return action;
}
namespace {
class ActionEvent : public ActionEventBase {
public:
{
if (document) {
}
}
};
}
/**
* Executes an action.
* @param action The action to be executed.
* @param data ignored.
*/
{
}
/**
* Change activation in all actions that can be taken with the action.
*/
void
{
}
/**
* Change sensitivity in all actions that can be taken with the action.
*/
void
{
}
void
{
}
/**
* Return Document associated with the action.
*/
{
}
/**
* Return Selection associated with the action
*/
{
}
/**
* Return View associated with the action, if any.
*/
{
}
/**
* Return Desktop associated with the action, if any.
*/
{
// 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?
}
/*
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 :