This file is indexed.

/usr/include/gtkmathview/MathView/AreaFactory.hh is in libgtkmathview-dev 0.8.0-7.

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
// Copyright (C) 2000-2007, Luca Padovani <padovani@sti.uniurb.it>.
// 
// This file is part of GtkMathView, a flexible, high-quality rendering
// engine for MathML documents.
// 
// GtkMathView is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
// 
// GtkMathView 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
// Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

#ifndef __AreaFactory_hh__
#define __AreaFactory_hh__

#include "BoxArea.hh"
#include "BoxedLayoutArea.hh"
#include "ColorArea.hh"
#include "GlyphStringArea.hh"
#include "GlyphWrapperArea.hh"
#include "HideArea.hh"
#include "HorizontalArrayArea.hh"
#include "HorizontalFillerArea.hh"
#include "HorizontalSpaceArea.hh"
#include "IdArea.hh"
#include "IgnoreArea.hh"
#include "InkArea.hh"
#include "Object.hh"
#include "OverlapArrayArea.hh"
#include "ShiftArea.hh"
#include "StepArea.hh"
#include "VerticalArrayArea.hh"
#include "VerticalFillerArea.hh"
#include "VerticalSpaceArea.hh"
#include "CombinedGlyphArea.hh"

class GMV_MathView_EXPORT AreaFactory : public Object
{
protected:
  AreaFactory(void) { }
  virtual ~AreaFactory() { }

public:
  static SmartPtr<AreaFactory> create(void)
  { return new AreaFactory(); }

  virtual SmartPtr<GlyphWrapperArea> glyphWrapper(const AreaRef& area, CharIndex length) const
  { return GlyphWrapperArea::create(area, length); }
  virtual SmartPtr<BoxArea> box(const AreaRef& area, const BoundingBox& box) const
  { return BoxArea::create(area, box); }
  virtual SmartPtr<ColorArea> color(const AreaRef& area, const RGBColor& color) const
  { return ColorArea::create(area, color); }
  virtual SmartPtr<HideArea> hide(const AreaRef& area) const
  { return HideArea::create(area); }
  virtual SmartPtr<HorizontalArrayArea> horizontalArray(const std::vector<AreaRef>& content) const
  { return HorizontalArrayArea::create(content); }
  virtual SmartPtr<GlyphStringArea> glyphString(const std::vector<AreaRef>& content, const std::vector<CharIndex>& counters, UCS4String s) const
  { return GlyphStringArea::create(content, counters, s); }
  virtual SmartPtr<VerticalArrayArea> verticalArray(const std::vector<AreaRef>& content, AreaIndex ref) const
  { return VerticalArrayArea::create(content, ref); }
  virtual SmartPtr<OverlapArrayArea> overlapArray(const std::vector<AreaRef>& content) const
  { return OverlapArrayArea::create(content); }
  virtual SmartPtr<IdArea> id(const AreaRef& area) const
  { return IdArea::create(area); }
  virtual SmartPtr<IgnoreArea> ignore(const AreaRef& area) const
  { return IgnoreArea::create(area); }
  virtual SmartPtr<InkArea> ink(const AreaRef& area) const
  { return InkArea::create(area); }
  virtual SmartPtr<HorizontalSpaceArea> horizontalSpace(const scaled& w) const
  { return HorizontalSpaceArea::create(w); }
  virtual SmartPtr<VerticalSpaceArea> verticalSpace(const scaled& h, const scaled& d) const
  { return VerticalSpaceArea::create(h, d); }
  virtual SmartPtr<HorizontalFillerArea> horizontalFiller(void) const
  { return HorizontalFillerArea::create(); }
  virtual SmartPtr<VerticalFillerArea> verticalFiller(void) const
  { return VerticalFillerArea::create(); }
  virtual SmartPtr<ShiftArea> shift(const AreaRef& area, const scaled& s) const
  { return ShiftArea::create(area, s); }
  virtual SmartPtr<StepArea> step(const AreaRef& area, const scaled& s) const
  { return StepArea::create(area, s); }
  virtual SmartPtr<BoxedLayoutArea> boxedLayout(const BoundingBox& box, const std::vector<BoxedLayoutArea::XYArea>& content) const
  { return BoxedLayoutArea::create(box, content); }
  virtual SmartPtr<CombinedGlyphArea> combinedGlyph(const AreaRef& base, const AreaRef& accent,
						    const AreaRef& under,
						    const scaled& dx, const scaled& dy,
						    const scaled& dxUnder) const
  { return CombinedGlyphArea::create(base, accent, under, dx, dy, dxUnder); }

  // macro areas
  virtual AreaRef background(const AreaRef& area, const RGBColor& color) const;
  virtual AreaRef horizontalLine(const scaled& thickness, const RGBColor& color) const;
  virtual AreaRef fixedHorizontalLine(const scaled& thickness, const scaled& length, const RGBColor& color) const;
  virtual AreaRef verticalLine(const scaled& thickness, const RGBColor& color) const;
  virtual AreaRef fixedVerticalLine(const scaled& thickness, const scaled& height, const scaled& depth, const RGBColor& color) const;
  virtual AreaRef center(const AreaRef& area) const;
  virtual AreaRef left(const AreaRef& area) const;
  virtual AreaRef right(const AreaRef& area) const;
  virtual AreaRef middle(const AreaRef& area) const;
  virtual AreaRef top(const AreaRef& area) const;
  virtual AreaRef bottom(const AreaRef& area) const;
  virtual AreaRef freeze(const AreaRef& area) const;
};

#endif // __AreaFactory_hh__