]> www.fi.muni.cz Git - evince.git/blob - pdf/xpdf/xpdf.ltk
disable font embedding hack introduced on 2002-12-09 to fix build with
[evince.git] / pdf / xpdf / xpdf.ltk
1 #========================================================================
2 #
3 # xpdf.ltk
4 #
5 # Copyright 1996-2002 Glyph & Cog, LLC
6 #
7 #========================================================================
8
9 #------------------------------------------------------------------------
10 # main window
11 #------------------------------------------------------------------------
12
13 Window(func:makeWindow title:"xpdf" icon:xpdfIcon) {
14   Box(x:1 y:2 xfill:1 yfill:1) {
15
16     # canvas and scrollbars
17     Box(x:2 y:2 xfill:1 yfill:1) {
18       Box1(xfill:1 yfill:1 sunken) {
19         ScrollingCanvas(name:"canvas" w:100 h:100)
20       }
21       Box1(yfill:1) {
22         Scrollbar(name:"vScrollbar" vert min:0 max:100 move:&scrollVertCbk)
23       }
24       Box1(xfill:1) {
25         Scrollbar(name:"hScrollbar" horiz min:0 max:100 move:&scrollHorizCbk)
26       }
27       Box1() { Empty() }
28     }
29
30     # buttons, page number, etc.
31     Box(x:15 y:1 xfill:1) {
32       Box1() {
33         IconButton(bitmap:backArrow_bits w:backArrow_width
34                    h:backArrow_height press:&backCbk)
35       }
36       Box1() {
37         IconButton(bitmap:dblLeftArrow_bits w:dblLeftArrow_width
38                    h:dblLeftArrow_height press:&prevTenPageCbk)
39       }
40       Box1() {
41         IconButton(bitmap:leftArrow_bits w:leftArrow_width
42                    h:leftArrow_height press:&prevPageCbk)
43       }
44       Box1() {
45         IconButton(bitmap:rightArrow_bits w:rightArrow_width
46                    h:rightArrow_height press:&nextPageCbk)
47       }
48       Box1() {
49         IconButton(bitmap:dblRightArrow_bits w:dblRightArrow_width
50                    h:dblRightArrow_height press:&nextTenPageCbk)
51       }
52       Box1() {
53         IconButton(bitmap:forwardArrow_bits w:forwardArrow_width
54                    h:forwardArrow_height press:&forwardCbk)
55       }
56       Box1() {
57         Label(text:"Page"
58               font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
59       }
60       Box1(sunken left:4 right:4) {
61         TextIn(name:"pageNum" mw:6 done:&pageNumCbk
62                font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
63       }
64       Box1() {
65         Label(name:"numPages" maxLength length:9
66               font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
67       }
68       Box1() {
69         MenuButton(name:"zoom" menu:zoomMenu)
70       }
71       Box1() {
72         IconButton(bitmap:find_bits w:find_width
73                    h:find_height press:&findCbk)
74       }
75       Box1() {
76         IconButton(bitmap:postscript_bits w:postscript_width
77                    h:postscript_height press:&postScriptCbk)
78       }
79       Box1() {
80         IconButton(bitmap:about_bits w:about_width h:about_height
81                    press:&aboutCbk)
82       }
83       Box1(xfill:1) {
84         Label(name:"link" fixedWidth
85               font:"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*")
86       }
87       Box1() { Button(label:"Quit" press:&quitCbk) }
88     }
89   }
90 }
91
92 #------------------------------------------------------------------------
93 # full-screen main window
94 #------------------------------------------------------------------------
95
96 Window(func:makeFullScreenWindow title:"xpdf" icon:xpdfIcon) {
97   Box(x:1 y:1 xfill:1 yfill:1) {
98     ScrollingCanvas(name:"canvas" w:100 h:100)
99   }
100 }
101
102 #------------------------------------------------------------------------
103 # menu for main window
104 #------------------------------------------------------------------------
105
106 Menu(func:makeMenu title:"xpdf" n:8) {
107   MenuItem(text:"Open..."      shortcut:"O"     num:menuOpen
108            select:&menuCbk)
109   MenuItem(text:"Reload"       shortcut:"R"     num:menuReload
110            select:&menuCbk)
111   MenuItem(text:"Save as..."                    num:menuSavePDF
112            select:&menuCbk)
113   MenuItem(text:NULL)
114   MenuItem(text:"Rotate counterclockwise"       num:menuRotateCCW
115            select:&menuCbk)
116   MenuItem(text:"Rotate clockwise"              num:menuRotateCW
117            select:&menuCbk)
118   MenuItem(text:NULL)
119   MenuItem(text:"Quit"         shortcut:"Q"     num:menuQuit
120            select:&menuCbk)
121 }
122
123 #------------------------------------------------------------------------
124 # popup zoom menu
125 #------------------------------------------------------------------------
126
127 Menu(func:makeZoomMenu title:"zoom" n:14) {
128   MenuItem(text:"-5" num:-5 select:&zoomMenuCbk)
129   MenuItem(text:"-4" num:-4 select:&zoomMenuCbk)
130   MenuItem(text:"-3" num:-3 select:&zoomMenuCbk)
131   MenuItem(text:"-2" num:-2 select:&zoomMenuCbk)
132   MenuItem(text:"-1" num:-1 select:&zoomMenuCbk)
133   MenuItem(text:"0"  num: 0 select:&zoomMenuCbk)
134   MenuItem(text:"+1" num: 1 select:&zoomMenuCbk)
135   MenuItem(text:"+2" num: 2 select:&zoomMenuCbk)
136   MenuItem(text:"+3" num: 3 select:&zoomMenuCbk)
137   MenuItem(text:"+4" num: 4 select:&zoomMenuCbk)
138   MenuItem(text:"+5" num: 5 select:&zoomMenuCbk)
139   MenuItem(text:NULL)
140   MenuItem(text:"fit page"  shortcut:"z" num:100 select:&zoomMenuCbk)
141   MenuItem(text:"fit width" shortcut:"w" num:101 select:&zoomMenuCbk)
142 }
143
144 #------------------------------------------------------------------------
145 # "PostScript output" dialog
146 #------------------------------------------------------------------------
147
148 Window(func:makePostScriptDialog dialog:gTrue defWidget:"ok"
149        title:"xpdf: PostScript output") {
150   Box(x:1 y:3) {
151     Box(x:4 y:1) {
152       Box1() { Label(text:"Pages:") }
153       Box1(sunken) {
154         TextIn(name:"firstPage" mw:6 tab:"lastPage"
155                font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
156       }
157       Box1() { Label(text:"to") }
158       Box1(sunken) {
159         TextIn(name:"lastPage" mw:6 tab:"fileName"
160                font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
161       }
162     }
163     Box(x:2 y:1) {
164       Box1() { Label(text:"File:") }
165       Box1(sunken xfill:1) {
166         TextIn(name:"fileName" mw:32
167                font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
168       }
169     }
170     Box(x:3 y:1 top:8) {
171       Box1(left:8) { Button(name:"ok" label:"Ok" press:&psButtonCbk num:1) }
172       Box1(xfill:1) { Empty() }
173       Box1(right:8) { Button(label:"Cancel" press:&psButtonCbk num:0) }
174     }
175   }
176 }
177
178 #------------------------------------------------------------------------
179 # "open" dialog
180 #------------------------------------------------------------------------
181
182 Window(func:makeOpenDialog dialog:gTrue defWidget:"open"
183        title:"xpdf: Open...") {
184   Box(x:1 y:2 xfill:1 yfill:1) {
185     Box1(xfill:1 yfill:1) {
186       FileReq(name:"fileReq" select:openSelectCbk
187               font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
188     }
189     Box(x:3 y:1 top:8 xfill:1) {
190       Box1(left:8) { Button(name:"open" label:"Open" press:&openButtonCbk
191                             num:1) }
192       Box1(xfill:1) { Empty() }
193       Box1(right:8) { Button(label:"Cancel" press:&openButtonCbk num:0) }
194     }
195   }
196 }
197
198 #------------------------------------------------------------------------
199 # "save" dialog
200 #------------------------------------------------------------------------
201
202 Window(func:makeSaveDialog dialog:gTrue defWidget:"save"
203        title:"xpdf: Save as...") {
204   Box(x:1 y:2 xfill:1 yfill:1) {
205     Box1(xfill:1 yfill:1) {
206       FileReq(name:"fileReq" select:saveSelectCbk
207               font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
208     }
209     Box(x:3 y:1 top:8 xfill:1) {
210       Box1(left:8) { Button(name:"save" label:"Save" press:&saveButtonCbk
211                             num:1) }
212       Box1(xfill:1) { Empty() }
213       Box1(right:8) { Button(label:"Cancel" press:&saveButtonCbk num:0) }
214     }
215   }
216 }
217
218 #------------------------------------------------------------------------
219 # "find" window
220 #------------------------------------------------------------------------
221
222 Window(func:makeFindWindow defWidget:"find" title:"xpdf: Find") {
223   Box(x:1 y:3 xfill:1 yfill:1) {
224     Box(x:2 y:1 xfill:1) {
225       Box1() { Label(text:"Text:") }
226       Box1(xfill:1 sunken) {
227         TextIn(name:"text" mw:32
228                font:"-*-courier-medium-r-normal-*-14-*-*-*-*-*-*-*")
229       }
230     }
231     Box1(xfill:1 yfill:1) { Empty() }
232     Box(x:3 y:1 top:8 xfill:1) {
233       Box1(left:8) { Button(name:"find" label:"Find" press:&findButtonCbk
234                             num:1) }
235       Box1(xfill:1) { Empty() }
236       Box1(right:8) { Button(label:"Close" press:&findButtonCbk num:0) }
237     }
238   }
239 }
240
241 #------------------------------------------------------------------------
242 # "about" window
243 #------------------------------------------------------------------------
244
245 Window(func:makeAboutWindow defWidget:"close" title:"About xpdf") {
246   Box(x:1 y:2 xfill:1 yfill:1) {
247     Box(x:2 y:2 xfill:1 yfill:1) {
248       Box1(xfill:1 yfill:1 sunken) {
249         List(name:"list" w:400 h:30
250              font:"-*-courier-medium-r-normal-*-12-*-*-*-*-*-*-*")
251       }
252       Box1(yfill:1) {
253         Scrollbar(name:"vScrollbar" vert min:0 max:100
254                   move:&aboutScrollVertCbk)
255       }
256       Box1(xfill:1) {
257         Scrollbar(name:"hScrollbar" horiz min:0 max:100
258                   move:&aboutScrollHorizCbk)
259       }
260       Box1() { Empty() }
261     }
262     Box(x:2 y:1) {
263       Box1(xfill:1) { Empty() }
264       Box1() { Button(name:"close" label:"Close" press:&closeAboutCbk) }
265     }
266   }
267 }