This file is indexed.

/usr/include/OverlayUnidraw/ovfile.h is in ivtools-dev 1.2.11a1-2.

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
/*
 * Copyright (c) 1994,1995,1999 Vectaport Inc.
 *
 * 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 names of the copyright holders not be used in
 * advertising or publicity pertaining to distribution of the software
 * without specific, written prior permission.  The copyright holders make
 * no representations about the suitability of this software for any purpose.
 * It is provided "as is" without express or implied warranty.
 *
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
 * IN NO EVENT SHALL THE COPYRIGHT HOLDERS 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.
 * 
 */

#ifndef ovfile_h
#define ovfile_h

#include <OverlayUnidraw/ovcomps.h>
#include <OverlayUnidraw/ovviews.h>
#include <OverlayUnidraw/scriptview.h>

//: component used to import a sub-tree by pathname.
class OverlayFileComp : public OverlaysComp {
public:
    OverlayFileComp(OverlayComp* parent = nil);
    // empty constructor.
    OverlayFileComp(Graphic*, OverlayComp* parent = nil);
    // construct for arbitrary graphic -- pathname set later.
    OverlayFileComp(istream&, OverlayComp* parent = nil);
    // construct from pathname read from istream.
    virtual ~OverlayFileComp();

    virtual void Append(GraphicComp*);
    // regular append then copy pointer to attribute list up to OverlayFileComp.

    virtual void Interpret(Command*);
    // disallow ungroup command, otherwise pass to base class.
    virtual void Uninterpret(Command*);
    // disallow undoing ungroup command, otherwise pass to base class.

    virtual Component* Copy();
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);

    void SetPathName(const char*);
    // concrete implementation of this method.
    const char* GetPathName();
    // concrete implementation of this method.
    OverlayIdrawComp* GetIdrawComp();
    // return point to underlying top-level component.
    virtual boolean operator == (OverlayComp&);


    void SetPopenFlag(boolean flg) { _popenflg = flg; }
    // set flag that indicates whether to read from command pipe.
    boolean GetPopenFlag() { return _popenflg; }
    // get flag that indicates whether to read from command pipe.

    virtual void AdjustBaseDir(const char* oldpath, const char* newpath);
    // adjust base directory used for generating pathnames for this component,
    // done when a document is saved to a new location.
protected:
    ParamList* GetParamList();
    void GrowParamList(ParamList*);
    static ParamList* _overlay_file_params;
    char * _pathname;
    boolean _popenflg;

    CLASS_SYMID2("OverlayFileComp", OVFILE_COMP);
};

//: graphical view of OverlayFileComp.
class OverlayFileView : public OverlaysView {
public:
    OverlayFileView();

    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);

};

//: serialized view of OverlayFileComp.
class OverlayFileScript : public OverlaysScript {
public:
    virtual ClassId GetClassId();
    virtual boolean IsA(ClassId);
    OverlayFileScript(OverlayFileComp* = nil);
    virtual boolean Definition (ostream&);
    // output record with only pathname to represent entire subtree.
    virtual boolean EmitGS(ostream&, Clipboard*, boolean);
    // skip OverlaysScript::EmitGS for OverlayScript::EmitGS.

    static int ReadPathName(istream&, void*, void*, void*, void*);
    // read pathname from istream and used to construct OverlayIdrawComp
    // inside an OverlayFileComp.
};

#endif