diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2009-08-06 14:17:17 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2009-08-06 14:17:17 +0000 |
| commit | 51c2905fd3e99955db2d823b79abb763d8097028 (patch) | |
| tree | 90128509479f5498e1125d1e4eb9cdc05bf6b6e6 /src/helper | |
| parent | Adding one more control to Smart Jelly (diff) | |
| download | inkscape-51c2905fd3e99955db2d823b79abb763d8097028.tar.gz inkscape-51c2905fd3e99955db2d823b79abb763d8097028.zip | |
Revert recent refactoring changes by johnce because they break the build, which cannot be fixed easily.
(bzr r8422)
Diffstat (limited to 'src/helper')
| -rw-r--r-- | src/helper/action.cpp | 2 | ||||
| -rw-r--r-- | src/helper/pixbuf-ops.cpp | 4 | ||||
| -rw-r--r-- | src/helper/pixbuf-ops.h | 6 | ||||
| -rw-r--r-- | src/helper/png-write.cpp | 6 | ||||
| -rw-r--r-- | src/helper/png-write.h | 6 | ||||
| -rw-r--r-- | src/helper/stock-items.cpp | 22 |
6 files changed, 23 insertions, 23 deletions
diff --git a/src/helper/action.cpp b/src/helper/action.cpp index 8c2705e45..84d150615 100644 --- a/src/helper/action.cpp +++ b/src/helper/action.cpp @@ -132,7 +132,7 @@ public: { _addProperty(share_static_string("timestamp"), timestamp()); if (action->view) { - Document *document = action->view->doc(); + SPDocument *document = action->view->doc(); if (document) { _addProperty(share_static_string("document"), document->serial()); } diff --git a/src/helper/pixbuf-ops.cpp b/src/helper/pixbuf-ops.cpp index 1e364a37c..f41342e42 100644 --- a/src/helper/pixbuf-ops.cpp +++ b/src/helper/pixbuf-ops.cpp @@ -66,7 +66,7 @@ hide_other_items_recursively(SPObject *o, GSList *list, unsigned dkey) // to the call for the interface to the png writing. bool -sp_export_jpg_file(Document *doc, gchar const *filename, +sp_export_jpg_file(SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1, unsigned width, unsigned height, double xdpi, double ydpi, unsigned long bgcolor, double quality,GSList *items) @@ -90,7 +90,7 @@ sp_export_jpg_file(Document *doc, gchar const *filename, } GdkPixbuf* -sp_generate_internal_bitmap(Document *doc, gchar const */*filename*/, +sp_generate_internal_bitmap(SPDocument *doc, gchar const */*filename*/, double x0, double y0, double x1, double y1, unsigned width, unsigned height, double xdpi, double ydpi, unsigned long bgcolor, diff --git a/src/helper/pixbuf-ops.h b/src/helper/pixbuf-ops.h index de6a80181..a985be297 100644 --- a/src/helper/pixbuf-ops.h +++ b/src/helper/pixbuf-ops.h @@ -14,12 +14,12 @@ #include <glib/gtypes.h> -struct Document; +struct SPDocument; -bool sp_export_jpg_file (Document *doc, gchar const *filename, double x0, double y0, double x1, double y1, +bool sp_export_jpg_file (SPDocument *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(Document *doc, gchar const *filename, +GdkPixbuf* sp_generate_internal_bitmap(SPDocument *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.cpp b/src/helper/png-write.cpp index ad1b43c55..3ac900680 100644 --- a/src/helper/png-write.cpp +++ b/src/helper/png-write.cpp @@ -120,7 +120,7 @@ void PngTextList::add(gchar const* key, gchar const* text) } static bool -sp_png_write_rgba_striped(Document *doc, +sp_png_write_rgba_striped(SPDocument *doc, gchar const *filename, unsigned long int width, unsigned long int height, double xdpi, double ydpi, int (* get_rows)(guchar const **rows, int row, int num_rows, void *data), void *data) @@ -388,7 +388,7 @@ hide_other_items_recursively(SPObject *o, GSList *list, unsigned dkey) * * \return true if succeeded (or if no action was taken), false if an error occurred. */ -bool sp_export_png_file (Document *doc, gchar const *filename, +bool sp_export_png_file (SPDocument *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, @@ -400,7 +400,7 @@ bool sp_export_png_file (Document *doc, gchar const *filename, width, height, xdpi, ydpi, bgcolor, status, data, force_overwrite, items_only); } bool -sp_export_png_file(Document *doc, gchar const *filename, +sp_export_png_file(SPDocument *doc, gchar const *filename, Geom::Rect const &area, unsigned long width, unsigned long height, double xdpi, double ydpi, unsigned long bgcolor, diff --git a/src/helper/png-write.h b/src/helper/png-write.h index f7e372e0b..83321aa4e 100644 --- a/src/helper/png-write.h +++ b/src/helper/png-write.h @@ -14,14 +14,14 @@ #include <glib/gtypes.h> #include <2geom/forward.h> -struct Document; +struct SPDocument; -bool sp_export_png_file (Document *doc, gchar const *filename, +bool sp_export_png_file (SPDocument *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 (Document *doc, gchar const *filename, +bool sp_export_png_file (SPDocument *doc, gchar const *filename, Geom::Rect const &area, unsigned long int width, unsigned long int height, double xdpi, double ydpi, unsigned long bgcolor, diff --git a/src/helper/stock-items.cpp b/src/helper/stock-items.cpp index 936397480..575197fee 100644 --- a/src/helper/stock-items.cpp +++ b/src/helper/stock-items.cpp @@ -35,9 +35,9 @@ -static SPObject *sp_gradient_load_from_svg(gchar const *name, Document *current_doc); -static SPObject *sp_marker_load_from_svg(gchar const *name, Document *current_doc); -static SPObject *sp_gradient_load_from_svg(gchar const *name, Document *current_doc); +static SPObject *sp_gradient_load_from_svg(gchar const *name, SPDocument *current_doc); +static SPObject *sp_marker_load_from_svg(gchar const *name, SPDocument *current_doc); +static SPObject *sp_gradient_load_from_svg(gchar const *name, SPDocument *current_doc); // FIXME: these should be merged with the icon loading code so they @@ -45,9 +45,9 @@ static SPObject *sp_gradient_load_from_svg(gchar const *name, Document *current_ // take the dir to look in, and the file to check for, and cache // against that, rather than the existing copy/paste code seen here. -static SPObject * sp_marker_load_from_svg(gchar const *name, Document *current_doc) +static SPObject * sp_marker_load_from_svg(gchar const *name, SPDocument *current_doc) { - static Document *doc = NULL; + static SPDocument *doc = NULL; static unsigned int edoc = FALSE; if (!current_doc) { return NULL; @@ -83,9 +83,9 @@ static SPObject * sp_marker_load_from_svg(gchar const *name, Document *current_d static SPObject * -sp_pattern_load_from_svg(gchar const *name, Document *current_doc) +sp_pattern_load_from_svg(gchar const *name, SPDocument *current_doc) { - static Document *doc = NULL; + static SPDocument *doc = NULL; static unsigned int edoc = FALSE; if (!current_doc) { return NULL; @@ -126,9 +126,9 @@ sp_pattern_load_from_svg(gchar const *name, Document *current_doc) static SPObject * -sp_gradient_load_from_svg(gchar const *name, Document *current_doc) +sp_gradient_load_from_svg(gchar const *name, SPDocument *current_doc) { - static Document *doc = NULL; + static SPDocument *doc = NULL; static unsigned int edoc = FALSE; if (!current_doc) { return NULL; @@ -194,7 +194,7 @@ SPObject *get_stock_item(gchar const *urn) gchar * base = g_strndup(e, a); SPDesktop *desktop = inkscape_active_desktop(); - Document *doc = sp_desktop_document(desktop); + SPDocument *doc = sp_desktop_document(desktop); SPDefs *defs= (SPDefs *) SP_DOCUMENT_DEFS(doc); SPObject *object = NULL; @@ -263,7 +263,7 @@ SPObject *get_stock_item(gchar const *urn) else { SPDesktop *desktop = inkscape_active_desktop(); - Document *doc = sp_desktop_document(desktop); + SPDocument *doc = sp_desktop_document(desktop); SPObject *object = doc->getObjectById(urn); return object; |
