This file is indexed.

/usr/include/Unidraw/statevars.h is in ivtools-dev 1.2.11a1-8.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/*
 * Copyright (c) 1990, 1991 Stanford University
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Stanford not be used in advertising or
 * publicity pertaining to distribution of the software without specific,
 * written prior permission.  Stanford makes no representations about
 * the suitability of this software for any purpose.  It is provided "as is"
 * without express or implied warranty.
 *
 * STANFORD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
 * IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

/*
 * State variable subclasses.
 */

#ifndef unidraw_statevars_h
#define unidraw_statevars_h

#include <Unidraw/statevar.h>

class Component;
class PSBrush;
class PSColor;
class PSPattern;
class PSFont;

//: name state variable
// <a href=../man3.1/statevars.html>man page</a>
class NameVar : public StateVar {
public:
    NameVar(const char* = nil);

    virtual const char* GetName();
    virtual void SetName(const char*);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
private:
    char* _name;
};

//: component name state variable
// <a href=../man3.1/statevars.html>man page</a>
class CompNameVar : public NameVar {
public:
    CompNameVar(Component* = nil);

    virtual Component* GetComponent();
    virtual void SetComponent(Component*);
    virtual void UpdateName();
    virtual const char* PartOf();

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    const char* CatalogName(Component*);
protected:
    Component* _comp;
};

//: modified-status state variable
// <a href=../man3.1/statevars.html>man page</a>
class ModifStatusVar : public StateVar {
public:
    ModifStatusVar(Component* = nil, boolean = false);
    ~ModifStatusVar();

    virtual boolean GetModifStatus();
    virtual void SetModifStatus(boolean);
    virtual Component* GetComponent();
    virtual void SetComponent(Component*);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    void modified(int);
protected:
    int _modified;
    Component* _component;
    static class UList* _vars;
};

//: magnify factor state variable
// <a href=../man3.1/statevars.html>man page</a>
class MagnifVar : public StateVar {
public:
    MagnifVar(float = 1);

    virtual float GetMagnif();
    virtual void SetMagnif(float);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    float _magnif;
};

//: gravity-enabled state variable
// <a href=../man3.1/statevars.html>man page</a>
class GravityVar : public StateVar {
public:
    GravityVar(boolean = false);

    virtual boolean IsActive();
    virtual void Activate(boolean);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    int _active;
};

//: current font state variable
// <a href=../man3.1/statevars.html>man page</a>
class FontVar : public StateVar {
public:
    FontVar(PSFont* = nil);
    virtual ~FontVar();

    virtual PSFont* GetFont();
    virtual void SetFont(PSFont*);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    PSFont* _psfont;
};

//: current brush state variable
// <a href=../man3.1/statevars.html>man page</a>
class BrushVar : public StateVar {
public:
    BrushVar(PSBrush* = nil);
    virtual ~BrushVar();

    virtual PSBrush* GetBrush();
    virtual void SetBrush(PSBrush*);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    PSBrush* _psbrush;
};

//: current pattern state variable
// <a href=../man3.1/statevars.html>man page</a>
class PatternVar : public StateVar {
public:
    PatternVar(PSPattern* = nil);
    virtual ~PatternVar();

    virtual PSPattern* GetPattern();
    virtual void SetPattern(PSPattern*);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    PSPattern* _pspattern;
};

//: current color state variable
// <a href=../man3.1/statevars.html>man page</a>
class ColorVar : public StateVar {
public:
    ColorVar(PSColor* fg = nil, PSColor* bg = nil);
    virtual ~ColorVar();

    virtual PSColor* GetFgColor();
    virtual PSColor* GetBgColor();
    virtual void SetColors(PSColor* fg, PSColor* bg);

    virtual StateVar& operator = (StateVar&);

    virtual StateVar* Copy();
    virtual void Read(istream&);
    virtual void Write(ostream&);
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
protected:
    PSColor* _psfgcolor, *_psbgcolor;
};

#endif