~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/xman/ScrollByLP.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $XConsortium: ScrollByLP.h,v 1.9 94/04/17 20:43:49 keith Exp $ */
 
2
/*
 
3
 
 
4
Copyright (c) 1987, 1988  X Consortium
 
5
 
 
6
Permission is hereby granted, free of charge, to any person obtaining
 
7
a copy of this software and associated documentation files (the
 
8
"Software"), to deal in the Software without restriction, including
 
9
without limitation the rights to use, copy, modify, merge, publish,
 
10
distribute, sublicense, and/or sell copies of the Software, and to
 
11
permit persons to whom the Software is furnished to do so, subject to
 
12
the following conditions:
 
13
 
 
14
The above copyright notice and this permission notice shall be included
 
15
in all copies or substantial portions of the Software.
 
16
 
 
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
18
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
19
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
20
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
21
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
22
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
23
OTHER DEALINGS IN THE SOFTWARE.
 
24
 
 
25
Except as contained in this notice, the name of the X Consortium shall
 
26
not be used in advertising or otherwise to promote the sale, use or
 
27
other dealings in this Software without prior written authorization
 
28
from the X Consortium.
 
29
 
 
30
*/
 
31
 
 
32
 
 
33
#ifndef _XtScrollByLinePrivate_h
 
34
#define _XtScrollByLinePrivate_h
 
35
 
 
36
#include <X11/Xaw/SimpleP.h>
 
37
 
 
38
#include "ScrollByL.h"
 
39
 
 
40
/***********************************************************************
 
41
 *
 
42
 * ScrollByLine Widget Private Data
 
43
 *
 
44
 ***********************************************************************/
 
45
 
 
46
/* New fields for the ScrollByLine widget class record */
 
47
typedef struct {
 
48
     int mumble;   /* No new procedures */
 
49
} ScrollByLineClassPart;
 
50
 
 
51
/* Full class record declaration */
 
52
typedef struct _ScrollByLineClassRec {
 
53
    CoreClassPart         core_class;
 
54
    SimpleClassPart       simple_class;
 
55
    ScrollByLineClassPart scrolled_widget_class;
 
56
} ScrollByLineClassRec;
 
57
 
 
58
extern ScrollByLineClassRec scrollByLineClassRec;
 
59
 
 
60
/* New fields for the ScrollByLine widget record */
 
61
typedef struct _ScrollByLinePart {
 
62
  Pixel foreground;             /* The color for the forground of the text. */
 
63
  Boolean force_vert,           /* Must have scrollbar visable */
 
64
    use_right;                  /* put scroll bar on right side of window. */
 
65
  FILE * file;                  /* The file to display. */
 
66
  Dimension indent;             /* amount to indent the file. */
 
67
  XFontStruct * bold_font,      /* The four fonts. */
 
68
    * normal_font,
 
69
    * italic_font,
 
70
    * symbol_font;
 
71
  
 
72
/* variables not in resource list. */
 
73
 
 
74
  Widget bar;                   /* The scrollbar. */
 
75
  int font_height;              /* the height of the font. */
 
76
  int line_pointer;             /* The line that currently is at the top 
 
77
                                   of the window being displayed. */
 
78
  Dimension offset;             /* Drawing offset because of scrollbar. */
 
79
  GC move_gc;                   /* GC to use when moving the text. */
 
80
  GC bold_gc, normal_gc, italic_gc, symbol_gc; /* gc for drawing. */
 
81
 
 
82
  char ** top_line;             /* The top line of the file. */
 
83
  int lines;                    /* number of line in the file. */
 
84
} ScrollByLinePart;
 
85
 
 
86
/****************************************************************
 
87
 *
 
88
 * Full instance record declaration
 
89
 *
 
90
 ****************************************************************/
 
91
 
 
92
typedef struct _ScrollByLineRec {
 
93
    CorePart          core;
 
94
    SimplePart        simple;
 
95
    ScrollByLinePart  scroll;
 
96
} ScrollByLineRec;
 
97
 
 
98
#endif /* _XtScrollByLinePrivate_h --- DON'T ADD STUFF AFTER THIS LINE */