This file is indexed.

/usr/include/GNUstep/InterfaceBuilder/IBDocuments.h is in libgorm-dev 1.2.23-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
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
/* IBDocuments.h
 *
 * Copyright (C) 2003 Free Software Foundation, Inc.
 *
 * Author:	Gregory John Casamento <greg_casamento@yahoo.com>
 * Date:	2003
 * 
 * This file is part of GNUstep.
 * 
 * This program 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 2.1 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 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
 */

#ifndef INCLUDED_IBDOCUMENTS_H
#define INCLUDED_IBDOCUMENTS_H

#include <Foundation/NSGeometry.h>
#include <InterfaceBuilder/IBEditors.h>
#include <InterfaceBuilder/IBConnectors.h>
#include <InterfaceBuilder/IBSystem.h>

IB_EXTERN NSString *IBDidOpenDocumentNotification;
IB_EXTERN NSString *IBWillSaveDocumentNotification;
IB_EXTERN NSString *IBDidSaveDocumentNotification;
IB_EXTERN NSString *IBWillCloseDocumentNotification;

@protocol IBDocuments <NSObject>
/**
 * Add a connection
 */
- (void) addConnector: (id<IBConnectors>)aConnector;

/**
 * Returns an array containing all connections for the receiver.
 */
- (NSArray*) allConnectors;

/**
 * Attaches an object to the document and makes the association
 * with the parent.
 */
- (void) attachObject: (id)anObject toParent: (id)aParent;

/**
 * Iterates over anArray and attaches all objects in it to the
 * receiver with aParent as the parent.
 */
- (void) attachObjects: (NSArray*)anArray toParent: (id)aParent;

/**
 * Returns an autoreleased array containing all connections for
 * the given destination.
 */ 
- (NSArray*) connectorsForDestination: (id)destination;

/** 
 * Returns an autoreleased array containing all connectors of
 * the given class for the destination. 
 */
- (NSArray*) connectorsForDestination: (id)destination
			      ofClass: (Class)aConnectorClass;
/**
 * Returns an autoreleased array containing all connections for
 * the given source.
 */
- (NSArray*) connectorsForSource: (id)source;

/**
 * Returns an autoreleased array containing all connectors of the
 * given class for the source.
 */
- (NSArray*) connectorsForSource: (id)source
			 ofClass: (Class)aConnectorClass;

/**
 * Returns YES, if the receiver contains anObject.
 */
- (BOOL) containsObject: (id)anObject;

/**
 * Returns YES, if the receiver contains an object with the given name
 * and parent.
 */
- (BOOL) containsObjectWithName: (NSString*)aName forParent: (id)parent;

/** 
 * Copies anObject to the pasteboard with the aType.
 */
- (BOOL) copyObject: (id)anObject
	       type: (NSString*)aType
       toPasteboard: (NSPasteboard*)aPasteboard;

/**
 * Copues an array of objects to aPasteboard with aType.
 */
- (BOOL) copyObjects: (NSArray*)anArray
		type: (NSString*)aType
	toPasteboard: (NSPasteboard*)aPasteboard;

/** 
 * Detaches anObject from the receiver.
 */
- (void) detachObject: (id)anObject;

/**
 * Detaches an array of objects from the receiver.
 */
- (void) detachObjects: (NSArray*)anArray;

/**
 * The path of the file which represents the document.
 */
- (NSString*) documentPath;

/**
 * Called when an editor is closed.
 */
- (void) editor: (id<IBEditors>)anEditor didCloseForObject: (id)anObject;

/**
 * Returns the associated editor for anObject, if flag is YES, it will
 * create an instance of the editor class if one does not already exist
 * for the given object.
 */
- (id<IBEditors>) editorForObject: (id)anObject
			   create: (BOOL)flag;

/**
 * Returns the associated subeditor for anObject, if flag is YES, it will
 * create an instance of the editor.
 */
- (id<IBEditors>) editorForObject: (id)anObject
			 inEditor: (id<IBEditors>)anEditor
			   create: (BOOL)flag;

/**
 * Returns the name associated with the object.
 */
- (NSString*) nameForObject: (id)anObject;

/** 
 * Returns the object for the given aName.
 */
- (id) objectForName: (NSString*)aName;

/**
 * Returns all objects in the receiver's name table.
 */
- (NSArray*) objects;

/**
 * Creates an editor, if necessary using editorForObject:create:, opens it
 * and brings the window containing the editor to the front.
 */
- (id<IBEditors>) openEditorForObject: (id)anObject;

/**
 * Returns the parent of the given editor.
 */
- (id<IBEditors, IBSelectionOwners>) parentEditorForEditor: (id<IBEditors>)anEditor;

/**
 * Return the parent of anObject.  The File's Owner is the root object in the
 * hierarchy, if anObject's parent is the Files's Owner, this method should return
 * nil.
 */
- (id) parentOfObject: (id)anObject;

/**
 * Pastes the given type from the aPasteboard.
 */
- (NSArray*) pasteType: (NSString*)aType
	fromPasteboard: (NSPasteboard*)aPasteboard
		parent: (id)parent;

/** 
 * Remove aConnector from the receiver.
 */
- (void) removeConnector: (id<IBConnectors>)aConnector;

/**
 * The current editor wants to give up the selection, this method iterates
 * over all editors and determines if any editors will take over the selection.
 * If one is found it is activated.
 */
- (void) resignSelectionForEditor: (id<IBEditors>)editor;

/**
 * Set aName for object in the receiver.  This replaces any name the object
 * may have previously had.
 */
- (void) setName: (NSString*)aName forObject: (id)object;

/**
 * Sets the currently selected object from the given editor.
 */
- (void) setSelectionFromEditor: (id<IBEditors>)anEditor;

/**
 * Mark document as having been changed.	
 */
- (void) touch;		

////  PRIVATE
/**
 * Returns a string with the name of the class for the given object.
 */

- (NSString *) classForObject: (id)obj;
- (NSArray *) actionsOfClass: (NSString *)className;
- (NSArray *) outletsOfClass: (NSString *)className;

@end

#endif