bug 66290: embedding work: refactor editor to allow smaller plaintext only library. Embedding clients may be interested inthis library if they want to embed a browser but not composer/mail-compose. Reduces library footprint for plaintext-only library by over 50% on all three platforms. r=fm; sr=kin

git-svn-id: svn://10.0.0.236/trunk@85666 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com
2001-01-28 20:13:07 +00:00
parent b48ee3a7d2
commit 7cde2dddd5
58 changed files with 15114 additions and 11364 deletions

View File

@@ -27,6 +27,7 @@
#include "nsEditor.h" // for gInstanceCount
#include "nsEditorController.h" //CID
#include "nsEditorService.h"
#include "nsPlaintextEditor.h"
////////////////////////////////////////////////////////////////////////
// Define the contructor function for the objects
@@ -38,6 +39,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsEditorShell)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEditorController)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsComposerController)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEditorService)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPlaintextEditor)
#ifdef ENABLE_EDITOR_API_LOG
#include "nsHTMLEditorLog.h"
@@ -52,6 +54,8 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsHTMLEditor)
// class name.
//
static nsModuleComponentInfo components[] = {
{ "Text Editor", NS_TEXTEDITOR_CID,
"@mozilla.org/editor/texteditor;1", nsPlaintextEditorConstructor, },
#ifdef ENABLE_EDITOR_API_LOG
{ "HTML Editor", NS_HTMLEDITOR_CID,
"@mozilla.org/editor/htmleditor;1", nsHTMLEditorLogConstructor, },