ReactOS 0.4.15-dev-8096-ga0eec98
xmllite.idl
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 Nikolay Sivov
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19import "unknwn.idl";
20import "objidl.idl";
21import "oaidl.idl";
22
23typedef enum XmlNodeType {
37
38/* IXmlReader */
39[
40 local,
41 object,
42 uuid(7279fc81-709d-4095-b63d-69fe4b0d9030),
44]
46{
50 HRESULT Read( [out] XmlNodeType *node_type);
55 [in] LPCWSTR namespaceUri);
58 [out] UINT *qualifiedName_length);
60 [out] UINT *nnamespaceUri_length);
62 [out] UINT *locale_name_length);
64 [out] UINT *prefix_length);
66 [out] UINT *value_length);
68 [in] UINT chunk_size,
69 [in,out] UINT *read);
71 [out] UINT *baseUri_length);
74 HRESULT GetLineNumber( [out] UINT *lineNumber);
75 HRESULT GetLinePosition( [out] UINT *linePosition);
76 HRESULT GetAttributeCount( [out] UINT *attributeCount);
78 BOOL IsEOF(void);
79}
80
81/* IXmlResolver */
82[
83 local,
84 object,
85 uuid(7279fc82-709d-4095-b63d-69fe4b0d9030),
87]
89{
91 [in] LPCWSTR public_id,
93 [out] IUnknown **input);
94}
95
96/* IXmlReader state */
97typedef enum XmlReadState
98{
105
106/* conformance levels */
108{
114
115/* DTD processing mode */
116typedef enum DtdProcessing
117{
122
123/* IXmlReader properties */
125{
136
137/* reader error codes */
138typedef enum XmlError
139{
140 MX_E_MX = 0xc00cee00,
145 WC_E_WC = 0xc00cee20,
194 NC_E_NC = 0xc00cee60,
205 SC_E_SC = 0xc00cee80,
208 WR_E_WR = 0xc00cef00,
224 XML_E_INVALIDENCODING = 0xc00ce06e
226
227/* IXmlReader construction */
228cpp_quote("STDAPI CreateXmlReader(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
229
233cpp_quote(" LPCWSTR base_uri, IXmlReaderInput **ppInput);")
234
236{
242
244{
252
253/* IXmlWriter */
254[
255 local,
256 object,
257 uuid(7279FC88-709D-4095-B63D-69FE4B0D9030),
259]
261{
263 HRESULT GetProperty([in] UINT nProperty, [out] LONG_PTR *ppValue);
265 HRESULT WriteAttributes([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
266 HRESULT WriteAttributeString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
267 [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue);
270 HRESULT WriteChars([in] const WCHAR *pwch, [in] UINT cwch);
272 HRESULT WriteDocType([in] LPCWSTR pwszName, [in] LPCWSTR pwszPublicId,
273 [in] LPCWSTR pwszSystemId, [in] LPCWSTR pwszSubset);
274 HRESULT WriteElementString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
275 [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue);
282 HRESULT WriteNode([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
283 HRESULT WriteNodeShallow([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
285 HRESULT WriteQualifiedName([in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri);
287 HRESULT WriteRawChars([in] const WCHAR *pwch, [in] UINT cwch);
289 HRESULT WriteStartElement([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
290 [in] LPCWSTR pwszNamespaceUri);
295}
296
297/* IXmlWriter construction */
298cpp_quote("STDAPI CreateXmlWriter(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
299
#define read
Definition: acwin.h:96
#define STDAPI
Definition: basetyps.h:41
#define D(d)
Definition: builtin.c:4557
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
Definition: d3d10.idl:491
coclass PSFactoryBuffer pointer_default(unique)] interface ObjectRpcBaseTypes
Definition: dcom.idl:35
static BSTR local_name(call_frame_t *frame, int ref)
Definition: engine.c:187
unsigned int BOOL
Definition: ntddk_ex.h:94
#define local
Definition: zutil.h:30
PWCHAR pValue
GLint GLint GLsizei GLsizei GLsizei depth
Definition: gl.h:1546
GLuint buffer
Definition: glext.h:5915
GLuint in
Definition: glext.h:9616
GLenum GLenum GLenum input
Definition: glext.h:9031
HRESULT GetAttributeCount([out] UINT *attributeCount)
HRESULT GetProperty([in] UINT property, [out] LONG_PTR *value)
BOOL IsEOF(void)
HRESULT MoveToFirstAttribute(void)
HRESULT GetValue([out] LPCWSTR *value, [out] UINT *value_length)
HRESULT MoveToNextAttribute(void)
HRESULT GetBaseUri([out] LPCWSTR *baseUri, [out] UINT *baseUri_length)
HRESULT GetDepth([out] UINT *depth)
HRESULT GetLocalName([out] LPCWSTR *local_name, [out] UINT *locale_name_length)
HRESULT MoveToAttributeByName([in] LPCWSTR local_name, [in] LPCWSTR namespaceUri)
HRESULT ReadValueChunk([out] WCHAR *buffer, [in] UINT chunk_size, [in, out] UINT *read)
HRESULT GetLinePosition([out] UINT *linePosition)
HRESULT MoveToElement(void)
HRESULT GetNodeType([out] XmlNodeType *node_type)
HRESULT SetProperty([in] UINT property, [in] LONG_PTR value)
HRESULT GetLineNumber([out] UINT *lineNumber)
HRESULT Read([out] XmlNodeType *node_type)
HRESULT GetQualifiedName([out] LPCWSTR *qualifiedName, [out] UINT *qualifiedName_length)
HRESULT GetPrefix([out] LPCWSTR *prefix, [out] UINT *prefix_length)
HRESULT GetNamespaceUri([out] LPCWSTR *namespaceUri, [out] UINT *nnamespaceUri_length)
BOOL IsDefault(void)
BOOL IsEmptyElement(void)
HRESULT SetInput([in] IUnknown *input)
HRESULT ResolveUri([in] LPCWSTR base_uri, [in] LPCWSTR public_id, [in] LPCWSTR system_id, [out] IUnknown **input)
HRESULT WriteRaw([in] LPCWSTR pwszData)
HRESULT WriteCharEntity([in] WCHAR wch)
HRESULT WriteAttributes([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes)
HRESULT WriteStartDocument([in] XmlStandalone standalone)
HRESULT WriteComment([in] LPCWSTR pwszComment)
HRESULT WriteEndElement()
HRESULT WriteChars([in] const WCHAR *pwch, [in] UINT cwch)
HRESULT WriteElementString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue)
HRESULT WriteNodeShallow([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes)
HRESULT WriteFullEndElement()
HRESULT WriteEndDocument()
HRESULT WriteWhitespace([in] LPCWSTR pwszWhitespace)
HRESULT WriteNode([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes)
HRESULT WriteName([in] LPCWSTR pwszName)
HRESULT WriteRawChars([in] const WCHAR *pwch, [in] UINT cwch)
HRESULT WriteProcessingInstruction([in] LPCWSTR pwszName, [in] LPCWSTR pwszText)
HRESULT WriteEntityRef([in] LPCWSTR pwszName)
HRESULT WriteCData([in] LPCWSTR pwszText)
HRESULT WriteSurrogateCharEntity([in] WCHAR wchLow, [in] WCHAR wchHigh)
HRESULT SetProperty([in] UINT nProperty, [in] LONG_PTR pValue)
HRESULT Flush()
HRESULT WriteString([in] LPCWSTR pwszText)
HRESULT GetProperty([in] UINT nProperty, [out] LONG_PTR *ppValue)
HRESULT WriteNmToken([in] LPCWSTR pwszNmToken)
HRESULT WriteAttributeString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue)
HRESULT WriteQualifiedName([in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri)
HRESULT WriteDocType([in] LPCWSTR pwszName, [in] LPCWSTR pwszPublicId, [in] LPCWSTR pwszSystemId, [in] LPCWSTR pwszSubset)
HRESULT SetOutput([in] IUnknown *pOutput)
HRESULT WriteStartElement([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri)
Definition: msctf.idl:550
#define d
Definition: ke_i.h:81
__u8 system_id[8]
Definition: mkdosfs.c:1
static LPMALLOC pMalloc
Definition: shellpath.c:104
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
unsigned int UINT
Definition: ndis.h:50
static FILE * out
Definition: regtests2xml.c:44
Definition: parse.h:23
Definition: pdh_main.c:94
DWORD hint
Definition: vfdcmd.c:88
int codepage
Definition: win_iconv.c:156
static char * encoding
Definition: xmllint.c:155
XmlReadState
Definition: xmllite.idl:98
@ XmlReadState_Closed
Definition: xmllite.idl:103
@ XmlReadState_Error
Definition: xmllite.idl:101
@ XmlReadState_EndOfFile
Definition: xmllite.idl:102
@ XmlReadState_Initial
Definition: xmllite.idl:99
@ XmlReadState_Interactive
Definition: xmllite.idl:100
DtdProcessing
Definition: xmllite.idl:117
@ DtdProcessing_Parse
Definition: xmllite.idl:119
@ _DtdProcessing_Last
Definition: xmllite.idl:120
@ DtdProcessing_Prohibit
Definition: xmllite.idl:118
XmlError
Definition: xmllite.idl:139
@ NC_E_XMLNSURIRESERVED
Definition: xmllite.idl:204
@ WC_E_WHITESPACE
Definition: xmllite.idl:146
@ WC_E_UNIQUEATTRIBUTE
Definition: xmllite.idl:173
@ WC_E_LESSTHAN
Definition: xmllite.idl:151
@ WC_E_NORECURSION
Definition: xmllite.idl:182
@ NC_E_UNDECLAREDPREFIX
Definition: xmllite.idl:199
@ WC_E_CDSECT
Definition: xmllite.idl:159
@ WC_E_PI
Definition: xmllite.idl:187
@ MX_E_ENCODING
Definition: xmllite.idl:142
@ WR_E_XMLPREFIXDECLARATION
Definition: xmllite.idl:214
@ WC_E_XMLDECL
Definition: xmllite.idl:177
@ WR_E_INVALIDXMLSPACE
Definition: xmllite.idl:218
@ WC_E_INVALIDXMLSPACE
Definition: xmllite.idl:193
@ WC_E_PESINTERNALSUBSET
Definition: xmllite.idl:180
@ WC_E_NDATA
Definition: xmllite.idl:167
@ WR_E_NONWHITESPACE
Definition: xmllite.idl:209
@ SC_E_SC
Definition: xmllite.idl:205
@ WC_E_CONDSECT
Definition: xmllite.idl:161
@ WC_E_PUBLIC
Definition: xmllite.idl:168
@ MX_E_ENCODINGSIGNATURE
Definition: xmllite.idl:144
@ WC_E_EQUAL
Definition: xmllite.idl:150
@ NC_E_NC
Definition: xmllite.idl:194
@ WC_E_DIGIT
Definition: xmllite.idl:153
@ WC_E_QUESTIONMARK
Definition: xmllite.idl:189
@ NC_E_DECLAREDPREFIX
Definition: xmllite.idl:198
@ WC_E_WC
Definition: xmllite.idl:145
@ NC_E_QNAMECOLON
Definition: xmllite.idl:196
@ WC_E_SYSTEM
Definition: xmllite.idl:169
@ XML_E_INVALID_HEXIDECIMAL
Definition: xmllite.idl:222
@ WC_E_DECLDOCTYPE
Definition: xmllite.idl:163
@ NC_E_EMPTYURI
Definition: xmllite.idl:200
@ WC_E_LEFTPAREN
Definition: xmllite.idl:155
@ WR_E_XMLURIDECLARATION
Definition: xmllite.idl:215
@ XML_E_INVALID_DECIMAL
Definition: xmllite.idl:221
@ WC_E_SYNTAX
Definition: xmllite.idl:158
@ WC_E_SYSTEMID
Definition: xmllite.idl:188
@ WC_E_TEXTDECL
Definition: xmllite.idl:176
@ MX_E_ENCODINGSWITCH
Definition: xmllite.idl:143
@ WR_E_NAMESPACEUNDECLARED
Definition: xmllite.idl:217
@ WC_E_UNDECLAREDENTITY
Definition: xmllite.idl:184
@ WC_E_LEFTBRACKET
Definition: xmllite.idl:154
@ NC_E_XMLPREFIXRESERVED
Definition: xmllite.idl:201
@ WC_E_PARSEDENTITY
Definition: xmllite.idl:185
@ WC_E_DECLNOTATION
Definition: xmllite.idl:166
@ WR_E_DUPLICATEATTRIBUTE
Definition: xmllite.idl:212
@ NC_E_XMLURIRESERVED
Definition: xmllite.idl:203
@ SC_E_MAXELEMENTDEPTH
Definition: xmllite.idl:206
@ WC_E_ENTITYCONTENT
Definition: xmllite.idl:183
@ WC_E_GREATERTHAN
Definition: xmllite.idl:148
@ WC_E_LEADINGXML
Definition: xmllite.idl:175
@ WR_E_NSPREFIXDECLARED
Definition: xmllite.idl:210
@ WC_E_CDSECTEND
Definition: xmllite.idl:190
@ WC_E_ROOTELEMENT
Definition: xmllite.idl:171
@ WC_E_DECLELEMENT
Definition: xmllite.idl:164
@ WC_E_NAMECHARACTER
Definition: xmllite.idl:157
@ WC_E_ENCNAME
Definition: xmllite.idl:178
@ WR_E_WR
Definition: xmllite.idl:208
@ WC_E_DECLATTLIST
Definition: xmllite.idl:162
@ WR_E_XMLNSURIDECLARATION
Definition: xmllite.idl:216
@ WC_E_SEMICOLON
Definition: xmllite.idl:147
@ WC_E_ELEMENTMATCH
Definition: xmllite.idl:172
@ NC_E_NAMECOLON
Definition: xmllite.idl:197
@ XML_E_INVALID_UNICODE
Definition: xmllite.idl:223
@ WC_E_XMLCHARACTER
Definition: xmllite.idl:156
@ NC_E_QNAMECHARACTER
Definition: xmllite.idl:195
@ MX_E_MX
Definition: xmllite.idl:140
@ NC_E_XMLNSPREFIXRESERVED
Definition: xmllite.idl:202
@ WC_E_QUOTE
Definition: xmllite.idl:149
@ WR_E_INVALIDSURROGATEPAIR
Definition: xmllite.idl:220
@ WC_E_TEXTXMLDECL
Definition: xmllite.idl:174
@ WC_E_DTDPROHIBITED
Definition: xmllite.idl:192
@ WC_E_DECLENTITY
Definition: xmllite.idl:165
@ MX_E_INPUTEND
Definition: xmllite.idl:141
@ WC_E_MOREDATA
Definition: xmllite.idl:191
@ SC_E_MAXENTITYEXPANSION
Definition: xmllite.idl:207
@ WR_E_XMLNSPREFIXDECLARATION
Definition: xmllite.idl:213
@ WC_E_HEXDIGIT
Definition: xmllite.idl:152
@ WC_E_COMMENT
Definition: xmllite.idl:160
@ WC_E_NOEXTERNALENTITYREF
Definition: xmllite.idl:186
@ WR_E_NSPREFIXWITHEMPTYNSURI
Definition: xmllite.idl:211
@ WC_E_PESBETWEENDECLS
Definition: xmllite.idl:181
@ WC_E_NAME
Definition: xmllite.idl:170
@ WC_E_PUBLICID
Definition: xmllite.idl:179
@ XML_E_INVALIDENCODING
Definition: xmllite.idl:224
@ WR_E_INVALIDACTION
Definition: xmllite.idl:219
XmlWriterProperty
Definition: xmllite.idl:244
@ XmlWriterProperty_ConformanceLevel
Definition: xmllite.idl:249
@ XmlWriterProperty_OmitXmlDeclaration
Definition: xmllite.idl:248
@ XmlWriterProperty_MultiLanguage
Definition: xmllite.idl:245
@ XmlWriterProperty_ByteOrderMark
Definition: xmllite.idl:247
@ XmlWriterProperty_Indent
Definition: xmllite.idl:246
@ _XmlWriterProperty_Last
Definition: xmllite.idl:250
STDAPI CreateXmlReaderInputWithEncodingName(IUnknown *stream, IMalloc *pMalloc, LPCWSTR encoding, BOOL hint, LPCWSTR base_uri, IXmlReaderInput **ppInput)
Definition: reader.c:3696
XmlConformanceLevel
Definition: xmllite.idl:108
@ XmlConformanceLevel_Document
Definition: xmllite.idl:111
@ XmlConformanceLevel_Auto
Definition: xmllite.idl:109
@ _XmlConformanceLevel_Last
Definition: xmllite.idl:112
@ XmlConformanceLevel_Fragment
Definition: xmllite.idl:110
XmlReaderProperty
Definition: xmllite.idl:125
@ _XmlReaderProperty_Last
Definition: xmllite.idl:134
@ XmlReaderProperty_MultiLanguage
Definition: xmllite.idl:126
@ XmlReaderProperty_DtdProcessing
Definition: xmllite.idl:130
@ XmlReaderProperty_RandomAccess
Definition: xmllite.idl:128
@ XmlReaderProperty_ConformanceLevel
Definition: xmllite.idl:127
@ XmlReaderProperty_XmlResolver
Definition: xmllite.idl:129
@ XmlReaderProperty_MaxEntityExpansion
Definition: xmllite.idl:133
@ XmlReaderProperty_MaxElementDepth
Definition: xmllite.idl:132
@ XmlReaderProperty_ReadState
Definition: xmllite.idl:131
STDAPI CreateXmlWriterOutputWithEncodingCodePage(IUnknown *stream, IMalloc *pMalloc, UINT codepage, IXmlWriterOutput **output)
Definition: writer.c:1997
XmlNodeType
Definition: xmllite.idl:23
@ XmlNodeType_Whitespace
Definition: xmllite.idl:32
@ XmlNodeType_EndElement
Definition: xmllite.idl:33
@ XmlNodeType_ProcessingInstruction
Definition: xmllite.idl:29
@ XmlNodeType_Attribute
Definition: xmllite.idl:26
@ XmlNodeType_CDATA
Definition: xmllite.idl:28
@ XmlNodeType_XmlDeclaration
Definition: xmllite.idl:34
@ _XmlNodeType_Last
Definition: xmllite.idl:35
@ XmlNodeType_Comment
Definition: xmllite.idl:30
@ XmlNodeType_DocumentType
Definition: xmllite.idl:31
@ XmlNodeType_None
Definition: xmllite.idl:24
@ XmlNodeType_Element
Definition: xmllite.idl:25
@ XmlNodeType_Text
Definition: xmllite.idl:27
STDAPI CreateXmlWriterOutputWithEncodingName(IUnknown *stream, IMalloc *pMalloc, LPCWSTR encoding, IXmlWriterOutput **output)
XmlStandalone
Definition: xmllite.idl:236
@ XmlStandalone_No
Definition: xmllite.idl:239
@ XmlStandalone_Omit
Definition: xmllite.idl:237
@ XmlStandalone_Yes
Definition: xmllite.idl:238
@ _XmlStandalone_Last
Definition: xmllite.idl:240
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185