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

« back to all changes in this revision

Viewing changes to unix/xc/lib/Xaw/ViewportP.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
/*
 
2
 * $Xorg: ViewportP.h,v 1.4 2001/02/09 02:03:47 xorgcvs Exp $
 
3
 * Private declarations for ViewportWidgetClass
 
4
 */
 
5
 
 
6
/************************************************************
 
7
 
 
8
Copyright 1987, 1998  The Open Group
 
9
 
 
10
Permission to use, copy, modify, distribute, and sell this software and its
 
11
documentation for any purpose is hereby granted without fee, provided that
 
12
the above copyright notice appear in all copies and that both that
 
13
copyright notice and this permission notice appear in supporting
 
14
documentation.
 
15
 
 
16
The above copyright notice and this permission notice shall be included in
 
17
all copies or substantial portions of the Software.
 
18
 
 
19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
20
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
21
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
22
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
23
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
24
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
25
 
 
26
Except as contained in this notice, the name of The Open Group shall not be
 
27
used in advertising or otherwise to promote the sale, use or other dealings
 
28
in this Software without prior written authorization from The Open Group.
 
29
 
 
30
 
 
31
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
 
32
 
 
33
                        All Rights Reserved
 
34
 
 
35
Permission to use, copy, modify, and distribute this software and its 
 
36
documentation for any purpose and without fee is hereby granted, 
 
37
provided that the above copyright notice appear in all copies and that
 
38
both that copyright notice and this permission notice appear in 
 
39
supporting documentation, and that the name of Digital not be
 
40
used in advertising or publicity pertaining to distribution of the
 
41
software without specific, written prior permission.  
 
42
 
 
43
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 
44
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 
45
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 
46
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
47
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
48
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 
49
SOFTWARE.
 
50
 
 
51
********************************************************/
 
52
/* $XFree86: xc/lib/Xaw/ViewportP.h,v 1.8 2001/12/14 19:54:46 dawes Exp $ */
 
53
 
 
54
#ifndef _ViewportP_h
 
55
#define _ViewportP_h
 
56
 
 
57
#include <X11/Xaw/Viewport.h>
 
58
#include <X11/Xaw/FormP.h>
 
59
 
 
60
typedef struct {
 
61
    XtPointer extension;
 
62
} ViewportClassPart;
 
63
 
 
64
typedef struct _ViewportClassRec {
 
65
    CoreClassPart       core_class;
 
66
    CompositeClassPart  composite_class;
 
67
    ConstraintClassPart constraint_class;
 
68
    FormClassPart       form_class;
 
69
    ViewportClassPart   viewport_class;
 
70
} ViewportClassRec;
 
71
 
 
72
extern ViewportClassRec viewportClassRec;
 
73
 
 
74
typedef struct _ViewportPart {
 
75
    /* resources */
 
76
    Boolean forcebars;          /* Whether we should always display
 
77
                                   the selected scrollbars */
 
78
    Boolean allowhoriz;         /* Whether we allow horizontal scrollbars */
 
79
    Boolean allowvert;          /* Whether we allow vertical scrollbars */
 
80
    Boolean usebottom;          /* True if horiz bars appear at bottom */
 
81
    Boolean useright;           /* True if vert bars appear at right */
 
82
    XtCallbackList report_callbacks;/* when size/position changes */
 
83
 
 
84
    /* private */
 
85
    Widget clip, child;         /* The clipping and (scrolled) child widgets */
 
86
    Widget horiz_bar, vert_bar; /* What scrollbars we currently have */
 
87
#ifndef OLDXAW
 
88
    XtPointer pad[4];   /* for future use and keep binary compatability */
 
89
#endif
 
90
} ViewportPart;
 
91
 
 
92
typedef struct _ViewportRec {
 
93
    CorePart            core;
 
94
    CompositePart       composite;
 
95
    ConstraintPart      constraint;
 
96
    FormPart            form;
 
97
    ViewportPart        viewport;
 
98
} ViewportRec;
 
99
 
 
100
typedef struct {
 
101
    Bool reparented;            /* True if child has been re-parented */
 
102
} ViewportConstraintsPart;
 
103
 
 
104
typedef struct _ViewportConstraintsRec {
 
105
    FormConstraintsPart         form;
 
106
    ViewportConstraintsPart     viewport;
 
107
} ViewportConstraintsRec, *ViewportConstraints;
 
108
 
 
109
#endif /* _ViewportP_h */