Fix for bug 278981 (Extension mechanism for XPath extension functions). r=sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@202020 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -44,6 +44,8 @@
|
||||
#include "nsXFormsUtils.h"
|
||||
#include "nsICategoryManager.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIClassInfoImpl.h"
|
||||
#include "nsXFormsXPathFunctions.h"
|
||||
|
||||
// bb0d9c8b-3096-4b66-92a0-6c1ddf80e65f
|
||||
#define NS_XFORMSUTILITYSERVICE_CID \
|
||||
@@ -52,9 +54,15 @@
|
||||
#define NS_XFORMSUTILITYSERVICE_CONTRACTID \
|
||||
"@mozilla.org/xforms-utility-service;1"
|
||||
|
||||
#define XFORMSXPATHFUNCTIONS_CID \
|
||||
{ 0x8edc8cf1, 0x69a3, 0x11d9, { 0x97, 0x91, 0x00, 0x0a, 0x95, 0xdc, 0x23, 0x4c } }
|
||||
#define XFORMSXPATHFUNCTIONS_CONTRACTID \
|
||||
"@mozilla.org/xforms-xpath-functions;1"
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsXFormsElementFactory)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsXFormsUtilityService)
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsXFormsXPathFunctions)
|
||||
NS_DECL_CLASSINFO(nsXFormsXPathFunctions)
|
||||
|
||||
static NS_IMETHODIMP
|
||||
RegisterXFormsModule(nsIComponentManager *aCompMgr,
|
||||
@@ -132,6 +140,15 @@ static const nsModuleComponentInfo components[] = {
|
||||
NS_XFORMSUTILITYSERVICE_CID,
|
||||
NS_XFORMSUTILITYSERVICE_CONTRACTID,
|
||||
nsXFormsUtilityServiceConstructor
|
||||
},
|
||||
{ "XForms XPath extension functions",
|
||||
XFORMSXPATHFUNCTIONS_CID,
|
||||
XFORMSXPATHFUNCTIONS_CONTRACTID,
|
||||
nsXFormsXPathFunctionsConstructor,
|
||||
nsnull, nsnull, nsnull,
|
||||
NS_CI_INTERFACE_GETTER_NAME(nsXFormsXPathFunctions),
|
||||
nsnull,
|
||||
&NS_CLASSINFO_NAME(nsXFormsXPathFunctions)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user