59#define DEFAULT_PREFIX_ALLOC_COUNT 16
62static const WCHAR xmluriW[] = {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'w',
'w',
'.',
'w',
'3',
'.',
'o',
'r',
'g',
63 '/',
'X',
'M',
'L',
'/',
'1',
'9',
'9',
'8',
'/',
'n',
'a',
'm',
'e',
's',
'p',
'a',
'c',
'e',0};
112 if (
This->override == VARIANT_TRUE)
155 *prefix = ctxt->
ns[
i].prefix;
184 if (!ctxt)
return NULL;
199 if (!ctxt->
ns[0].prefix || !ctxt->
ns[0].uri)
226 return IVBMXNamespaceManager_QueryInterface(&
This->IVBMXNamespaceManager_iface,
riid,
ppvObject);
232 return IVBMXNamespaceManager_AddRef(&
This->IVBMXNamespaceManager_iface);
238 return IVBMXNamespaceManager_Release(&
This->IVBMXNamespaceManager_iface);
245 return IVBMXNamespaceManager_put_allowOverride(&
This->IVBMXNamespaceManager_iface,
override);
252 return IVBMXNamespaceManager_get_allowOverride(&
This->IVBMXNamespaceManager_iface,
override);
258 return IVBMXNamespaceManager_reset(&
This->IVBMXNamespaceManager_iface);
264 return IVBMXNamespaceManager_pushContext(&
This->IVBMXNamespaceManager_iface);
271 return IVBMXNamespaceManager_pushNodeContext(&
This->IVBMXNamespaceManager_iface,
node, deep);
277 return IVBMXNamespaceManager_popContext(&
This->IVBMXNamespaceManager_iface);
281 const WCHAR *prefix,
const WCHAR *namespaceURI)
283 static const WCHAR xmlnsW[] = {
'x',
'm',
'l',
'n',
's',0};
313 if (*prefix_len < (
INT)
SysStringLen(prfx))
return E_XML_BUFFERTOOSMALL;
341 if (*prefix_len < (
INT)
SysStringLen(prfx))
return E_XML_BUFFERTOOSMALL;
367 FIXME(
"namespaces from DOM node not supported\n");
414 *
obj = &
This->IMXNamespaceManager_iface;
419 *
obj = &
This->IVBMXNamespaceManager_iface;
432 IVBMXNamespaceManager_AddRef( iface );
471 return IDispatchEx_GetTypeInfoCount(&
This->dispex.IDispatchEx_iface, pctinfo);
478 return IDispatchEx_GetTypeInfo(&
This->dispex.IDispatchEx_iface,
479 iTInfo, lcid, ppTInfo);
486 return IDispatchEx_GetIDsOfNames(&
This->dispex.IDispatchEx_iface,
487 riid, rgszNames, cNames, lcid, rgDispId);
492 EXCEPINFO *pExcepInfo,
UINT *puArgErr)
495 return IDispatchEx_Invoke(&
This->dispex.IDispatchEx_iface,
496 dispIdMember,
riid, lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
505 This->override =
override;
518 *
override =
This->override;
576 return IMXNamespaceManager_declarePrefix(&
This->IMXNamespaceManager_iface, prefix, namespaceURI);
671 This->override = VARIANT_TRUE;
673 *
obj = &
This->IMXNamespaceManager_iface;
675 TRACE(
"returning iface %p\n", *
obj);
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
static void * heap_realloc(void *mem, size_t len)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static void list_remove(struct list_entry *entry)
static void list_add_head(struct list_entry *head, struct list_entry *entry)
static void list_init(struct list_entry *head)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const WCHAR emptyW[]
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
static VARIANTARG static DISPID
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
@ IVBMXNamespaceManager_tid
static HRESULT WINAPI vbnamespacemanager_getURI(IVBMXNamespaceManager *iface, BSTR prefix, VARIANT *uri)
static const tid_t namespacemanager_iface_tids[]
static HRESULT WINAPI vbnamespacemanager_pushNodeContext(IVBMXNamespaceManager *iface, IXMLDOMNode *node, VARIANT_BOOL deep)
static const struct IVBMXNamespaceManagerVtbl VBMXNamespaceManagerVtbl
static HRESULT WINAPI vbnamespacemanager_reset(IVBMXNamespaceManager *iface)
static HRESULT WINAPI namespacemanager_pushContext(IMXNamespaceManager *iface)
static HRESULT get_declared_prefix_uri(const struct list *ctxts, const WCHAR *uri, BSTR *prefix)
static HRESULT WINAPI namespacemanager_getPrefix(IMXNamespaceManager *iface, const WCHAR *uri, LONG index, WCHAR *prefix, int *prefix_len)
static HRESULT get_uri_from_prefix(const struct nscontext *ctxt, const WCHAR *prefix, BSTR *uri)
static HRESULT WINAPI vbnamespacemanager_popContext(IVBMXNamespaceManager *iface)
static HRESULT WINAPI vbnamespacemanager_pushContext(IVBMXNamespaceManager *iface)
static HRESULT WINAPI vbnamespacemanager_getURIFromNode(IVBMXNamespaceManager *iface, BSTR prefix, IXMLDOMNode *node, VARIANT *uri)
static const WCHAR xmluriW[]
static HRESULT WINAPI namespacemanager_getURI(IMXNamespaceManager *iface, const WCHAR *prefix, IXMLDOMNode *node, WCHAR *uri, int *uri_len)
static ULONG WINAPI vbnamespacemanager_AddRef(IVBMXNamespaceManager *iface)
static HRESULT WINAPI namespacemanager_QueryInterface(IMXNamespaceManager *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI vbnamespacemanager_get_allowOverride(IVBMXNamespaceManager *iface, VARIANT_BOOL *override)
static HRESULT WINAPI vbnamespacemanager_put_allowOverride(IVBMXNamespaceManager *iface, VARIANT_BOOL override)
static void free_ns_context(struct nscontext *ctxt)
static struct nscontext * alloc_ns_context(void)
static const struct IMXNamespaceManagerVtbl MXNamespaceManagerVtbl
static HRESULT WINAPI vbnamespacemanager_getPrefixes(IVBMXNamespaceManager *iface, BSTR namespaceURI, IMXNamespacePrefixes **prefixes)
HRESULT MXNamespaceManager_create(void **obj)
static HRESULT WINAPI vbnamespacemanager_declarePrefix(IVBMXNamespaceManager *iface, BSTR prefix, BSTR namespaceURI)
static HRESULT WINAPI vbnamespacemanager_GetTypeInfo(IVBMXNamespaceManager *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static ULONG WINAPI namespacemanager_Release(IMXNamespaceManager *iface)
static HRESULT declare_prefix(namespacemanager *This, const WCHAR *prefix, const WCHAR *uri)
static HRESULT get_declared_prefix_idx(const struct nscontext *ctxt, LONG index, BSTR *prefix)
static HRESULT WINAPI namespacemanager_popContext(IMXNamespaceManager *iface)
static ULONG WINAPI vbnamespacemanager_Release(IVBMXNamespaceManager *iface)
static namespacemanager * impl_from_IMXNamespaceManager(IMXNamespaceManager *iface)
static HRESULT WINAPI namespacemanager_getDeclaredPrefix(IMXNamespaceManager *iface, LONG index, WCHAR *prefix, int *prefix_len)
static HRESULT WINAPI namespacemanager_pushNodeContext(IMXNamespaceManager *iface, IXMLDOMNode *node, VARIANT_BOOL deep)
static HRESULT WINAPI namespacemanager_declarePrefix(IMXNamespaceManager *iface, const WCHAR *prefix, const WCHAR *namespaceURI)
static const WCHAR xmlW[]
static HRESULT WINAPI namespacemanager_putAllowOverride(IMXNamespaceManager *iface, VARIANT_BOOL override)
static namespacemanager * impl_from_IVBMXNamespaceManager(IVBMXNamespaceManager *iface)
static HRESULT WINAPI namespacemanager_reset(IMXNamespaceManager *iface)
static dispex_static_data_t namespacemanager_dispex
static HRESULT WINAPI vbnamespacemanager_GetIDsOfNames(IVBMXNamespaceManager *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI namespacemanager_getAllowOverride(IMXNamespaceManager *iface, VARIANT_BOOL *override)
static ULONG WINAPI namespacemanager_AddRef(IMXNamespaceManager *iface)
static HRESULT WINAPI vbnamespacemanager_GetTypeInfoCount(IVBMXNamespaceManager *iface, UINT *pctinfo)
static HRESULT WINAPI vbnamespacemanager_QueryInterface(IVBMXNamespaceManager *iface, REFIID riid, void **obj)
static HRESULT WINAPI vbnamespacemanager_Invoke(IVBMXNamespaceManager *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI vbnamespacemanager_getDeclaredPrefixes(IVBMXNamespaceManager *iface, IMXNamespacePrefixes **prefixes)
#define DEFAULT_PREFIX_ALLOC_COUNT
BSTR WINAPI SysAllocString(LPCOLESTR str)
UINT WINAPI SysStringLen(BSTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
#define IsEqualGUID(rguid1, rguid2)
static unsigned __int64 next
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field)
__WINE_SERVER_LIST_INLINE struct list * list_next(const struct list *list, const struct list *elem)
IMXNamespaceManager IMXNamespaceManager_iface
IVBMXNamespaceManager IVBMXNamespaceManager_iface
#define CONTAINING_RECORD(address, type, field)
_In_ DWORD _Out_ _In_ WORD wFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject