Class Mozile

Object
   |
   +--Mozile

class Mozile

Defined in MozileCore.js


Field Summary
 Object acceleratorList
          Mozile - Accelerator List - An array containing all of the keyboard shortcuts (accelerators) for Mozile commands.
 Object changesSaved
          Mozile - Changes Saved - This is true after any of the to[Format]() methods have been called, and false after any other command.
 Object commandList
          Mozile - Command List - An array containing all of the commands (but no the command lists) registered with this Mozile object.
 Object currentEditor
          Mozile - Current Editor - When an editor takes the focus, it sets currentEditor to its root element.
 Object debugLevel
          Mozile - Debug Level - An integer indicating how verbose debugging should be.
 Object editorList
          Mozile - Editor List - An array containing entries for every editor in the document.
 Object firstToolbarShow
          Mozile - First Show Toolbar - A flag which is "true" if the Mozile toolbar has never been shown (i.e.
 Object keyboardShortcuts
          Mozile - Keyboard Shortcuts - A Boolean value.
 Object keyCounter
          Mozile - Key Counter - Counts the number of keypresses which lead to character insertion.
 Object lastFocusNode
          Mozile - Last Focus Node - Stores the last focused node.
 Object lastIP
          Mozile - Last IP - Stores the last insertion point.
 Object linkList
          Mozile - Link List - An array containing the id's of all the links which have been loaded using this.loadLink().
 Object maxKeyCount
          Mozile - Max Key Count - When keyCounter > maxKeyCount the state of the document is stored.
 Object mode
          Mozile - Mode - The mode controls which tools are used to manipulate the document.
 Object moduleList
          Mozile - Module List - An array containing all the loaded modules and their versions.
 Object namespace
          Mozile - Namespace - A proper namespace for the document.
 Object operatingSystem
          Mozile - Operating System - Mozile checks the UserAgent string for the browser, and tries to determine what operating system the browser is running under.
 Object root
          Mozile - Root - The root directory for this Mozile installation.
 Object scriptList
          Mozile - Script List - An array containing the id's of all the scripts which have been loaded using this.loadScript().
 Object styleList
          Mozile - Style List - An array containing the id's of all the style elements which have been added to the document by Mozile.
 Object styleSheet
          Mozile - Style Sheet - The CSSStyleSheet object which is manipulated to add the XBL bindings which control the Mozile toolbar and the Mozile editors
 Object toolbar
          Mozile - Toolbar - Mozile's toolbar element.
 Object toolbarUpdateFrequency
          Mozile - Toolbar Update - An integer specifying how often the toolbar should update.
 Object undoCounter
          Mozile - Undo Counter - An integer which tracks the current position in the undoStack.
 Object undoStack
          Mozile - Undo Stack - An array which contains stored states for the document.
 Object version
          Mozile - Version - The version of the Mozile Core code.
 
Constructor Summary
Mozile (optionsString)
            Mozile Object - Creates the Mozile object, which is used for almost all of Mozile's functionality.
 
Method Summary
 Object checkRequirements(versionString, requirements)
           Mozile - Check Requirements - Check to see if a given version string meets the requirements specified in a requirement string (like a configuration string).
 Object cleanUp(element)
           Mozile - Clean Up - Removes all of the elements which Mozile has inserted into the document.
 Object commandIsRegistered(id)
           Mozile - Command Is Registered - Checks to see if a command with the given id has been registered.
 Object createCommand(configString)
           Mozile - Create Command - This method creates a Mozile command object from a configuration string.
 Object createEditor(id, options)
           Mozile - Create Editor - Creates a Mozile editor in the document using it's id.
 Object createEditors(selector, options)
           Mozile - Create Editors - Creates multiple Mozile editors in the document, using a CSS selector.
 Object createToolbar(type)
           Mozile - Create Toolbar - Does all the work required to add the Mozile toolbar to the current document.
 Object debug(details, level, message)
           Mozile - Debug - The stub of a debugging tool.
 Object deletion(direction)
           Mozile - Delete - Deletes the current selection, or everything between the current and the previous insertion points.
 Object editorToHTML()
           Mozile - Editor To HTML - Extract the contents of the current editor as HTML, first cleaning up any mess that Mozile has made.
 Object editorToXML()
           Mozile - Editor To XML - Extract the contents of the current editor as XML, first cleaning up any mess that Mozile has made.
 Object executeCommand(id, event)
           Mozile - Execute Command - Calls the command() method of the command object corresponding to the given id.
 Object handleKeypress(event)
           Mozile - Handle Keypress - Decides what action to take for the given "keypress" event, and calls the appropriate function.
 Object handleKeyup(event)
           Mozile - Handle Keyup - Decides what action to take for the given "keyup" event, and calls the appropriate function.
 Object hideToolbar()
           Mozile - Hide Toolbar - Hides the Mozile toolbar.
 Object initializeToolbar()
           Mozile - Initialize Toolbar - Does some basic setup on the toolbar, which can't be done until after all modules have loaded.
 Object insertFragment(fragment)
           Mozile - Insert Fragment - Inserts all the children of a document fragment or an element at the current selection index.
 Object insertString(string)
           Mozile - Insert String - Inserts a string at the current selection index.
 Object loadLink(href, id)
           Mozile - Load Link - Creates an X/HTML link element, at the appropriate place in the document, which loads the CSS file referred to by "src".
 Object loadModule(configString)
           Mozile - Load Module - Loads a module into the document.
 Object loadScript(src, id)
           Mozile - Load Script - Creates an X/HTML script element, at the appropriate place in the document, which loads the JavaScript file referred to by "src".
 Object moduleIsLoaded(moduleName, requirements)
           Mozile - Module Is Loaded- Checks to see if the given module has been loaded.
 Object parseConfig(configString)
           Mozile - Parse Config - Parses a configuration string into a configuration array.
 Object parseOptions(optionString)
           Mozile - Parse Options - Parses an option string into an option array.
 Object registerCommand(command)
           Mozile - Register Command - Registers a command or command list object, adding it to the this.commandList array.
 Object registerEditor(element)
           Mozile - Register Editor - Adds an editor's root node to the this.editorList.
 Object registerModule(moduleName, versionString)
           Mozile - Register Module - Registers the version of a module with the moduleList.
 Object restoreSelection(selectionArray)
           Mozile - Restore Selection - Restores the selection using the output from this.storeSelection.
 Object restoreState(index)
           Mozile - Restore State - Replaces the contents of all editors in the document with their states as recoreded at a given index of the undoStack.
 Object seekIP(direction, startNode, startOffset)
           Mozile - Seek Insertion Point - Finds the next (or previous) insertion point, starting at a given text node and offset.
 Object seekTextNode(direction, startNode)
           Mozile - Seek Text Node - Finds the next (or previous) text node which either has CSS white-space="pre" or contains some non-white-space characters.
 Object setCurrentEditor(element)
           Mozile - Set Current Editor - Sets the this.ecurrentEditor to the given element.
 Object showToolbar()
           Mozile - Show Toolbar - Shows (unhides) the Mozile toolbar.
 Object splitBlock()
           Mozile - Split Block - Splits the current block in two, creating a new block after the old one in the process.
 Object storeSelection()
           Mozile - Store Selection - Store the selection in a recoverable form.
 Object storeState(command)
           Mozile - Store State - This is the stub of a command used in the UndoRedo module.
 Object testFunction()
           Mozile - Test Function - This function is only used for testing.
 Object toHTML()
           Mozile - To HTML - Extract the contents of the document as HTML, first cleaning up any mess that Mozile has made.
 Object toXML()
           Mozile - To XML - Extract the contents of the document as XML, first cleaning up any mess that Mozile has made.
 Object unloadLink(id)
           Mozile - Unload Link - Removes all X/HTML links tags which file referred to by "id".
 Object unloadScript(id)
           Mozile - Unload Script - Removes all X/HTML script tags with the given id.
 Object unregisterCommand(id)
           Mozile - Unregister Command - Unregisters a command or command list object by removing it from the commandList array.
 Object unregisterModule(moduleName)
           Mozile - Unregister Module - Removes the given module from the moduleList.
 Object updateToolbar()
           Mozile - Show Toolbar - Updates all of the commands in the commandList so that they will reflect the current selection.

Field Detail

acceleratorList

Object acceleratorList

changesSaved

Object changesSaved

commandList

Object commandList

currentEditor

Object currentEditor

debugLevel

Object debugLevel

editorList

Object editorList

firstToolbarShow

Object firstToolbarShow

keyboardShortcuts

Object keyboardShortcuts

keyCounter

Object keyCounter

lastFocusNode

Object lastFocusNode

lastIP

Object lastIP

linkList

Object linkList

maxKeyCount

Object maxKeyCount

mode

Object mode

moduleList

Object moduleList

namespace

Object namespace

operatingSystem

Object operatingSystem

root

Object root

scriptList

Object scriptList

styleList

Object styleList

styleSheet

Object styleSheet

toolbar

Object toolbar

toolbarUpdateFrequency

Object toolbarUpdateFrequency

undoCounter

Object undoCounter

undoStack

Object undoStack

version

Object version

Constructor Detail

Mozile

Mozile(optionsString)

Method Detail

checkRequirements

Object checkRequirements(versionString, requirements)

cleanUp

Object cleanUp(element)

commandIsRegistered

Object commandIsRegistered(id)

createCommand

Object createCommand(configString)

createEditor

Object createEditor(id, options)

createEditors

Object createEditors(selector, options)

createToolbar

Object createToolbar(type)

debug

Object debug(details, level, message)

deletion

Object deletion(direction)

editorToHTML

Object editorToHTML()

editorToXML

Object editorToXML()

executeCommand

Object executeCommand(id, event)

handleKeypress

Object handleKeypress(event)

handleKeyup

Object handleKeyup(event)

hideToolbar

Object hideToolbar()

initializeToolbar

Object initializeToolbar()

insertFragment

Object insertFragment(fragment)

insertString

Object insertString(string)

loadLink

Object loadLink(href, id)

loadModule

Object loadModule(configString)

loadScript

Object loadScript(src, id)

moduleIsLoaded

Object moduleIsLoaded(moduleName, requirements)

parseConfig

Object parseConfig(configString)

parseOptions

Object parseOptions(optionString)

registerCommand

Object registerCommand(command)

registerEditor

Object registerEditor(element)

registerModule

Object registerModule(moduleName, versionString)

restoreSelection

Object restoreSelection(selectionArray)

restoreState

Object restoreState(index)

seekIP

Object seekIP(direction, startNode, startOffset)

seekTextNode

Object seekTextNode(direction, startNode)

setCurrentEditor

Object setCurrentEditor(element)

showToolbar

Object showToolbar()

splitBlock

Object splitBlock()

storeSelection

Object storeSelection()

storeState

Object storeState(command)

testFunction

Object testFunction()

toHTML

Object toHTML()

toXML

Object toXML()

unloadLink

Object unloadLink(id)

unloadScript

Object unloadScript(id)

unregisterCommand

Object unregisterCommand(id)

unregisterModule

Object unregisterModule(moduleName)

updateToolbar

Object updateToolbar()


Documentation generated by JSDoc on Wed Jun 29 22:15:33 2005