1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
/***************************************************************************
*
* $Id: null_out.c 112 2010-08-18 12:59:54Z Michael.McTernan $
*
* This file is part of mscgen, a message sequence chart renderer.
* Copyright (C) 2005 Michael C McTernan, Michael.McTernan.2001@cs.bris.ac.uk
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
**************************************************************************/
#include <stdio.h>
#include <assert.h>
#include "mscgen_adraw_int.h"
/***************************************************************************
* API Functions
***************************************************************************/
static unsigned int NullTextWidth(struct ADrawTag *ctx UNUSED,
const char *string UNUSED)
{
return 0;
}
static int NullTextHeight(struct ADrawTag *ctx UNUSED)
{
return 0;
}
static void NullLine(struct ADrawTag *ctx UNUSED,
unsigned int x1 UNUSED,
unsigned int y1 UNUSED,
unsigned int x2 UNUSED,
unsigned int y2 UNUSED)
{
}
static void NullDottedLine(struct ADrawTag *ctx UNUSED,
unsigned int x1 UNUSED,
unsigned int y1 UNUSED,
unsigned int x2 UNUSED,
unsigned int y2 UNUSED)
{
}
static void NullTextR(struct ADrawTag *ctx UNUSED,
unsigned int x UNUSED,
unsigned int y UNUSED,
const char *string UNUSED)
{
}
static void NullTextL(struct ADrawTag *ctx UNUSED,
unsigned int x UNUSED,
unsigned int y UNUSED,
const char *string UNUSED)
{
}
static void NullTextC(struct ADrawTag *ctx UNUSED,
unsigned int x UNUSED,
unsigned int y UNUSED,
const char *string UNUSED)
{
}
static void NullFilledRectangle(struct ADrawTag *ctx UNUSED,
unsigned int x1 UNUSED,
unsigned int y1 UNUSED,
unsigned int x2 UNUSED,
unsigned int y2 UNUSED)
{
}
static void NullFilledTriangle(struct ADrawTag *ctx UNUSED,
unsigned int x1 UNUSED,
unsigned int y1 UNUSED,
unsigned int x2 UNUSED,
unsigned int y2 UNUSED,
unsigned int x3 UNUSED,
unsigned int y3 UNUSED)
{
}
static void NullArc(struct ADrawTag *ctx UNUSED,
unsigned int cx UNUSED,
unsigned int cy UNUSED,
unsigned int w UNUSED,
unsigned int h UNUSED,
unsigned int s UNUSED,
unsigned int e UNUSED)
{
}
static void NullDottedArc(struct ADrawTag *ctx UNUSED,
unsigned int cx UNUSED,
unsigned int cy UNUSED,
unsigned int w UNUSED,
unsigned int h UNUSED,
unsigned int s UNUSED,
unsigned int e UNUSED)
{
}
static void NullSetPen (struct ADrawTag *ctx UNUSED,
ADrawColour col UNUSED)
{
}
static void NullSetFontSize(struct ADrawTag *ctx UNUSED,
ADrawFontSize size UNUSED)
{
}
static Boolean NullClose(struct ADrawTag *ctx UNUSED)
{
return TRUE;
}
Boolean NullInit(struct ADrawTag *outContext)
{
/* Fill in the function pointers */
outContext->line = NullLine;
outContext->dottedLine = NullDottedLine;
outContext->textL = NullTextL;
outContext->textC = NullTextC;
outContext->textR = NullTextR;
outContext->textWidth = NullTextWidth;
outContext->textHeight = NullTextHeight;
outContext->filledRectangle = NullFilledRectangle;
outContext->filledTriangle = NullFilledTriangle;
outContext->arc = NullArc;
outContext->dottedArc = NullDottedArc;
outContext->setPen = NullSetPen;
outContext->setBgPen = NullSetPen;
outContext->setFontSize = NullSetFontSize;
outContext->close = NullClose;
return TRUE;
}
/* END OF FILE */
|