Code

Indent support for XSLT extensions output.
[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 Glib::ustring colorprofile_get_display_id( int screen, int monitor );
34 Glib::ustring colorprofile_set_display_per( gpointer buf, guint bufLen, int screen, int monitor );
35 cmsHTRANSFORM colorprofile_get_display_per( Glib::ustring const& id );
37 std::vector<Glib::ustring> colorprofile_get_display_names();
38 std::vector<Glib::ustring> colorprofile_get_softproof_names();
40 Glib::ustring get_path_for_profile(Glib::ustring const& name);
42 #endif
44 } // namespace Inkscape
46 #define COLORPROFILE_TYPE (Inkscape::colorprofile_get_type())
47 #define COLORPROFILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), COLORPROFILE_TYPE, Inkscape::ColorProfile))
48 #define COLORPROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), COLORPROFILE_TYPE, Inkscape::ColorProfileClass))
49 #define IS_COLORPROFILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), COLORPROFILE_TYPE))
50 #define IS_COLORPROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), COLORPROFILE_TYPE))
53 #endif // !SEEN_COLOR_PROFILE_FNS_H
55 /*
56   Local Variables:
57   mode:c++
58   c-file-style:"stroustrup"
59   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
60   indent-tabs-mode:nil
61   fill-column:99
62   End:
63 */
64 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :