application-interface.cpp revision b10327c3fcaaac8dc616b6236d0dd1b59588fcc4
/*
* This is where the implementation of the DBus based application API lives.
* All the methods in here are designed to be called remotly via DBus.
* document-interface.cpp has all of the actual manipulation methods.
* This interface is just for creating new document interfaces.
*
* Documentation for these methods is in application-interface.xml
* which is the "gold standard" as to how the interface should work.
*
* Authors:
* Soren Berg <Glimmer07@gmail.com>
*
* Copyright (C) 2009 Soren Berg
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "application-interface.h"
#include <string.h>
#include "dbus-init.h"
#include "file.h"
#include "inkscape.h"
static void
{
}
static void
{
}
static void
{
NULL,
}
static bool
{
g_set_error(error, INKSCAPE_ERROR, INKSCAPE_ERROR_OTHER, "Application interface action requires a GUI");
return false;
}
return true;
}
static bool
{
g_set_error(error, INKSCAPE_ERROR, INKSCAPE_ERROR_OTHER, "Application interface action requires non-GUI (command line) mode");
return false;
}
return true;
}
application_interface_new (void)
{
}
/*
* Error stuff...
*
* To add a new error type, edit here and in the .h InkscapeError enum.
*/
inkscape_error_quark (void)
{
if (!quark)
return quark;
}
GType inkscape_error_get_type(void)
{
if (etype == 0) {
static const GEnumValue values[] =
{
{ 0, 0, 0 }
};
}
return etype;
}
/****************************************************************************
DESKTOP FUNCTIONS
****************************************************************************/
{
}
gchar**
{
return NULL;
}
{
return NULL;
}
{
return TRUE;
}
{
return TRUE;
}
{
sp_file_exit();
return TRUE;
}
/****************************************************************************
DOCUMENT FUNCTIONS
****************************************************************************/
{
}
{
if (!result) {
}
return result;
}
gchar**
{
return NULL;
}
{
return TRUE;
}
/* INTERESTING FUNCTIONS
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
g_assert(desktop != NULL);
SPDocument *doc = sp_desktop_document(desktop);
g_assert(doc != NULL);
Inkscape::XML::Node *repr = doc->getReprRoot();
g_assert(repr != NULL);
*/