Code

a565b6404f08146a9d660e978ef14c23e808ae93
[inkscape.git] / src / sp-conn-end.h
1 #ifndef SEEN_SP_CONN_END
2 #define SEEN_SP_CONN_END
4 #include <glib/gtypes.h>
5 #include <sigc++/connection.h>
7 #include "sp-use-reference.h"
10 class SPConnEnd {
11 public:
12     SPConnEnd(SPObject *owner);
14     SPUseReference ref;
15     gchar *href;
17     /** Change of href string (not a modification of the attributes of the referrent). */
18     sigc::connection _changed_connection;
20     /** Called when the attached object gets deleted. */
21     sigc::connection _delete_connection;
23     /** A sigc connection for transformed signal, used to do move compensation. */
24     sigc::connection _transformed_connection;
26     void setAttacherHref(gchar const *);
28 private:
29     SPConnEnd(SPConnEnd const &);
30     SPConnEnd &operator=(SPConnEnd const &);
31 };
33 void sp_conn_end_href_changed(SPObject *old_ref, SPObject *ref,
34                               SPConnEnd *connEnd, SPPath *path, unsigned const handle_ix);
35 void sp_conn_adjust_invalid_path(SPPath *const path);
36 void sp_conn_adjust_path(SPPath *const path);
37 void sp_conn_end_detach(SPObject *const owner, unsigned const handle_ix);
40 #endif /* !SEEN_SP_CONN_END */
42 /*
43   Local Variables:
44   mode:c++
45   c-file-style:"stroustrup"
46   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
47   indent-tabs-mode:nil
48   fill-column:99
49   End:
50 */
51 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :