~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/profile-manager.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
8
 
 
9
#ifndef SEEN_INKSCAPE_PROFILE_MANAGER_H
 
10
#define SEEN_INKSCAPE_PROFILE_MANAGER_H
 
11
 
 
12
#include "document-subset.h"
 
13
#include "gc-finalized.h"
 
14
#include <vector>
 
15
 
 
16
class SPDocument;
 
17
 
 
18
namespace Inkscape {
 
19
 
 
20
class ColorProfile;
 
21
 
 
22
class ProfileManager : public DocumentSubset,
 
23
                       public GC::Finalized
 
24
{
 
25
public:
 
26
    ProfileManager(SPDocument *document);
 
27
    ~ProfileManager();
 
28
 
 
29
    ColorProfile* find(gchar const* name);
 
30
 
 
31
private:
 
32
    ProfileManager(ProfileManager const &); // no copy
 
33
    void operator=(ProfileManager const &); // no assign
 
34
 
 
35
    void _resourcesChanged();
 
36
 
 
37
    SPDocument* _doc;
 
38
    sigc::connection _resource_connection;
 
39
    std::vector<SPObject*> _knownProfiles;
 
40
};
 
41
 
 
42
}
 
43
 
 
44
#endif // SEEN_INKSCAPE_PROFILE_MANAGER_H
 
45
 
 
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:encoding=utf-8:textwidth=99 :