blob: 8c330807161a51e2ef0eef7784d10adf7b02ba55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE overlay SYSTEM "chrome://editor/locale/EdDialogOverlay.dtd">
<overlay id="EdDialogOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<vbox id="AdvancedEdit">
<hbox flex="1" style="margin-top: 0.2em" align="center">
<!-- This will right-align the button -->
<spacer flex="1"/>
<button id="AdvancedEditButton1" oncommand="onAdvancedEdit()" label="&AdvancedEditButton.label;"
accesskey="&AdvancedEditButton.accessKey;" tooltiptext="&AdvancedEditButton.tooltip;"/>
</hbox>
<separator id="advancedSeparator" class="groove"/>
</vbox>
<!-- Extra buttons to use when just button is needed
E.g. Image Properties Dialog switches position between 2 locations
Placed here to use same attributes as AdvancedEditButton button
-->
<button
id = "AdvancedEditButton"
oncommand = "onAdvancedEdit();"
label = "&AdvancedEditButton.label;"
accesskey = "&AdvancedEditButton.accessKey;"
tooltiptext="&AdvancedEditButton.tooltip;"/>
<button
id = "AdvancedEditButton2"
oncommand = "onAdvancedEdit()"
label = "&AdvancedEditButton.label;"
accesskey = "&AdvancedEditButton.accessKey;"
tooltiptext="&AdvancedEditButton.tooltip;"/>
<button
id = "ChooseFile"
oncommand = "chooseFile()"
label = "&chooseFileButton.label;"
accesskey = "&chooseFileButton.accessKey;"/>
<checkbox
id = "MakeRelativeCheckbox"
label = "&makeUrlRelative.label;"
accesskey = "&makeUrlRelative.accessKey;"
oncommand = "MakeInputValueRelativeOrAbsolute(this);"
tooltiptext = "&makeUrlRelative.tooltip;"/>
<vbox id="LinkLocationBox">
<label control="hrefInput" accesskey="&LinkURLEditField.accessKey;" width="1">&LinkURLEditField.label;</label>
<textbox id="hrefInput" type="autocomplete"
autocompletesearch="unifiedcomplete" timeout="50" maxrows="6"
enablehistory="true" class="uri-element padded"
oninput="ChangeLinkLocation();">
<menupopup class="autocomplete-history-popup"
popupalign="topleft" popupanchor="bottomleft"
oncommand="this.parentNode.value = event.target.getAttribute('label'); ChangeLinkLocation();"/>
</textbox>
<hbox align="center">
<!-- from EdDialogOverlay.xul 'for' identifies the textfield to get URL from -->
<checkbox id="MakeRelativeLink"
for="hrefInput"
label="&makeUrlRelative.label;"
accesskey="&makeUrlRelative.accessKey;"
oncommand="MakeInputValueRelativeOrAbsolute(this);"
tooltiptext="&makeUrlRelative.tooltip;"/>
<spacer flex="1"/>
<button label="&chooseFileLinkButton.label;" accesskey="&chooseFileLinkButton.accessKey;" oncommand="chooseLinkFile();"/>
</hbox>
</vbox>
</overlay>
|