This file is indexed.

/usr/include/Xm/NotebookP.h is in libmotif-dev 2.3.4-5.

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
/* $XConsortium: NotebookP.h /main/4 1995/07/15 20:53:46 drk $ */
/*
 * Motif
 *
 * Copyright (c) 1987-2012, The Open Group. All rights reserved.
 *
 * These libraries and programs are free software; you can
 * redistribute them and/or modify them under the terms of the GNU
 * Lesser General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * These libraries and programs are distributed in the hope that
 * they 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 these librararies and programs; if not, write
 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
 * Floor, Boston, MA 02110-1301 USA
 */
/*
 * HISTORY
 */
#ifndef _XmNotebookP_h
#define _XmNotebookP_h

#include <Xm/XmP.h>
#include <Xm/ManagerP.h>
#include <Xm/ScrollFrameT.h>
#include <Xm/Notebook.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Notebook's constraint info. fields */
typedef struct _XmNotebookConstraintPart
{
    /* resources */
    int page_number;			/* page number */
    unsigned char child_type;		/* notebook child type */
    Boolean resizable;			/* is this child resizable? */

    /* private variables */
    Boolean active;			/* True if the child is active */
} XmNotebookConstraintPart, *XmNotebookConstraint;

typedef struct _XmNotebookConstraintRec
{
    XmManagerConstraintPart manager;
    XmNotebookConstraintPart notebook;
} XmNotebookConstraintRec, *XmNotebookConstraintPtr;


/* New fields for the Notebook widget class record */
typedef struct _XmNotebookClassPart
{
    XtPointer extension;
} XmNotebookClassPart;


/* Full class record declaration */
typedef struct _NotebookClassRec
{
    CoreClassPart core_class;
    CompositeClassPart composite_class;
    ConstraintClassPart constraint_class;
    XmManagerClassPart manager_class;
    XmNotebookClassPart	notebook_class;
} XmNotebookClassRec;

externalref XmNotebookClassRec xmNotebookClassRec;


/* New fields for the Notebook widget instance record */
typedef struct _XmNotebookPart
{
    /* resources */
    int current_page_number;		/* the current page number */
    int first_page_number;		/* the first page number */
    int last_page_number;		/* the last page number */
    unsigned char orientation;		/* notebook orientation */
    unsigned char back_page_pos;	/* position of back pages */
    Cardinal back_page_number;		/* the of back page lines */
    Dimension back_page_size;		/* the thickness of back pages */
    Pixel back_page_foreground;         /* foreground color for bk pgs */
    Pixel back_page_background;         /* background color for bk pgs */
    Pixel frame_background;		/* background color for frame */
    unsigned char binding_type;		/* binding type */
    Pixmap binding_pixmap;		/* pixmap for the binding */
    Pixmap spiral_pixmap;		/* pixmap for the spiral binding */
    Dimension binding_width;		/* the width of the binding */
    Dimension margin_width;		/* horizontal margin between widgets */
    Dimension margin_height;		/* vertical margin between widgets */
    Dimension major_spacing;		/* gap between major tabs */
    Dimension minor_spacing;		/* gap between minor tabs */
    Dimension shadow_thickness;		/* notebook frame shadow thickness */
    XtCallbackList page_change_callback;/* the page change callback */

    /* child widgets */
    Widget scroller;			/* the page scroller widget */
    Widget scroller_child;		/* TextF child of def page scroller */
    Widget next_major;			/* next major tab scroll button */
    Widget prev_major;			/* prev major tab scroll button */
    Widget next_minor;			/* next minor tab scroll button */
    Widget prev_minor;			/* prev minor tab scroll button */

    /* preferred children sizes */
    Dimension real_binding_width;	/* real binding width */
    Dimension real_back_page_number;	/* real back page number */
    Dimension page_width;		/* width of page widgets */
    Dimension page_height;		/* height of page widgets */
    Dimension status_width;		/* width of the status areas */
    Dimension status_height;		/* height of the status  areas */
    Dimension major_width;		/* width of major tabs */
    Dimension major_height;		/* height of major tabs */
    Dimension minor_width;		/* width of minor tabs */
    Dimension minor_height;		/* height of minor tabs */
    Dimension scroller_width;		/* width of the page scroller */
    Dimension scroller_height;		/* height of the page scroller */
    Dimension major_scroller_width;	/* width of major scrollers */
    Dimension major_scroller_height;	/* height of major scroller */
    Dimension minor_scroller_width;	/* width of minor scrollers */
    Dimension minor_scroller_height;	/* height of minor scrollers */
    Dimension frame_width;		/* width of the frame */
    Dimension frame_height;		/* height of the frame */

    /* for layouting tabs */
    Widget first_major;			/* the first major tab */
    Widget old_top_major;		/* the old top major tab */
    Widget top_major;			/* the top major tab */
    Widget last_major;			/* the last major tab */
    Widget first_minor;			/* the first minor tab */
    Widget old_top_minor;		/* the old top minor tab */
    Widget top_minor;			/* the top minor tab */
    Widget last_minor;			/* the last minor tab */
    Widget constraint_child;		/* changing geom during ConstraintSV */

    /* shadow thickness state for current page major and minor tab */
    Dimension major_shadow_thickness;	/* joined major tab shadow thickness */
    Dimension minor_shadow_thickness;	/* joined minor tab shadow thickness */
    Widget major_shadow_child;		/* saved shadow thickness tab */
    Widget minor_shadow_child;		/* saved shadow thickness tab */
    Boolean in_setshadow;		/* setting tab shadow thickness */

    /* extra position information */
    unsigned char major_pos;		/* position of major tabs */
    unsigned char minor_pos;		/* position of minor tabs */
    unsigned char binding_pos;		/* binding position */

    /* other misc. variables */
    unsigned char which_tab;		/* currently active tab type */
    int last_alloc_num;			/* lastly allocated page number */
    unsigned char scroller_status;	/* status of the page scroller */
    unsigned short need_scroller;	/* need for tab scrollers */
    Boolean dynamic_last_page_num;	/* True if using dynamic last page# */
    Boolean in_callback;		/* True if processing a callback */
    GC back_page_gc;                    /* GC for drawing backpages */
    GC frame_gc;			/* GC for drawing frame */
    GC binding_gc;                      /* GC for drawing binding */
    GC foreground_gc;                   /* GC for drawing foreground */
    GC background_gc;                   /* GC for drawing background */

    Boolean first_change_managed;	/* flags 1st call to ChangeManaged */
    XmScrollFrameData scroll_frame_data; /* data for ScrollFrame trait */
} XmNotebookPart;


/* Full instance record declaration */
typedef struct _XmNotebookRec
{
    CorePart core;
    CompositePart composite;
    ConstraintPart constraint;
    XmManagerPart manager;
    XmNotebookPart notebook;
} XmNotebookRec;


/******************************************************************************
 *                                                                            *
 *                         constants & useful macros                          *
 *                                                                            *
 ******************************************************************************/

/* internal child types, must not conflict with XmRNBChildType enum */
#define XmMAJOR_TAB_SCROLLER            12
#define XmMINOR_TAB_SCROLLER            13
#define XmTAB_SCROLLER                  14

#ifdef __cplusplus
}
#endif

#endif /* _XmNotebookP_h */