Hey developers,
This is the model I'm going to implement for documents to reference
other documents:
SPDocument {
GSList *child_documents;
SPDocument *parent_document;
// Parent of parents until parent == NULL;
SPDocument *getRootDocument();
}
Then in uri-reference, check paths of existing child_documents, load the
referenced document and add to child_documents. Set parent_document.
That should keep things consistant.
The idea here is that we'll use this to track documents referenced in
<use tags> as well as <image tags> and attributes like 'marker-*:
url(...);' but not for non-vector graphics used in the image tag.
Thoughts? Advice?
Best Regards, Martin Owens