Logo Search packages:      
Sourcecode: inkscape version File versions

document.cpp File Reference

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.

#include <gtk/gtkmain.h>
#include "application/application.h"
#include "application/editor.h"
#include "libnr/nr-matrix-fns.h"
#include "xml/repr.h"
#include "helper/units.h"
#include "inkscape-private.h"
#include "inkscape_version.h"
#include "sp-object-repr.h"
#include "document-private.h"
#include "dir-util.h"
#include "unit-constants.h"
#include "prefs-utils.h"
#include "libavoid/router.h"
#include "libnr/nr-rect.h"
#include "sp-item-group.h"
#include "display/nr-arena-item.h"
#include "dialogs/rdf.h"

Go to the source code of this file.


#define __SP_DOCUMENT_C__
#define A4_HEIGHT_STR   "297mm"
#define A4_WIDTH_STR   "210mm"


unsigned int count_objects_recursive (SPObject *obj, unsigned int count)
SPItemfind_group_at_point (unsigned int dkey, SPGroup *group, NR::Point const p)
SPItemfind_item_at_point (unsigned int dkey, SPGroup *group, NR::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, NR::Rect const &area, bool(*test)(NR::Rect const &, NR::Rect const &), bool take_insensitive=false)
static bool is_within (NR::Rect const &area, NR::Rect const &box)
bool item_is_in_group (SPItem *item, SPGroup *group)
unsigned int objects_in_document (SPDocument *document)
static bool overlaps (NR::Rect const &area, NR::Rect const &box)
gboolean sp_document_add_resource (SPDocument *document, gchar const *key, SPObject *object)
SPDocumentsp_document_create (Inkscape::XML::Document *rdoc, gchar const *uri, gchar const *base, gchar const *name, unsigned int keepalive)
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, NR::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, NR::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, NR::Point const p, bool take_insensitive)
GSList * sp_document_items_in_box (SPDocument *document, unsigned int dkey, NR::Rect const &box)
SPDocumentsp_document_new (gchar const *uri, unsigned int keepalive, bool make_new)
SPDocumentsp_document_new_dummy ()
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, NR::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)
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 *uri)
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)


static gint doc_count = 0

Generated by  Doxygen 1.6.0   Back to index