[PATCH] Added interface IXmlWriter

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Jun 19 06:09:40 CDT 2011


---
 include/xmllite.idl |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/include/xmllite.idl b/include/xmllite.idl
index 552b5d6..c2a1275 100644
--- a/include/xmllite.idl
+++ b/include/xmllite.idl
@@ -109,3 +109,64 @@ cpp_quote("typedef IUnknown IXmlReaderInput;")
 cpp_quote("STDAPI CreateXmlReaderInputWithEncodingName(IUnknown *stream, IMalloc *pMalloc,")
 cpp_quote("                                            LPCWSTR encoding, BOOL hint,")
 cpp_quote("                                            LPCWSTR base_uri, IXmlReaderInput **ppInput);")
+
+typedef enum XmlStandalone
+{
+    XmlStandalone_Omit	= 0,
+    XmlStandalone_Yes	= 1,
+    XmlStandalone_No	= 2,
+    _XmlStandalone_Last	= 2
+} XmlStandalone;
+
+cpp_quote("typedef enum XmlWriterProperty")
+cpp_quote("{   XmlWriterProperty_MultiLanguage	    = 0,")
+cpp_quote("    XmlWriterProperty_Indent	            = ( XmlWriterProperty_MultiLanguage + 1 ) ,")
+cpp_quote("    XmlWriterProperty_ByteOrderMark	    = ( XmlWriterProperty_Indent + 1 ) ,")
+cpp_quote("    XmlWriterProperty_OmitXmlDeclaration	= ( XmlWriterProperty_ByteOrderMark + 1 ) ,")
+cpp_quote("    XmlWriterProperty_ConformanceLevel	= ( XmlWriterProperty_OmitXmlDeclaration + 1 ) ,")
+cpp_quote("    _XmlWriterProperty_Last	            = XmlWriterProperty_OmitXmlDeclaration")
+cpp_quote("} XmlWriterProperty;")
+
+/* IXmlWriter */
+[
+  local,
+  object,
+  uuid(7279FC88-709D-4095-B63D-69FE4B0D9030),
+  pointer_default(unique)
+]
+interface IXmlWriter : IUnknown
+{
+    HRESULT SetOutput([in] IUnknown *pOutput);        
+    HRESULT GetProperty([in] UINT nProperty, [out] LONG_PTR *ppValue);
+    HRESULT SetProperty([in] UINT nProperty, [in] LONG_PTR pValue);   
+    HRESULT WriteAttributes([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);   
+    HRESULT WriteAttributeString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
+                                 [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue);
+    HRESULT WriteCData([in] LPCWSTR pwszText);
+    HRESULT WriteCharEntity([in] WCHAR wch);   
+    HRESULT WriteChars([in] const WCHAR *pwch, [in] UINT cwch);   
+    HRESULT WriteComment([in] LPCWSTR pwszComment);   
+    HRESULT WriteDocType([in] LPCWSTR pwszName, [in] LPCWSTR pwszPublicId,
+                         [in] LPCWSTR pwszSystemId, [in] LPCWSTR pwszSubset);
+    HRESULT WriteElementString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
+                               [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue);
+    HRESULT WriteEndDocument();
+    HRESULT WriteEndElement();
+    HRESULT WriteEntityRef([in] LPCWSTR pwszName);
+    HRESULT WriteFullEndElement();   
+    HRESULT WriteName([in] LPCWSTR pwszName);
+    HRESULT WriteNmToken([in] LPCWSTR pwszNmToken);
+    HRESULT WriteNode([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
+    HRESULT WriteNodeShallow([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
+    HRESULT WriteProcessingInstruction([in] LPCWSTR pwszName, [in] LPCWSTR pwszText);
+    HRESULT WriteQualifiedName([in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri);
+    HRESULT WriteRaw([in] LPCWSTR pwszData);
+    HRESULT WriteRawChars([in] const WCHAR *pwch, [in] UINT cwch);
+    HRESULT WriteStartDocument([in] XmlStandalone standalone);
+    HRESULT WriteStartElement([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
+                              [in]  LPCWSTR pwszNamespaceUri);
+    HRESULT WriteString([in] LPCWSTR pwszText);
+    HRESULT WriteSurrogateCharEntity([in] WCHAR wchLow, [in] WCHAR wchHigh);
+    HRESULT WriteWhitespace([in] LPCWSTR pwszWhitespace);
+    HRESULT Flush();
+}
-- 
1.7.4.1


--------------050202050205020203010505--



More information about the wine-patches mailing list