summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1aeec7)
raw | patch | inline | side by side (parent: c1aeec7)
author | johnce <johnce@users.sourceforge.net> | |
Wed, 5 Aug 2009 06:05:12 +0000 (06:05 +0000) | ||
committer | johnce <johnce@users.sourceforge.net> | |
Wed, 5 Aug 2009 06:05:12 +0000 (06:05 +0000) |
16 files changed:
index 4545022b88cc7ce1a9437c6f689f6de808dc2e39..0886555e93e7242ed97c5c8c106c1387c510bd7e 100644 (file)
--- a/src/application/editor.h
+++ b/src/application/editor.h
#include "app-prototype.h"
class SPDesktop;
-class SPDocument;
+class Document;
class SPEventContext;
namespace Inkscape {
void refreshDisplay();
void exit();
- bool lastViewOfDocument(SPDocument* doc, SPDesktop* view) const;
+ bool lastViewOfDocument(Document* doc, SPDesktop* view) const;
bool addView(SPDesktop* view);
bool deleteView(SPDesktop* view);
static Inkscape::XML::Document *getPreferences();
static SPDesktop* getActiveDesktop();
static bool isDesktopActive (SPDesktop* dt) { return getActiveDesktop()==dt; }
- static SPDesktop* createDesktop (SPDocument* doc);
+ static SPDesktop* createDesktop (Document* doc);
static void addDesktop (SPDesktop* dt);
static void removeDesktop (SPDesktop* dt);
static void activateDesktop (SPDesktop* dt);
static void reactivateDesktop (SPDesktop* dt);
static bool isDuplicatedView (SPDesktop* dt);
- static SPDocument* getActiveDocument();
- static void addDocument (SPDocument* doc);
- static void removeDocument (SPDocument* doc);
+ static Document* getActiveDocument();
+ static void addDocument (Document* doc);
+ static void removeDocument (Document* doc);
static void selectionModified (Inkscape::Selection*, guint);
static void selectionChanged (Inkscape::Selection*);
Editor(Editor const &);
Editor& operator=(Editor const &);
- std::multiset<SPDocument *> _document_set;
+ std::multiset<Document *> _document_set;
GSList *_documents;
GSList *_desktops;
gchar *_argv0;
index e36804d7c409d60b125fac8fc99fcc55e17c857b..b4a27c873b02ad841b4c045fa875bbbe5b296891 100644 (file)
class CanvasAxonomGrid : public CanvasGrid {
public:
- CanvasAxonomGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument * in_doc);
+ CanvasAxonomGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, Document * in_doc);
virtual ~CanvasAxonomGrid();
void Update (Geom::Matrix const &affine, unsigned int flags);
index 58cfbf735d63b9a5cdb9a32c9ca987fe02b863fd..058f88ef8cb6655f33ac2a7556a962ed578ece8f 100644 (file)
struct SPDesktop;
struct SPNamedView;
-class SPDocument;
+class Document;
namespace Inkscape {
static GridType getGridTypeFromSVGName(const char * typestr);
static GridType getGridTypeFromName(const char * typestr);
- static CanvasGrid* NewGrid(SPNamedView * nv, Inkscape::XML::Node * repr, SPDocument *doc, GridType gridtype);
- static void writeNewGridToRepr(Inkscape::XML::Node * repr, SPDocument * doc, GridType gridtype);
+ static CanvasGrid* NewGrid(SPNamedView * nv, Inkscape::XML::Node * repr, Document *doc, GridType gridtype);
+ static void writeNewGridToRepr(Inkscape::XML::Node * repr, Document * doc, GridType gridtype);
GridCanvasItem * createCanvasItem(SPDesktop * desktop);
SPUnit const* gridunit;
Inkscape::XML::Node * repr;
- SPDocument *doc;
+ Document *doc;
Inkscape::Snapper* snapper;
bool isEnabled();
protected:
- CanvasGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument *in_doc, GridType type);
+ CanvasGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, Document *in_doc, GridType type);
virtual Gtk::Widget * newSpecificWidget() = 0;
class CanvasXYGrid : public CanvasGrid {
public:
- CanvasXYGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument * in_doc);
+ CanvasXYGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, Document * in_doc);
virtual ~CanvasXYGrid();
void Update (Geom::Matrix const &affine, unsigned int flags);
index f3565ef9f756899b5455f198f1c236b794434fd7..6fbc5d7ebbf0d0048edbe97df420930733681d90 100644 (file)
virtual int render(FilterSlot &slot, FilterUnits const &units);
virtual FilterTraits get_input_traits();
- void set_document( SPDocument *document );
+ void set_document( Document *document );
void set_href(const gchar *href);
void set_region(SVGLength x, SVGLength y, SVGLength width, SVGLength height);
bool from_element;
SPItem* SVGElem;
private:
- SPDocument *document;
+ Document *document;
gchar *feImageHref;
guint8* image_pixbuf;
Glib::RefPtr<Gdk::Pixbuf> image;
diff --git a/src/extension/effect.h b/src/extension/effect.h
index c02ce542b09e7d4de1c3366ad1a6edb3a52bedb6..637d29c5c3de639b4d7ed2754b8ad43ac5fb2eab 100644 (file)
--- a/src/extension/effect.h
+++ b/src/extension/effect.h
#include "prefdialog.h"
#include "extension.h"
-struct SPDocument;
+struct Document;
namespace Inkscape {
namespace UI {
index 48ca86cf780871c77fdaef8206aabecb21206ff0..8dcd1b39311a62d72c8f0af2f7c5c0a3498b8f23 100644 (file)
#define INKSCAPE_EXTENSION_NS_NC "extension"
#define INKSCAPE_EXTENSION_NS "extension:"
-struct SPDocument;
+struct Document;
namespace Inkscape {
namespace Extension {
#endif
public:
bool get_param_bool (const gchar * name,
- const SPDocument * doc = NULL,
+ const Document * doc = NULL,
const Inkscape::XML::Node * node = NULL);
int get_param_int (const gchar * name,
- const SPDocument * doc = NULL,
+ const Document * doc = NULL,
const Inkscape::XML::Node * node = NULL);
float get_param_float (const gchar * name,
- const SPDocument * doc = NULL,
+ const Document * doc = NULL,
const Inkscape::XML::Node * node = NULL);
const gchar * get_param_string (const gchar * name,
- const SPDocument * doc = NULL,
+ const Document * doc = NULL,
const Inkscape::XML::Node * node = NULL);
guint32 get_param_color (const gchar * name,
- const SPDocument * doc = NULL,
+ const Document * doc = NULL,
const Inkscape::XML::Node * node = NULL);
const gchar * get_param_enum (const gchar * name,
- const SPDocument * doc = NULL,
+ const Document * doc = NULL,
const Inkscape::XML::Node * node = NULL);
bool set_param_bool (const gchar * name,
bool value,
- SPDocument * doc = NULL,
+ Document * doc = NULL,
Inkscape::XML::Node * node = NULL);
int set_param_int (const gchar * name,
int value,
- SPDocument * doc = NULL,
+ Document * doc = NULL,
Inkscape::XML::Node * node = NULL);
float set_param_float (const gchar * name,
float value,
- SPDocument * doc = NULL,
+ Document * doc = NULL,
Inkscape::XML::Node * node = NULL);
const gchar * set_param_string (const gchar * name,
const gchar * value,
- SPDocument * doc = NULL,
+ Document * doc = NULL,
Inkscape::XML::Node * node = NULL);
guint32 set_param_color (const gchar * name,
guint32 color,
- SPDocument * doc = NULL,
+ Document * doc = NULL,
Inkscape::XML::Node * node = NULL);
/* Error file handling */
static void error_file_close (void);
public:
- Gtk::Widget * autogui (SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal = NULL);
+ Gtk::Widget * autogui (Document * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal = NULL);
void paramListString (std::list <std::string> & retlist);
/* Extension editor dialog stuff */
diff --git a/src/extension/input.h b/src/extension/input.h
index 55d807ce26ba30d93fe4fd54800de7e28a65614b..d2aac93763da922297b066e10665ed88d6b198e7 100644 (file)
--- a/src/extension/input.h
+++ b/src/extension/input.h
Implementation::Implementation * in_imp);
virtual ~Input (void);
virtual bool check (void);
- SPDocument * open (gchar const *uri);
+ Document * open (gchar const *uri);
gchar * get_mimetype (void);
gchar * get_extension (void);
gchar * get_filetypename (void);
diff --git a/src/extension/output.h b/src/extension/output.h
index b52a96211c9c36d468ecadd03cd380febc2ba46c..455b4a8aef25959b269af4c593820a28a68517b3 100644 (file)
--- a/src/extension/output.h
+++ b/src/extension/output.h
#include <gtk/gtkdialog.h>
#include "extension.h"
-struct SPDocument;
+struct Document;
namespace Inkscape {
namespace Extension {
Implementation::Implementation * in_imp);
virtual ~Output (void);
virtual bool check (void);
- void save (SPDocument *doc,
+ void save (Document *doc,
gchar const *uri);
bool prefs (void);
gchar * get_mimetype(void);
index 0c00ae093ab8a783ea6e90a90eb59239029722fc..7ad87504849ab1e73cca68dcc7a5d19fa33f00ad 100644 (file)
PathEffect (Inkscape::XML::Node * in_repr,
Implementation::Implementation * in_imp);
virtual ~PathEffect (void);
- void processPath (SPDocument * doc,
+ void processPath (Document * doc,
Inkscape::XML::Node * path,
Inkscape::XML::Node * def);
- static void processPathEffects (SPDocument * doc,
+ static void processPathEffects (Document * doc,
Inkscape::XML::Node * path);
}; /* PathEffect */
diff --git a/src/extension/print.h b/src/extension/print.h
index 8ae71b8e6a31bc5f9244e4e5d059ccc56a12c095..3240942d7a1b25943339aeaa1afbba308f5e7824 100644 (file)
--- a/src/extension/print.h
+++ b/src/extension/print.h
unsigned int setup (void);
unsigned int set_preview (void);
- unsigned int begin (SPDocument *doc);
+ unsigned int begin (Document *doc);
unsigned int finish (void);
/* Rendering methods */
diff --git a/src/extension/system.h b/src/extension/system.h
index 6c23b2f0dde073affcd553e0ff816a4df729ba08..ada5f799c1dae71ebdf0b5edbb5d9ce47b9f09a0 100644 (file)
--- a/src/extension/system.h
+++ b/src/extension/system.h
namespace Inkscape {
namespace Extension {
-SPDocument *open(Extension *key, gchar const *filename);
-void save(Extension *key, SPDocument *doc, gchar const *filename,
+Document *open(Extension *key, gchar const *filename);
+void save(Extension *key, Document *doc, gchar const *filename,
bool setextension, bool check_overwrite, bool official);
Print *get_print(gchar const *key);
Extension *build_from_file(gchar const *filename);
diff --git a/src/filters/image.h b/src/filters/image.h
index 7207918e12923a93014c9881003edaab46cbdec8..74352db8062bb04874012bb2b5e0cbd640d2f525 100644 (file)
--- a/src/filters/image.h
+++ b/src/filters/image.h
/** IMAGE ATTRIBUTES HERE */
gchar *href;
SVGLength x, y, height, width;
- SPDocument *document;
+ Document *document;
bool from_element;
SPItem* SVGElem;
Inkscape::URIReference* SVGElemRef;
index a985be297eeaaa2d1de9ab622efe7c2f23ad922e..de6a80181b6b0d801b69d6be978735483d12b80e 100644 (file)
--- a/src/helper/pixbuf-ops.h
+++ b/src/helper/pixbuf-ops.h
#include <glib/gtypes.h>
-struct SPDocument;
+struct Document;
-bool sp_export_jpg_file (SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1,
+bool sp_export_jpg_file (Document *doc, gchar const *filename, double x0, double y0, double x1, double y1,
unsigned int width, unsigned int height, double xdpi, double ydpi, unsigned long bgcolor, double quality, GSList *items_only = NULL);
-GdkPixbuf* sp_generate_internal_bitmap(SPDocument *doc, gchar const *filename,
+GdkPixbuf* sp_generate_internal_bitmap(Document *doc, gchar const *filename,
double x0, double y0, double x1, double y1,
unsigned width, unsigned height, double xdpi, double ydpi,
unsigned long bgcolor, GSList *items_only = NULL);
diff --git a/src/helper/png-write.h b/src/helper/png-write.h
index 83321aa4e7c6d68dddb1edfc5d7cbd5442e95c3e..f7e372e0ba3f960ab74313795cfbcdd604bd45ec 100644 (file)
--- a/src/helper/png-write.h
+++ b/src/helper/png-write.h
#include <glib/gtypes.h>
#include <2geom/forward.h>
-struct SPDocument;
+struct Document;
-bool sp_export_png_file (SPDocument *doc, gchar const *filename,
+bool sp_export_png_file (Document *doc, gchar const *filename,
double x0, double y0, double x1, double y1,
unsigned long int width, unsigned long int height, double xdpi, double ydpi,
unsigned long bgcolor,
unsigned int (*status) (float, void *), void *data, bool force_overwrite = false, GSList *items_only = NULL);
-bool sp_export_png_file (SPDocument *doc, gchar const *filename,
+bool sp_export_png_file (Document *doc, gchar const *filename,
Geom::Rect const &area,
unsigned long int width, unsigned long int height, double xdpi, double ydpi,
unsigned long bgcolor,
index dc631a5c1d0e8374a0485e7b7da4dbaabd7ffaa1..842b84c458021dc5aac5a1f5be693a4e683710f0 100644 (file)
private:
static void livepatheffect_class_init(LivePathEffectObjectClass *klass);
static void livepatheffect_init(LivePathEffectObject *stop);
- static void livepatheffect_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
+ static void livepatheffect_build(SPObject *object, Document *document, Inkscape::XML::Node *repr);
static void livepatheffect_release(SPObject *object);
static void livepatheffect_set(SPObject *object, unsigned key, gchar const *value);
static Inkscape::XML::Node *livepatheffect_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
diff --git a/src/ui/clipboard.h b/src/ui/clipboard.h
index 54c05ac0def1f16419b74c559e7c3d25d81ad495..467888ed70c9e493803fa243f27d19d9221a08de 100644 (file)
--- a/src/ui/clipboard.h
+++ b/src/ui/clipboard.h
* @brief System-wide clipboard manager
*
* ClipboardManager takes care of manipulating the system clipboard in response
- * to user actions. It holds a complete SPDocument as the contents. This document
+ * to user actions. It holds a complete Document as the contents. This document
* is exported using output extensions when other applications request data.
* Copying to another instance of Inkscape is special-cased, because of the extra
* data required (i.e. style, size, Live Path Effects parameters, etc.)