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.
7
/***************************************************************************
8
* Copyright (C) 2006 by Craig Bradney *
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. *
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. *
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., *
24
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
25
***************************************************************************/
27
#include "cmsettings.h"
28
#include "scribusdoc.h"
30
CMSettings::CMSettings(ScribusDoc* doc, const QString& profileName, int intent) :
32
m_ProfileName(profileName),
37
CMSettings::~CMSettings()
41
bool CMSettings::useColorManagement() const
48
QString CMSettings::defaultMonitorProfile() const
51
return m_Doc->CMSSettings.DefaultMonitorProfile;
55
QString CMSettings::defaultPrinterProfile() const
58
return m_Doc->CMSSettings.DefaultPrinterProfile;
62
QString CMSettings::defaultImageRGBProfile() const
65
return m_Doc->CMSSettings.DefaultImageRGBProfile;
69
QString CMSettings::defaultImageCMYKProfile() const
72
return m_Doc->CMSSettings.DefaultImageCMYKProfile;
76
QString CMSettings::defaultSolidColorRGBProfile() const
79
return m_Doc->CMSSettings.DefaultSolidColorRGBProfile;
83
QString CMSettings::defaultSolidColorCMYKProfile() const
86
return m_Doc->CMSSettings.DefaultSolidColorCMYKProfile;
90
int CMSettings::colorRenderingIntent() const
93
return m_Doc->IntentColors;
94
return 1; // Use relative colorimetric by default
97
int CMSettings::imageRenderingIntent() const
100
return m_Doc->IntentImages;
101
return 0; // Use perceptual by default
104
bool CMSettings::useBlackPoint() const
107
return m_Doc->CMSSettings.BlackPoint;
111
bool CMSettings::doSoftProofing() const
114
return m_Doc->CMSSettings.SoftProofOn;
118
bool CMSettings::doGamutCheck() const
121
return m_Doc->CMSSettings.GamutCheck;
125
cmsHPROFILE CMSettings::monitorProfile() const
128
return m_Doc->DocOutputProf;
132
cmsHPROFILE CMSettings::printerProfile() const
135
return m_Doc->DocPrinterProf;
139
cmsHTRANSFORM CMSettings::rgbColorDisplayTransform() const // stdTransRGBMonG
142
return m_Doc->stdTransRGBMon;
146
cmsHTRANSFORM CMSettings::rgbColorProofingTransform() const // stdProofG
149
return m_Doc->stdProof;
153
cmsHTRANSFORM CMSettings::rgbImageDisplayTransform() const // stdTransImgG
156
return m_Doc->stdTransImg;
160
cmsHTRANSFORM CMSettings::rgbImageProofingTransform() const // stdProofImgG
163
return m_Doc->stdProofImg;
167
cmsHTRANSFORM CMSettings::rgbToCymkColorTransform() const // stdTransCMYKG
170
return m_Doc->stdTransCMYK;
174
cmsHTRANSFORM CMSettings::rgbGamutCheckTransform() const // stdProofGCG
177
return m_Doc->stdProofGC;
181
cmsHTRANSFORM CMSettings::cmykColorDisplayTransform() const // stdTransCMYKMonG
184
return m_Doc->stdTransCMYKMon;
188
cmsHTRANSFORM CMSettings::cmykColorProofingTransform() const // stdProofCMYKG
191
return m_Doc->stdProofCMYK;
195
cmsHTRANSFORM CMSettings::cmykToRgbColorTransform() const // stdTransRGBG
198
return m_Doc->stdTransRGB;
202
cmsHTRANSFORM CMSettings::cmykGamutCheckTransform() const //stdProofCMYKGCG
205
return m_Doc->stdProofCMYKGC;