Code

Merge and cleanup of GSoC C++-ification project.
[inkscape.git] / src / profile-manager.h
1 /*
2  * Inkscape::ProfileManager - a view of a document's color profiles.
3  *
4  * Copyright 2007  Jon A. Cruz  <jon@joncruz.org>
5  *
6  * Released under GNU GPL, read the file 'COPYING' for more information
7  */
9 #ifndef SEEN_INKSCAPE_PROFILE_MANAGER_H
10 #define SEEN_INKSCAPE_PROFILE_MANAGER_H
12 #include "document-subset.h"
13 #include "gc-finalized.h"
14 #include <vector>
16 class SPDocument;
18 namespace Inkscape {
20 class ColorProfile;
22 class ProfileManager : public DocumentSubset,
23                        public GC::Finalized
24 {
25 public:
26     ProfileManager(SPDocument *document);
27     ~ProfileManager();
29     ColorProfile* find(gchar const* name);
31 private:
32     ProfileManager(ProfileManager const &); // no copy
33     void operator=(ProfileManager const &); // no assign
35     void _resourcesChanged();
37     SPDocument* _doc;
38     sigc::connection _resource_connection;
39     std::vector<SPObject*> _knownProfiles;
40 };
42 }
44 #endif // SEEN_INKSCAPE_PROFILE_MANAGER_H
46 /*
47   Local Variables:
48   mode:c++
49   c-file-style:"stroustrup"
50   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
51   indent-tabs-mode:nil
52   fill-column:99
53   End:
54 */
55 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :