action.cpp revision 0e2a2cc7bb4f35dbc5150de387b2e651714b6d5b
#define __SP_ACTION_C__
/** \file
* 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 "document.h"
static NRActiveObjectClass *parent_class;
/**
* Register SPAction class and return its type.
*/
sp_action_get_type (void)
{
static unsigned int type = 0;
if (!type) {
"SPAction",
sizeof (SPActionClass),
sizeof (SPAction),
(void (*) (NRObjectClass *)) sp_action_class_init,
(void (*) (NRObject *)) sp_action_init);
}
return type;
}
/**
* 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) {
}
}
};
}
/**
\return None
\brief Executes an action
\param action The action to be executed
\param data Data that is passed into the action. This depends
on the situation that the action is used in.
This function implements the 'action' in SPActions. It first validates
its parameters, making sure it got an action passed in. Then it
turns that action into its parent class of NRActiveObject. The
NRActiveObject allows for listeners to be attached to it. This
function goes through those listeners and calls them with the
vector that was attached to the listener.
*/
void
{
unsigned int i;
if ((listener->size >= sizeof (SPActionEventVector)) && avector != NULL && avector->perform != NULL) {
}
}
}
}
/**
* Change activation in all actions that can be taken with the action.
*/
void
{
unsigned int i;
}
}
}
}
}
/**
* Change sensitivity in all actions that can be taken with the action.
*/
void
{
unsigned int i;
}
}
}
}
}
/**
* Change name for all actions that can be taken with the action.
*/
void
{
unsigned int i;
}
}
}
}
/**
* Return View associated with the action.
*/
{
}
/*
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 :