2005-08-02 13:29:04 +02:00
|
|
|
/*
|
|
|
|
* MSXML Class Factory
|
|
|
|
*
|
|
|
|
* Copyright 2005 Mike McCormack
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-08-02 13:29:04 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MSXML_PRIVATE__
|
|
|
|
#define __MSXML_PRIVATE__
|
|
|
|
|
2007-01-20 09:19:55 +01:00
|
|
|
#ifndef __WINE_CONFIG_H
|
|
|
|
# error You must include config.h to use this header
|
|
|
|
#endif
|
|
|
|
|
2005-08-08 14:13:31 +02:00
|
|
|
#ifdef HAVE_LIBXML2
|
2005-08-03 12:58:47 +02:00
|
|
|
|
2005-08-15 11:43:53 +02:00
|
|
|
#ifdef HAVE_LIBXML_PARSER_H
|
2005-08-03 12:58:47 +02:00
|
|
|
#include <libxml/parser.h>
|
2005-08-15 11:43:53 +02:00
|
|
|
#endif
|
2005-08-03 12:58:47 +02:00
|
|
|
|
2005-08-10 11:54:22 +02:00
|
|
|
/* constructors */
|
|
|
|
extern IUnknown *create_domdoc( void );
|
|
|
|
extern IUnknown *create_xmldoc( void );
|
2005-08-19 12:03:27 +02:00
|
|
|
extern IXMLDOMNode *create_node( xmlNodePtr node );
|
2005-12-01 18:46:42 +01:00
|
|
|
extern IUnknown *create_basic_node( xmlNodePtr node, IUnknown *pUnkOuter );
|
2006-06-14 03:37:54 +02:00
|
|
|
extern IUnknown *create_element( xmlNodePtr element, IUnknown *pUnkOuter );
|
2006-02-16 19:37:53 +01:00
|
|
|
extern IUnknown *create_attribute( xmlNodePtr attribute );
|
2006-01-19 11:56:34 +01:00
|
|
|
extern IUnknown *create_text( xmlNodePtr text );
|
2006-11-17 00:17:00 +01:00
|
|
|
extern IUnknown *create_pi( xmlNodePtr pi );
|
2006-02-16 19:37:53 +01:00
|
|
|
extern IUnknown *create_comment( xmlNodePtr comment );
|
2005-08-18 12:48:13 +02:00
|
|
|
extern IXMLDOMNodeList *create_nodelist( xmlNodePtr node );
|
2005-08-19 12:03:27 +02:00
|
|
|
extern IXMLDOMNamedNodeMap *create_nodemap( IXMLDOMNode *node );
|
2006-02-14 10:38:21 +01:00
|
|
|
extern IXMLDOMNodeList *create_filtered_nodelist( xmlNodePtr, const xmlChar *, BOOL );
|
2005-08-10 11:54:22 +02:00
|
|
|
|
2005-12-01 18:46:42 +01:00
|
|
|
extern void attach_xmlnode( IXMLDOMNode *node, xmlNodePtr xmlnode );
|
|
|
|
|
2005-08-10 11:54:22 +02:00
|
|
|
/* data accessors */
|
2005-08-18 12:48:13 +02:00
|
|
|
xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type );
|
2005-08-10 11:54:22 +02:00
|
|
|
|
|
|
|
/* helpers */
|
|
|
|
extern xmlChar *xmlChar_from_wchar( LPWSTR str );
|
|
|
|
extern BSTR bstr_from_xmlChar( const xmlChar *buf );
|
2005-08-03 12:58:47 +02:00
|
|
|
|
2005-11-18 16:05:26 +01:00
|
|
|
extern LONG xmldoc_add_ref( xmlDocPtr doc );
|
|
|
|
extern LONG xmldoc_release( xmlDocPtr doc );
|
2005-08-03 12:58:47 +02:00
|
|
|
#endif
|
|
|
|
|
2005-11-08 14:10:49 +01:00
|
|
|
extern IXMLDOMParseError *create_parseError( LONG code, BSTR url, BSTR reason, BSTR srcText,
|
|
|
|
LONG line, LONG linepos, LONG filepos );
|
2005-08-02 13:29:04 +02:00
|
|
|
extern HRESULT DOMDocument_create( IUnknown *pUnkOuter, LPVOID *ppObj );
|
2007-02-27 13:32:02 +01:00
|
|
|
extern HRESULT SchemaCache_create( IUnknown *pUnkOuter, LPVOID *ppObj );
|
2005-08-02 13:29:04 +02:00
|
|
|
|
|
|
|
#endif /* __MSXML_PRIVATE__ */
|