stock-items.cpp revision 4e2df9ed3b2b7c9aeb8f978e0f2b3c6ec74543e7
#define __INK_STOCK_ITEMS__
/*
* Stock-items
*
* Stock Item management code
*
* Authors:
* John Cliff <simarilius@yahoo.com>
*
* Copyright 2004 John Cliff
*
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#define noSP_SS_VERBOSE
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "path-prefix.h"
#include "sp-gradient-fns.h"
#include "document-private.h"
#include "sp-pattern.h"
#include "sp-marker.h"
#include "desktop-handles.h"
#include "inkscape.h"
// FIXME: these should be merged with the icon loading code so they
// take the dir to look in, and the file to check for, and cache
{
if (!current_doc) {
return NULL;
}
/* Try to load from document */
}
if (doc) {
} else {
}
}
/* Get the marker we want */
return cloned_item;
}
}
return NULL;
}
static SPObject *
{
if (!current_doc) {
return NULL;
}
/* Try to load from document */
}
if (!doc) {
}
if (doc) {
} else {
}
}
}
/* Get the pattern we want */
return object;
}
}
return NULL;
}
static SPObject *
{
if (!current_doc) {
return NULL;
}
/* Try to load from document */
}
if (!doc) {
}
if (doc) {
} else {
}
}
}
/* Get the gradient we want */
return object;
}
}
return NULL;
}
// get_stock_item returns a pointer to an instance of the desired stock object in the current doc
// if necessary it will import the object. Copes with name clashes through use of the inkscape:stockid property
// This should be set to be the same as the id in the libary file.
{
/* check its an inkscape URN */
int a = 0;
name_p++;
a++;
}
if (*name_p ==':') {
name_p++;
}
{
{
}
}
}
{
{
}
}
}
{
{
}
}
}
}
}
}
}
return object;
}
else {
return object;
}
}
/*
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 :