This file is indexed.

/usr/include/wxSVG/CSSValue.h is in libwxsvg-dev 2:1.1.6~dfsg-1.

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
//////////////////////////////////////////////////////////////////////////////
// Name:        CSSValue.h
// Purpose:     
// Author:      Alex Thuering
// Created:     2005/05/03
// RCS-ID:      $Id: CSSValue.h,v 1.9 2005/11/06 17:31:36 ntalex Exp $
// Copyright:   (c) 2005 Alex Thuering
// Licence:     wxWindows licence
//////////////////////////////////////////////////////////////////////////////

#ifndef wxSVG_CSS_VALUE_H
#define wxSVG_CSS_VALUE_H

#include <wx/string.h>
#include <wx/geometry.h>
#include "RGBColor.h"
#include "CSSValues.h"

enum wxCSS_VALUE_TYPE
{
  wxCSS_INHERIT = 0,
  wxCSS_PRIMITIVE_VALUE,
  wxCSS_VALUE_LIST,
  wxCSS_SVG_COLOR,
  wxCSS_SVG_PAINT,
  wxCSS_CUSTOM = 3
};

class wxCSSValue
{
  protected:
	wxCSS_VALUE_TYPE m_cssValueType;
  
  public:
	wxCSSValue(): m_cssValueType(wxCSS_INHERIT) {}
	wxCSSValue(wxCSS_VALUE_TYPE cssValueType): m_cssValueType(cssValueType) {}
	virtual ~wxCSSValue() {}
	
	inline wxCSS_VALUE_TYPE GetCSSValueType() const { return m_cssValueType; }
	inline void SetCSSValueType(wxCSS_VALUE_TYPE cssValueType) { m_cssValueType = cssValueType; }
	
	virtual wxString GetCSSText() const = 0;
	virtual wxCSSValue* Clone() const = 0;
  
  public:
	static wxCSS_VALUE GetValueId(wxString value);
	static wxString GetValueString(wxCSS_VALUE value);
};

enum wxCSS_PRIMITIVE_TYPE
{
  wxCSS_UNKNOWN    = 0,
  wxCSS_NUMBER     = 1,
  wxCSS_PERCENTAGE = 2,
  wxCSS_EMS        = 3,
  wxCSS_EXS        = 4,
  wxCSS_PX         = 5,
  wxCSS_CM         = 6,
  wxCSS_MM         = 7,
  wxCSS_IN         = 8,
  wxCSS_PT         = 9,
  wxCSS_PC         = 10,
  wxCSS_DEG        = 11,
  wxCSS_RAD        = 12,
  wxCSS_GRAD       = 13,
  wxCSS_MS         = 14,
  wxCSS_S          = 15,
  wxCSS_HZ         = 16,
  wxCSS_KHZ        = 17,
  wxCSS_DIMENSION  = 18,
  wxCSS_STRING     = 19,
  wxCSS_URI        = 20,
  wxCSS_IDENT      = 21,
  wxCSS_ATTR       = 22,
  wxCSS_COUNTER    = 23,
  wxCSS_RECT       = 24,
  wxCSS_RGBCOLOR   = 25
};

class wxCSSPrimitiveValue: public wxCSSValue
{
  protected:
	wxCSS_PRIMITIVE_TYPE m_primitiveType;
	union
	{
	  wxCSS_VALUE m_ident;
	  double m_number;
	  wxString* m_string;
	  wxRect* m_rect;
	  wxRGBColor* m_color;
	};
  
  public:
	wxCSSPrimitiveValue(): wxCSSValue(wxCSS_PRIMITIVE_VALUE),
      m_primitiveType(wxCSS_UNKNOWN) {}
	wxCSSPrimitiveValue(double value): wxCSSValue(wxCSS_PRIMITIVE_VALUE),
      m_primitiveType(wxCSS_NUMBER), m_number(value) {}
	wxCSSPrimitiveValue(const wxString& value): wxCSSValue(wxCSS_PRIMITIVE_VALUE),
      m_primitiveType(wxCSS_STRING), m_string(new wxString(value)) {}
	wxCSSPrimitiveValue(const wxRect& value): wxCSSValue(wxCSS_PRIMITIVE_VALUE),
      m_primitiveType(wxCSS_RECT), m_rect(new wxRect(value)) {}
	wxCSSPrimitiveValue(const wxRGBColor& value): wxCSSValue(wxCSS_PRIMITIVE_VALUE),
      m_primitiveType(wxCSS_RGBCOLOR), m_color(new wxRGBColor(value)) {}
	wxCSSPrimitiveValue(wxCSS_VALUE value): wxCSSValue(wxCSS_PRIMITIVE_VALUE),
      m_primitiveType(wxCSS_IDENT), m_ident(value) {}
	wxCSSPrimitiveValue(const wxCSSPrimitiveValue& src);
    ~wxCSSPrimitiveValue() { CleanUp(); }
	wxCSSValue* Clone() const { return new wxCSSPrimitiveValue(*this); }
	
	inline wxCSS_PRIMITIVE_TYPE GetCSSPrimitiveType() const { return m_primitiveType; }
	inline void SetCSSPrimitiveType(wxCSS_PRIMITIVE_TYPE primitiveType) { m_primitiveType = primitiveType; }
	
	wxString GetCSSText() const;
	
	void     SetStringValue(wxCSS_PRIMITIVE_TYPE stringType, const wxString& stringValue);
	wxString GetStringValue() const;
	
	void   SetFloatValue(wxCSS_PRIMITIVE_TYPE unitType, double floatValue);
	double GetFloatValue(wxCSS_PRIMITIVE_TYPE unitType = wxCSS_NUMBER) const;
	
	void   SetRectValue(const wxRect& rect);
	wxRect GetRectValue() const;
	
	void SetRGBColorValue(const wxRGBColor& color);
	wxRGBColor GetRGBColorValue() const;
	
	void SetIdentValue(wxCSS_VALUE ident);
	wxCSS_VALUE GetIdentValue() const;
	
  protected:
	void CleanUp();
};

#endif //wxSVG_CSS_VALUE_H