bugs 70028 and 70394; author=simon@softel.co.il; r=ftang; sr=erik; adding

Bidi and BidiUtils to build under IBMBIDI ifdef (not part of build yet);
from IBM bidi project
This commit is contained in:
erik%netscape.com 2001-03-08 01:15:02 +00:00
Родитель 81a1a4ddf5
Коммит 23c4db54c4
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -41,6 +41,13 @@ CPPSRCS = \
nsSaveAsCharset.cpp \
$(NULL)
ifdef IBMBIDI
CPPSRCS += \
nsBidiUtilsImp.cpp \
nsBidiImp.cpp \
$(NULL)
endif
EXTRA_DSO_LDOPTS =\
$(MOZ_NECKO_UTIL_LIBS) \
$(MOZ_COMPONENT_LIBS) \

Просмотреть файл

@ -32,6 +32,10 @@
#include "nsUUDll.h"
#include "nsFileSpec.h"
#include "nsIFile.h"
#ifdef IBMBIDI
#include "nsBidiUtilsImp.h"
#include "nsBidiImp.h"
#endif // IBMBIDI
// Functions used to create new instances of a given object by the
// generic factory.
@ -67,6 +71,10 @@ MAKE_CTOR(HankakuToZenkaku)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCaseConversionImp2)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEntityConverter)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSaveAsCharset)
#ifdef IBMBIDI
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidiUtilsImp)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidi)
#endif // IBMBIDI
//----------------------------------------------------------------------
// Since our class still refer to this two per dll global leave it here untill
@ -85,6 +93,12 @@ static nsModuleComponentInfo components[] =
NS_SAVEASCHARSET_CONTRACTID, nsSaveAsCharsetConstructor},
{ "Japanese Hankaku To Zenkaku", NS_HANKAKUTOZENKAKU_CID,
NS_HANKAKUTOZENKAKU_CONTRACTID, CreateNewHankakuToZenkaku},
#ifdef IBMBIDI
{ "Unichar Bidi Utility", NS_UNICHARBIDIUTIL_CID,
NS_UNICHARBIDIUTIL_CONTRACTID, nsBidiUtilsImpConstructor},
{ "Bidi Reordering Engine", NS_BIDI_CID,
NS_BIDI_CONTRACTID, nsBidiConstructor}
#endif // IBMBIDI
};
NS_IMPL_NSGETMODULE("UcharUtil", components)