Debian Codegraph @

podofo/tools/podofocolor/dummyconverter.cpp

raw
1 /**
2 * SPDX-FileCopyrightText: (C) 2010 Dominik Seichter <[email protected]>
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
6 #include "dummyconverter.h"
7
8 using namespace PoDoFo;
9
10 DummyConverter::DummyConverter()
11 : IConverter()
12 {
13
14 }
15
16 void DummyConverter::StartPage(PdfPage&, int)
17 {
18 }
19
20 void DummyConverter::EndPage(PdfPage&, int)
21 {
22 }
23
24 void DummyConverter::StartXObject(PdfXObject&)
25 {
26 }
27
28 void DummyConverter::EndXObject(PdfXObject&)
29 {
30 }
31
32 PdfColor DummyConverter::SetStrokingColorGray(const PdfColor&)
33 {
34 return PdfColor(1.0, 0.0, 0.0);
35 }
36
37 PdfColor DummyConverter::SetStrokingColorRGB(const PdfColor&)
38 {
39 return PdfColor(1.0, 0.0, 0.0);
40 }
41
42 PdfColor DummyConverter::SetStrokingColorCMYK(const PdfColor&)
43 {
44 return PdfColor(1.0, 0.0, 0.0);
45 }
46
47 PdfColor DummyConverter::SetNonStrokingColorGray(const PdfColor&)
48 {
49 return PdfColor(0.0, 1.0, 0.0);
50 }
51
52 PdfColor DummyConverter::SetNonStrokingColorRGB(const PdfColor&)
53 {
54 return PdfColor(0.0, 1.0, 0.0);
55 }
56
57 PdfColor DummyConverter::SetNonStrokingColorCMYK(const PdfColor&)
58 {
59 return PdfColor(0.0, 1.0, 0.0);
60 }