IWORKColorElement.h Source File documentation

IWORKColorElement.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/*
3 * This file is part of the libetonyek project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef IWORKCOLORELEMENT_H_INCLUDED
11#define IWORKCOLORELEMENT_H_INCLUDED
12
13#include <boost/optional.hpp>
14
15#include "IWORKTypes.h"
16#include "IWORKXMLContextBase.h"
17
18namespace libetonyek
19{
20
21 class IWORKColorElement : public IWORKXMLEmptyContextBase
22{
23public:
24 IWORKColorElement(IWORKXMLParserState &state, boost::optional<IWORKColor> &color);
25
26protected:
27 void attribute(int name, const char *value) override;
28 IWORKXMLContextPtr_t element(int name) override;
29 void endOfElement() override;
30
31private:
32 boost::optional<IWORKColor> &m_color;
33 std::string m_type;
34 double m_r;
35 double m_g;
36 double m_b;
37 double m_w;
38 double m_c;
39 double m_m;
40 double m_y;
41 double m_k;
42 double m_a;
43};
44
45}
46
47#endif // IWORKCOLORELEMENT_H_INCLUDED
48
49/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKTypes.h
IWORKXMLContextBase.h
libetonyek::IWORKColorElement
Definition: IWORKColorElement.h:22
libetonyek::IWORKColorElement::endOfElement
void endOfElement() override
Definition: IWORKColorElement.cpp:107
libetonyek::IWORKColorElement::m_k
double m_k
Definition: IWORKColorElement.h:41
libetonyek::IWORKColorElement::m_y
double m_y
Definition: IWORKColorElement.h:40
libetonyek::IWORKColorElement::m_w
double m_w
Definition: IWORKColorElement.h:37
libetonyek::IWORKColorElement::m_type
std::string m_type
Definition: IWORKColorElement.h:33
libetonyek::IWORKColorElement::attribute
void attribute(int name, const char *value) override
Definition: IWORKColorElement.cpp:40
libetonyek::IWORKColorElement::m_color
boost::optional< IWORKColor > & m_color
Definition: IWORKColorElement.h:32
libetonyek::IWORKColorElement::m_c
double m_c
Definition: IWORKColorElement.h:38
libetonyek::IWORKColorElement::m_m
double m_m
Definition: IWORKColorElement.h:39
libetonyek::IWORKColorElement::element
IWORKXMLContextPtr_t element(int name) override
Definition: IWORKColorElement.cpp:87
libetonyek::IWORKColorElement::m_g
double m_g
Definition: IWORKColorElement.h:35
libetonyek::IWORKColorElement::m_r
double m_r
Definition: IWORKColorElement.h:34
libetonyek::IWORKColorElement::m_b
double m_b
Definition: IWORKColorElement.h:36
libetonyek::IWORKColorElement::m_a
double m_a
Definition: IWORKColorElement.h:42
libetonyek::IWORKXMLContextBase
Definition: IWORKXMLContextBase.h:28
libetonyek::IWORKXMLParserState
Definition: IWORKXMLParserState.h:32
libetonyek
Definition: IWORKBezierElement.cpp:21
libetonyek::IWORKXMLContextPtr_t
std::shared_ptr< IWORKXMLContext > IWORKXMLContextPtr_t
Definition: IWORKXMLContext.h:20