~ubuntu-branches/debian/sid/x11-apps/sid

« back to all changes in this revision

Viewing changes to xedit/printdialogprivates.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2011-02-09 18:15:58 UTC
  • mfrom: (9.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20110209181558-4wta1q27k11xrtae
Tags: 7.6+4
* debian/rules::get-tarballs: pass "--destdir ." to uscan
* xbiff 1.0.3.
* Remove Brice Goglin and David Nusinow from Uploaders.  Thanks for your
  work!
* Drop Pre-Depends on x11-common.
* Bump Standards-Version to 3.9.1.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * $Xorg: printdialogprivates.h,v 1.1 2004/05/12 02:05:54 gisburn Exp $
3
 
 *
4
 
Copyright 2004 Roland Mainz <roland.mainz@nrubsig.org>
5
 
 
6
 
Permission to use, copy, modify, distribute, and sell this software and its
7
 
documentation for any purpose is hereby granted without fee, provided that
8
 
the above copyright notice appear in all copies and that both that
9
 
copyright notice and this permission notice appear in supporting
10
 
documentation.
11
 
 
12
 
The above copyright notice and this permission notice shall be included in
13
 
all copies or substantial portions of the Software.
14
 
 
15
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18
 
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19
 
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
 
 
22
 
Except as contained in this notice, the name of The Open Group shall not be
23
 
used in advertising or otherwise to promote the sale, use or other dealings
24
 
in this Software without prior written authorization from The Open Group.
25
 
 *
26
 
 */
27
 
 
28
 
#ifndef _XawPrintDialogP_h
29
 
#define _XawPrintDialogP_h 1
30
 
 
31
 
#include <X11/IntrinsicP.h>
32
 
#include <X11/StringDefs.h>
33
 
#include <X11/Xos.h>
34
 
#include <X11/Xmu/Misc.h>
35
 
#include <X11/CoreP.h>
36
 
#include <X11/Xaw/AsciiText.h>
37
 
#include <X11/Xaw/Cardinals.h>
38
 
#include <X11/Xaw/Command.h>    
39
 
#include <X11/Xaw/Label.h>
40
 
#include <X11/Xaw/DialogP.h>
41
 
#include <X11/Xaw/XawInit.h>
42
 
#include <X11/Xaw/Dialog.h>
43
 
#include <X11/Xaw/FormP.h>
44
 
 
45
 
/* From Xaw/Privates.h */
46
 
#ifndef XtWidth
47
 
#define XtWidth(w)        (((RectObj)w)->rectangle.width)
48
 
#endif
49
 
#ifndef XtHeight
50
 
#define XtHeight(w)       (((RectObj)w)->rectangle.height)
51
 
#endif
52
 
 
53
 
 
54
 
typedef struct {
55
 
    XtPointer extension;
56
 
} PrintDialogClassPart;
57
 
 
58
 
typedef struct _PrintDialogClassRec {
59
 
    CoreClassPart         core_class;
60
 
    CompositeClassPart    composite_class;
61
 
    ConstraintClassPart   constraint_class;
62
 
    FormClassPart         form_class;
63
 
    PrintDialogClassPart  print_dialog_class;
64
 
} PrintDialogClassRec;
65
 
 
66
 
extern PrintDialogClassRec printDialogClassRec;
67
 
 
68
 
typedef struct _PrintDialogPart {
69
 
    /* resources */
70
 
    String         label;               /* description of the dialog     */
71
 
    String         value;               /* for the user response         */
72
 
    Pixmap         icon;                /* icon bitmap                   */
73
 
    XtCallbackList ok_callback,
74
 
                   cancel_callback;
75
 
        
76
 
    /* private */
77
 
    Widget      iconW;          /* widget to display the icon    */
78
 
    
79
 
    struct
80
 
    {
81
 
        Widget form,
82
 
               innerform,
83
 
               desclabel,
84
 
               desc,
85
 
               info,
86
 
               namelabel,
87
 
               name,
88
 
               selectprinter,
89
 
               filenamelabel,
90
 
               filename,
91
 
               selectfile,
92
 
               printtoprinter,
93
 
               printtofile,
94
 
               ok,
95
 
               setup,
96
 
               cancel;
97
 
    } main;
98
 
 
99
 
    Bool   printToFile;
100
 
    char  *filename;
101
 
    Bool   canPrint,       /* can we print ? */
102
 
           canReallyPrint; /* is it really save to print ? */
103
 
    XpuColorspaceRec *selected_colorspace;
104
 
 
105
 
    struct
106
 
    {
107
 
        Widget popup,
108
 
               form,
109
 
               list,
110
 
               ok,
111
 
               cancel;
112
 
    } selectPrinter;
113
 
 
114
 
    struct
115
 
    {
116
 
      Widget popup,
117
 
             form,
118
 
             paperlist,
119
 
             resolutionlist,
120
 
             orientationlist,
121
 
             plexlist,
122
 
             colorspacelist,
123
 
             jobcopieslabel,
124
 
             jobcopies,
125
 
             ok,
126
 
             cancel;
127
 
    } setup;
128
 
 
129
 
    struct
130
 
    {
131
 
        Widget dialog,
132
 
               shell;
133
 
    } selectFile;
134
 
 
135
 
    XPPrinterList  printerlist;
136
 
    int            num_printers;
137
 
    String        *widget_printerlist;
138
 
 
139
 
    String     printer_name;
140
 
    Display   *pdpy;
141
 
    XPContext  pcontext;
142
 
 
143
 
    XpuMediumSourceSizeList  paperlist;
144
 
    int                      num_papers;
145
 
    String                  *widget_paperlist;
146
 
    
147
 
    XpuResolutionList        resolutionlist;
148
 
    int                      num_resolutions;
149
 
    String                  *widget_resolutionlist;
150
 
 
151
 
    XpuOrientationList       orientationlist;
152
 
    int                      num_orientations;
153
 
    String                  *widget_orientationlist;
154
 
 
155
 
    XpuPlexList              plexlist;
156
 
    int                      num_plex;
157
 
    String                  *widget_plexlist;
158
 
 
159
 
    XpuColorspaceList        colorspacelist;
160
 
    int                      num_colorspaces;
161
 
    String                  *widget_colorspacelist;
162
 
} PrintDialogPart;
163
 
 
164
 
typedef struct _PrintDialogRec {
165
 
    CorePart            core;
166
 
    CompositePart       composite;
167
 
    ConstraintPart      constraint;
168
 
    FormPart            form;
169
 
    PrintDialogPart     printdialog;
170
 
} PrintDialogRec;
171
 
 
172
 
typedef struct {
173
 
    XtPointer extension;
174
 
} PrintDialogConstraintsPart;
175
 
 
176
 
typedef struct _PrintDialogConstraintsRec {
177
 
    FormConstraintsPart        form;
178
 
    PrintDialogConstraintsPart printdialog;
179
 
} PrintDialogConstraintsRec, *PrintDialogConstraints;
180
 
 
181
 
#endif /* !_XawPrintDialogP_h */
182