зеркало из https://github.com/mozilla/gecko-dev.git
Standalone Composer 0.01
uses Firebird/Thunderbird's toolkit customizable main toolbar Orbit 3+1 buttons Form button limited dependencies to other Moz App Suite module Calendar smart widget
This commit is contained in:
Родитель
d0fc0b6940
Коммит
4127e1b365
|
@ -1,23 +1,39 @@
|
|||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
# The Original Code is Mozilla.org
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Contributor(s):
|
||||
# Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ..
|
||||
topsrcdir = @top_srcdir@
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Brian Ryner <bryner@brianryner.com>
|
||||
# Brian Ryner <bryner@brianryner.com>
|
||||
# Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
@ -60,7 +61,7 @@ REQUIRES = \
|
|||
xpcom \
|
||||
xulapp \
|
||||
xpinstall \
|
||||
appshell \
|
||||
appshell \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = nsComposerApp.cpp
|
||||
|
@ -109,7 +110,8 @@ include $(topsrcdir)/config/rules.mk
|
|||
$(PROGRAM): $(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX)
|
||||
|
||||
DESKTOP_ICONS := \
|
||||
editorWindow.ico \
|
||||
editorWindow.xpm \
|
||||
editorWindow16.xpm \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(DESKTOP_ICONS)
|
||||
|
@ -134,6 +136,19 @@ install:: composer
|
|||
GARBAGE += composer
|
||||
endif
|
||||
|
||||
ifneq (,$(filter gtk gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
||||
ICON_FILES = \
|
||||
$(srcdir)/mozicon50.xpm \
|
||||
$(srcdir)/mozicon16.xpm \
|
||||
$(NULL)
|
||||
|
||||
libs::
|
||||
$(INSTALL) $(ICON_FILES) $(DIST)/bin/icons
|
||||
|
||||
install::
|
||||
$(SYSINSTALL) $(IFLAGS1) $(ICON_FILES) $(DESTDIR)$(mozappdir)/icons
|
||||
endif
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
|
|
|
@ -0,0 +1,232 @@
|
|||
/* XPM */
|
||||
static char *pixmap[] = {
|
||||
/* width height ncols cpp */
|
||||
"32 32 194 2",
|
||||
/* Colors */
|
||||
"00 c #FFFFFF",
|
||||
"01 c #EFF2F4",
|
||||
"02 c #EAEDF1",
|
||||
"03 c #E4E9EE",
|
||||
"04 c #DCE2E9",
|
||||
"05 c #D3DCE4",
|
||||
"06 c #C9D6E1",
|
||||
"07 c #CDD7DF",
|
||||
"08 c #C3CED9",
|
||||
"09 c #C0C0C0",
|
||||
"0A c #BEE0E0",
|
||||
"0B c #ACCAE0",
|
||||
"0C c #A4C6E0",
|
||||
"0D c #99C4F1",
|
||||
"0E c #BAC9D8",
|
||||
"0F c #B4C5D4",
|
||||
"10 c #A6C5D4",
|
||||
"11 c #B2C1CF",
|
||||
"12 c #95C2D4",
|
||||
"13 c #A4BED0",
|
||||
"14 c #ABBDCD",
|
||||
"15 c #A3B5C6",
|
||||
"16 c #92B1D0",
|
||||
"17 c #8CB8D4",
|
||||
"18 c #8BB3D4",
|
||||
"19 c #84B1D4",
|
||||
"1A c #8AAED4",
|
||||
"1B c #83ABD2",
|
||||
"1C c #9AB2C9",
|
||||
"1D c #9BADC0",
|
||||
"1E c #83A6CA",
|
||||
"1F c #8CA7C1",
|
||||
"20 c #83A2C1",
|
||||
"21 c #A5A7A8",
|
||||
"22 c #96A9BC",
|
||||
"23 c #859FBA",
|
||||
"24 c #889EB4",
|
||||
"25 c #839BB2",
|
||||
"26 c #8097B0",
|
||||
"27 c #8394A7",
|
||||
"28 c #898584",
|
||||
"29 c #7FAAD2",
|
||||
"2A c #79A4CB",
|
||||
"2B c #7EA1C5",
|
||||
"2C c #7A9DC1",
|
||||
"2D c #729BC1",
|
||||
"2E c #729ABF",
|
||||
"2F c #7297BB",
|
||||
"30 c #7092B6",
|
||||
"31 c #6C93BB",
|
||||
"32 c #6C91B6",
|
||||
"33 c #6B8EB3",
|
||||
"34 c #678EB2",
|
||||
"35 c #7D94AC",
|
||||
"36 c #718EAD",
|
||||
"37 c #718AA3",
|
||||
"38 c #6B8AAB",
|
||||
"39 c #6589AD",
|
||||
"3A c #6186A9",
|
||||
"3B c #6E8BA5",
|
||||
"3C c #6984A1",
|
||||
"3D c #6184A6",
|
||||
"3E c #5E82A4",
|
||||
"3F c #778696",
|
||||
"40 c #6D839B",
|
||||
"41 c #62819E",
|
||||
"42 c #627F9B",
|
||||
"43 c #62758B",
|
||||
"44 c #5B7C9C",
|
||||
"45 c #5F7A95",
|
||||
"46 c #577897",
|
||||
"47 c #597796",
|
||||
"48 c #567493",
|
||||
"49 c #53718F",
|
||||
"4A c #5B7086",
|
||||
"4B c #516E8B",
|
||||
"4C c #596C81",
|
||||
"4D c #4F6C88",
|
||||
"4E c #4E6B87",
|
||||
"4F c #4B6581",
|
||||
"50 c #FFE14F",
|
||||
"51 c #FADC4D",
|
||||
"52 c #FFD34A",
|
||||
"53 c #FFCD48",
|
||||
"54 c #FFC346",
|
||||
"55 c #EDCB48",
|
||||
"56 c #FFBD43",
|
||||
"57 c #F0BC42",
|
||||
"58 c #FFB541",
|
||||
"59 c #EDBA41",
|
||||
"5A c #FFFF00",
|
||||
"5B c #FEAC3E",
|
||||
"5C c #F0AF3E",
|
||||
"5D c #FEA33B",
|
||||
"5E c #F0A239",
|
||||
"5F c #ECA93C",
|
||||
"60 c #DFA93B",
|
||||
"61 c #FF9B3A",
|
||||
"62 c #FF9539",
|
||||
"63 c #FF9236",
|
||||
"64 c #F09737",
|
||||
"65 c #FF8C35",
|
||||
"66 c #FF8433",
|
||||
"67 c #EF8F34",
|
||||
"68 c #ED8232",
|
||||
"69 c #DE9C37",
|
||||
"6A c #DC9335",
|
||||
"6B c #CE842F",
|
||||
"6C c #B09935",
|
||||
"6D c #B39133",
|
||||
"6E c #B2852E",
|
||||
"6F c #808000",
|
||||
"70 c #FF7C31",
|
||||
"71 c #FF7731",
|
||||
"72 c #FF7B2F",
|
||||
"73 c #FF732D",
|
||||
"74 c #ED7A2E",
|
||||
"75 c #FF6C2B",
|
||||
"76 c #FE662A",
|
||||
"77 c #ED6528",
|
||||
"78 c #CA702D",
|
||||
"79 c #ED5925",
|
||||
"7A c #B27D2C",
|
||||
"7B c #AF7D2D",
|
||||
"7C c #BD632B",
|
||||
"7D c #B26B27",
|
||||
"7E c #B16525",
|
||||
"7F c #9F7629",
|
||||
"80 c #9F7027",
|
||||
"81 c #806423",
|
||||
"82 c #BC5D28",
|
||||
"83 c #B05C23",
|
||||
"84 c #BA5525",
|
||||
"85 c #B05722",
|
||||
"86 c #B94B23",
|
||||
"87 c #B84421",
|
||||
"88 c #815D21",
|
||||
"89 c #B3481D",
|
||||
"8A c #B03F1A",
|
||||
"8B c #AB391B",
|
||||
"8C c #A02E19",
|
||||
"8D c #9E3219",
|
||||
"8E c #8B2815",
|
||||
"8F c #852E13",
|
||||
"90 c #5A6B7F",
|
||||
"91 c #56687D",
|
||||
"92 c #55677B",
|
||||
"93 c #516376",
|
||||
"94 c #4A647E",
|
||||
"95 c #4E6073",
|
||||
"96 c #475F78",
|
||||
"97 c #445C76",
|
||||
"98 c #41586F",
|
||||
"99 c #40566F",
|
||||
"9A c #6A4E4A",
|
||||
"9B c #3D546B",
|
||||
"9C c #3C5267",
|
||||
"9D c #384C61",
|
||||
"9E c #354B63",
|
||||
"9F c #334558",
|
||||
"A0 c #314254",
|
||||
"A1 c #2B3C4D",
|
||||
"A2 c #243342",
|
||||
"A3 c #7C4221",
|
||||
"A4 c #7B3B1E",
|
||||
"A5 c #7B341C",
|
||||
"A6 c #792E1A",
|
||||
"A7 c #7D2E14",
|
||||
"A8 c #632114",
|
||||
"A9 c #513E16",
|
||||
"AA c #4E3A14",
|
||||
"AB c #5F200D",
|
||||
"AC c #651E14",
|
||||
"AD c #661A0D",
|
||||
"AE c #5D1F12",
|
||||
"AF c #561C12",
|
||||
"B0 c #451912",
|
||||
"B1 c #5F1D0C",
|
||||
"B2 c #411409",
|
||||
"B3 c #222F3C",
|
||||
"B4 c #1B252E",
|
||||
"B5 c #121F2B",
|
||||
"B6 c #141C23",
|
||||
"B7 c #2F240D",
|
||||
"B8 c #251D0B",
|
||||
"B9 c #221006",
|
||||
"BA c #12181F",
|
||||
"BB c #151515",
|
||||
"BC c #0E141A",
|
||||
"BD c #060F19",
|
||||
"BE c #141006",
|
||||
"BF c #120E05",
|
||||
"C0 c #000000",
|
||||
".. s None c None",
|
||||
"..133D484B4B4B484848484848484848484848484848484847444444479490..",
|
||||
"0B0A3894959593914C4C4C4C4C4C4C4C4C4C4C4C4C4C4C4C4340261F3694A19F",
|
||||
"1A0C15....................................................3FA29F",
|
||||
"2E45....171B2A2D2D2D2D2D2D2D2D2D2D2D2E2E2E2E2E2F323A444E..164FB3",
|
||||
"324A..1012292D31323232323232323232323232323233343D464E97..3E9BBA",
|
||||
"3091..12180504011C05010E1C0301143A3A3A3A3D3D3E44484F97..3348A2C0",
|
||||
"2F92..17290501011505010111050101444444444448494E9497..313D9DBC..",
|
||||
"2C92..182A200101413B01024444010344484848494D4F9798..313297B6C0..",
|
||||
"2B92..192A1C010F48240108481D01144848484B4D4F9798..313297B4C0....",
|
||||
"1E92..192A0F0125481501154811012248484B4D4F9798..313297B4C0BB....",
|
||||
"1E92..192A0601374808012548070135480097969798..313297B4C0A3BB....",
|
||||
"1E92..192A0301424803013C48030142000051A09C..313297B4C061A3BB....",
|
||||
"1E92..192A34444848484848484848000028515121393397B4C05462A3BB....",
|
||||
"1E92..192A344448484848484848000028000000519499B4C0535663A4BB....",
|
||||
"1E92..192A34444848484848485A0028000028000051B6C053535865A4BB....",
|
||||
"1E92..192A3444484848484800005A5A092800002800006D59545B66A4BB....",
|
||||
"1E92..192A3444484848480000285A00C06F0028000051006E5C5D66A4BB....",
|
||||
"1E92..192A3444484848000028006F0928C0C000000051B888695D70A4BB....",
|
||||
"1E92..192A34444848510028002800002800C0C05151BFA97A5E5D71A5BB....",
|
||||
"1E92..192A3444484B97510028000028002800C0C0BFAA7B5F5D6173A5BB....",
|
||||
"1E92..192A3444494D96A0515100280000002800C0C0886A5D5D6375A5BB....",
|
||||
"1E92..192A34444B4F979C21510000002800512809C0C0286B676575A5BB....",
|
||||
"1E92..192D39484F9798..39945100280051BFB728C0C0C0287E7476A6BB....",
|
||||
"1E90..192D3D4D9698..313399B6510051BEA97F802809C0C0288579A6BB....",
|
||||
"1E4C..1B31444F97..313297B4C06C51B8A96E5FC06F2800C0C0288AA6BB....",
|
||||
"1E43..2A394997..313297B4C050556D816E5F5B6AC06F2800C0C0ABA8BB....",
|
||||
"1E37..314494..313297B4C050515257605C5B5B647DC06F2800C0B2AEBB....",
|
||||
"1E23..3D4E..313297B4C05152535456585B5D61626883C0B92828B2AFBB....",
|
||||
"2C16......313397B4C054585B5B5D616365666672737789A78FB1ADB0BB....",
|
||||
"390D274F33489BB4C062787C7C7C8284848486868687898B8D8C8EAC9ABB....",
|
||||
"9F4B9E4F9BA1B6C0BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB......",
|
||||
"..9FB5BDB4BC....................................................",
|
||||
};
|
|
@ -0,0 +1,77 @@
|
|||
/* XPM */
|
||||
static char *pixmap[] = {
|
||||
/* width height ncols cpp */
|
||||
"16 16 55 2",
|
||||
/* Colors */
|
||||
"00 c #FFFFFF",
|
||||
"01 c #C0C0C0",
|
||||
"02 c #BDCBDA",
|
||||
"03 c #808080",
|
||||
"04 c #77BEFF",
|
||||
"05 c #65AFFC",
|
||||
"06 c #57A1EE",
|
||||
"07 c #70A7DC",
|
||||
"08 c #7BA2C7",
|
||||
"09 c #679CD1",
|
||||
"0A c #6093CA",
|
||||
"0B c #5A8DC2",
|
||||
"0C c #3B80CB",
|
||||
"0D c #5488BD",
|
||||
"0E c #4E81B5",
|
||||
"0F c #3376C0",
|
||||
"10 c #4B7DB0",
|
||||
"11 c #497AAC",
|
||||
"12 c #4777AA",
|
||||
"13 c #4271A3",
|
||||
"14 c #406E9E",
|
||||
"15 c #2869AF",
|
||||
"16 c #2569AF",
|
||||
"17 c #2365A9",
|
||||
"18 c #2061A5",
|
||||
"19 c #1E60A4",
|
||||
"1A c #3E6C9C",
|
||||
"1B c #3A6595",
|
||||
"1C c #33608B",
|
||||
"1D c #335E8B",
|
||||
"1E c #21578F",
|
||||
"1F c #2F5A87",
|
||||
"20 c #2B5681",
|
||||
"21 c #1B5B9E",
|
||||
"22 c #175799",
|
||||
"23 c #135395",
|
||||
"24 c #104F90",
|
||||
"25 c #0C4787",
|
||||
"26 c #F9DC4D",
|
||||
"27 c #FFFF00",
|
||||
"28 c #FF8333",
|
||||
"29 c #808000",
|
||||
"2A c #D53F11",
|
||||
"2B c #284F7A",
|
||||
"2C c #274E79",
|
||||
"2D c #214973",
|
||||
"2E c #0D4070",
|
||||
"2F c #1B4169",
|
||||
"30 c #193E64",
|
||||
"31 c #083767",
|
||||
"32 c #002F69",
|
||||
"33 c #712511",
|
||||
"34 c #000024",
|
||||
"35 c #000000",
|
||||
".. s None c None",
|
||||
"..060F17222323222119181721251E..",
|
||||
"0504........................3131",
|
||||
"0C..02090B0E111112131A1C2B1F..1F",
|
||||
"16..07270B11131426261D2C30081F34",
|
||||
"19..0A35272701000000262D..1F35..",
|
||||
"21..0D3527003529030000001F3433..",
|
||||
"21..0E352901033535030003002A33..",
|
||||
"21..10130000030035350300002633..",
|
||||
"19..10260003000300353500263533..",
|
||||
"17..12260000030003013535032833..",
|
||||
"15..13352600000300030135350333..",
|
||||
"17..1B1F3526000000260300353503..",
|
||||
"17..202F..3526002635290300353503",
|
||||
"24..1F081F3435263528352903003535",
|
||||
"322E..1F343333353333333529030035",
|
||||
"..343434................35290303",
|
||||
};
|
|
@ -0,0 +1,116 @@
|
|||
/* XPM */
|
||||
static char *mozilla.xpm[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"16 16 94 2",
|
||||
" c opaque",
|
||||
". c #655a47",
|
||||
"X c #7e6e53",
|
||||
"o c #897a5e",
|
||||
"O c #817764",
|
||||
"+ c #817a6f",
|
||||
"@ c #897d63",
|
||||
"# c #8e8063",
|
||||
"$ c #918369",
|
||||
"% c #948974",
|
||||
"& c #988b71",
|
||||
"* c #988e7d",
|
||||
"= c #a2947b",
|
||||
"- c #af9e7a",
|
||||
"; c #858995",
|
||||
": c #958d83",
|
||||
"> c #9b9da6",
|
||||
", c #9ea3b2",
|
||||
"< c #99a0b8",
|
||||
"1 c #a09682",
|
||||
"2 c #aa9c81",
|
||||
"3 c #a09a90",
|
||||
"4 c #afa285",
|
||||
"5 c #afa288",
|
||||
"6 c #a8a090",
|
||||
"7 c #b4a586",
|
||||
"8 c #b3a689",
|
||||
"9 c #b8aa8c",
|
||||
"0 c #b8ad96",
|
||||
"q c #bcb199",
|
||||
"w c #a1a0a2",
|
||||
"e c #a8a6a4",
|
||||
"r c #aca9a5",
|
||||
"t c #a7aab6",
|
||||
"y c #a6a9b8",
|
||||
"u c #aab0bd",
|
||||
"i c #b6afa1",
|
||||
"p c #b5b1aa",
|
||||
"a c #bbb4a4",
|
||||
"s c #b1b3be",
|
||||
"d c #adb6cc",
|
||||
"f c #adb7d1",
|
||||
"g c #b1b9cd",
|
||||
"h c #b7c0d6",
|
||||
"j c #b8c4e3",
|
||||
"k c #c4b188",
|
||||
"l c #c3b496",
|
||||
"z c #c3b69b",
|
||||
"x c #cebd96",
|
||||
"c c #c9bb99",
|
||||
"v c #c6b9a1",
|
||||
"b c #c3bcac",
|
||||
"n c #c8bca6",
|
||||
"m c #c4bfb2",
|
||||
"M c #d2c097",
|
||||
"N c #d0c19d",
|
||||
"B c #cfc2a3",
|
||||
"V c #cfc4af",
|
||||
"C c #c7c0b2",
|
||||
"Z c #ccc5b5",
|
||||
"A c #d5c7a5",
|
||||
"S c #d7c9ad",
|
||||
"D c #dbcdae",
|
||||
"F c #d7ceba",
|
||||
"G c #daceb5",
|
||||
"H c #ddd0b3",
|
||||
"J c #dbd1ba",
|
||||
"K c #e3d7ba",
|
||||
"L c #e3d8be",
|
||||
"P c #dfd9c8",
|
||||
"I c #cdd4e5",
|
||||
"U c #cfd8ec",
|
||||
"Y c #d3defc",
|
||||
"T c #dee2ef",
|
||||
"R c #d7e3ff",
|
||||
"E c #dfe4f3",
|
||||
"W c #dbe7ff",
|
||||
"Q c #dde8fe",
|
||||
"! c #e5dbc4",
|
||||
"~ c #eadec4",
|
||||
"^ c #e8dfc8",
|
||||
"/ c #ece3cd",
|
||||
"( c #ece4d1",
|
||||
") c #efe8d5",
|
||||
"_ c #e5eaf5",
|
||||
"` c #e3edfe",
|
||||
"' c #e7f1fe",
|
||||
"] c #eef4fe",
|
||||
"[ c #f9f3e3",
|
||||
"{ c #fbf6e8",
|
||||
"} c #f1f6ff",
|
||||
"| c #f4faff",
|
||||
" . c #fbfeff",
|
||||
".. c None",
|
||||
/* pixels */
|
||||
"..............# @ @ ............",
|
||||
"............@ 3 C a @ ..........",
|
||||
"........@ @ 3 b b Z Z O ........",
|
||||
"......@ E T g , > r p m @ ......",
|
||||
"....@ ; . . .} _ I g d y @ ....",
|
||||
"..# + f .} ] ] ] . .| U r @ ..",
|
||||
"..7 * g ' ` ' ` W ` ` ` r k @ ..",
|
||||
"..9 H 0 s Y ` W R W R u 8 M @ ..",
|
||||
"..5 L L v w j d t g < 1 N x @ ..",
|
||||
"..2 L ! ( J : i P b % B A x @ ..",
|
||||
"..= L ! ( F n [ { [ F 5 c x @ ..",
|
||||
"..& K J q Z ( / / ! ^ G 8 - @ ..",
|
||||
"..$ G 2 n / ~ ! L L G D l X @ ..",
|
||||
"..o 8 c ~ J S l - # . @ @ @ ....",
|
||||
"..@ & = @ @ @ ..................",
|
||||
"................................"
|
||||
};
|
|
@ -0,0 +1,292 @@
|
|||
/* XPM */
|
||||
static char *mozilla.xpm[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"48 48 238 2",
|
||||
" c opaque",
|
||||
". c #3f301d",
|
||||
"X c #3d3e3b",
|
||||
"o c #06175e",
|
||||
"O c #04264b",
|
||||
"+ c #04294f",
|
||||
"@ c #05255e",
|
||||
"# c #08227d",
|
||||
"$ c #063567",
|
||||
"% c #0f3c75",
|
||||
"& c #1a257a",
|
||||
"* c #26394a",
|
||||
"= c #323641",
|
||||
"- c #313940",
|
||||
"; c #393848",
|
||||
": c #06407f",
|
||||
"> c #16406c",
|
||||
", c #1a4571",
|
||||
"< c #3c4449",
|
||||
"1 c #24476c",
|
||||
"2 c #453722",
|
||||
"3 c #4b3d28",
|
||||
"4 c #4f422d",
|
||||
"5 c #51432d",
|
||||
"6 c #574933",
|
||||
"7 c #524c3f",
|
||||
"8 c #5e4f38",
|
||||
"9 c #5d503b",
|
||||
"0 c #64553e",
|
||||
"q c #404a4d",
|
||||
"w c #4a4647",
|
||||
"e c #4a4d4d",
|
||||
"r c #424e59",
|
||||
"t c #484754",
|
||||
"y c #5d584c",
|
||||
"u c #5a6368",
|
||||
"i c #665840",
|
||||
"p c #645b48",
|
||||
"a c #6a5b43",
|
||||
"s c #6c5f49",
|
||||
"d c #6c614e",
|
||||
"f c #73644b",
|
||||
"g c #766a57",
|
||||
"h c #746c5e",
|
||||
"j c #7b6c53",
|
||||
"k c #7b6e58",
|
||||
"l c #7e725a",
|
||||
"z c #63646b",
|
||||
"x c #6c6f7d",
|
||||
"c c #7f7766",
|
||||
"v c #787974",
|
||||
"b c #787d7f",
|
||||
"n c #092a8c",
|
||||
"m c #0e219e",
|
||||
"M c #0a289c",
|
||||
"N c #093c9c",
|
||||
"B c #0c21ab",
|
||||
"V c #0b2aab",
|
||||
"C c #0d23bb",
|
||||
"Z c #1022a0",
|
||||
"A c #253293",
|
||||
"S c #0f2ada",
|
||||
"D c #102ce9",
|
||||
"F c #1130f9",
|
||||
"G c #08469d",
|
||||
"H c #0f5096",
|
||||
"J c #08519d",
|
||||
"K c #155496",
|
||||
"L c #1e5692",
|
||||
"P c #0948ac",
|
||||
"I c #0851a0",
|
||||
"U c #0958ad",
|
||||
"Y c #0e5db1",
|
||||
"T c #1158a4",
|
||||
"R c #165eaa",
|
||||
"E c #0960bc",
|
||||
"W c #2b5d91",
|
||||
"Q c #33409e",
|
||||
"! c #0a68cc",
|
||||
"~ c #0b71dc",
|
||||
"^ c #0b77eb",
|
||||
"/ c #44578c",
|
||||
"( c #4f5c84",
|
||||
") c #616d91",
|
||||
"_ c #68708b",
|
||||
"` c #6f7996",
|
||||
"' c #7e7d81",
|
||||
"] c #6d7caa",
|
||||
"[ c #717ea7",
|
||||
"{ c #0c80fb",
|
||||
"} c #7e898f",
|
||||
"| c #7e8592",
|
||||
" . c #7c849d",
|
||||
".. c #7481a7",
|
||||
"X. c #7280aa",
|
||||
"o. c #7a87ac",
|
||||
"O. c #7685b1",
|
||||
"+. c #817259",
|
||||
"@. c #897a5e",
|
||||
"#. c #877860",
|
||||
"$. c #857a69",
|
||||
"%. c #8b7e66",
|
||||
"&. c #8f8064",
|
||||
"*. c #8c8271",
|
||||
"=. c #918165",
|
||||
"-. c #94856a",
|
||||
";. c #9b8c6f",
|
||||
":. c #918672",
|
||||
">. c #918978",
|
||||
",. c #9b8d73",
|
||||
"<. c #998e7a",
|
||||
"1. c #9e9175",
|
||||
"2. c #a19274",
|
||||
"3. c #a4957a",
|
||||
"4. c #a7997e",
|
||||
"5. c #ab9b7c",
|
||||
"6. c #838389",
|
||||
"7. c #868886",
|
||||
"8. c #898787",
|
||||
"9. c #878992",
|
||||
"0. c #848999",
|
||||
"q. c #859097",
|
||||
"w. c #8e9098",
|
||||
"e. c #908a83",
|
||||
"r. c #94918e",
|
||||
"t. c #9a9181",
|
||||
"y. c #99968d",
|
||||
"u. c #969290",
|
||||
"i. c #9a9691",
|
||||
"p. c #9f9b93",
|
||||
"a. c #9d9b9b",
|
||||
"s. c #858da5",
|
||||
"d. c #808db4",
|
||||
"f. c #8190bd",
|
||||
"g. c #8e98b1",
|
||||
"h. c #9195a3",
|
||||
"j. c #9c9ea6",
|
||||
"k. c #a19682",
|
||||
"l. c #a49981",
|
||||
"z. c #a39c8d",
|
||||
"x. c #a99c84",
|
||||
"c. c #a39d93",
|
||||
"v. c #aea083",
|
||||
"b. c #ada189",
|
||||
"n. c #a6a196",
|
||||
"m. c #a7a299",
|
||||
"M. c #aca495",
|
||||
"N. c #aca79c",
|
||||
"B. c #b3a484",
|
||||
"V. c #b1a68b",
|
||||
"C. c #b6aa8f",
|
||||
"Z. c #b6ab94",
|
||||
"A. c #b1aa9c",
|
||||
"S. c #bbad91",
|
||||
"D. c #bdb090",
|
||||
"F. c #bbb099",
|
||||
"G. c #a4a4aa",
|
||||
"H. c #b6afa0",
|
||||
"J. c #b6b0a5",
|
||||
"K. c #bab3a5",
|
||||
"L. c #bcb6a9",
|
||||
"P. c #beb8aa",
|
||||
"I. c #8796c1",
|
||||
"U. c #8d9cca",
|
||||
"Y. c #9da7c4",
|
||||
"T. c #9fa8c4",
|
||||
"R. c #9da9c9",
|
||||
"E. c #97a6d1",
|
||||
"W. c #98a9da",
|
||||
"Q. c #a3adcb",
|
||||
"!. c #adb3c3",
|
||||
"~. c #abb6d3",
|
||||
"^. c #b0b6c1",
|
||||
"/. c #b1bcdb",
|
||||
"(. c #a8b8e1",
|
||||
"). c #b5c0de",
|
||||
"_. c #b8c2d8",
|
||||
"`. c #bac5e4",
|
||||
"'. c #bbc7e8",
|
||||
"]. c #c0af87",
|
||||
"[. c #c4b38d",
|
||||
"{. c #c3b493",
|
||||
"}. c #c1b69b",
|
||||
"|. c #c6b89d",
|
||||
" X c #c9b994",
|
||||
".X c #ccbd9a",
|
||||
"XX c #c3b8a0",
|
||||
"oX c #c2bbad",
|
||||
"OX c #c4beb1",
|
||||
"+X c #cec2a3",
|
||||
"@X c #c6c0b2",
|
||||
"#X c #c9c2b5",
|
||||
"$X c #ccc6b9",
|
||||
"%X c #d1c4a4",
|
||||
"&X c #d2c5a8",
|
||||
"*X c #d5c9ab",
|
||||
"=X c #d8cbae",
|
||||
"-X c #d5c9b0",
|
||||
";X c #d9ceb2",
|
||||
":X c #dbd0b5",
|
||||
">X c #ddd3ba",
|
||||
",X c #e0d6bd",
|
||||
"<X c #c0c7db",
|
||||
"1X c #c0c9da",
|
||||
"2X c #d2cec4",
|
||||
"3X c #c3cdea",
|
||||
"4X c #cad3e6",
|
||||
"5X c #c8d4ee",
|
||||
"6X c #c7d3f5",
|
||||
"7X c #cad6f8",
|
||||
"8X c #cddaf4",
|
||||
"9X c #d2dbed",
|
||||
"0X c #d8deee",
|
||||
"qX c #d1dbf2",
|
||||
"wX c #d0dbfb",
|
||||
"eX c #dbe1ed",
|
||||
"rX c #d6e1fc",
|
||||
"tX c #dfe4f0",
|
||||
"yX c #dae5fd",
|
||||
"uX c #dee9fe",
|
||||
"iX c #e3d9c3",
|
||||
"pX c #e6ddc8",
|
||||
"aX c #e8dfca",
|
||||
"sX c #e8e0cc",
|
||||
"dX c #ebe4d2",
|
||||
"fX c #eee8d6",
|
||||
"gX c #f1ebdb",
|
||||
"hX c #e2e9f7",
|
||||
"jX c #e3ecfd",
|
||||
"kX c #e9effc",
|
||||
"lX c #e7f0fe",
|
||||
"zX c #ebf2fd",
|
||||
"xX c #f5f0e1",
|
||||
"cX c #f9f5e9",
|
||||
"vX c #f1f6fd",
|
||||
"bX c #f5f9fe",
|
||||
"nX c #fafcfe",
|
||||
"mX c None",
|
||||
/* pixels */
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX&.&.&.mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX&.&.t.M.*.5 mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX&.k A.K.K.K.z.9 mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX%.:.L.L.L.P.P.oXA.s mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX&.z.oXoXoXoXoXoXoXoXK.k mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmX] X.X.$.c.A.K.oXOX@X#X#X@X#XoX%.mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmX/ <XnXtXW.X.` 9.p.N.K.oXOX#X$X$X$X,.mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmX( vXnXnXnXnXeX/.I.[ .w.c.G.H.P.OX#Xl.mXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmX=.o.nXnXnXbXnXbXnXbXbXeX).E.O.o.s.h.a.m.>.mXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmX&.x _.nXnXbXvXvXvXbXbXnXnXnXnXbXzXqX'.(.W.U.X._ mXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmX&.m.) hXbXbXvXzXbXvXzXzXzXzXbXbXvXzXnXzXzXkXeX^.6.v.mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmX&.&.h o.lXzXvXzXzXzXzXzXzXuXzXzXvXzXzXzXzXzXtX!.y.v.5.mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXB.1.z R.yXlXkXkXkXlXzXjXuXkXyXzXkXzXkXzXzXeX^.i.5.].4.mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX2.*XF.1.G.4XuXuXuXjXuXlXuXrXyXyXuXuXuXuXuXeX!.y.2.[.[.2.mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX;.*X*X+X3.m._.qXrXyXuXuXuXyXyXyXuXrXrXyX8X!.r.2. X X[.;.mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX-.*X=X>X:XV.<.!.5XrXyXuXuXrXwXrXuXwX8X5X| - d D. X X[.-.mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX&.=X:X>X>X,XXX-.j.`.7XrX8X'.).'.8X6X'.T.8.p B t V. X[.=.mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX@.=X:X>X,XpXaX:X;.e.~.).T.h.8.r.j.Q.g.- k Z.A D w 5.[.l mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX+.*X:X>X,XaXaXdXdXb.$. .>.4.e z.b.-.1 < l.}.Q F Z l B.X mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXj =X:X>XiXsXaXdXdXgXoX-.F.cXR b 2X7.^ 7 y c B F F ; 1.H + mXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXf ;X:X>X,XiXsXdXdXdXn.Z.cXK.^ H y.W { * X % F F F & q ^ I mXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXf *X:X>X>XiXaXpXdXb.b.xXxXq.{ { , E { Y > ! S F F m ! { E mXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXa *X:X>X>X,XpXpXx.l.gXgXgX} { { { E { { U E C F F C { { E mXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX0 &X*X:X>X>X,Xl.3.fXfXdXp.r E { ! E { { { E V F F V { { + mXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX9 %X*X=X:X>X4.,.aXdXdXaXiXW ~ ^ @ I ^ { { { ^ n F N ^ { ! mXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX6 %X*X*X=X4.-.iXaXaXiXiX,Xv ! ^ C o J { { { { ^ # ! { ^ H mXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX5 %X%X&X3.&.>XiXiXiX,X,X>Xu U ^ M C ! ! ^ { { { ^ { { ^ mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX3 .X%X2.#.>X,X,X>X:X>X:X;XV.T { P S Y { { { { { { { { { mXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX2 .X2.k -X>X:X;X;X=X=X%XS.2.&.Y { I @ ^ ^ { { { { { ^ mXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX. ;.j &X:X=X|.v.,.&.&.%.mXmXmXmX$ U ^ ^ { ^ { ^ ^ I mXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmX3 i &.&.&.&.&.mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX",
|
||||
"mXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmXmX"
|
||||
};
|
|
@ -21,7 +21,7 @@
|
|||
*
|
||||
* Contributor(s):
|
||||
* Brian Ryner <bryner@brianryner.com>
|
||||
* Daniel Glazman <glazman@netscape.com>
|
||||
* Daniel Glazman <daniel@glazman.org>, on behalf of Lindows.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
|
|
@ -48,8 +48,8 @@ pref("keyword.URL", "http://keyword.netscape.com/keyword/");
|
|||
pref("keyword.enabled", false);
|
||||
pref("general.useragent.locale", "chrome://navigator/locale/navigator.properties");
|
||||
pref("general.useragent.contentlocale", "chrome://navigator-region/locale/region.properties");
|
||||
pref("general.useragent.vendor", "Thunderbird");
|
||||
pref("general.useragent.vendorSub", "0.1a");
|
||||
pref("general.useragent.vendor", "Mozilla (standalone) Composer");
|
||||
pref("general.useragent.vendorSub", "0.0.1");
|
||||
|
||||
pref("general.startup.browser", false);
|
||||
pref("general.startup.mail", false);
|
||||
|
@ -92,6 +92,7 @@ pref("browser.display.force_inline_alttext", false); // true = force ALT text fo
|
|||
pref("browser.display.normal_lineheight_calc_control", 2);
|
||||
pref("browser.display.show_image_placeholders", true); // true = show image placeholders while image is loaded and when image is broken
|
||||
pref("browser.anchor_color", "#0000EE");
|
||||
pref("browser.active_color", "#EE0000");
|
||||
pref("browser.visited_color", "#551A8B");
|
||||
pref("browser.underline_anchors", true);
|
||||
pref("browser.blink_allowed", true);
|
||||
|
|
|
@ -1,23 +1,39 @@
|
|||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
# The Original Code is Mozilla.org
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Contributor(s):
|
||||
# Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
|
|
|
@ -0,0 +1,213 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998-1999
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Daniel Glazman <glazman@netscape.com>
|
||||
* Daniel Glazman <daniel@glazman.org>, on behalf of Lindows.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* Styles to alter look of things in the Editor content window
|
||||
* for the "Normal Edit Mode" These settings will be removed
|
||||
* when we display in completely WYSIWYG "Edit Preview" mode
|
||||
* Anything that should never change, like cursors, should be
|
||||
* place in EditorOverride.css, instead of here.
|
||||
*/
|
||||
|
||||
a[name] {
|
||||
min-height: 17px; margin-left: 2px; margin-top: 2px;
|
||||
padding-left: 20px;
|
||||
background-image: url(chrome://editor/content/images/tag-anchor.gif);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left;
|
||||
}
|
||||
|
||||
/* Force border display for empty cells
|
||||
and tables with 0 border
|
||||
*/
|
||||
table {
|
||||
empty-cells: show;
|
||||
}
|
||||
|
||||
/* give a red dotted border to tables and cells with no border
|
||||
otherwise they are invisible
|
||||
*/
|
||||
table[empty-cells],
|
||||
table[border="0"],
|
||||
/* next two selectors on line below for the case where tbody is omitted */
|
||||
table[border="0"] > tr > td, table[border="0"] > tr > th,
|
||||
table[border="0"] > thead > tr > td, table[border="0"] > tbody > tr > td, table[border="0"] > tfoot > tr > td,
|
||||
table[border="0"] > thead > tr > th, table[border="0"] > tbody > tr > th, table[border="0"] > tfoot > tr > th,
|
||||
table:not([border]),
|
||||
/* next two selectors on line below for the case where tbody is omitted */
|
||||
table:not([border]) > tr > td, table:not([border]) > tr > th,
|
||||
table:not([border]) > thead > tr > td, table:not([border]) > tbody > tr > td, table:not([border]) > tfoot > tr > td,
|
||||
table:not([border]) > thead > tr > th, table:not([border]) > tbody > tr > th, table:not([border]) > tfoot > tr > th
|
||||
{
|
||||
border: 1px dotted red;
|
||||
}
|
||||
|
||||
/* give a green dashed border to forms otherwise they are invisible
|
||||
*/
|
||||
form
|
||||
{
|
||||
border: 1px dashed #66cccc;
|
||||
}
|
||||
|
||||
/* give a green dotted border to labels otherwise they are invisible
|
||||
*/
|
||||
label
|
||||
{
|
||||
border: 1px dotted green;
|
||||
}
|
||||
|
||||
/* smileys */
|
||||
span.moz-smiley-s1,
|
||||
span.moz-smiley-s2,
|
||||
span.moz-smiley-s3,
|
||||
span.moz-smiley-s4,
|
||||
span.moz-smiley-s5,
|
||||
span.moz-smiley-s6,
|
||||
span.moz-smiley-s7,
|
||||
span.moz-smiley-s8,
|
||||
span.moz-smiley-s9,
|
||||
span.moz-smiley-s10,
|
||||
span.moz-smiley-s11,
|
||||
span.moz-smiley-s12,
|
||||
span.moz-smiley-s13,
|
||||
span.moz-smiley-s14,
|
||||
span.moz-smiley-s15,
|
||||
span.moz-smiley-s16
|
||||
|
||||
{
|
||||
min-height: 17px; margin-left: 2px; margin-top: 2px;
|
||||
padding-left: 20px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
-moz-user-select: all;
|
||||
|
||||
}
|
||||
|
||||
span.moz-smiley-s1 > span,
|
||||
span.moz-smiley-s2 > span,
|
||||
span.moz-smiley-s3 > span,
|
||||
span.moz-smiley-s4 > span,
|
||||
span.moz-smiley-s5 > span,
|
||||
span.moz-smiley-s6 > span,
|
||||
span.moz-smiley-s7 > span,
|
||||
span.moz-smiley-s8 > span,
|
||||
span.moz-smiley-s9 > span,
|
||||
span.moz-smiley-s10 > span,
|
||||
span.moz-smiley-s11 > span,
|
||||
span.moz-smiley-s12 > span,
|
||||
span.moz-smiley-s13 > span,
|
||||
span.moz-smiley-s14 > span,
|
||||
span.moz-smiley-s15 > span,
|
||||
span.moz-smiley-s16 > span
|
||||
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
span.moz-smiley-s1 {
|
||||
background-image: url(chrome://editor/content/images/smile_n.gif);
|
||||
}
|
||||
|
||||
|
||||
span.moz-smiley-s2 {
|
||||
background-image: url(chrome://editor/content/images/frown_n.gif);
|
||||
}
|
||||
|
||||
|
||||
span.moz-smiley-s3 {
|
||||
background-image: url(chrome://editor/content/images/wink_n.gif);
|
||||
}
|
||||
|
||||
|
||||
span.moz-smiley-s4 {
|
||||
background-image: url(chrome://editor/content/images/tongue_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s5 {
|
||||
background-image: url(chrome://editor/content/images/laughing_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s6 {
|
||||
background-image: url(chrome://editor/content/images/embarrassed_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s7 {
|
||||
background-image: url(chrome://editor/content/images/undecided_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s8 {
|
||||
background-image: url(chrome://editor/content/images/surprise_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s9 {
|
||||
background-image: url(chrome://editor/content/images/kiss_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s10 {
|
||||
background-image: url(chrome://editor/content/images/yell_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s11 {
|
||||
background-image: url(chrome://editor/content/images/cool_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s12 {
|
||||
background-image: url(chrome://editor/content/images/money_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s13 {
|
||||
background-image: url(chrome://editor/content/images/foot_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s14 {
|
||||
background-image: url(chrome://editor/content/images/innocent_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s15 {
|
||||
background-image: url(chrome://editor/content/images/cry_n.gif);
|
||||
}
|
||||
|
||||
span.moz-smiley-s16 {
|
||||
background-image: url(chrome://editor/content/images/sealed_n.gif);
|
||||
}
|
||||
|
||||
|
||||
img {
|
||||
-moz-force-broken-image-icon: 1;
|
||||
}
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 71 KiB |
|
@ -0,0 +1,106 @@
|
|||
<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
|
||||
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla Thunderbird about dialog.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Blake Ross (blaker@netscape.com).
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://editor/skin/aboutDialog.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window [
|
||||
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
|
||||
%brandDTD;
|
||||
<!ENTITY % aboutDialogDTD SYSTEM "chrome://editor/locale/aboutDialog.dtd" >
|
||||
%aboutDialogDTD;
|
||||
]>
|
||||
|
||||
<dialog xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
id="aboutDialog"
|
||||
buttons="accept"
|
||||
onload="onLoad();"
|
||||
title="&aboutDialog.title;"
|
||||
style="width: 300px; height: 16.3em;">
|
||||
|
||||
<script type="application/x-javascript">
|
||||
<![CDATA[
|
||||
function onLoad() {
|
||||
var versionField = document.getElementById("versionField");
|
||||
var hidversionField = document.getElementById("hidversionField");
|
||||
var brandShortNameEl = document.getElementById("brandShortName");
|
||||
hidversionField.value = brandShortNameEl.firstChild.nodeValue + ' ' + navigator.vendorSub + ' (' + navigator.productSub + ')';
|
||||
versionField.value = hidversionField.value;
|
||||
versionField.width = hidversionField.width;
|
||||
}
|
||||
|
||||
function loadExternalLink() {
|
||||
try {
|
||||
var messenger = Components.classes["@mozilla.org/messenger;1"].createInstance();
|
||||
messenger = messenger.QueryInterface(Components.interfaces.nsIMessenger);
|
||||
messenger.launchExternalURL(document.getElementById('copyrightLink').getAttribute("href"));
|
||||
} catch (ex) {}
|
||||
|
||||
// return false, so we don't load the href in the about dialog
|
||||
return false;
|
||||
}
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<vbox flex="1" id="clientBox">
|
||||
<image src="chrome://editor/content/about-composer.png"/>
|
||||
|
||||
<vbox id="detailsBox" align="center" flex="1">
|
||||
<separator class="thin"/>
|
||||
|
||||
<hbox>
|
||||
<vbox>
|
||||
<label id="hidversionField" style="padding: 0px; visibility: hidden; font-weight: bold;"/>
|
||||
<textbox id="versionField" readonly="true" class="plain" style="padding-left: 6px !important;" tabindex="2"/>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
||||
<separator class="thin"/>
|
||||
|
||||
<html:a id="copyrightLink" onclick="return loadExternalLink();" href="©rightLink;" style="display: block; color: blue; text-decoration: underline;" tabindex="3">©right;</html:a>
|
||||
</vbox>
|
||||
</vbox>
|
||||
|
||||
<separator class="groove" id="groove"/>
|
||||
|
||||
<!-- Localizable strings (from .dtd) -->
|
||||
<strings style="display:none;">
|
||||
<string id="brandShortName">&brandShortName;</string>
|
||||
</strings>
|
||||
</dialog>
|
|
@ -0,0 +1,937 @@
|
|||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla.org
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# David Hyatt.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# David Hyatt (hyatt@apple.com)
|
||||
# Blake Ross (blaker@netscape.com)
|
||||
# Joe Hewitt (hewitt@netscape.com)
|
||||
# Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
const kRowMax = 4;
|
||||
const kWindowWidth = 600;
|
||||
const kWindowHeight = 400;
|
||||
const kAnimateIncrement = 50;
|
||||
const kAnimateSteps = kWindowHeight / kAnimateIncrement - 1;
|
||||
|
||||
var gToolboxDocument = null;
|
||||
var gToolbox = null;
|
||||
var gCurrentDragOverItem = null;
|
||||
var gToolboxChanged = false;
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
gToolbox = window.arguments[0];
|
||||
gToolboxDocument = gToolbox.ownerDocument;
|
||||
|
||||
gToolbox.addEventListener("draggesture", onToolbarDragGesture, false);
|
||||
gToolbox.addEventListener("dragover", onToolbarDragOver, false);
|
||||
gToolbox.addEventListener("dragexit", onToolbarDragExit, false);
|
||||
gToolbox.addEventListener("dragdrop", onToolbarDragDrop, false);
|
||||
|
||||
document.documentElement.setAttribute("hidechrome", "true");
|
||||
|
||||
repositionDialog();
|
||||
window.outerWidth = kWindowWidth;
|
||||
window.outerHeight = 50;
|
||||
slideOpen(0);
|
||||
}
|
||||
|
||||
function onUnload(aEvent)
|
||||
{
|
||||
removeToolboxListeners();
|
||||
unwrapToolbarItems();
|
||||
persistCurrentSets();
|
||||
|
||||
notifyParentComplete();
|
||||
}
|
||||
|
||||
function onAccept(aEvent)
|
||||
{
|
||||
document.getElementById("main-box").collapsed = true;
|
||||
slideClosed(0);
|
||||
}
|
||||
|
||||
function initDialog()
|
||||
{
|
||||
document.getElementById("main-box").collapsed = false;
|
||||
|
||||
var mode = gToolbox.getAttribute("mode");
|
||||
document.getElementById("modelist").value = mode;
|
||||
var iconSize = gToolbox.getAttribute("iconsize");
|
||||
var smallIconsCheckbox = document.getElementById("smallicons");
|
||||
if (smallIconsCheckbox)
|
||||
{
|
||||
if ( mode == "text")
|
||||
smallIconsCheckbox.disabled = true;
|
||||
else
|
||||
smallIconsCheckbox.checked = iconSize == "small";
|
||||
}
|
||||
|
||||
// Build up the palette of other items.
|
||||
buildPalette();
|
||||
|
||||
// Wrap all the items on the toolbar in toolbarpaletteitems.
|
||||
wrapToolbarItems();
|
||||
}
|
||||
|
||||
function slideOpen(aStep)
|
||||
{
|
||||
if (aStep < kAnimateSteps) {
|
||||
window.outerHeight += kAnimateIncrement;
|
||||
setTimeout(slideOpen, 20, ++aStep);
|
||||
} else {
|
||||
initDialog();
|
||||
}
|
||||
}
|
||||
|
||||
function slideClosed(aStep)
|
||||
{
|
||||
if (aStep < kAnimateSteps) {
|
||||
window.outerHeight -= kAnimateIncrement;
|
||||
setTimeout(slideClosed, 10, ++aStep);
|
||||
} else {
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
|
||||
function repositionDialog()
|
||||
{
|
||||
// Position the dialog touching the bottom of the toolbox and centered with it
|
||||
var screenX = gToolbox.boxObject.screenX + ((gToolbox.boxObject.width - kWindowWidth) / 2);
|
||||
var screenY = gToolbox.boxObject.screenY + gToolbox.boxObject.height;
|
||||
window.moveTo(screenX, screenY);
|
||||
}
|
||||
|
||||
function removeToolboxListeners()
|
||||
{
|
||||
gToolbox.removeEventListener("draggesture", onToolbarDragGesture, false);
|
||||
gToolbox.removeEventListener("dragover", onToolbarDragOver, false);
|
||||
gToolbox.removeEventListener("dragexit", onToolbarDragExit, false);
|
||||
gToolbox.removeEventListener("dragdrop", onToolbarDragDrop, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoke a callback on the toolbox to notify it that the dialog is done
|
||||
* and going away.
|
||||
*/
|
||||
function notifyParentComplete()
|
||||
{
|
||||
if ("customizeDone" in gToolbox)
|
||||
gToolbox.customizeDone(gToolboxChanged);
|
||||
}
|
||||
|
||||
function getToolbarAt(i)
|
||||
{
|
||||
return gToolbox.childNodes[i];
|
||||
}
|
||||
|
||||
/**
|
||||
* Persist the current set of buttons in all customizable toolbars to
|
||||
* localstore.
|
||||
*/
|
||||
function persistCurrentSets()
|
||||
{
|
||||
if (!gToolboxChanged)
|
||||
return;
|
||||
|
||||
var customCount = 0;
|
||||
for (var i = 0; i < gToolbox.childNodes.length; ++i) {
|
||||
// Look for customizable toolbars that need to be persisted.
|
||||
var toolbar = getToolbarAt(i);
|
||||
if (isCustomizableToolbar(toolbar)) {
|
||||
// Calculate currentset and store it in the attribute.
|
||||
var currentSet = toolbar.currentSet;
|
||||
toolbar.setAttribute("currentset", currentSet);
|
||||
|
||||
var customIndex = toolbar.hasAttribute("customindex");
|
||||
if (customIndex) {
|
||||
if (!toolbar.firstChild) {
|
||||
// Remove custom toolbars whose contents have been removed.
|
||||
gToolbox.removeChild(toolbar);
|
||||
--i;
|
||||
} else {
|
||||
// Persist custom toolbar info on the <toolbarset/>
|
||||
gToolbox.toolbarset.setAttribute("toolbar"+(++customCount),
|
||||
toolbar.toolbarName + ":" + currentSet);
|
||||
gToolboxDocument.persist(gToolbox.toolbarset.id, "toolbar"+customCount);
|
||||
}
|
||||
}
|
||||
|
||||
if (!customIndex) {
|
||||
// Persist the currentset attribute directly on hardcoded toolbars.
|
||||
gToolboxDocument.persist(toolbar.id, "currentset");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Remove toolbarX attributes for removed toolbars.
|
||||
while (gToolbox.toolbarset.hasAttribute("toolbar"+(++customCount))) {
|
||||
gToolbox.toolbarset.removeAttribute("toolbar"+customCount);
|
||||
gToolboxDocument.persist(gToolbox.toolbarset.id, "toolbar"+customCount);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraps all items in all customizable toolbars in a toolbox.
|
||||
*/
|
||||
function wrapToolbarItems()
|
||||
{
|
||||
for (var i = 0; i < gToolbox.childNodes.length; ++i) {
|
||||
var toolbar = getToolbarAt(i);
|
||||
if (isCustomizableToolbar(toolbar)) {
|
||||
for (var k = 0; k < toolbar.childNodes.length; ++k) {
|
||||
var item = toolbar.childNodes[k];
|
||||
if (isToolbarItem(item)) {
|
||||
var nextSibling = item.nextSibling;
|
||||
|
||||
var wrapper = wrapToolbarItem(item);
|
||||
if (nextSibling)
|
||||
toolbar.insertBefore(wrapper, nextSibling);
|
||||
else
|
||||
toolbar.appendChild(wrapper);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unwraps all items in all customizable toolbars in a toolbox.
|
||||
*/
|
||||
function unwrapToolbarItems()
|
||||
{
|
||||
for (var i = 0; i < gToolbox.childNodes.length; ++i) {
|
||||
var toolbar = getToolbarAt(i);
|
||||
if (isCustomizableToolbar(toolbar)) {
|
||||
for (var k = 0; k < toolbar.childNodes.length; ++k) {
|
||||
var paletteItem = toolbar.childNodes[k];
|
||||
var toolbarItem = paletteItem.firstChild;
|
||||
|
||||
if (isToolbarItem(toolbarItem)) {
|
||||
var nextSibling = paletteItem.nextSibling;
|
||||
|
||||
if (paletteItem.hasAttribute("itemcommand"))
|
||||
toolbarItem.setAttribute("command", paletteItem.getAttribute("itemcommand"));
|
||||
if (paletteItem.hasAttribute("itemobserves"))
|
||||
toolbarItem.setAttribute("observes", paletteItem.getAttribute("itemobserves"));
|
||||
|
||||
paletteItem.removeChild(toolbarItem);
|
||||
paletteItem.parentNode.removeChild(paletteItem);
|
||||
|
||||
if (nextSibling)
|
||||
toolbar.insertBefore(toolbarItem, nextSibling);
|
||||
else
|
||||
toolbar.appendChild(toolbarItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a wrapper that can be used to contain a toolbaritem and prevent
|
||||
* it from receiving UI events.
|
||||
*/
|
||||
function createWrapper(aId)
|
||||
{
|
||||
var wrapper = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"toolbarpaletteitem");
|
||||
|
||||
wrapper.id = "wrapper-"+aId;
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraps an item that has been cloned from a template and adds
|
||||
* it to the end of a row in the palette.
|
||||
*/
|
||||
function wrapPaletteItem(aPaletteItem, aCurrentRow, aSpacer)
|
||||
{
|
||||
var wrapper = createWrapper(aPaletteItem.id);
|
||||
|
||||
wrapper.setAttribute("flex", 1);
|
||||
wrapper.setAttribute("align", "center");
|
||||
wrapper.setAttribute("pack", "center");
|
||||
wrapper.setAttribute("minheight", "0");
|
||||
wrapper.setAttribute("minwidth", "0");
|
||||
|
||||
wrapper.appendChild(aPaletteItem);
|
||||
|
||||
// XXX We need to call this AFTER the palette item has been appended
|
||||
// to the wrapper or else we crash dropping certain buttons on the
|
||||
// palette due to removal of the command and disabled attributes - JRH
|
||||
cleanUpItemForPalette(aPaletteItem, wrapper);
|
||||
|
||||
if (aSpacer)
|
||||
aCurrentRow.insertBefore(wrapper, aSpacer);
|
||||
else
|
||||
aCurrentRow.appendChild(wrapper);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraps an item that is currently on a toolbar and replaces the item
|
||||
* with the wrapper. This is not used when dropping items from the palette,
|
||||
* only when first starting the dialog and wrapping everything on the toolbars.
|
||||
*/
|
||||
function wrapToolbarItem(aToolbarItem)
|
||||
{
|
||||
var wrapper = createWrapper(aToolbarItem.id);
|
||||
|
||||
cleanupItemForToolbar(aToolbarItem, wrapper);
|
||||
wrapper.flex = aToolbarItem.flex;
|
||||
|
||||
if (aToolbarItem.parentNode)
|
||||
aToolbarItem.parentNode.removeChild(aToolbarItem);
|
||||
|
||||
wrapper.appendChild(aToolbarItem);
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of ids for the current set of items on each toolbar.
|
||||
*/
|
||||
function getCurrentItemIds()
|
||||
{
|
||||
var currentItems = {};
|
||||
for (var i = 0; i < gToolbox.childNodes.length; ++i) {
|
||||
var toolbar = getToolbarAt(i);
|
||||
if (isCustomizableToolbar(toolbar)) {
|
||||
var child = toolbar.firstChild;
|
||||
while (child) {
|
||||
if (isToolbarItem(child))
|
||||
currentItems[child.id] = 1;
|
||||
child = child.nextSibling;
|
||||
}
|
||||
}
|
||||
}
|
||||
return currentItems;
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds the palette of draggable items that are not yet in a toolbar.
|
||||
*/
|
||||
function buildPalette()
|
||||
{
|
||||
// Empty the palette first.
|
||||
var paletteBox = document.getElementById("palette-box");
|
||||
while (paletteBox.lastChild)
|
||||
paletteBox.removeChild(paletteBox.lastChild);
|
||||
|
||||
var currentRow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"hbox");
|
||||
currentRow.setAttribute("class", "paletteRow");
|
||||
|
||||
// Add the toolbar separator item.
|
||||
var templateNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"toolbarseparator");
|
||||
templateNode.id = "separator";
|
||||
wrapPaletteItem(templateNode, currentRow, null);
|
||||
|
||||
// Add the toolbar spring item.
|
||||
templateNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"toolbarspring");
|
||||
templateNode.id = "spring";
|
||||
templateNode.flex = 1;
|
||||
wrapPaletteItem(templateNode, currentRow, null);
|
||||
|
||||
// Add the toolbar spacer item.
|
||||
templateNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"toolbarspacer");
|
||||
templateNode.id = "spacer";
|
||||
templateNode.flex = 1;
|
||||
wrapPaletteItem(templateNode, currentRow, null);
|
||||
|
||||
var rowSlot = 3;
|
||||
|
||||
var currentItems = getCurrentItemIds();
|
||||
templateNode = gToolbox.palette.firstChild;
|
||||
while (templateNode) {
|
||||
// Check if the item is already in a toolbar before adding it to the palette.
|
||||
if (!(templateNode.id in currentItems)) {
|
||||
var paletteItem = templateNode.cloneNode(true);
|
||||
|
||||
if (rowSlot == kRowMax) {
|
||||
// Append the old row.
|
||||
paletteBox.appendChild(currentRow);
|
||||
|
||||
// Make a new row.
|
||||
currentRow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"hbox");
|
||||
currentRow.setAttribute("class", "paletteRow");
|
||||
rowSlot = 0;
|
||||
}
|
||||
|
||||
++rowSlot;
|
||||
wrapPaletteItem(paletteItem, currentRow, null);
|
||||
}
|
||||
|
||||
templateNode = templateNode.nextSibling;
|
||||
}
|
||||
|
||||
if (currentRow) {
|
||||
fillRowWithFlex(currentRow);
|
||||
paletteBox.appendChild(currentRow);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new palette item for a cloned template node and
|
||||
* adds it to the last slot in the palette.
|
||||
*/
|
||||
function appendPaletteItem(aItem)
|
||||
{
|
||||
var paletteBox = document.getElementById("palette-box");
|
||||
var lastRow = paletteBox.lastChild;
|
||||
var lastSpacer = lastRow.lastChild;
|
||||
|
||||
if (lastSpacer.localName != "spacer") {
|
||||
// The current row is full, so we have to create a new row.
|
||||
lastRow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"hbox");
|
||||
lastRow.setAttribute("class", "paletteRow");
|
||||
paletteBox.appendChild(lastRow);
|
||||
|
||||
wrapPaletteItem(aItem, lastRow, null);
|
||||
|
||||
fillRowWithFlex(lastRow);
|
||||
} else {
|
||||
// Decrement the flex of the last spacer or remove it entirely.
|
||||
var flex = lastSpacer.getAttribute("flex");
|
||||
if (flex == 1) {
|
||||
lastRow.removeChild(lastSpacer);
|
||||
lastSpacer = null;
|
||||
} else
|
||||
lastSpacer.setAttribute("flex", --flex);
|
||||
|
||||
// Insert the wrapper where the last spacer was.
|
||||
wrapPaletteItem(aItem, lastRow, lastSpacer);
|
||||
}
|
||||
}
|
||||
|
||||
function fillRowWithFlex(aRow)
|
||||
{
|
||||
var remainingFlex = kRowMax - aRow.childNodes.length;
|
||||
if (remainingFlex > 0) {
|
||||
var spacer = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"spacer");
|
||||
spacer.setAttribute("flex", remainingFlex);
|
||||
aRow.appendChild(spacer);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes sure that an item that has been cloned from a template
|
||||
* is stripped of all properties that may adversely affect it's
|
||||
* appearance in the palette.
|
||||
*/
|
||||
function cleanUpItemForPalette(aItem, aWrapper)
|
||||
{
|
||||
aWrapper.setAttribute("place", "palette");
|
||||
setWrapperType(aItem, aWrapper);
|
||||
|
||||
if (aItem.hasAttribute("title"))
|
||||
aWrapper.setAttribute("title", aItem.getAttribute("title"));
|
||||
else if (isSpecialItem(aItem)) {
|
||||
var stringBundle = document.getElementById("stringBundle");
|
||||
var title = stringBundle.getString(aItem.id + "Title");
|
||||
aWrapper.setAttribute("title", title);
|
||||
}
|
||||
|
||||
// Remove attributes that screw up our appearance.
|
||||
aItem.removeAttribute("command");
|
||||
aItem.removeAttribute("observes");
|
||||
aItem.removeAttribute("disabled");
|
||||
aItem.removeAttribute("type");
|
||||
|
||||
if (aItem.localName == "toolbaritem" && aItem.firstChild) {
|
||||
aItem.firstChild.removeAttribute("observes");
|
||||
|
||||
// So the throbber doesn't throb in the dialog,
|
||||
// cute as that may be...
|
||||
aItem.firstChild.removeAttribute("busy");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes sure that an item that has been cloned from a template
|
||||
* is stripped of all properties that may adversely affect it's
|
||||
* appearance in the toolbar. Store critical properties on the
|
||||
* wrapper so they can be put back on the item when we're done.
|
||||
*/
|
||||
function cleanupItemForToolbar(aItem, aWrapper)
|
||||
{
|
||||
setWrapperType(aItem, aWrapper);
|
||||
aWrapper.setAttribute("place", "toolbar");
|
||||
|
||||
if (aItem.hasAttribute("command")) {
|
||||
aWrapper.setAttribute("itemcommand", aItem.getAttribute("command"));
|
||||
aItem.removeAttribute("command");
|
||||
}
|
||||
|
||||
if (aItem.hasAttribute("observes"))
|
||||
{
|
||||
aWrapper.setAttribute("itemobserves", aItem.getAttribute("observes"));
|
||||
aItem.removeAttribute("observes");
|
||||
}
|
||||
|
||||
if (aItem.disabled) {
|
||||
aWrapper.setAttribute("itemdisabled", "true");
|
||||
aItem.disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
function setWrapperType(aItem, aWrapper)
|
||||
{
|
||||
if (aItem.localName == "toolbarseparator") {
|
||||
aWrapper.setAttribute("type", "separator");
|
||||
} else if (aItem.localName == "toolbarspring") {
|
||||
aWrapper.setAttribute("type", "spring");
|
||||
} else if (aItem.localName == "toolbarspacer") {
|
||||
aWrapper.setAttribute("type", "spacer");
|
||||
} else if (aItem.localName == "toolbaritem" && aItem.firstChild) {
|
||||
aWrapper.setAttribute("type", aItem.firstChild.localName);
|
||||
}
|
||||
}
|
||||
|
||||
function setDragActive(aItem, aValue)
|
||||
{
|
||||
var node = aItem;
|
||||
var value = "left";
|
||||
if (aItem.localName == "toolbar") {
|
||||
node = aItem.lastChild;
|
||||
value = "right";
|
||||
}
|
||||
|
||||
if (!node)
|
||||
return;
|
||||
|
||||
if (aValue) {
|
||||
if (!node.hasAttribute("dragover"))
|
||||
node.setAttribute("dragover", value);
|
||||
} else {
|
||||
node.removeAttribute("dragover");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Restore the default set of buttons to fixed toolbars,
|
||||
* remove all custom toolbars, and rebuild the palette.
|
||||
*/
|
||||
function restoreDefaultSet()
|
||||
{
|
||||
// Restore the defaultset for fixed toolbars.
|
||||
var toolbar = gToolbox.firstChild;
|
||||
while (toolbar) {
|
||||
if (isCustomizableToolbar(toolbar)) {
|
||||
if (!toolbar.hasAttribute("customindex")) {
|
||||
var defaultSet = toolbar.getAttribute("defaultset");
|
||||
if (defaultSet)
|
||||
{
|
||||
toolbar.currentSet = defaultSet;
|
||||
}
|
||||
}
|
||||
}
|
||||
toolbar = toolbar.nextSibling;
|
||||
}
|
||||
|
||||
// Remove all of the customized toolbars.
|
||||
var child = gToolbox.lastChild;
|
||||
while (child) {
|
||||
if (child.hasAttribute("customindex")) {
|
||||
var thisChild = child;
|
||||
child = child.previousSibling;
|
||||
gToolbox.removeChild(thisChild);
|
||||
} else {
|
||||
child = child.previousSibling;
|
||||
}
|
||||
}
|
||||
|
||||
// Now rebuild the palette.
|
||||
buildPalette();
|
||||
|
||||
// Now re-wrap the items on the toolbar.
|
||||
wrapToolbarItems();
|
||||
|
||||
repositionDialog();
|
||||
gToolboxChanged = true;
|
||||
}
|
||||
|
||||
function updateIconSize(aUseSmallIcons)
|
||||
{
|
||||
var val = aUseSmallIcons ? "small" : null;
|
||||
|
||||
setAttribute(gToolbox, "iconsize", val);
|
||||
gToolboxDocument.persist(gToolbox.id, "iconsize");
|
||||
|
||||
for (var i = 0; i < gToolbox.childNodes.length; ++i) {
|
||||
var toolbar = getToolbarAt(i);
|
||||
if (isCustomizableToolbar(toolbar)) {
|
||||
setAttribute(toolbar, "iconsize", val);
|
||||
gToolboxDocument.persist(toolbar.id, "iconsize");
|
||||
}
|
||||
}
|
||||
|
||||
repositionDialog();
|
||||
}
|
||||
|
||||
function updateToolbarMode(aModeValue)
|
||||
{
|
||||
setAttribute(gToolbox, "mode", aModeValue);
|
||||
gToolboxDocument.persist(gToolbox.id, "mode");
|
||||
|
||||
for (var i = 0; i < gToolbox.childNodes.length; ++i) {
|
||||
var toolbar = getToolbarAt(i);
|
||||
if (isCustomizableToolbar(toolbar)) {
|
||||
setAttribute(toolbar, "mode", aModeValue);
|
||||
gToolboxDocument.persist(toolbar.id, "mode");
|
||||
}
|
||||
}
|
||||
|
||||
var iconSizeCheckbox = document.getElementById("smallicons");
|
||||
if (iconSizeCheckbox)
|
||||
{
|
||||
if (aModeValue == "text") {
|
||||
iconSizeCheckbox.disabled = true;
|
||||
iconSizeCheckbox.checked = false;
|
||||
updateIconSize(false);
|
||||
}
|
||||
else {
|
||||
iconSizeCheckbox.disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
repositionDialog();
|
||||
}
|
||||
|
||||
|
||||
function setAttribute(aElt, aAttr, aVal)
|
||||
{
|
||||
if (aVal)
|
||||
aElt.setAttribute(aAttr, aVal);
|
||||
else
|
||||
aElt.removeAttribute(aAttr);
|
||||
}
|
||||
|
||||
function isCustomizableToolbar(aElt)
|
||||
{
|
||||
return aElt.localName == "toolbar" &&
|
||||
aElt.getAttribute("customizable") == "true";
|
||||
}
|
||||
|
||||
function isSpecialItem(aElt)
|
||||
{
|
||||
return aElt.localName == "toolbarseparator" ||
|
||||
aElt.localName == "toolbarspring" ||
|
||||
aElt.localName == "toolbarspacer";
|
||||
}
|
||||
|
||||
function isToolbarItem(aElt)
|
||||
{
|
||||
return aElt.localName == "toolbarbutton" ||
|
||||
aElt.localName == "toolbaritem" ||
|
||||
aElt.localName == "toolbarseparator" ||
|
||||
aElt.localName == "toolbarspring" ||
|
||||
aElt.localName == "toolbarspacer";
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//// Drag and Drop observers
|
||||
|
||||
function onToolbarDragGesture(aEvent)
|
||||
{
|
||||
nsDragAndDrop.startDrag(aEvent, dragStartObserver);
|
||||
}
|
||||
|
||||
function onToolbarDragOver(aEvent)
|
||||
{
|
||||
nsDragAndDrop.dragOver(aEvent, toolbarDNDObserver);
|
||||
}
|
||||
|
||||
function onToolbarDragDrop(aEvent)
|
||||
{
|
||||
nsDragAndDrop.drop(aEvent, toolbarDNDObserver);
|
||||
}
|
||||
|
||||
function onToolbarDragExit(aEvent)
|
||||
{
|
||||
if (gCurrentDragOverItem)
|
||||
setDragActive(gCurrentDragOverItem, false);
|
||||
}
|
||||
|
||||
var dragStartObserver =
|
||||
{
|
||||
onDragStart: function (aEvent, aXferData, aDragAction) {
|
||||
var documentId = gToolboxDocument.documentElement.id;
|
||||
|
||||
var item = aEvent.target;
|
||||
while (item && item.localName != "toolbarpaletteitem")
|
||||
item = item.parentNode;
|
||||
|
||||
item.setAttribute("dragactive", "true");
|
||||
|
||||
aXferData.data = new TransferDataSet();
|
||||
var data = new TransferData();
|
||||
data.addDataForFlavour("text/toolbarwrapper-id/"+documentId, item.firstChild.id);
|
||||
aXferData.data.push(data);
|
||||
}
|
||||
}
|
||||
|
||||
var toolbarDNDObserver =
|
||||
{
|
||||
onDragOver: function (aEvent, aFlavour, aDragSession)
|
||||
{
|
||||
var toolbar = aEvent.target;
|
||||
var dropTarget = aEvent.target;
|
||||
while (toolbar && toolbar.localName != "toolbar") {
|
||||
dropTarget = toolbar;
|
||||
toolbar = toolbar.parentNode;
|
||||
}
|
||||
|
||||
var previousDragItem = gCurrentDragOverItem;
|
||||
|
||||
// Make sure we are dragging over a customizable toolbar.
|
||||
if (!isCustomizableToolbar(toolbar)) {
|
||||
gCurrentDragOverItem = null;
|
||||
return;
|
||||
}
|
||||
|
||||
if (dropTarget.localName == "toolbar") {
|
||||
gCurrentDragOverItem = dropTarget;
|
||||
} else {
|
||||
var dropTargetWidth = dropTarget.boxObject.width;
|
||||
var dropTargetX = dropTarget.boxObject.x;
|
||||
|
||||
gCurrentDragOverItem = null;
|
||||
if (aEvent.clientX > (dropTargetX + (dropTargetWidth / 2))) {
|
||||
gCurrentDragOverItem = dropTarget.nextSibling;
|
||||
if (!gCurrentDragOverItem)
|
||||
gCurrentDragOverItem = toolbar;
|
||||
} else
|
||||
gCurrentDragOverItem = dropTarget;
|
||||
}
|
||||
|
||||
if (previousDragItem && gCurrentDragOverItem != previousDragItem) {
|
||||
setDragActive(previousDragItem, false);
|
||||
}
|
||||
|
||||
setDragActive(gCurrentDragOverItem, true);
|
||||
|
||||
aDragSession.canDrop = true;
|
||||
},
|
||||
|
||||
onDrop: function (aEvent, aXferData, aDragSession)
|
||||
{
|
||||
if (!gCurrentDragOverItem)
|
||||
return;
|
||||
|
||||
setDragActive(gCurrentDragOverItem, false);
|
||||
|
||||
var draggedItemId = aXferData.data;
|
||||
if (gCurrentDragOverItem.id == draggedItemId)
|
||||
return;
|
||||
|
||||
var toolbar = aEvent.target;
|
||||
while (toolbar.localName != "toolbar")
|
||||
toolbar = toolbar.parentNode;
|
||||
|
||||
var draggedPaletteWrapper = document.getElementById("wrapper-"+draggedItemId);
|
||||
if (!draggedPaletteWrapper) {
|
||||
// The wrapper has been dragged from the toolbar.
|
||||
|
||||
// Get the wrapper from the toolbar document and make sure that
|
||||
// it isn't being dropped on itself.
|
||||
var wrapper = gToolboxDocument.getElementById("wrapper-"+draggedItemId);
|
||||
if (wrapper == gCurrentDragOverItem)
|
||||
return;
|
||||
|
||||
// Don't allow static kids (e.g., the menubar) to move.
|
||||
if (wrapper.parentNode.firstPermanentChild && wrapper.parentNode.firstPermanentChild.id == wrapper.firstChild.id)
|
||||
return;
|
||||
if (wrapper.parentNode.lastPermanentChild && wrapper.parentNode.lastPermanentChild.id == wrapper.firstChild.id)
|
||||
return;
|
||||
|
||||
// Remove the item from it's place in the toolbar.
|
||||
wrapper.parentNode.removeChild(wrapper);
|
||||
|
||||
// Determine which toolbar we are dropping on.
|
||||
var dropToolbar = null;
|
||||
if (gCurrentDragOverItem.localName == "toolbar")
|
||||
dropToolbar = gCurrentDragOverItem;
|
||||
else
|
||||
dropToolbar = gCurrentDragOverItem.parentNode;
|
||||
|
||||
// Insert the item into the toolbar.
|
||||
if (gCurrentDragOverItem != dropToolbar)
|
||||
dropToolbar.insertBefore(wrapper, gCurrentDragOverItem);
|
||||
else
|
||||
dropToolbar.appendChild(wrapper);
|
||||
} else {
|
||||
// The item has been dragged from the palette
|
||||
|
||||
// Create a new wrapper for the item. We don't know the id yet.
|
||||
var wrapper = createWrapper("");
|
||||
|
||||
// Ask the toolbar to clone the item's template, place it inside the wrapper, and insert it in the toolbar.
|
||||
var newItem = toolbar.insertItem(draggedItemId, gCurrentDragOverItem == toolbar ? null : gCurrentDragOverItem, wrapper);
|
||||
|
||||
// Prepare the item and wrapper to look good on the toolbar.
|
||||
cleanupItemForToolbar(newItem, wrapper);
|
||||
wrapper.id = "wrapper-"+newItem.id;
|
||||
wrapper.flex = newItem.flex;
|
||||
|
||||
// Remove the wrapper from the palette.
|
||||
var currentRow = draggedPaletteWrapper.parentNode;
|
||||
if (draggedItemId != "separator" &&
|
||||
draggedItemId != "spring" &&
|
||||
draggedItemId != "spacer")
|
||||
{
|
||||
currentRow.removeChild(draggedPaletteWrapper);
|
||||
|
||||
while (currentRow) {
|
||||
// Pull the first child of the next row up
|
||||
// into this row.
|
||||
var nextRow = currentRow.nextSibling;
|
||||
|
||||
if (!nextRow) {
|
||||
var last = currentRow.lastChild;
|
||||
var first = currentRow.firstChild;
|
||||
if (first == last) {
|
||||
// Kill the row.
|
||||
currentRow.parentNode.removeChild(currentRow);
|
||||
break;
|
||||
}
|
||||
|
||||
if (last.localName == "spacer") {
|
||||
var flex = last.getAttribute("flex");
|
||||
last.setAttribute("flex", ++flex);
|
||||
// Reflow doesn't happen for some reason. Trigger it with a hide/show. ICK! -dwh
|
||||
last.hidden = true;
|
||||
last.hidden = false;
|
||||
break;
|
||||
} else {
|
||||
// Make a spacer and give it a flex of 1.
|
||||
var spacer = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
|
||||
"spacer");
|
||||
spacer.setAttribute("flex", "1");
|
||||
currentRow.appendChild(spacer);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
currentRow.appendChild(nextRow.firstChild);
|
||||
currentRow = currentRow.nextSibling;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gCurrentDragOverItem = null;
|
||||
|
||||
repositionDialog();
|
||||
gToolboxChanged = true;
|
||||
},
|
||||
|
||||
_flavourSet: null,
|
||||
|
||||
getSupportedFlavours: function ()
|
||||
{
|
||||
if (!this._flavourSet) {
|
||||
this._flavourSet = new FlavourSet();
|
||||
var documentId = gToolboxDocument.documentElement.id;
|
||||
this._flavourSet.appendFlavour("text/toolbarwrapper-id/"+documentId);
|
||||
}
|
||||
return this._flavourSet;
|
||||
}
|
||||
}
|
||||
|
||||
var paletteDNDObserver =
|
||||
{
|
||||
onDragOver: function (aEvent, aFlavour, aDragSession)
|
||||
{
|
||||
aDragSession.canDrop = true;
|
||||
},
|
||||
|
||||
onDrop: function(aEvent, aXferData, aDragSession)
|
||||
{
|
||||
var itemId = aXferData.data;
|
||||
|
||||
var wrapper = gToolboxDocument.getElementById("wrapper-"+itemId);
|
||||
if (wrapper) {
|
||||
// Don't allow static kids (e.g., the menubar) to move.
|
||||
if (wrapper.parentNode.firstPermanentChild && wrapper.parentNode.firstPermanentChild.id == wrapper.firstChild.id)
|
||||
return;
|
||||
if (wrapper.parentNode.lastPermanentChild && wrapper.parentNode.lastPermanentChild.id == wrapper.firstChild.id)
|
||||
return;
|
||||
|
||||
// The item was dragged out of the toolbar.
|
||||
wrapper.parentNode.removeChild(wrapper);
|
||||
|
||||
var wrapperType = wrapper.getAttribute("type");
|
||||
if (wrapperType != "separator" && wrapperType != "spacer" && wrapperType != "spring") {
|
||||
// Find the template node in the toolbox palette
|
||||
var templateNode = gToolbox.palette.firstChild;
|
||||
while (templateNode) {
|
||||
if (templateNode.id == itemId)
|
||||
break;
|
||||
templateNode = templateNode.nextSibling;
|
||||
}
|
||||
if (!templateNode)
|
||||
return;
|
||||
|
||||
// Clone the template and add it to our palette.
|
||||
var paletteItem = templateNode.cloneNode(true);
|
||||
appendPaletteItem(paletteItem);
|
||||
}
|
||||
}
|
||||
|
||||
repositionDialog();
|
||||
gToolboxChanged = true;
|
||||
},
|
||||
|
||||
_flavourSet: null,
|
||||
|
||||
getSupportedFlavours: function ()
|
||||
{
|
||||
if (!this._flavourSet) {
|
||||
this._flavourSet = new FlavourSet();
|
||||
var documentId = gToolboxDocument.documentElement.id;
|
||||
this._flavourSet.appendFlavour("text/toolbarwrapper-id/"+documentId);
|
||||
}
|
||||
return this._flavourSet;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla.org
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# David Hyatt.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# David Hyatt (hyatt@apple.com)
|
||||
# Blake Ross (blaker@netscape.com)
|
||||
# Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
<!DOCTYPE dialog [
|
||||
<!ENTITY % customizeToolbarDTD SYSTEM "chrome://global/locale/customizeToolbar.dtd">
|
||||
%customizeToolbarDTD;
|
||||
]>
|
||||
|
||||
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://global/content/customizeToolbar.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/customizeToolbar.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://editor/skin/editorPrimaryToolbar.css" type="text/css"?>
|
||||
|
||||
<window id="CustomizeToolbarWindow"
|
||||
title="&dialog.title;"
|
||||
onload="onLoad();"
|
||||
onunload="onUnload();"
|
||||
onclose="onAccept(); return false;"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/customizeToolbar.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
|
||||
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
|
||||
|
||||
<stringbundle id="stringBundle" src="chrome://global/locale/customizeToolbar.properties"/>
|
||||
|
||||
<vbox id="main-box" flex="1" collapsed="true">
|
||||
<description id="instructions">
|
||||
&instructions.description;
|
||||
</description>
|
||||
|
||||
<vbox flex="1" id="palette-box"
|
||||
ondraggesture="gDraggingFromPalette = true; nsDragAndDrop.startDrag(event, dragStartObserver);"
|
||||
ondragover="nsDragAndDrop.dragOver(event, paletteDNDObserver);"
|
||||
ondragdrop="nsDragAndDrop.drop(event, paletteDNDObserver);"/>
|
||||
|
||||
<box align="center">
|
||||
<label value="&show.label;"/>
|
||||
<menulist id="modelist" value="icons" oncommand="updateToolbarMode(this.value);">
|
||||
<menupopup>
|
||||
<menuitem value="full" label="&iconsAndText.label;"/>
|
||||
<menuitem value="icons" label="&icons.label;"/>
|
||||
<menuitem value="text" label="&text.label;"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
|
||||
<!--checkbox id="smallicons" oncommand="updateIconSize(this.checked);" label="&useSmallIcons.label;"/-->
|
||||
<spacer flex="1"/>
|
||||
|
||||
<button label="&restoreDefaultSet.label;" oncommand="restoreDefaultSet();"/>
|
||||
</box>
|
||||
|
||||
<separator class="groove"/>
|
||||
|
||||
<hbox align="center" pack="end">
|
||||
<button label="&saveChanges.label;" oncommand="onAccept();" default="true"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
||||
</window>
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,42 +1,57 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
- The contents of this file are subject to the Netscape Public
|
||||
- License Version 1.1 (the "License"); you may not use this file
|
||||
- except in compliance with the License. You may obtain a copy of
|
||||
- the License at http://www.mozilla.org/NPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS
|
||||
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
- implied. See the License for the specific language governing
|
||||
- rights and limitations under the License.
|
||||
-
|
||||
- The Original Code is Mozilla Communicator client code, released
|
||||
- March 31, 1998.
|
||||
-
|
||||
- The Initial Developer of the Original Code is Netscape
|
||||
- Communications Corporation. Portions created by Netscape are
|
||||
- Copyright (C) 1999-2000 Netscape Communications Corporation. All
|
||||
- Rights Reserved.
|
||||
-
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is Mozilla.org.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 1999-2000
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Ben Goodger
|
||||
- Michael Lowe
|
||||
- Sammy Ford
|
||||
-->
|
||||
- Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<?xml-stylesheet href="chrome://editor/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://editor/skin/editor.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://communicator/skin/communicator.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://communicator/skin/brand.css" type="text/css"?>
|
||||
|
||||
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
|
||||
|
||||
<?xml-stylesheet href="chrome://editor/skin/editorPrimaryToolbar.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://editor/skin/editorFormatToolbar.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://editor/skin/editorModeToolbar.css" type="text/css"?>
|
||||
<?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://editor/content/composerOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://editor/content/EditorContextMenuOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/contentAreaContextOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/sidebar/sidebarOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://communicator/content/communicatorOverlay.xul"?>
|
||||
|
@ -120,7 +135,7 @@
|
|||
<key keycode="VK_TAB" modifiers="control,shift" oncommand="return true;"/>
|
||||
</keyset>
|
||||
|
||||
<toolbox class="toolbox-top" id="EditorToolbox">
|
||||
<toolbox class="toolbox-top" id="EditorToolbox" mode="icons">
|
||||
<menubar id="main-menubar" class="chromeclass-menubar" persist="collapsed" grippytooltiptext="&menuBar.tooltip;">
|
||||
<menu id="fileMenu"/>
|
||||
<menu id="editMenu"/>
|
||||
|
@ -164,43 +179,44 @@
|
|||
<!--menu id="windowMenu"/-->
|
||||
|
||||
<!-- DEBUG only -->
|
||||
<menu id="debugMenu" />
|
||||
<!--menu id="debugMenu" /-->
|
||||
<!-- end DEBUG only -->
|
||||
|
||||
<!-- help menu filled from globalOverlay -->
|
||||
<menu id="menu_Help"/>
|
||||
<menu id="helpMenu"/>
|
||||
|
||||
<spacer flex="1"/>
|
||||
</menubar>
|
||||
|
||||
<!-- toolbar filled out from editorOverlay -->
|
||||
<!-- add class="standard" for dark blue background (icons need rework first) -->
|
||||
<toolbar class="chromeclass-toolbar toolbar-primary" id="EditToolbar" persist="collapsed"
|
||||
tbalign="stretch" grippytooltiptext="&compositionToolbar.tooltip;">
|
||||
<toolbarbutton id="newButton"/>
|
||||
<toolbarbutton id="openButton"/>
|
||||
<toolbarbutton id="saveButton"/>
|
||||
<toolbarbutton id="publishButton"/>
|
||||
<toolbarbutton id="previewButton"/>
|
||||
<toolbarbutton id="cutButton"/>
|
||||
<toolbarbutton id="copyButton"/>
|
||||
<toolbarbutton id="pasteButton"/>
|
||||
<toolbarbutton id="printButton"/>
|
||||
<toolbarbutton id="findButton"/>
|
||||
<toolbarseparator class="toolbarseparator-primary"/>
|
||||
<toolbarbutton id="linkButton"/>
|
||||
<toolbarbutton id="namedAnchorButton"/>
|
||||
<toolbarbutton id="imageButton"/>
|
||||
<toolbarbutton id="hlineButton"/>
|
||||
<toolbarbutton id="tableButton"/>
|
||||
<toolbarbutton id="spellingButton"/>
|
||||
<spacer flex="1"/>
|
||||
<hbox id="throbber-box" align="center">
|
||||
<button id="navigator-throbber" oncommand="goClickThrobber('editor.throbber.url')" tooltiptext="&throbber.tooltip;">
|
||||
<observes element="Editor:Throbber" attribute="busy"/>
|
||||
</button>
|
||||
</hbox>
|
||||
<toolbarpalette id="MainToolbarPalette">
|
||||
<toolbarbutton id="newButton"/>
|
||||
<toolbarbutton id="openButton"/>
|
||||
<toolbarbutton id="saveButton"/>
|
||||
<toolbarbutton id="publishButton"/>
|
||||
<toolbarbutton id="previewButton"/>
|
||||
<toolbarbutton id="cutButton"/>
|
||||
<toolbarbutton id="copyButton"/>
|
||||
<toolbarbutton id="pasteButton"/>
|
||||
<toolbarbutton id="printButton"/>
|
||||
<toolbarbutton id="findButton"/>
|
||||
<toolbarbutton id="linkButton"/>
|
||||
<toolbarbutton id="namedAnchorButton"/>
|
||||
<toolbarbutton id="imageButton"/>
|
||||
<toolbarbutton id="hlineButton"/>
|
||||
<toolbarbutton id="tableButton"/>
|
||||
<toolbarbutton id="formButton"/>
|
||||
<toolbarbutton id="spellingButton"/>
|
||||
<toolbaritem id="throbber-box" align="center" pack="center">
|
||||
<button id="navigator-throbber" tooltiptext="&throbber.tooltip;" />
|
||||
</toolbaritem>
|
||||
</toolbarpalette>
|
||||
<toolbar id="EditToolbar" class="toolbar-primary chromeclass-toolbar"
|
||||
toolbarname="Main"
|
||||
fullscreentoolbar="true" mode="icons"
|
||||
customizable="true"
|
||||
defaultset="newButton,spacer,openButton,saveButton,publishButton,previewButton,spacer,namedAnchorButton,linkButton,imageButton,tableButton,formButton,spacer,spellingButton,spacer,printButton,spring,throbber-box,spacer">
|
||||
</toolbar>
|
||||
|
||||
<toolbar class="chromeclass-toolbar" id="FormatToolbar" persist="collapsed" tbalign="center" grippytooltiptext="&formatToolbar.tooltip;">
|
||||
<!-- from editorOverlay -->
|
||||
<menulist id="ParagraphSelect"/>
|
||||
|
@ -245,6 +261,7 @@
|
|||
|
||||
<spacer flex="1"/>
|
||||
</toolbar>
|
||||
<toolbarset id="customToolbars" context="toolbar-context-menu"/>
|
||||
</toolbox>
|
||||
|
||||
<!-- sidebar/toolbar/content/status -->
|
||||
|
|
|
@ -1,29 +1,45 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- The contents of this file are subject to the Netscape Public
|
||||
- License Version 1.1 (the "License"); you may not use this file
|
||||
- except in compliance with the License. You may obtain a copy of
|
||||
- the License at http://www.mozilla.org/NPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS
|
||||
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
- implied. See the License for the specific language governing
|
||||
- rights and limitations under the License.
|
||||
-
|
||||
- The Original Code is Mozilla Communicator client code, released
|
||||
- March 31, 1998.
|
||||
-
|
||||
- The Initial Developer of the Original Code is Netscape
|
||||
- Communications Corporation. Portions created by Netscape are
|
||||
- Copyright (C) 1999 Netscape Communications Corporation. All
|
||||
- Rights Reserved.
|
||||
-
|
||||
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is Mozilla.org.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 1999
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Ryan Cassin (rcassin@supernova.org)
|
||||
- Daniel Glazman (glazman@netscape.com)
|
||||
- Aaron Kaluszka (ask@swva.net)
|
||||
- Stephen Donner (technutz@netscape.net)
|
||||
-->
|
||||
- Ryan Cassin (rcassin@supernova.org)
|
||||
- Daniel Glazman (glazman@netscape.com)
|
||||
- Aaron Kaluszka (ask@swva.net)
|
||||
- Stephen Donner (technutz@netscape.net)
|
||||
- Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!DOCTYPE overlay SYSTEM "chrome://editor/locale/editorOverlay.dtd">
|
||||
|
||||
|
@ -33,6 +49,7 @@
|
|||
<script type="application/x-javascript" src="chrome://editor/content/editorUtilities.js"/>
|
||||
<script type="application/x-javascript" src="chrome://editor/content/ComposerCommands.js"/>
|
||||
<script type="application/x-javascript" src="chrome://editor/content/calendarSmartWidgetOverlay.js"/>
|
||||
<script type="application/x-javascript" src="chrome://editor/content/mainCore.js"/>
|
||||
|
||||
<keyset id="editorKeys">
|
||||
<!-- defined in globalOverlay -->
|
||||
|
@ -308,16 +325,15 @@
|
|||
-->
|
||||
<menu id="fileMenu" label="&fileMenu.label;" accesskey="&filemenu.accesskey;">
|
||||
<menupopup id="menu_FilePopup" onpopupshowing="EditorInitFileMenu();">
|
||||
<menu id="menu_New">
|
||||
<menuitem id="menu_newBlankPage" label="&newBlankPageCmd.label;"
|
||||
accesskey="&newBlankPage.accesskey;" key="key_newBlankPage"
|
||||
command="cmd_newEditor"/>
|
||||
<!--menu id="menu_New">
|
||||
<menupopup id="menu_NewPopup">
|
||||
<menuitem id="menu_newBlankPage" label="&newBlankPageCmd.label;"
|
||||
accesskey="&newBlankPage.accesskey;" key="key_newBlankPage"
|
||||
command="cmd_newEditor"/>
|
||||
<menuseparator id="composerBeginGlobalNewItems"/>
|
||||
<!-- From globalOverlay.xul -->
|
||||
<menuitem id="menu_newNavigator" observes="cmd_newNavigator"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menu-->
|
||||
<menuitem accesskey="&fileopenremote.accesskey;" key="openremoteeditorkb" observes="cmd_openRemote"/>
|
||||
<menuitem accesskey="&fileopen.accesskey;" key="openeditorkb" observes="cmd_open" label="&openFileCmd.label;"/>
|
||||
<menu id="menu_RecentFiles" accesskey="&filerecentmenu.accesskey;" label="&fileRecentMenu.label;"
|
||||
|
@ -393,6 +409,9 @@
|
|||
<menuitem id="viewFormatToolbar" label="&formattingToolbarCmd.label;" type="checkbox" accesskey="&formattingtb.accesskey;" observes="cmd_viewFormatToolbar" />
|
||||
<menuitem id="viewEditModeToolbar" label="&editmodeToolbarCmd.label;" type="checkbox" accesskey="&editmodetb.accesskey;" observes="cmd_viewEditModeToolbar" />
|
||||
<menuitem id="viewTaskBar" label="&taskbarCmd.label;" type="checkbox" accesskey="&taskbarCmd.accesskey;" observes="cmd_viewtaskbar" />
|
||||
<menuseparator />
|
||||
<menuitem id="menu_customizeToolbar" oncommand="CustomizeMainToolbar('EditorToolbox');"
|
||||
label="Customize toolbar" />
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
|
@ -408,6 +427,21 @@
|
|||
<menupopup id="insertMenuPopup">
|
||||
<menuitem id="insertImage" accesskey="&insertimage.accesskey;" observes="cmd_image" label="&insertImageCmd.label;"/>
|
||||
<menuitem id="insertTable" accesskey="&inserttable.accesskey;" observes="cmd_InsertTable" label="&insertTableCmd.label;"/>
|
||||
<menu accesskey="&insertformmenu.accesskey;" id="insertFormMenu" label="&insertFormMenu.label;">
|
||||
<menupopup>
|
||||
<menuitem accesskey="&insertform.accesskey;" command="cmd_form" label="&insertFormCmd.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem accesskey="&insertinputtag.accesskey;" command="cmd_inputtag" label="&insertInputTagCmd.label;"/>
|
||||
<menuitem accesskey="&insertinputimage.accesskey;" command="cmd_inputimage" label="&insertInputImageCmd.label;"/>
|
||||
<menuitem accesskey="&inserttextarea.accesskey;" command="cmd_textarea" label="&insertTextAreaCmd.label;"/>
|
||||
<menuitem accesskey="&insertselect.accesskey;" command="cmd_select" label="&insertSelectCmd.label;"/>
|
||||
<menuitem accesskey="&insertbutton.accesskey;" command="cmd_button" label="&insertButtonCmd.label;"/>
|
||||
<menuitem accesskey="&insertlabel.accesskey;" command="cmd_label" label="&insertLabelCmd.label;"/>
|
||||
<menuitem accesskey="&insertfieldset.accesskey;" command="cmd_fieldset" label="&insertFieldSetCmd.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem accesskey="&insertisindex.accesskey;" command="cmd_isindex" label="&insertIsIndexCmd.label;"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuitem id="insertLink" accesskey="&insertlink.accesskey;" observes="cmd_link" label="&insertLinkCmd.label;" key="insertlinkkb"/>
|
||||
<menuitem id="insertAnchor" accesskey="&insertanchor.accesskey;" observes="cmd_anchor" label="&insertAnchorCmd.label;"/>
|
||||
<menuitem id="insertHline" accesskey="&inserthline.accesskey;" observes="cmd_hline" label="&insertHLineCmd.label;"/>
|
||||
|
@ -738,6 +772,27 @@
|
|||
<toolbarbutton id="tableButton" class="toolbarbutton-1"
|
||||
label="&tableToolbarCmd.label;" observes="cmd_table"
|
||||
tooltiptext="&tableToolbarCmd.tooltip;"/>
|
||||
|
||||
<toolbarbutton id="formButton" class="toolbarbutton-1"
|
||||
label="&formToolbarCmd.label;" type="menu-button" observes="cmd_form"
|
||||
tooltiptext="&formToolbarCmd.tooltip;"
|
||||
buttonaction="goDoCommand('cmd_form');">
|
||||
<menupopup id="formMenu">
|
||||
<menuitem accesskey="&insertform.accesskey;" command="cmd_form" label="&insertFormCmd.label;"
|
||||
default="true"/>
|
||||
<menuseparator/>
|
||||
<menuitem accesskey="&insertinputtag.accesskey;" command="cmd_inputtag" label="&insertInputTagCmd.label;"/>
|
||||
<menuitem accesskey="&insertinputimage.accesskey;" command="cmd_inputimage" label="&insertInputImageCmd.label;"/>
|
||||
<menuitem accesskey="&inserttextarea.accesskey;" command="cmd_textarea" label="&insertTextAreaCmd.label;"/>
|
||||
<menuitem accesskey="&insertselect.accesskey;" command="cmd_select" label="&insertSelectCmd.label;"/>
|
||||
<menuitem accesskey="&insertbutton.accesskey;" command="cmd_button" label="&insertButtonCmd.label;"/>
|
||||
<menuitem accesskey="&insertlabel.accesskey;" command="cmd_label" label="&insertLabelCmd.label;"/>
|
||||
<menuitem accesskey="&insertfieldset.accesskey;" command="cmd_fieldset" label="&insertFieldSetCmd.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem accesskey="&insertisindex.accesskey;" command="cmd_isindex" label="&insertIsIndexCmd.label;"/>
|
||||
</menupopup>
|
||||
</toolbarbutton>
|
||||
|
||||
<toolbarbutton id="linkButton" class="toolbarbutton-1"
|
||||
label="&linkToolbarCmd.label;" observes="cmd_link"
|
||||
tooltiptext="&linkToolbarCmd.tooltip;"/>
|
||||
|
@ -890,6 +945,20 @@
|
|||
-->
|
||||
<menuitem id="menu_pasteQuote" accesskey="&editpastequotation.accesskey;" observes="cmd_pasteQuote"/>
|
||||
|
||||
<menu label="Help" accesskey="H" id="helpMenu">
|
||||
<menupopup id="menu_HelpPopup">
|
||||
<menuitem accesskey="R" label="ReleaseNotes"
|
||||
oncommand="loadThrobberUrl('mailnews.release_notes.url');"/>
|
||||
<menuitem accesskey="H" label="Hint and Tips"
|
||||
oncommand="loadThrobberUrl('mailnews.hints_and_tips.url');"/>
|
||||
<menuseparator id="menu_HelpAboutSeparator"/>
|
||||
<menuitem id="aboutName" accesskey="A"
|
||||
label="About Composer"
|
||||
oncommand="window.openDialog('chrome://editor/content/aboutDialog.xul', 'About', 'modal,centerscreen,chrome,resizable=no');"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
|
||||
<!-- DEBUG only -->
|
||||
<menu id="debugMenu" label="&debugMenu.label;">
|
||||
<menupopup>
|
||||
|
@ -912,21 +981,6 @@
|
|||
<menuitem id="menu_checkLinks" observes="cmd_checkLinks"
|
||||
label="&checkLinksCmd.label;"/>
|
||||
<menuseparator />
|
||||
<menu accesskey="&insertformmenu.accesskey;" id="insertFormMenu" label="&insertFormMenu.label;">
|
||||
<menupopup>
|
||||
<menuitem accesskey="&insertform.accesskey;" command="cmd_form" label="&insertFormCmd.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem accesskey="&insertinputtag.accesskey;" command="cmd_inputtag" label="&insertInputTagCmd.label;"/>
|
||||
<menuitem accesskey="&insertinputimage.accesskey;" command="cmd_inputimage" label="&insertInputImageCmd.label;"/>
|
||||
<menuitem accesskey="&inserttextarea.accesskey;" command="cmd_textarea" label="&insertTextAreaCmd.label;"/>
|
||||
<menuitem accesskey="&insertselect.accesskey;" command="cmd_select" label="&insertSelectCmd.label;"/>
|
||||
<menuitem accesskey="&insertbutton.accesskey;" command="cmd_button" label="&insertButtonCmd.label;"/>
|
||||
<menuitem accesskey="&insertlabel.accesskey;" command="cmd_label" label="&insertLabelCmd.label;"/>
|
||||
<menuitem accesskey="&insertfieldset.accesskey;" command="cmd_fieldset" label="&insertFieldSetCmd.label;"/>
|
||||
<menuseparator/>
|
||||
<menuitem accesskey="&insertisindex.accesskey;" command="cmd_isindex" label="&insertIsIndexCmd.label;"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<menuitem label="&testSelectionCmd.label;"
|
||||
oncommand="EditorTestSelection()"/>
|
||||
<menuitem label="&testTableLayoutCmd.label;"
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla.org
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# David Hyatt.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# David Hyatt (hyatt@apple.com)
|
||||
# Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
function CustomizeMainToolbar(id)
|
||||
{
|
||||
// make sure our toolbar buttons have the correct enabled state restored to them...
|
||||
if (this.UpdateMainToolbar == undefined)
|
||||
dump("UPDATEMAINTOOLBAR undefined\n");
|
||||
|
||||
// Disable the toolbar context menu items
|
||||
// var menubar = document.getElementById("main-menubar");
|
||||
// for (var i = 0; i < menubar.childNodes.length; ++i)
|
||||
// menubar.childNodes[i].setAttribute("disabled", true);
|
||||
|
||||
var customizePopup = document.getElementById("CustomizeMainToolbar");
|
||||
if (customizePopup)
|
||||
customizePopup.setAttribute("disabled", "true");
|
||||
|
||||
window.openDialog("chrome://global/content/customizeToolbar.xul", "CustomizeToolbar",
|
||||
"chrome,all,dependent", document.getElementById(id));
|
||||
}
|
||||
|
||||
function MainToolboxCustomizeDone(aToolboxChanged)
|
||||
{
|
||||
// Update global UI elements that may have been added or removed
|
||||
|
||||
// Re-enable parts of the UI we disabled during the dialog
|
||||
var menubar = document.getElementById("main-menubar");
|
||||
for (var i = 0; i < menubar.childNodes.length; ++i)
|
||||
menubar.childNodes[i].setAttribute("disabled", false);
|
||||
|
||||
var customizePopup = document.getElementById("CustomizeMainToolbar");
|
||||
if (customizePopup)
|
||||
customizePopup.removeAttribute("disabled");
|
||||
|
||||
// make sure our toolbar buttons have the correct enabled state restored to them...
|
||||
if (this.UpdateMainToolbar != undefined)
|
||||
UpdateMainToolbar(focus);
|
||||
}
|
||||
|
||||
function onViewToolbarCommand(aToolbarId, aMenuItemId)
|
||||
{
|
||||
var toolbar = document.getElementById(aToolbarId);
|
||||
var menuItem = document.getElementById(aMenuItemId);
|
||||
|
||||
if (!toolbar || !menuItem) return;
|
||||
|
||||
var toolbarCollapsed = toolbar.collapsed;
|
||||
|
||||
// toggle the checkbox
|
||||
menuItem.setAttribute('checked', toolbarCollapsed);
|
||||
|
||||
// toggle visibility of the toolbar
|
||||
toolbar.collapsed = !toolbarCollapsed;
|
||||
|
||||
document.persist(aToolbarId, 'collapsed');
|
||||
document.persist(aMenuItemId, 'checked');
|
||||
}
|
||||
|
||||
function UpdateMainToolbar(caller)
|
||||
{
|
||||
dump("===> UPDATING TOOLBAR\n");
|
||||
}
|
|
@ -0,0 +1,133 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is Editor Toolbar Preferences.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Neil Rashbrook.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2003
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Neil Rashbrook <neil@parkwaycc.co.uk>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
|
||||
<!DOCTYPE page SYSTEM "chrome://editor/locale/pref-toolbars.dtd">
|
||||
|
||||
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
onload="parent.initPanel('chrome://editor/content/pref-toolbars.xul');"
|
||||
headertitle="&header.title;">
|
||||
|
||||
<script type="application/x-javascript">
|
||||
<![CDATA[
|
||||
var _elementIDs = [
|
||||
"showNew", "showOpen", "showSave", "showPublish", "showPreview", "showSmaller", "showLarger", "showBold",
|
||||
"showCut", "showCopy", "showPaste", "showPrint", "showFind", "showBullets", "showNumbers", "showItalic",
|
||||
"showImage", "showHline", "showTable", "showLink", "showAnchor", "showOutdent", "showIndent", "showUnderline",
|
||||
"showAbsolutePosition", "showDecreaseZIndex", "showIncreaseZIndex" ];
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<groupbox orient="horizontal">
|
||||
<caption label="&composition.caption;"/>
|
||||
<vbox flex="1">
|
||||
<checkbox label="&new.label;" id="showNew"
|
||||
prefstring="editor.toolbars.showbutton.new"/>
|
||||
<checkbox label="&open.label;" id="showOpen"
|
||||
prefstring="editor.toolbars.showbutton.open"/>
|
||||
<checkbox label="&save.label;" id="showSave"
|
||||
prefstring="editor.toolbars.showbutton.save"/>
|
||||
<checkbox label="&publish.label;" id="showPublish"
|
||||
prefstring="editor.toolbars.showbutton.publish"/>
|
||||
</vbox>
|
||||
<vbox flex="1">
|
||||
<checkbox label="&preview.label;" id="showPreview"
|
||||
prefstring="editor.toolbars.showbutton.preview"/>
|
||||
<checkbox label="&cut.label;" id="showCut"
|
||||
prefstring="editor.toolbars.showbutton.cut"/>
|
||||
<checkbox label="©.label;" id="showCopy"
|
||||
prefstring="editor.toolbars.showbutton.copy"/>
|
||||
<checkbox label="&paste.label;" id="showPaste"
|
||||
prefstring="editor.toolbars.showbutton.paste"/>
|
||||
</vbox>
|
||||
<vbox flex="1">
|
||||
<checkbox label="&print.label;" id="showPrint"
|
||||
prefstring="editor.toolbars.showbutton.print"/>
|
||||
<checkbox label="&find.label;" id="showFind"
|
||||
prefstring="editor.toolbars.showbutton.find"/>
|
||||
<checkbox label="&image.label;" id="showImage"
|
||||
prefstring="editor.toolbars.showbutton.image"/>
|
||||
<checkbox label="&hline.label;" id="showHline"
|
||||
prefstring="editor.toolbars.showbutton.hline"/>
|
||||
</vbox>
|
||||
<vbox flex="1">
|
||||
<checkbox label="&table.label;" id="showTable"
|
||||
prefstring="editor.toolbars.showbutton.table"/>
|
||||
<checkbox label="&link.label;" id="showLink"
|
||||
prefstring="editor.toolbars.showbutton.link"/>
|
||||
<checkbox label="&anchor.label;" id="showAnchor"
|
||||
prefstring="editor.toolbars.showbutton.namedAnchor"/>
|
||||
<checkbox label="&form.label;" id="showForm"
|
||||
prefstring="editor.toolbars.showbutton.form"/>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
|
||||
<groupbox orient="horizontal">
|
||||
<caption label="&formatting.caption;"/>
|
||||
<vbox flex="1">
|
||||
<checkbox label="&smaller.label;" id="showSmaller"
|
||||
prefstring="editor.toolbars.showbutton.DecreaseFontSize"/>
|
||||
<checkbox label="&larger.label;" id="showLarger"
|
||||
prefstring="editor.toolbars.showbutton.IncreaseFontSize"/>
|
||||
<checkbox label="&bold.label;" id="showBold"
|
||||
prefstring="editor.toolbars.showbutton.bold"/>
|
||||
<checkbox label="&absolutePosition.label;" id="showAbsolutePosition"
|
||||
prefstring="editor.toolbars.showbutton.absolutePosition"/>
|
||||
</vbox>
|
||||
<vbox flex="1">
|
||||
<checkbox label="&bullets.label;" id="showBullets"
|
||||
prefstring="editor.toolbars.showbutton.ul"/>
|
||||
<checkbox label="&numbers.label;" id="showNumbers"
|
||||
prefstring="editor.toolbars.showbutton.ol"/>
|
||||
<checkbox label="&italic.label;" id="showItalic"
|
||||
prefstring="editor.toolbars.showbutton.italic"/>
|
||||
<checkbox label="&decreaseZIndex.label;" id="showDecreaseZIndex"
|
||||
prefstring="editor.toolbars.showbutton.decreaseZIndex"/>
|
||||
</vbox>
|
||||
<vbox flex="1">
|
||||
<checkbox label="&outdent.label;" id="showOutdent"
|
||||
prefstring="editor.toolbars.showbutton.outdent"/>
|
||||
<checkbox label="&indent.label;" id="showIndent"
|
||||
prefstring="editor.toolbars.showbutton.indent"/>
|
||||
<checkbox label="&underline.label;" id="showUnderline"
|
||||
prefstring="editor.toolbars.showbutton.underline"/>
|
||||
<checkbox label="&increaseZIndex.label;" id="showIncreaseZIndex"
|
||||
prefstring="editor.toolbars.showbutton.increaseZIndex"/>
|
||||
</vbox>
|
||||
</groupbox>
|
||||
</page>
|
|
@ -2,7 +2,82 @@ comm.jar:
|
|||
+ content/editor/editor.xul (content/editor.xul)
|
||||
+ content/editor/editorOverlay.xul (content/editorOverlay.xul)
|
||||
+ content/editor/calendarSmartWidgetOverlay.js (content/calendarSmartWidgetOverlay.js)
|
||||
+ content/editor/pref-toolbars.xul (content/pref-toolbars.xul)
|
||||
+ content/editor/EditorContent.css (content/EditorContent.css)
|
||||
+ content/editor/images/calendarSW.gif (images/calendarSW.gif)
|
||||
*+ content/editor/aboutDialog.xul (content/aboutDialog.xul)
|
||||
content/editor/about-composer.png (content/about-composer.png)
|
||||
*+ content/editor/mainCore.js (content/mainCore.js)
|
||||
+ content/editor/editor.js (content/editor.js)
|
||||
|
||||
en-US.jar:
|
||||
+ locale/en-US/editor/editorOverlay.dtd (locale/en-US/editorOverlay.dtd)
|
||||
+ locale/en-US/editor/editor.dtd (locale/en-US/editor.dtd)
|
||||
+ locale/en-US/editor/pref-toolbars.dtd (locale/en-US/pref-toolbars.dtd)
|
||||
locale/en-US/editor/aboutDialog.dtd (locale/en-US/aboutDialog.dtd)
|
||||
|
||||
classic.jar:
|
||||
+ skin/classic/global/toolbarbutton.css (skin/toolbarbutton.css)
|
||||
skin/classic/editor/editor.css (skin/editor.css)
|
||||
+ skin/classic/communicator/brand/throbber-single.gif (skin/icons/throbber-single.gif)
|
||||
skin/classic/editor/aboutDialog.css (skin/aboutDialog.css)
|
||||
+ skin/classic/communicator/communicator.css (skin/communicator.css)
|
||||
+ skin/classic/editor/editorPrimaryToolbar.css (skin/editorPrimaryToolbar.css)
|
||||
+ skin/classic/editor/icons/btn1.gif (skin/icons/btn1.gif)
|
||||
+ skin/classic/editor/icons/orbit-button2-anchor-active.png (skin/icons/orbit-button2-anchor-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-anchor-disabled.png (skin/icons/orbit-button2-anchor-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-anchor-hover.png (skin/icons/orbit-button2-anchor-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-anchor.png (skin/icons/orbit-button2-anchor.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-ed-imap.png (skin/icons/orbit-button2-ed-imap.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-hline-active.png (skin/icons/orbit-button2-hline-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-hline-disabled.png (skin/icons/orbit-button2-hline-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-hline-hover.png (skin/icons/orbit-button2-hline-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-hline.png (skin/icons/orbit-button2-hline.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-image-active.png (skin/icons/orbit-button2-image-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-image-disabled.png (skin/icons/orbit-button2-image-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-image-hover.png (skin/icons/orbit-button2-image-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-image.png (skin/icons/orbit-button2-image.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-link-active.png (skin/icons/orbit-button2-link-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-link-disabled.png (skin/icons/orbit-button2-link-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-link-hover.png (skin/icons/orbit-button2-link-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-link.png (skin/icons/orbit-button2-link.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-open-active.png (skin/icons/orbit-button2-open-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-open-disabled.png (skin/icons/orbit-button2-open-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-open-hover.png (skin/icons/orbit-button2-open-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-open.png (skin/icons/orbit-button2-open.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-preview-active.png (skin/icons/orbit-button2-preview-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-preview-disabled.png (skin/icons/orbit-button2-preview-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-preview-hover.png (skin/icons/orbit-button2-preview-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-preview.png (skin/icons/orbit-button2-preview.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-print-active.png (skin/icons/orbit-button2-print-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-print-disabled.png (skin/icons/orbit-button2-print-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-print-hover.png (skin/icons/orbit-button2-print-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-print.png (skin/icons/orbit-button2-print.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-publish-active.png (skin/icons/orbit-button2-publish-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-publish-disabled.png (skin/icons/orbit-button2-publish-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-publish-hover.png (skin/icons/orbit-button2-publish-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-publish.png (skin/icons/orbit-button2-publish.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-table-active.png (skin/icons/orbit-button2-table-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-table-disabled.png (skin/icons/orbit-button2-table-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-table-hover.png (skin/icons/orbit-button2-table-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-table.png (skin/icons/orbit-button2-table.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-newmsg.png (skin/icons/orbit-button2-newmsg.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-newmsg-disabled.png (skin/icons/orbit-button2-newmsg-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-newmsg-active.png (skin/icons/orbit-button2-newmsg-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-newmsg-hover.png (skin/icons/orbit-button2-newmsg-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-save.png (skin/icons/orbit-button2-save.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-save-disabled.png (skin/icons/orbit-button2-save-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-save-active.png (skin/icons/orbit-button2-save-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-save-hover.png (skin/icons/orbit-button2-save-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-spell.png (skin/icons/orbit-button2-spell.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-spell-disabled.png (skin/icons/orbit-button2-spell-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-spell-active.png (skin/icons/orbit-button2-spell-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-spell-hover.png (skin/icons/orbit-button2-spell-hover.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-form.png (skin/icons/orbit-button2-form.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-form-disabled.png (skin/icons/orbit-button2-form-disabled.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-form-active.png (skin/icons/orbit-button2-form-active.png)
|
||||
+ skin/classic/editor/icons/orbit-button2-form-hover.png (skin/icons/orbit-button2-form-hover.png)
|
||||
|
||||
toolkit.jar:
|
||||
*+ content/global/customizeToolbar.xul (content/customizeToolbar.xul)
|
||||
*+ content/global/customizeToolbar.js (content/customizeToolbar.js)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<!ENTITY aboutDialog.title "About &brandShortName;">
|
||||
<!ENTITY copyright "Copyright and contributor information">
|
||||
<!ENTITY copyrightLink "http://www.mozilla.org/projects/thunderbird/">
|
|
@ -0,0 +1,62 @@
|
|||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is Mozilla Communicator client code, released
|
||||
- March 31, 1998.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 1999
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!-- Window title -->
|
||||
<!-- LOCALIZATION NOTE (editorWindow.titlemodifier): DONT_TRANSLATE -->
|
||||
<!ENTITY editorWindow.titlemodifier "Composer">
|
||||
<!ENTITY editorWindow.titlemodifiermenuseparator " - ">
|
||||
<!ENTITY textEditorWindow.titlemodifier "Text Editor">
|
||||
|
||||
<!-- Menu items: the . means that the menu item isn't implemented yet -->
|
||||
|
||||
<!-- View menu items -->
|
||||
<!ENTITY viewMenu.label "View">
|
||||
<!ENTITY viewmenu.accesskey "v">
|
||||
|
||||
<!-- Format menu items -->
|
||||
<!ENTITY formatMenu.label "Format">
|
||||
<!ENTITY formatmenu.accesskey "o">
|
||||
|
||||
<!ENTITY helpMenu.label "Help">
|
||||
<!ENTITY aboutCmd.label ".About">
|
||||
|
||||
<!-- Display Mode Toolbar -->
|
||||
<!ENTITY editMode.label "Edit Mode:">
|
||||
|
||||
<!ENTITY statusText.label "Done loading page">
|
||||
|
|
@ -1,36 +1,52 @@
|
|||
<!--
|
||||
- The contents of this file are subject to the Netscape Public
|
||||
- License Version 1.1 (the "License"); you may not use this file
|
||||
- except in compliance with the License. You may obtain a copy of
|
||||
- the License at http://www.mozilla.org/NPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS
|
||||
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
- implied. See the License for the specific language governing
|
||||
- rights and limitations under the License.
|
||||
-
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is Mozilla Communicator client code, released
|
||||
- March 31, 1998.
|
||||
-
|
||||
- The Initial Developer of the Original Code is Netscape
|
||||
- Communications Corporation. Portions created by Netscape are
|
||||
- Copyright (C) 1999-2000 Netscape Communications Corporation. All
|
||||
- Rights Reserved.
|
||||
-
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 1999
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Sammy Ford
|
||||
- Blake Ross
|
||||
- Ryan Cassin (rcassin@supernova.org)
|
||||
- Daniel Glazman (glazman@netscape.com)
|
||||
- Stephen Donner (technutz@netscape.net)
|
||||
-->
|
||||
- Daniel Glazman (daniel@glazman.org), on behalf of Lindows.com
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!-- Attn: Localization - some of the menus in this dialog directly affect mail also. -->
|
||||
|
||||
<!-- File menu items -->
|
||||
<!ENTITY fileMenu.label "File">
|
||||
<!ENTITY filemenu.accesskey "f">
|
||||
<!ENTITY newBlankPageCmd.label "Composer Page">
|
||||
<!ENTITY newBlankPageCmd.label "New Page">
|
||||
<!ENTITY newBlankPage.accesskey "P" >
|
||||
<!ENTITY newMenu.label "New">
|
||||
<!ENTITY openFileCmd.label "Open File...">
|
||||
|
@ -158,7 +174,7 @@
|
|||
<!ENTITY inserthline.accesskey "o">
|
||||
<!ENTITY insertTableCmd.label "Table...">
|
||||
<!ENTITY inserttable.accesskey "t">
|
||||
<!ENTITY insertFormMenu.label "Form">
|
||||
<!ENTITY insertFormMenu.label "Form...">
|
||||
<!ENTITY insertformmenu.accesskey "F">
|
||||
<!ENTITY insertHTMLCmd.label "HTML...">
|
||||
<!ENTITY insertHTMLCmd.accesskey "h">
|
||||
|
@ -499,7 +515,7 @@
|
|||
<!ENTITY menuBar.tooltip "Menu Bar">
|
||||
<!ENTITY compositionToolbar.tooltip "Composition Toolbar">
|
||||
<!ENTITY formatToolbar.tooltip "Formatting Toolbar">
|
||||
<!ENTITY newToolbarCmd.tooltip "Create a new Composer page">
|
||||
<!ENTITY newToolbarCmd.tooltip "Create a new page">
|
||||
<!ENTITY openToolbarCmd.label "Open">
|
||||
<!ENTITY openToolbarCmd.tooltip "Open a local file">
|
||||
<!ENTITY saveToolbarCmd.tooltip "Save file to a local location">
|
||||
|
@ -525,9 +541,12 @@
|
|||
<!ENTITY textColorCaption.label "Text Color">
|
||||
<!ENTITY TextColorButton.tooltip "Choose color for text">
|
||||
<!ENTITY BackgroundColorButton.tooltip "Choose color for background">
|
||||
<!ENTITY throbber.tooltip "Go to the &vendorShortName; home page">
|
||||
<!ENTITY throbber.tooltip "This is Composer">
|
||||
<!ENTITY HighlightColorButton.tooltip "Choose highlight color for text">
|
||||
|
||||
<!ENTITY formToolbarCmd.label "Form">
|
||||
<!ENTITY formToolbarCmd.tooltip "Insert new form or edit selected form's properties">
|
||||
|
||||
<!-- Editor toolbar -->
|
||||
<!ENTITY decreaseFontSizeToolbarCmd.tooltip "Smaller font size">
|
||||
<!ENTITY increaseFontSizeToolbarCmd.tooltip "Larger font size">
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla Public License Version
|
||||
- 1.1 (the "License"); you may not use this file except in compliance with
|
||||
- the License. You may obtain a copy of the License at
|
||||
- http://www.mozilla.org/MPL/
|
||||
-
|
||||
- Software distributed under the License is distributed on an "AS IS" basis,
|
||||
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
- for the specific language governing rights and limitations under the
|
||||
- License.
|
||||
-
|
||||
- The Original Code is Editor Toolbar Preferences.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Neil Rashbrook.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2003
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Neil Rashbrook <neil@parkwaycc.co.uk>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!ENTITY header.title "Toolbars">
|
||||
|
||||
<!ENTITY composition.caption "Show these buttons in the Composition Toolbar:">
|
||||
|
||||
<!ENTITY new.label "New">
|
||||
<!ENTITY open.label "Open">
|
||||
<!ENTITY save.label "Save">
|
||||
<!ENTITY publish.label "Publish">
|
||||
<!ENTITY preview.label "Browse">
|
||||
<!ENTITY cut.label "Cut">
|
||||
<!ENTITY copy.label "Copy">
|
||||
<!ENTITY paste.label "Paste">
|
||||
<!ENTITY print.label "Print">
|
||||
<!ENTITY find.label "Find">
|
||||
<!ENTITY image.label "Image">
|
||||
<!ENTITY hline.label "H. Line">
|
||||
<!ENTITY table.label "Table">
|
||||
<!ENTITY link.label "Link">
|
||||
<!ENTITY anchor.label "Anchor">
|
||||
<!ENTITY form.label "Form">
|
||||
|
||||
<!ENTITY formatting.caption "Show these buttons in the Formatting Toolbar:">
|
||||
|
||||
<!ENTITY smaller.label "Smaller">
|
||||
<!ENTITY larger.label "Larger">
|
||||
<!ENTITY bold.label "Bold">
|
||||
<!ENTITY bullets.label "Bullets">
|
||||
<!ENTITY numbers.label "Numbers">
|
||||
<!ENTITY italic.label "Italic">
|
||||
<!ENTITY outdent.label "Outdent">
|
||||
<!ENTITY indent.label "Indent">
|
||||
<!ENTITY underline.label "Underline">
|
||||
|
||||
<!ENTITY absolutePosition.label "Absolute positioning">
|
||||
<!ENTITY decreaseZIndex.label "Sent to back">
|
||||
<!ENTITY increaseZIndex.label "Bring to front">
|
|
@ -0,0 +1,32 @@
|
|||
#aboutDialog {
|
||||
padding: 0px 0px 10px 0px;
|
||||
}
|
||||
|
||||
#clientBox {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
#brandName {
|
||||
font-weight: bold; font-size: larger;
|
||||
}
|
||||
|
||||
#detailsBox {
|
||||
padding: 8px 10px 10px 8px;
|
||||
}
|
||||
|
||||
#versionField {
|
||||
background-color: #FFFFFF;
|
||||
-moz-appearance: none;
|
||||
border: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#copyright {
|
||||
color: blue;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#groove {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.1 (the "License"); you may not use this file except in
|
||||
* compliance with the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt <hewitt@netscape.com>
|
||||
* Daniel Glazman <daniel@glazman.org>, on behalf of Lindows.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the NPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* ==== communicator.css ====================================================
|
||||
== Styles shared everywhere throughout the Communicator suite.
|
||||
========================================================================== */
|
||||
|
||||
@import url("chrome://global/skin/");
|
||||
@import url("chrome://communicator/content/communicator.css");
|
||||
@import url("chrome://communicator/skin/formatting.css");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
.toolbar-primary {
|
||||
-moz-binding: url("chrome://global/content/widgets/toolbar.xml#toolbar");
|
||||
}
|
||||
|
||||
/* ::::: throbber ::::: */
|
||||
|
||||
#navigator-throbber {
|
||||
-moz-appearance: none;
|
||||
-moz-user-focus: ignore;
|
||||
margin: 0 !important;
|
||||
border: none !important;
|
||||
padding: 0px !important;
|
||||
min-width: 0;
|
||||
background-color: transparent;
|
||||
list-style-image: url("chrome://editor/skin/icons/throbber-single.gif");
|
||||
}
|
||||
|
||||
#navigator-throbber[busy="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/throbber-single.gif");
|
||||
}
|
||||
|
||||
toolbar[iconsize="small"] #navigator-throbber,
|
||||
toolbar[mode="text"] #navigator-throbber {
|
||||
list-style-image: url("chrome://editor/skin/icons/throbber-small.png");
|
||||
}
|
||||
toolbar[iconsize="small"] #navigator-throbber[busy="true"],
|
||||
toolbar[mode="text"] #navigator-throbber[busy="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/throbber-small.gif");
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.1 (the "License"); you may not use this file except in
|
||||
* compliance with the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998-1999
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Daniel Glazman <daniel@glazman.org>, on behalf of Lindows.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the NPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
@import url("chrome://editor/skin/");
|
||||
@import url("chrome://editor/skin/editorPrimaryToolbar.css");
|
||||
@import url("chrome://editor/skin/editorFormatToolbar.css");
|
||||
@import url("chrome://editor/skin/editorModeToolbar.css");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
|
@ -0,0 +1,356 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.1 (the "License"); you may not use this file except in
|
||||
* compliance with the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt <hewitt@netscape.com>
|
||||
* Daniel Glazman <daniel@glazman.org>, on behalf of Lindows.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the NPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: primary toolbar masthead ::::: */
|
||||
|
||||
#EditToolbar > .toolbar-holder > .toolbar-primary-icon {
|
||||
background-image: url("chrome://editor/skin/icons/mast-editor.gif");
|
||||
width: 57px;
|
||||
}
|
||||
|
||||
.toolbar-primary-icon {
|
||||
width: 57px;
|
||||
}
|
||||
|
||||
/* ::::: primary toolbar buttons ::::: */
|
||||
|
||||
.toolbarbutton-1 {
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
.toolbarbutton-1[type="menu"] > .toolbarbutton-menu-dropmarker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
toolbar[mode="icons"] .toolbarbutton-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker,
|
||||
toolbar[mode="text"] .toolbarbutton-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
toolbar[mode="text"] .toolbarbutton-text {
|
||||
padding: 0 !important;
|
||||
margin: 3px 5px !important;
|
||||
}
|
||||
|
||||
/* ::::: primary toolbar buttons ::::: */
|
||||
|
||||
.toolbarseparator-primary {
|
||||
width: 9px !important;
|
||||
}
|
||||
|
||||
#newButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-newmsg.png");
|
||||
}
|
||||
|
||||
#newButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-newmsg-hover.png");
|
||||
}
|
||||
|
||||
#newButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-newmsg-active.png");
|
||||
}
|
||||
|
||||
#newButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-newmsg-disabled.png");
|
||||
}
|
||||
|
||||
#openButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-open.png");
|
||||
}
|
||||
|
||||
#openButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-open-hover.png");
|
||||
}
|
||||
|
||||
#openButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-open-active.png");
|
||||
}
|
||||
|
||||
#openButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-open-disabled.png");
|
||||
}
|
||||
|
||||
#saveButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-save.png");
|
||||
}
|
||||
|
||||
#saveButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-save-hover.png");
|
||||
}
|
||||
|
||||
#saveButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-save-active.png");
|
||||
}
|
||||
|
||||
#saveButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-save-disabled.png");
|
||||
}
|
||||
|
||||
#publishButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-publish.png");
|
||||
}
|
||||
|
||||
#publishButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-publish-hover.png");
|
||||
}
|
||||
|
||||
#publishButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-publish-active.png");
|
||||
}
|
||||
|
||||
#publishButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-publish-disabled.png");
|
||||
}
|
||||
|
||||
#previewButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-preview.png");
|
||||
}
|
||||
|
||||
#previewButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-preview-hover.png");
|
||||
}
|
||||
|
||||
#previewButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-preview-active.png");
|
||||
}
|
||||
|
||||
#previewButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-preview-disabled.png");
|
||||
}
|
||||
|
||||
#copyButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-ed-imap.png");
|
||||
-moz-image-region: rect(0 32px 32px 0);
|
||||
}
|
||||
|
||||
#copyButton:hover {
|
||||
-moz-image-region: rect(32px 32px 64px 0);
|
||||
}
|
||||
|
||||
#copyButton:hover:active {
|
||||
-moz-image-region: rect(64px 32px 96px 0);
|
||||
}
|
||||
|
||||
#copyButton[disabled="true"] {
|
||||
-moz-image-region: rect(96px 32px 128px 0);
|
||||
}
|
||||
|
||||
#cutButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-ed-imap.png");
|
||||
-moz-image-region: rect(0 64px 32px 32px);
|
||||
}
|
||||
|
||||
#cutButton:hover {
|
||||
-moz-image-region: rect(32px 64px 64px 32px);
|
||||
}
|
||||
|
||||
#cutButton:hover:active {
|
||||
-moz-image-region: rect(64px 64px 96px 32px);
|
||||
}
|
||||
|
||||
#cutButton[disabled="true"] {
|
||||
-moz-image-region: rect(96px 64px 128px 32px);
|
||||
}
|
||||
|
||||
#findButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-ed-imap.png");
|
||||
-moz-image-region: rect(0 128px 32px 96px);
|
||||
}
|
||||
|
||||
#findButton:hover {
|
||||
-moz-image-region: rect(32px 128px 64px 96px);
|
||||
}
|
||||
|
||||
#findButton:hover:active {
|
||||
-moz-image-region: rect(64px 128px 96px 96px);
|
||||
}
|
||||
|
||||
#findButton[disabled="true"] {
|
||||
-moz-image-region: rect(96px 128px 128px 96px);
|
||||
}
|
||||
|
||||
#pasteButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-ed-imap.png");
|
||||
-moz-image-region: rect(0 96px 32px 64px);
|
||||
}
|
||||
|
||||
#pasteButton:hover {
|
||||
-moz-image-region: rect(32px 96px 64px 64px);
|
||||
}
|
||||
|
||||
#pasteButton:hover:active {
|
||||
-moz-image-region: rect(64px 96px 96px 64px);
|
||||
}
|
||||
|
||||
#pasteButton[disabled="true"] {
|
||||
-moz-image-region: rect(96px 96px 128px 64px);
|
||||
}
|
||||
|
||||
#printButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-print.png");
|
||||
}
|
||||
|
||||
#printButton[buttonover="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-print-hover.png");
|
||||
}
|
||||
|
||||
#printButton[buttondown="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-print-active.png");
|
||||
}
|
||||
|
||||
#printButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-print-disabled.png");
|
||||
}
|
||||
|
||||
#linkButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-link.png");
|
||||
}
|
||||
|
||||
#linkButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-link-hover.png");
|
||||
}
|
||||
|
||||
#linkButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-link-active.png");
|
||||
}
|
||||
|
||||
#linkButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-link-disabled.png");
|
||||
}
|
||||
|
||||
#imageButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-image.png");
|
||||
}
|
||||
|
||||
#imageButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-image-hover.png");
|
||||
}
|
||||
|
||||
#imageButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-image-active.png");
|
||||
}
|
||||
|
||||
#imageButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-image-disabled.png");
|
||||
}
|
||||
|
||||
#namedAnchorButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-anchor.png");
|
||||
}
|
||||
|
||||
#namedAnchorButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-anchor-hover.png");
|
||||
}
|
||||
|
||||
#namedAnchorButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-anchor-active.png");
|
||||
}
|
||||
|
||||
#namedAnchorButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-anchor-disabled.png");
|
||||
}
|
||||
|
||||
#hlineButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-hline.png");
|
||||
}
|
||||
|
||||
#hlineButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-hline-hover.png");
|
||||
}
|
||||
|
||||
#hlineButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-hline-active.png");
|
||||
}
|
||||
|
||||
#hlineButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-hline-disabled.png");
|
||||
}
|
||||
|
||||
#tableButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-table.png");
|
||||
}
|
||||
|
||||
#tableButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-table-hover.png");
|
||||
}
|
||||
|
||||
#tableButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-table-active.png");
|
||||
}
|
||||
|
||||
#tableButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-table-disabled.png");
|
||||
}
|
||||
|
||||
#spellingButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-spell.png");
|
||||
}
|
||||
|
||||
#spellingButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-spell-hover.png");
|
||||
}
|
||||
|
||||
#spellingButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-spell-active.png");
|
||||
}
|
||||
|
||||
#spellingButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-spell-disabled.png");
|
||||
}
|
||||
|
||||
#formButton {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-form.png");
|
||||
}
|
||||
|
||||
#formButton:hover {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-form-hover.png");
|
||||
}
|
||||
|
||||
#formButton:hover:active {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-form-active.png");
|
||||
}
|
||||
|
||||
#formButton[disabled="true"] {
|
||||
list-style-image: url("chrome://editor/skin/icons/orbit-button2-form-disabled.png");
|
||||
}
|
|
@ -0,0 +1,149 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public License
|
||||
* Version 1.1 (the "License"); you may not use this file except in
|
||||
* compliance with the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998-1999
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt <hewitt@netscape.com>
|
||||
* Daniel Glazman <daniel@glazman.org>, on behalf of Lindows.com
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the NPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* ===== toolbarbutton.css =====================================================
|
||||
== Styles used by the XUL button element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: toolbarbutton ::::: */
|
||||
|
||||
toolbarbutton {
|
||||
-moz-appearance: toolbarbutton;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 0;
|
||||
border: 1px solid transparent;
|
||||
padding: 3px;
|
||||
background-color: transparent;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
.toolbarbutton-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.toolbarbutton-text {
|
||||
margin: 0 !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
toolbarbutton:hover,
|
||||
toolbarbutton[buttonover="true"] {
|
||||
border-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;
|
||||
}
|
||||
|
||||
toolbarbutton:hover:active,
|
||||
toolbarbutton[open="true"] {
|
||||
border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;
|
||||
padding: 4px 2px 2px 4px;
|
||||
}
|
||||
|
||||
toolbarbutton[disabled="true"],
|
||||
toolbarbutton[disabled="true"]:hover,
|
||||
toolbarbutton[disabled="true"]:hover:active,
|
||||
toolbarbutton[disabled="true"][open="true"] {
|
||||
border-color: transparent;
|
||||
padding: 3px;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
/* ..... checked state ..... */
|
||||
|
||||
toolbarbutton[checked="true"] {
|
||||
border-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow !important;
|
||||
padding: 4px 2px 2px 4px !important;
|
||||
background-image: url("chrome://global/skin/toolbar/Lighten.png");
|
||||
color: ButtonText !important;
|
||||
}
|
||||
|
||||
/* ::::: toolbarbutton menu ::::: */
|
||||
|
||||
.toolbarbutton-menu-dropmarker {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
}
|
||||
|
||||
.toolbarbutton-menu-dropmarker[disabled="true"] {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
|
||||
}
|
||||
|
||||
/* ::::: toolbarbutton menu-button ::::: */
|
||||
|
||||
toolbarbutton[type="menu-button"] {
|
||||
-moz-box-align: stretch;
|
||||
-moz-box-orient: horizontal !important;
|
||||
-moz-appearance: dualbutton;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"],
|
||||
toolbarbutton[type="menu-button"]:hover,
|
||||
toolbarbutton[type="menu-button"]:hover:active,
|
||||
toolbarbutton[type="menu-button"][open="true"],
|
||||
toolbarbutton[type="menu-button"][disabled="true"],
|
||||
toolbarbutton[type="menu-button"][disabled="true"]:hover,
|
||||
toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-button {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
/* .......... dropmarker .......... */
|
||||
|
||||
.toolbarbutton-menubutton-dropmarker {
|
||||
-moz-box-align: center;
|
||||
padding: 0 0 1px 0;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
-moz-appearance: dualbutton-dropdown;
|
||||
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-dropmarker[disabled="true"] {
|
||||
padding: 0 0 1px 0 !important;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif") !important;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker {
|
||||
padding: 1px 0 0 0;
|
||||
}
|
Загрузка…
Ссылка в новой задаче