This document describes the Mozile code which is found in the "content" directory. This
code is mostly JavaScript, XML, and XUL files of different sorts. This is where all the
hard work gets done for Mozile.
The Mozile code is separated into several directories, and further separated into files
which contain functions on a single theme. Look in these directories for the source
code:
-
main : contains the majority of the Mozile code.
-
eDOM : contains the eDOM code, which extends the normal DOM to
allow inline editing,
-
mes : contains Mozile Editing Schemes,
-
saving : contains the code needed to save files to the local
file system, or via WebDAV or HTTP Post to a server,
-
XUL : contains the XUL files that describe Mozile's user
interface (UI).
The main directory contains most of the JavaScript files which
make Mozile work. Below are brief descriptions:
-
mozileMain.js global variables and startup
functions.
-
mozileCommands.js executes toolbar and menu
commands.
-
mozileConfiguration.js parses the RSD
configuration file and loads the eDOM files.
-
mozileCopyCutPaste.js deal with the
system clipboard,
-
mozileDetection.js detects when Mozile
should and should not be active,
-
mozileKeyboard.js listens for keystrokes and
(when it's supposed to) enters them into the document or calls commands,
-
mozileMouse.js listens for mourse clicks and
calls commands,
-
mozileParseMES.js parses the MES files,
-
mozileSourceEdit.js source editing
-
mozileSpecialChars.js defines extended
characters and parses additional character data from the MES.
-
mozileTags.js Tag View mode
-
mozileToolbar.js takes care of the Mozile
toolbar, deciding which context buttons and menus to show,
-
mozileUndoRedo.js takes care of the undo and
redo commands,
-
mozileUtilities.js contains functions that
are useful in several other files, shared in common,
-
mozileWrappers.js access to some browser
specific functions
The eDOM directory contains the Editable DOM files which are the
core of Mozile. They are,
The mes directory contains Mozile Editing Schemes.
The saving directory contains the files which facilitate Mozile
saving. They are,
-
mozileSave.js the main interface between Mozile
and the lower level details,
-
mozileDataTransport.js the main
functions which implement Mozile's save methods,
-
jsdav.js allows JavaScript to talk to WebDAV. This
code comes from Twingle,
-
rsd.xml an example of an RSD configuration file for
Mozile.
The XUL directory contains the files which define the Mozile UI.
-
about.xul describes the About dialog,
-
advanced.js controls the advanced options dialog,
-
advanced.xul describes the layout of the advanced
options dialog.
-
debugging.js controls the debugging dialog,
-
debugging.xul describes the layout of the
debugging dialog.
-
info.js controls the Page Info dialog,
-
info.xul describes the Page Info dialog layout.
-
mozileFirefox.xul describes the Mozile tool
bar for Firefox,
-
mozileMozilla.xul describes the Mozile tool
bar for Mozilla,
-
options.js provides some JavaScript support for the
options dialog,
-
options.xul describes the options dialog,
-
save.js provides JavaScript for the Save dialog,
-
save.xul describes the Save dialog.
-
savemsg.js provides JavaScript for the savemsg
dialog,
-
savemsg.xul describes the savemsg dialog.
-
savepost.js provides JavaScript for the HTTP Post
dialog,
-
savepost.xul describes the HTTP Post dialog.
-
source.js provides JavaScript for save to display,
-
source.xul describes the save to display dialog.
-
sourcebox.xul describes the source edit layout.
-
special.js provides JavaScript for the special chars
dialog.
-
special.xul describes the special chars dialog.