/** \file
* Code for handling XSLT extensions.
*/
/*
* Authors:
* Ted Gould <ted@gould.cx>
* Jon A. Cruz <jon@joncruz.org>
* Abhishek Sharma
*
* Copyright (C) 2006-2007 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "file.h"
#include "xslt.h"
#include "../extension.h"
#include "../output.h"
#include <unistd.h>
#include <cstring>
#include "document.h"
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
/* Namespaces */
namespace Inkscape {
namespace Extension {
namespace Implementation {
/* Real functions */
/**
\return A XSLT object
\brief This function creates a XSLT object and sets up the
variables.
*/
_filename(""),
{
}
if (!s) {
return str;
}
if (reldir == "extensions") {
for (unsigned int i=0;
i++) {
NULL);
return filename;
}
} else {
return str;
}
return "";
}
{
return true;
} else {
return false;
}
}
{
while (child_repr != NULL) {
while (child_repr != NULL) {
}
}
break;
}
}
if (_parsedDoc == NULL) { return false; }
return true;
}
{
// No need to use xmlfreedoc(_parsedDoc), it's handled by xsltFreeStylesheet(_stylesheet);
return;
}
{
return NULL;
}
return NULL;
}
p = strrchr(s, '/');
if (p) {
p[1] = '\0';
} else {
}
g_free(s);
return doc;
}
{
/* TODO: Should we assume filename to be in utf8 or to be a raw filename?
* See JavaFXOutput::save for discussion. */
int tempfd_out = 0;
try {
} catch (...) {
/// \todo Popup dialog here
return;
}
}
return;
}
int count = 0;
}
//xmlSaveFile(filename, newdoc);
if (success < 1) {
}
return;
}
} /* Implementation */
} /* module */
} /* 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:fileencoding=utf-8:textwidth=99 :