1 /*
2 * Inkscape::LayerManager - a view of a document's layers, relative
3 * to a particular desktop
4 *
5 * Copyright 2006 MenTaLguY <mental@rydia.net>
6 *
7 * Released under GNU GPL, read the file 'COPYING' for more information
8 */
10 #ifndef SEEN_INKSCAPE_LAYER_MANAGER_H
11 #define SEEN_INKSCAPE_LAYER_MANAGER_H
13 #include "document-subset.h"
14 #include "gc-finalized.h"
15 #include "gc-soft-ptr.h"
17 class SPDocument;
18 class SPDocument;
20 namespace Inkscape {
22 class LayerManager : public DocumentSubset,
23 public GC::Finalized
24 {
25 public:
26 LayerManager(SPDesktop *desktop);
28 private:
29 void _setDocument(SPDocument *document);
30 void _rebuild();
32 sigc::connection _layer_connection;
33 sigc::connection _document_connection;
34 sigc::connection _resource_connection;
36 GC::soft_ptr<SPDesktop> _desktop;
37 SPDocument *_document;
38 };
40 }
42 #endif
43 /*
44 Local Variables:
45 mode:c++
46 c-file-style:"stroustrup"
47 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
48 indent-tabs-mode:nil
49 fill-column:99
50 End:
51 */
52 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :