diff options
| author | Martin Owens <doctormo@gmail.com> | 2014-01-22 22:58:40 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2014-01-22 22:58:40 +0000 |
| commit | 423ea7c0373e77a83c8a9ef62df9a786b4feb7ac (patch) | |
| tree | 148e75843778f8b96619d73b7242d880682bd134 /src/document.h | |
| parent | Protect against infinate looping of new included hrefs (diff) | |
| download | inkscape-423ea7c0373e77a83c8a9ef62df9a786b4feb7ac.tar.gz inkscape-423ea7c0373e77a83c8a9ef62df9a786b4feb7ac.zip | |
Move sub-document reference creation code from uri-reference to document.cpp as createChildDoc(path)
(bzr r12971)
Diffstat (limited to 'src/document.h')
| -rw-r--r-- | src/document.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/document.h b/src/document.h index 06b2b5f6e..79381e0c2 100644 --- a/src/document.h +++ b/src/document.h @@ -121,10 +121,6 @@ public: GSList *_collection_queue; - // A list of svg documents being used or shown within this document - boost::ptr_list<SPDocument> child_documents; - SPDocument *parent_document; - bool oldSignalsConnected; /** Returns our SPRoot */ @@ -207,6 +203,11 @@ private: Persp3D *current_persp3d; /**< Currently 'active' perspective (to which, e.g., newly created boxes are attached) */ Persp3DImpl *current_persp3d_impl; + // A list of svg documents being used or shown within this document + boost::ptr_list<SPDocument> _child_documents; + // Conversely this is a parent document because this is a child. + SPDocument *_parent_document; + public: sigc::connection connectReconstructionStart(ReconstructionStart::slot_type slot); sigc::connection connectReconstructionFinish(ReconstructionFinish::slot_type slot); @@ -224,6 +225,7 @@ public: static SPDocument *createNewDoc(const gchar *uri, unsigned int keepalive, bool make_new = false, SPDocument *parent=NULL ); static SPDocument *createNewDocFromMem(const gchar *buffer, gint length, unsigned int keepalive); + SPDocument *createChildDoc(gchar const *uri); /** * Returns the bottommost item from the list which is at the point, or NULL if none. |
