Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

cmsettings.h

Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008  *   Copyright (C) 2006 by Craig Bradney                                   *
00009  *   mrb@scribus.info                                                      *
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  *   This program is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00019  *   GNU General Public License for more details.                          *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU General Public License     *
00022  *   along with this program; if not, write to the                         *
00023  *   Free Software Foundation, Inc.,                                       *
00024  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00025  ***************************************************************************/
00026 
00027 #ifndef CMSETTINGS_H
00028 #define CMSETTINGS_H
00029 
00030 #include "scconfig.h"
00031 #include "scribusapi.h"
00032 #include <QString>
00033 class ScribusDoc;
00034 
00035 #include CMS_INC
00036 
00037 class SCRIBUS_API CMSettings
00038 {
00039 public:
00040     CMSettings(ScribusDoc* doc, const QString& profileName, int intent);
00041     ~CMSettings();
00042     
00043     ScribusDoc* doc() const {return m_Doc;}
00044     QString profileName() const {return m_ProfileName;}
00045     QString outputProfile() const { return m_outputProfile; }
00046     int intent() const {return m_Intent;}
00047 
00048     bool useOutputProfile() const { return !m_outputProfile.isEmpty(); }
00049     void setOutputProfile(const QString& prof) { m_outputProfile = prof; }
00050 
00051     bool useColorManagement() const;
00052 
00053     QString defaultMonitorProfile() const;
00054     QString defaultPrinterProfile() const;
00055     QString defaultImageRGBProfile() const;
00056     QString defaultImageCMYKProfile() const;
00057     QString defaultSolidColorRGBProfile() const;
00058     QString defaultSolidColorCMYKProfile() const;
00059 
00060     int colorRenderingIntent() const;
00061     int imageRenderingIntent() const;
00062 
00063     bool useBlackPoint() const;
00064     bool doSoftProofing() const;
00065     bool doGamutCheck() const;
00066 
00067     cmsHPROFILE monitorProfile() const;
00068     cmsHPROFILE printerProfile() const;
00069 
00070     cmsHTRANSFORM rgbColorDisplayTransform() const;   // stdTransRGBMonG
00071     cmsHTRANSFORM rgbColorProofingTransform() const;  // stdProofG
00072     cmsHTRANSFORM rgbImageDisplayTransform() const;   // stdTransImgG
00073     cmsHTRANSFORM rgbImageProofingTransform() const;  // stdProofImgG
00074     cmsHTRANSFORM rgbToCymkColorTransform() const;    // stdTransCMYKG
00075     cmsHTRANSFORM rgbGamutCheckTransform() const;     // stdProofGCG
00076 
00077     cmsHTRANSFORM cmykColorDisplayTransform() const;  // stdTransCMYKMonG
00078     cmsHTRANSFORM cmykColorProofingTransform() const; // stdProofCMYKG
00079     cmsHTRANSFORM cmykImageProofingTransform() const; // stdProofImgCMYK
00080     cmsHTRANSFORM cmykToRgbColorTransform() const;    // stdTransRGBG
00081     cmsHTRANSFORM cmykGamutCheckTransform() const;    //stdProofCMYKGCG
00082 
00083 protected:
00084     ScribusDoc* m_Doc;
00085     QString m_ProfileName;
00086     QString m_outputProfile;
00087     int m_Intent;
00088 
00089 };
00090 
00091 #endif
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.