ok, re-checking in bug 156567 because it did not affect startup time

This commit is contained in:
alecf%netscape.com 2002-08-26 20:38:52 +00:00
parent 4f8934ad1d
commit 68bb18db7f
3 changed files with 15 additions and 3 deletions

View File

@ -55,6 +55,9 @@ REQUIRES = xpcom \
appshell \
xuldoc \
commandhandler \
gfx \
widget \
txtsvc \
$(NULL)
ifdef MOZ_PLAINTEXT_EDITOR_ONLY
@ -71,6 +74,7 @@ else
CPPSRCS = nsEditorRegistration.cpp
SHARED_LIBRARY_LIBS = \
../html/$(LIB_PREFIX)htmleditor_s.$(LIB_SUFFIX) \
../../txtsvc/src/$(LIB_PREFIX)txtsvc_s.$(LIB_SUFFIX) \
$(NULL)
# ../composer/src/$(LIB_PREFIX)composer_s.$(LIB_SUFFIX)
endif
@ -94,5 +98,6 @@ include $(topsrcdir)/config/rules.mk
INCLUDES += -I$(topsrcdir)/editor/libeditor/base \
-I$(topsrcdir)/editor/libeditor/text \
-I$(topsrcdir)/editor/libeditor/html \
-I$(topsrcdir)/editor/txtsvc/src \
-I$(topsrcdir)/editor/composer/src

View File

@ -46,6 +46,9 @@
#include "nsEditorController.h" //CID
#include "nsTextServicesDocument.h"
#include "nsTextServicesCID.h"
////////////////////////////////////////////////////////////////////////
// Define the contructor function for the objects
//
@ -55,6 +58,7 @@
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEditorService)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPlaintextEditor)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEditorController)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTextServicesDocument)
#ifdef ENABLE_EDITOR_API_LOG
#include "nsHTMLEditorLog.h"
@ -91,6 +95,9 @@ static const nsModuleComponentInfo components[] = {
{ "Editor Controller", NS_EDITORCONTROLLER_CID,
"@mozilla.org/editor/editorcontroller;1",
nsEditorControllerConstructor, },
{ NULL, NS_TEXTSERVICESDOCUMENT_CID,
"@mozilla.org/textservices/textservicesdocument;1",
nsTextServicesDocumentConstructor },
};
////////////////////////////////////////////////////////////////////////

View File

@ -27,9 +27,9 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = txtsvc
LIBRARY_NAME = txtsvc
LIBRARY_NAME = txtsvc_s
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
FORCE_STATIC_LIB = 1
MODULE_NAME = nsTextServicesModule
REQUIRES = xpcom \
string \
@ -44,10 +44,10 @@ REQUIRES = xpcom \
CPPSRCS = \
nsTextServicesDocument.cpp \
nsTextServicesFactory.cpp \
nsTSDNotifier.cpp \
$(NULL)
EXTRA_DSO_LDOPTS = \
$(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \