|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
3 | 3 | <?xml-stylesheet href="chrome://messenger/skin/preferences/preferences.css" type="text/css"?>
|
4 |
| -<prefwindow id="tblatex-prefs" |
5 |
| - title="TBLaTeX options" |
6 |
| - xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
| 4 | +<!DOCTYPE dialog> |
| 5 | +<dialog id="tblatex-prefs" |
| 6 | + title="TBLaTeX options" |
| 7 | + buttons="accept" |
| 8 | + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
| 9 | + xmlns:html="http://www.w3.org/1999/xhtml" |
| 10 | +> |
7 | 11 | <script type="application/javascript" src="chrome://tblatex/content/options.js" />
|
8 | 12 |
|
9 |
| - <prefpane id="tblatex-paths" label="Files and Paths" image="chrome://messenger/skin/preferences/general.png"> |
10 |
| - <preferences> |
11 |
| - <preference id="latex_path" name="tblatex.latex_path" type="string" /> |
12 |
| - <preference id="dvips_path" name="tblatex.dvips_path" type="string" /> |
13 |
| - <preference id="convert_path" name="tblatex.convert_path" type="string" /> |
14 |
| - <preference id="dpi" name="tblatex.dpi" type="int" /> |
15 |
| - <preference id="log" name="tblatex.log" type="bool" /> |
16 |
| - <preference id="debug" name="tblatex.debug" type="bool" /> |
17 |
| - </preferences> |
18 |
| - |
19 |
| - <grid align="center"> |
20 |
| - <columns> |
21 |
| - <column /> |
22 |
| - <column /> |
23 |
| - <column /> |
24 |
| - </columns> |
25 |
| - <rows> |
26 |
| - <row> |
27 |
| - <label control="latex_textbox" value="Path to latex executable" /> |
28 |
| - <textbox preference="latex_path" id="latex_textbox" /> |
29 |
| - <button label="Browse..." oncommand="pick_file(document.getElementsByTagName('preference')[0], 'latex');" /> |
30 |
| - </row> |
31 |
| - <row> |
32 |
| - <label control="dvips_textbox" value="Path to dvips executable" /> |
33 |
| - <textbox preference="dvips_path" id="dvips_textbox" /> |
34 |
| - <button label="Browse..." oncommand="pick_file(document.getElementsByTagName('preference')[1], 'dvips');" /> |
35 |
| - </row> |
36 |
| - <row> |
37 |
| - <label control="convert_textbox" value="Path to convert executable" /> |
38 |
| - <textbox preference="convert_path" id="convert_textbox" /> |
39 |
| - <button label="Browse..." oncommand="pick_file(document.getElementsByTagName('preference')[2], 'convert');" /> |
40 |
| - </row> |
41 |
| - <row> |
42 |
| - <label control="dpi_textbox" value="Resolution (dpi)" /> |
43 |
| - <textbox preference="dpi" id="dpi_textbox" /> |
44 |
| - <spacer /> |
45 |
| - </row> |
46 |
| - <row> |
47 |
| - <label control="log_checkbox" value="Generate a log report" /> |
48 |
| - <checkbox preference="log" id="log_checkbox" /> |
49 |
| - <spacer /> |
50 |
| - </row> |
51 |
| - <row> |
52 |
| - <label control="debug_checkbox" value="Generate debug info" /> |
53 |
| - <checkbox preference="debug" id="debug_checkbox" /> |
54 |
| - <spacer /> |
55 |
| - </row> |
56 |
| - </rows> |
57 |
| - </grid> |
| 13 | + <vbox> |
| 14 | + <hbox> |
| 15 | + <label control="latex_textbox" value="Path to latex executable" /> |
| 16 | + <textbox preference="tblatex.latex_path" id="latex_textbox" /> |
| 17 | + <button label="Browse..." oncommand="pick_file(document.getElementsByTagName('preference')[0], 'latex');" /> |
| 18 | + </hbox> |
| 19 | + <hbox> |
| 20 | + <label control="dvips_textbox" value="Path to dvips executable" /> |
| 21 | + <textbox preference="tblatex.dvips_path" id="dvips_textbox" /> |
| 22 | + <button label="Browse..." oncommand="pick_file(document.getElementsByTagName('preference')[1], 'dvips');" /> |
| 23 | + </hbox> |
| 24 | + <hbox> |
| 25 | + <label control="convert_textbox" value="Path to convert executable" /> |
| 26 | + <textbox preference="tblatex.convert_path" id="convert_textbox" /> |
| 27 | + <button label="Browse..." oncommand="pick_file(document.getElementsByTagName('preference')[2], 'convert');" /> |
| 28 | + </hbox> |
| 29 | + <hbox> |
| 30 | + <label control="dpi_textbox" value="Resolution (dpi)" /> |
| 31 | + <textbox preference="tblatex.dpi" id="dpi_textbox" /> |
| 32 | + <spacer /> |
| 33 | + </hbox> |
| 34 | + <hbox> |
| 35 | + <label control="log_checkbox" value="Generate a log report" /> |
| 36 | + <checkbox preference="tblatex.log" id="log_checkbox" /> |
| 37 | + <spacer /> |
| 38 | + </hbox> |
| 39 | + <hbox> |
| 40 | + <label control="debug_checkbox" value="Generate debug info" /> |
| 41 | + <checkbox preference="tblatex.debug" id="debug_checkbox" /> |
| 42 | + <spacer /> |
| 43 | + </hbox> |
58 | 44 | <label style="text-decoration: underline; color: navy; margin-top: 2em;
|
59 | 45 | cursor: pointer" value="Open the autodetection dialog"
|
60 | 46 | onclick="open_autodetect();" />
|
61 |
| - </prefpane> |
| 47 | + </vbox> |
62 | 48 |
|
63 |
| - <prefpane id="tblatex-template" label="LaTeX template to use" image="chrome://messenger/skin/preferences/advanced.png"> |
64 |
| - <preferences> |
65 |
| - <preference id="latex_template" name="tblatex.template" type="string" /> |
66 |
| - </preferences> |
67 |
| - |
| 49 | + <vbox> |
68 | 50 | <hbox>
|
69 | 51 | <label control="template_textbox" value="Template to use to generate LaTeX parts "/>
|
70 | 52 | <label style="text-decoration: underline; color: navy; cursor: pointer" value="Help ?"
|
71 | 53 | onclick="window.openDialog('chrome://tblatex/content/help.html', '',
|
72 | 54 | 'all,chrome,dialog=no,status,toolbar,width=640,height=480');" />
|
73 | 55 | </hbox>
|
74 |
| - <textbox preference="latex_template" id="template_textbox" multiline="true" |
| 56 | + <html:textarea preference="tblatex.template" id="template_textbox" multiline="true" |
75 | 57 | rows="12" />
|
76 |
| - </prefpane> |
| 58 | + </vbox> |
| 59 | + |
| 60 | + <script |
| 61 | + src="chrome://global/content/preferencesBindings.js" |
| 62 | + type="application/javascript"/> |
| 63 | + |
| 64 | + <script |
| 65 | + src="chrome://tblatex/content/preferences.js" |
| 66 | + type="application/javascript"/> |
77 | 67 |
|
78 |
| -</prefwindow> |
| 68 | +</dialog> |
0 commit comments