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 #ifndef CXFTRISTIMULUSSPEC_H
9 #define CXFTRISTIMULUSSPEC_H
10 
11 #include <QDomDocument>
12 #include "cxftypes.h"
13 
14 class CxfTristimulusSpec
15 {
16 public:
17 	CxfTristimulusSpec();
18 
illuminant()19 	CxfIlluminant illuminant() const { return m_illuminant; }
observer()20 	CxfObserver   observer() const { return m_observer; }
conversionMethod()21 	CxfCIEConversionMethod conversionMethod() const { return m_convMethod; }
22 
isD50_2degree()23 	bool isD50_2degree() const { return (m_illuminant == cxfIlluminantD50 && m_observer == cxfObserver2_Degree); }
24 
25 	bool isValid() const;
26 	bool isSupported() const;
27 	bool parse(QDomElement& elem);
28 	void reset();
29 
30 protected:
31 	CxfIlluminant m_illuminant;
32 	CxfObserver   m_observer;
33 	CxfCIEConversionMethod m_convMethod;
34 };
35 
36 #endif