Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Defines | Functions | Variables

document.cpp File Reference

#include <gtk/gtkmain.h>
#include <string>
#include <cstring>
#include "application/application.h"
#include "application/editor.h"
#include "desktop.h"
#include "dir-util.h"
#include "display/nr-arena-item.h"
#include "document-private.h"
#include "helper/units.h"
#include "inkscape-private.h"
#include "inkscape-version.h"
#include "libavoid/router.h"
#include "persp3d.h"
#include "preferences.h"
#include "profile-manager.h"
#include "rdf.h"
#include "sp-item-group.h"
#include "sp-namedview.h"
#include "sp-object-repr.h"
#include "transf_mat_3x4.h"
#include "unit-constants.h"
#include "xml/repr.h"
#include "xml/rebase-hrefs.h"
Include dependency graph for document.cpp:

Go to the source code of this file.

Defines

#define __SP_DOCUMENT_C__
#define noSP_DOCUMENT_DEBUG_IDLE
#define noSP_DOCUMENT_DEBUG_UNDO
#define SP_DOCUMENT_REROUTING_PRIORITY   (G_PRIORITY_HIGH_IDLE - 1)
#define SP_DOCUMENT_UPDATE_PRIORITY   (G_PRIORITY_HIGH_IDLE - 2)

Functions

unsigned int count_objects_recursive (SPObject *obj, unsigned int count)
static void do_change_uri (SPDocument *const document, gchar const *const filename, bool const rebase)
SPItemfind_group_at_point (unsigned int dkey, SPGroup *group, Geom::Point const p)
SPItemfind_item_at_point (unsigned int dkey, SPGroup *group, Geom::Point const p, gboolean into_groups, bool take_insensitive=false, SPItem *upto=NULL)
static GSList * find_items_in_area (GSList *s, SPGroup *group, unsigned int dkey, Geom::Rect const &area, bool(*test)(Geom::Rect const &, Geom::Rect const &), bool take_insensitive=false)
static double getMarginLength (Inkscape::XML::Node *const nv_repr, gchar const *const key, SPUnit const *const margin_units, SPUnit const *const return_units, double const width, double const height, bool const use_width)
static bool is_within (Geom::Rect const &area, Geom::Rect const &box)
bool item_is_in_group (SPItem *item, SPGroup *group)
unsigned int objects_in_document (SPDocument *document)
static bool overlaps (Geom::Rect const &area, Geom::Rect const &box)
gboolean sp_document_add_resource (SPDocument *document, gchar const *key, SPObject *object)
void sp_document_change_uri_and_hrefs (SPDocument *document, gchar const *filename)
SPDocumentsp_document_create (Inkscape::XML::Document *rdoc, gchar const *uri, gchar const *base, gchar const *name, unsigned int keepalive)
Geom::Point sp_document_dimensions (SPDocument *doc)
gint sp_document_ensure_up_to_date (SPDocument *doc)
GSList const * sp_document_get_resource_list (SPDocument *document, gchar const *key)
SPItemsp_document_group_at_point (SPDocument *document, unsigned int key, Geom::Point const p)
gdouble sp_document_height (SPDocument *document)
static gint sp_document_idle_handler (gpointer data)
SPItemsp_document_item_at_point (SPDocument *document, unsigned const key, Geom::Point const p, gboolean const into_groups, SPItem *upto)
SPItemsp_document_item_from_list_at_point_bottom (unsigned int dkey, SPGroup *group, GSList const *list, Geom::Point const p, bool take_insensitive)
GSList * sp_document_items_at_points (SPDocument *document, unsigned const key, std::vector< Geom::Point > points)
GSList * sp_document_items_in_box (SPDocument *document, unsigned int dkey, Geom::Rect const &box)
SPDocumentsp_document_new (gchar const *uri, unsigned int keepalive, bool make_new)
SPDocumentsp_document_new_from_mem (gchar const *buffer, gint length, unsigned int keepalive)
GSList * sp_document_partial_items_in_box (SPDocument *document, unsigned int dkey, Geom::Rect const &box)
SPDocumentsp_document_ref (SPDocument *doc)
gboolean sp_document_remove_resource (SPDocument *document, gchar const *key, SPObject *object)
void sp_document_request_modified (SPDocument *doc)
static gint sp_document_rerouting_handler (gpointer data)
void sp_document_resized_signal_emit (SPDocument *doc, gdouble width, gdouble height)
gboolean sp_document_resource_list_free (gpointer key, gpointer value, gpointer data)
sigc::connection sp_document_resources_changed_connect (SPDocument *document, gchar const *key, SPDocument::ResourcesChangedSignal::slot_type slot)
void sp_document_set_height (SPDocument *document, gdouble height, const SPUnit *unit)
void sp_document_set_uri (SPDocument *document, gchar const *filename)
void sp_document_set_width (SPDocument *document, gdouble width, const SPUnit *unit)
void sp_document_setup_viewport (SPDocument *doc, SPItemCtx *ctx)
SPDocumentsp_document_unref (SPDocument *doc)
gdouble sp_document_width (SPDocument *document)
unsigned int vacuum_document (SPDocument *document)
void vacuum_document_recursive (SPObject *obj)

Variables

static gint doc_count = 0
static unsigned long next_serial = 0

Detailed Description

SPDocument manipulation

Authors: Lauris Kaplinski <lauris@kaplinski.com> MenTaLguY <mental@rydia.net> bulia byak <buliabyak@users.sf.net>

Copyright (C) 2004-2005 MenTaLguY Copyright (C) 1999-2002 Lauris Kaplinski Copyright (C) 2000-2001 Ximian, Inc.

Released under GNU GPL, read the file 'COPYING' for more information

Definition in file document.cpp.


Generated by  Doxygen 1.6.0   Back to index