Adding remaining MathML hooks. r:peterl.

This commit is contained in:
rbs%maths.uq.edu.au 1999-10-02 11:05:49 +00:00
parent 93d65241ae
commit 93ac1da9b5
6 changed files with 46 additions and 0 deletions

View File

@ -50,3 +50,7 @@ INCLUDES += \
-I$(DIST)/public/raptor \
$(NULL)
ifdef MOZ_MATHML
INCLUDES += \
-I$(srcdir)/../../../mathml/content/src
endif

View File

@ -43,6 +43,9 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\js \
-I..\..\..\html\style\src -I..\..\..\html\base\src -I$(PUBLIC)\dom \
-I..\..\..\html\content\src -I..\..\..\html\document\src \
-I..\..\..\xul\content\src -I..\..\..\xsl\document\src \
!ifdef MOZ_MATHML
-I..\..\..\mathml\content\src \
!endif
-I$(PUBLIC)\netlib -I..\..\..\base\src -I$(PUBLIC)\pref \
-I$(PUBLIC)\expat

View File

@ -58,6 +58,12 @@
#include "nsXULAtoms.h"
#endif
//MathML Mod - DJF
#ifdef MOZ_MATHML
#include "nsMathMLAtoms.h"
#include "nsMathMLOperators.h"
#endif
static NS_DEFINE_IID(kIDOMDocumentIID, NS_IDOMDOCUMENT_IID);
static NS_DEFINE_IID(kIDocumentIID, NS_IDOCUMENT_IID);
static NS_DEFINE_IID(kIXMLDocumentIID, NS_IXMLDOCUMENT_IID);
@ -96,6 +102,11 @@ nsXMLDocument::nsXMLDocument()
#ifdef XSL
mTransformMediator = nsnull;
#endif
//MathML Mod - DJF
#ifdef MOZ_MATHML
nsMathMLOperators::AddRefTable();
nsMathMLAtoms::AddRefAtoms();
#endif
}
nsXMLDocument::~nsXMLDocument()
@ -116,6 +127,11 @@ nsXMLDocument::~nsXMLDocument()
#ifdef XSL
NS_IF_RELEASE(mTransformMediator);
#endif
//MathML Mod - DJF
#ifdef MOZ_MATHML
nsMathMLOperators::ReleaseTable();
nsMathMLAtoms::ReleaseAtoms();
#endif
}
NS_IMETHODIMP

View File

@ -50,3 +50,7 @@ INCLUDES += \
-I$(DIST)/public/raptor \
$(NULL)
ifdef MOZ_MATHML
INCLUDES += \
-I$(srcdir)/../../../mathml/content/src
endif

View File

@ -43,6 +43,9 @@ LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\js \
-I..\..\..\html\style\src -I..\..\..\html\base\src -I$(PUBLIC)\dom \
-I..\..\..\html\content\src -I..\..\..\html\document\src \
-I..\..\..\xul\content\src -I..\..\..\xsl\document\src \
!ifdef MOZ_MATHML
-I..\..\..\mathml\content\src \
!endif
-I$(PUBLIC)\netlib -I..\..\..\base\src -I$(PUBLIC)\pref \
-I$(PUBLIC)\expat

View File

@ -58,6 +58,12 @@
#include "nsXULAtoms.h"
#endif
//MathML Mod - DJF
#ifdef MOZ_MATHML
#include "nsMathMLAtoms.h"
#include "nsMathMLOperators.h"
#endif
static NS_DEFINE_IID(kIDOMDocumentIID, NS_IDOMDOCUMENT_IID);
static NS_DEFINE_IID(kIDocumentIID, NS_IDOCUMENT_IID);
static NS_DEFINE_IID(kIXMLDocumentIID, NS_IXMLDOCUMENT_IID);
@ -96,6 +102,11 @@ nsXMLDocument::nsXMLDocument()
#ifdef XSL
mTransformMediator = nsnull;
#endif
//MathML Mod - DJF
#ifdef MOZ_MATHML
nsMathMLOperators::AddRefTable();
nsMathMLAtoms::AddRefAtoms();
#endif
}
nsXMLDocument::~nsXMLDocument()
@ -116,6 +127,11 @@ nsXMLDocument::~nsXMLDocument()
#ifdef XSL
NS_IF_RELEASE(mTransformMediator);
#endif
//MathML Mod - DJF
#ifdef MOZ_MATHML
nsMathMLOperators::ReleaseTable();
nsMathMLAtoms::ReleaseAtoms();
#endif
}
NS_IMETHODIMP