Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::URIReference Class Reference

#include <uri-references.h>

Inherited by SPClipPathReference, SPGradientReference, SPMarkerReference, SPMaskReference, SPPatternReference, and SPUseReference.

List of all members.


Detailed Description

A class encapsulating a reference to a particular URI; observers can be notified when the URI comes to reference a different SPObject.

The URIReference increments and decrements the SPObject's hrefcount automatically.

See also:
SPObject

sp_object_href

sp_object_hunref

Definition at line 35 of file uri-references.h.


Public Member Functions

void attach (const URI &uri) throw (BadURIException)
sigc::signal< void, SPObject
*, SPObject * > 
changedSignal ()
void detach ()
SPObject * getObject () const
 Returns a pointer to the current referrent of the attached URI, or NULL.
SPObject * getOwner () const
 Returns a pointer to the URIReference's owner.
const URIgetURI () const
bool isAttached () const
 URIReference (SPObject *owner)
virtual ~URIReference ()

Protected Member Functions

virtual bool _acceptObject (SPObject *obj) const

Private Member Functions

void _setObject (SPObject *object)
void operator= (const URIReference &ref)

Static Private Member Functions

static void _release (SPObject *object, URIReference *reference)

Private Attributes

sigc::signal< void, SPObject
*, SPObject * > 
_changed_signal
sigc::connection _connection
SPObject * _obj
SPObject * _owner
URI_uri

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index