Subversion Repositories Scribus

Rev

Rev 14491 | Rev 23163 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5783 cbradney 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
/***************************************************************************
8
 *   Copyright (C) 2006 by Craig Bradney                                   *
9
 *   mrb@scribus.info                                                      *
10
 *                                                                         *
11
 *   This program is free software; you can redistribute it and/or modify  *
12
 *   it under the terms of the GNU General Public License as published by  *
13
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 *   (at your option) any later version.                                   *
15
 *                                                                         *
16
 *   This program is distributed in the hope that it will be useful,       *
17
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
18
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
19
 *   GNU General Public License for more details.                          *
20
 *                                                                         *
21
 *   You should have received a copy of the GNU General Public License     *
22
 *   along with this program; if not, write to the                         *
23
 *   Free Software Foundation, Inc.,                                       *
18122 mrdocs 24
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.             *
5783 cbradney 25
 ***************************************************************************/
26
 
27
#ifndef CMSETTINGS_H
28
#define CMSETTINGS_H
29
 
5788 jghali 30
#include "scconfig.h"
5783 cbradney 31
#include "scribusapi.h"
10223 cbradney 32
#include <QString>
5783 cbradney 33
class ScribusDoc;
34
 
14491 jghali 35
#include "colormgmt/sccolormgmtengine.h"
5788 jghali 36
 
5783 cbradney 37
class SCRIBUS_API CMSettings
38
{
39
public:
14170 jghali 40
        CMSettings(ScribusDoc* doc, const QString& profileName, eRenderIntent intent);
5783 cbradney 41
        ~CMSettings();
42
 
43
        ScribusDoc* doc() const {return m_Doc;}
44
        QString profileName() const {return m_ProfileName;}
14170 jghali 45
        eRenderIntent intent() const { return m_Intent; }
5783 cbradney 46
 
14467 jghali 47
        bool colorManagementAllowed() const { return m_colorManagementAllowed; }
48
        void allowColorManagement(bool allowed) { m_colorManagementAllowed = allowed; }
6070 jghali 49
 
14467 jghali 50
        bool softProofingAllowed() const { return m_softProofingAllowed; }
51
        void allowSoftProofing(bool allowed) { m_softProofingAllowed = allowed; }
52
 
53
        bool useEmbeddedProfile() const { return m_useEmbeddedProfile; }
54
        void setUseEmbeddedProfile(bool useEmbedded) { m_useEmbeddedProfile = useEmbedded; }
55
 
56
        bool useOutputProfile() const { return !m_outputProfile.isNull(); }
57
        void setOutputProfile(const ScColorProfile& prof) { m_outputProfile = prof; }
58
 
5788 jghali 59
        bool useColorManagement() const;
60
 
6070 jghali 61
        QString defaultMonitorProfile() const;
62
        QString defaultPrinterProfile() const;
63
        QString defaultImageRGBProfile() const;
64
        QString defaultImageCMYKProfile() const;
65
        QString defaultSolidColorRGBProfile() const;
66
        QString defaultSolidColorCMYKProfile() const;
5813 jghali 67
 
14170 jghali 68
        eRenderIntent colorRenderingIntent() const;
69
        eRenderIntent imageRenderingIntent() const;
5813 jghali 70
 
71
        bool useBlackPoint() const;
72
        bool doSoftProofing() const;
73
        bool doGamutCheck() const;
74
 
14170 jghali 75
        ScColorProfile monitorProfile() const;
76
        ScColorProfile printerProfile() const;
14467 jghali 77
        ScColorProfile outputProfile() const;
5788 jghali 78
 
14170 jghali 79
        ScColorTransform rgbColorDisplayTransform() const;   // stdTransRGBMonG
80
        ScColorTransform rgbColorProofingTransform() const;  // stdProofG
81
        ScColorTransform rgbImageDisplayTransform() const;   // stdTransImgG
82
        ScColorTransform rgbImageProofingTransform() const;  // stdProofImgG
83
        ScColorTransform rgbToCymkColorTransform() const;    // stdTransCMYKG
84
        ScColorTransform rgbGamutCheckTransform() const;     // stdProofGCG
5788 jghali 85
 
14170 jghali 86
        ScColorTransform cmykColorDisplayTransform() const;  // stdTransCMYKMonG
87
        ScColorTransform cmykColorProofingTransform() const; // stdProofCMYKG
88
        ScColorTransform cmykImageProofingTransform() const; // stdProofImgCMYK
89
        ScColorTransform cmykToRgbColorTransform() const;    // stdTransRGBG
90
        ScColorTransform cmykGamutCheckTransform() const;    //stdProofCMYKGCG
5788 jghali 91
 
5783 cbradney 92
protected:
14467 jghali 93
        ScribusDoc*    m_Doc;
94
        bool           m_colorManagementAllowed;
95
        bool           m_softProofingAllowed;
96
        bool           m_useEmbeddedProfile;
97
        QString        m_ProfileName;
98
        eRenderIntent  m_Intent;
99
        ScColorProfile m_outputProfile;
5783 cbradney 100
};
101
 
102
#endif