Code

Initial cut of softproofing
[inkscape.git] / src / color-profile-fns.h
1 #ifndef SEEN_COLOR_PROFILE_FNS_H
2 #define SEEN_COLOR_PROFILE_FNS_H
4 /** \file 
5  * Macros and fn declarations related to linear gradients.
6  */
8 #include <glib-object.h>
9 #include <glib/gtypes.h>
10 #if ENABLE_LCMS
11 #include <vector>
12 #include <glibmm/ustring.h>
13 #include <lcms.h>
14 #endif // ENABLE_LCMS
16 class SPDocument;
18 namespace Inkscape {
20 namespace XML {
21 class Node;
22 } // namespace XML
24 class ColorProfile;
26 GType colorprofile_get_type();
28 #if ENABLE_LCMS
30 cmsHPROFILE colorprofile_get_handle( SPDocument* document, guint* intent, gchar const* name );
31 cmsHTRANSFORM colorprofile_get_display_transform();
33 std::vector<Glib::ustring> colorprofile_get_display_names();
34 std::vector<Glib::ustring> colorprofile_get_softproof_names();
36 Glib::ustring get_path_for_profile(Glib::ustring const& name);
38 #endif
40 } // namespace Inkscape
42 #define COLORPROFILE_TYPE (Inkscape::colorprofile_get_type())
43 #define COLORPROFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), COLORPROFILE_TYPE, Inkscape::ColorProfile))
44 #define COLORPROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), COLORPROFILE_TYPE, Inkscape::ColorProfileClass))
45 #define IS_COLORPROFILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), COLORPROFILE_TYPE))
46 #define IS_COLORPROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), COLORPROFILE_TYPE))
49 #endif // !SEEN_COLOR_PROFILE_FNS_H
51 /*
52   Local Variables:
53   mode:c++
54   c-file-style:"stroustrup"
55   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
56   indent-tabs-mode:nil
57   fill-column:99
58   End:
59 */
60 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :