www.pudn.com > TidyWin32-src.zip > TidyCOM.idl
// TidyCOM.idl : IDL source for TidyCOM.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (TidyCOM.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
interface ITidyObject;
interface ITidyOptions;
typedef [public] enum CharEncoding {
raw,
ascii,
latin1,
utf8,
iso2022,
macroman
} CharEncoding;
typedef [public] enum IndentScheme {
NoIndent,
IndentBlocks,
AutoIndent
} IndentScheme;
//-------------------------------------------------------------------
[
object,
uuid(C7D153EC-26A9-11D4-BD8A-915594DC902D),
dual,
helpstring("ITidyObject Interface"),
pointer_default(unique)
]
interface ITidyObject : IDispatch
{
[id(1), helpstring("Tidy file - write output to memory")]
HRESULT TidyToMem([in] BSTR sourceFile,
[out, retval] BSTR* result);
[id(2), helpstring("Tidy file - write output to file")]
HRESULT TidyToFile([in] BSTR sourceFile,
[in] BSTR destFile);
[id(9), helpstring("Tidy string - write output to memory")]
HRESULT TidyMemToMem([in] BSTR sourceStr,
[out, retval] BSTR* result);
[propget, id(3), helpstring("Number of warnings")]
HRESULT TotalWarnings([out, retval] long *pVal);
[propget, id(4), helpstring("Number of errors")]
HRESULT TotalErrors([out, retval] long *pVal);
[propget, id(5), helpstring("Tidy's warning message")]
HRESULT Warning([in] long i, [out, retval] BSTR *pVal);
[propget, id(6), helpstring("Tidy's error message")]
HRESULT Error([in] long i, [out, retval] BSTR *pVal);
[propget, id(7), helpstring("Tidy's comments")]
HRESULT Comments([out, retval] BSTR *pVal);
[propget, id(8), helpstring("Configuration options")]
HRESULT Options([out, retval] ITidyOptions** pVal);
};
[
object,
uuid(C7D153EE-26A9-11D4-BD8A-915594DC902D),
dual,
helpstring("ITidyOptions Interface"),
pointer_default(unique)
]
interface ITidyOptions : IDispatch
{
[id(1), helpstring("Load option settings from a configuration file")]
HRESULT Load([in] BSTR configFile);
[id(2), helpstring("Reset options to default settings")]
HRESULT Reset();
// Markup
[propget, id(3), helpstring("Doctype declaration generated by Tidy")]
HRESULT Doctype([out, retval] BSTR *pVal);
[propput, id(3), helpstring("Doctype declaration generated by Tidy")]
HRESULT Doctype([in] BSTR newVal);
[propget, id(4), helpstring("Add Tidy meta element")]
HRESULT TidyMark([out, retval] VARIANT_BOOL *pVal);
[propput, id(4), helpstring("Add Tidy meta element")]
HRESULT TidyMark([in] VARIANT_BOOL newVal);
[propget, id(5), helpstring("Suppress optional end tags")]
HRESULT HideEndtags([out, retval] VARIANT_BOOL *pVal);
[propput, id(5), helpstring("Suppress optional end tags")]
HRESULT HideEndtags([in] VARIANT_BOOL newVal);
[propget, id(6), helpstring("Enclose text in BODY whitin 's")]
HRESULT EncloseText([out, retval] VARIANT_BOOL *pVal);
[propput, id(6), helpstring("Enclose text in BODY whitin
's")]
HRESULT EncloseText([in] VARIANT_BOOL newVal);
[propget, id(7), helpstring("Enclose text in blocks whitin
's")]
HRESULT EncloseBlockText([out, retval] VARIANT_BOOL *pVal);
[propput, id(7), helpstring("Enclose text in blocks whitin
's")]
HRESULT EncloseBlockText([in] VARIANT_BOOL newVal);
[propget, id(50), helpstring("New empty tags (space or comma separated list)")]
HRESULT NewEmptyTags([out, retval] BSTR *pVal);
[propput, id(50), helpstring("New empty tags (space or comma separated list)")]
HRESULT NewEmptyTags([in] BSTR newVal);
[propget, id(51), helpstring("New inline tags (space or comma separated list)")]
HRESULT NewInlineTags([out, retval] BSTR *pVal);
[propput, id(51), helpstring("New inline tags (space or comma separated list)")]
HRESULT NewInlineTags([in] BSTR newVal);
[propget, id(52), helpstring("New block-level tags (space or comma separated list)")]
HRESULT NewBlocklevelTags([out, retval] BSTR *pVal);
[propput, id(52), helpstring("New block-level tags (space or comma separated list)")]
HRESULT NewBlocklevelTags([in] BSTR newVal);
[propget, id(53), helpstring("New
-like tags (space or comma separated list)")]
HRESULT NewPreTags([out, retval] BSTR *pVal);
[propput, id(53), helpstring("New -like tags (space or comma separated list)")]
HRESULT NewPreTags([in] BSTR newVal);
// Cleanup
[propget, id(8), helpstring("Replace presentational tags and attrs by style rules")]
HRESULT Clean([out, retval] VARIANT_BOOL *pVal);
[propput, id(8), helpstring("Replace presentational tags and attrs by style rules")]
HRESULT Clean([in] VARIANT_BOOL newVal);
[propget, id(9), helpstring("Discard and tags")]
HRESULT DropFontTags([out, retval] VARIANT_BOOL *pVal);
[propput, id(9), helpstring("Discard and tags")]
HRESULT DropFontTags([in] VARIANT_BOOL newVal);
[propget, id(10), helpstring("Replace by and by ")]
HRESULT LogicalEmphasis([out, retval] VARIANT_BOOL *pVal);
[propput, id(10), helpstring("Replace by and by ")]
HRESULT LogicalEmphasis([in] VARIANT_BOOL newVal);
[propget, id(11), helpstring("Discard empty paragraphs")]
HRESULT DropEmptyParas([out, retval] VARIANT_BOOL *pVal);
[propput, id(11), helpstring("Discard empty paragraphs")]
HRESULT DropEmptyParas([in] VARIANT_BOOL newVal);
[propget, id(12), helpstring("Source document is from MS Word 2000")]
HRESULT Word2000([out, retval] VARIANT_BOOL *pVal);
[propput, id(12), helpstring("Source document is from MS Word 2000")]
HRESULT Word2000([in] VARIANT_BOOL newVal);
[propget, id(13), helpstring("Fix bad comments")]
HRESULT FixBadComments([out, retval] VARIANT_BOOL *pVal);
[propput, id(13), helpstring("Fix bad comments")]
HRESULT FixBadComments([in] VARIANT_BOOL newVal);
[propget, id(14), helpstring("Replace '\' in URLs by '/'")]
HRESULT FixBackslash([out, retval] VARIANT_BOOL *pVal);
[propput, id(14), helpstring("Replace '\' in URLs by '/'")]
HRESULT FixBackslash([in] VARIANT_BOOL newVal);
[propget, id(54), helpstring("Default ALT text for IMG attributes")]
HRESULT AltText([out, retval] BSTR *pVal);
[propput, id(54), helpstring("Default ALT text for IMG attributes")]
HRESULT AltText([in] BSTR newVal);
// XML
[propget, id(15), helpstring("Input is XML")]
HRESULT InputXml([out, retval] VARIANT_BOOL *pVal);
[propput, id(15), helpstring("Input is XML")]
HRESULT InputXml([in] VARIANT_BOOL newVal);
[propget, id(16), helpstring("Output as XML")]
HRESULT OutputXml([out, retval] VARIANT_BOOL *pVal);
[propput, id(16), helpstring("Output as XML")]
HRESULT OutputXml([in] VARIANT_BOOL newVal);
[propget, id(17), helpstring("Output as XHTML")]
HRESULT OutputXhtml([out, retval] VARIANT_BOOL *pVal);
[propput, id(17), helpstring("Output as XHTML")]
HRESULT OutputXhtml([in] VARIANT_BOOL newVal);
[propget, id(18), helpstring("Add XML declaration")]
HRESULT AddXmlDecl([out, retval] VARIANT_BOOL *pVal);
[propput, id(18), helpstring("Add XML declaration")]
HRESULT AddXmlDecl([in] VARIANT_BOOL newVal);
[propget, id(19), helpstring("Assume XML processing instructions ('?>' PI terminator)")]
HRESULT AssumeXmlProcins([out, retval] VARIANT_BOOL *pVal);
[propput, id(19), helpstring("Assume XML processing instructions ('?>' PI terminator)")]
HRESULT AssumeXmlProcins([in] VARIANT_BOOL newVal);
[propget, id(61), helpstring("Add xml:space attribute as needed")]
HRESULT AddXmlSpace([out, retval] VARIANT_BOOL *pVal);
[propput, id(61), helpstring("Add xml:space attribute as needed")]
HRESULT AddXmlSpace([in] VARIANT_BOOL newVal);
// Encoding
[propget, id(55), helpstring("Character encoding")]
HRESULT CharEncoding([out, retval] CharEncoding *pVal);
[propput, id(55), helpstring("Character encoding")]
HRESULT CharEncoding([in] CharEncoding newVal);
[propget, id(20), helpstring("Output numeric character entities")]
HRESULT NumericEntities([out, retval] VARIANT_BOOL *pVal);
[propput, id(20), helpstring("Output numeric character entities")]
HRESULT NumericEntities([in] VARIANT_BOOL newVal);
[propget, id(21), helpstring("Output \" characters as "")]
HRESULT QuoteMarks([out, retval] VARIANT_BOOL *pVal);
[propput, id(21), helpstring("Output \" characters as "")]
HRESULT QuoteMarks([in] VARIANT_BOOL newVal);
[propget, id(22), helpstring("Output non-breaking spaces as entities")]
HRESULT QuoteNbsp([out, retval] VARIANT_BOOL *pVal);
[propput, id(22), helpstring("Output non-breaking spaces as entities")]
HRESULT QuoteNbsp([in] VARIANT_BOOL newVal);
[propget, id(23), helpstring("Output unadorned & characters as &")]
HRESULT QuoteAmpersand([out, retval] VARIANT_BOOL *pVal);
[propput, id(23), helpstring("Output unadorned & characters as &")]
HRESULT QuoteAmpersand([in] VARIANT_BOOL newVal);
// Layout
[propget, id(56), helpstring("Indentation")]
HRESULT Indent([out, retval] IndentScheme *pVal);
[propput, id(56), helpstring("Indentation")]
HRESULT Indent([in] IndentScheme newVal);
[propget, id(57), helpstring("Number of spaces for indentation")]
HRESULT IndentSpaces([out, retval] long *pVal);
[propput, id(57), helpstring("Number of spaces for indentation")]
HRESULT IndentSpaces([in] long newVal);
[propget, id(58), helpstring("Right margin for line wrapping")]
HRESULT Wrap([out, retval] long *pVal);
[propput, id(58), helpstring("Right margin for line wrapping")]
HRESULT Wrap([in] long newVal);
[propget, id(59), helpstring("Number of columns between successive tab stops")]
HRESULT TabSize([out, retval] long *pVal);
[propput, id(59), helpstring("Number of columns between successive tab stops")]
HRESULT TabSize([in] long newVal);
[propget, id(24), helpstring("Indent attributes")]
HRESULT IndentAttributes([out, retval] VARIANT_BOOL *pVal);
[propput, id(24), helpstring("Indent attributes")]
HRESULT IndentAttributes([in] VARIANT_BOOL newVal);
[propget, id(25), helpstring("Wrap attribute values")]
HRESULT WrapAttributes([out, retval] VARIANT_BOOL *pVal);
[propput, id(25), helpstring("Wrap attribute values")]
HRESULT WrapAttributes([in] VARIANT_BOOL newVal);
[propget, id(26), helpstring("Wrap string literals in script attributes")]
HRESULT WrapScriptLiterals([out, retval] VARIANT_BOOL *pVal);
[propput, id(26), helpstring("Wrap string literals in script attributes")]
HRESULT WrapScriptLiterals([in] VARIANT_BOOL newVal);
[propget, id(27), helpstring("Wrap lines in ASP pseudo-elements (<% ... %>)")]
HRESULT WrapAsp([out, retval] VARIANT_BOOL *pVal);
[propput, id(27), helpstring("Wrap lines in ASP pseudo-elements (<% ... %>)")]
HRESULT WrapAsp([in] VARIANT_BOOL newVal);
[propget, id(28), helpstring("Wrap lines in JSTE pseudo-elements (<# ... #>)")]
HRESULT WrapJste([out, retval] VARIANT_BOOL *pVal);
[propput, id(28), helpstring("Wrap lines in JSTE pseudo-elements (<# ... #>)")]
HRESULT WrapJste([in] VARIANT_BOOL newVal);
[propget, id(29), helpstring("Wrap lines in PHP processing instructions")]
HRESULT WrapPhp([out, retval] VARIANT_BOOL *pVal);
[propput, id(29), helpstring("Wrap lines in PHP processing instructions")]
HRESULT WrapPhp([in] VARIANT_BOOL newVal);
[propget, id(30), helpstring("Break before
")]
HRESULT BreakBeforeBr([out, retval] VARIANT_BOOL *pVal);
[propput, id(30), helpstring("Break before
")]
HRESULT BreakBeforeBr([in] VARIANT_BOOL newVal);
[propget, id(31), helpstring("Uppercase tags")]
HRESULT UppercaseTags([out, retval] VARIANT_BOOL *pVal);
[propput, id(31), helpstring("Uppercase tags")]
HRESULT UppercaseTags([in] VARIANT_BOOL newVal);
[propget, id(32), helpstring("Uppercase attributes")]
HRESULT UppercaseAttributes([out, retval] VARIANT_BOOL *pVal);
[propput, id(32), helpstring("Uppercase attributes")]
HRESULT UppercaseAttributes([in] VARIANT_BOOL newVal);
[propget, id(63), helpstring("Preserve whitespace characters within attributes")]
HRESULT LiteralAttributes([out, retval] VARIANT_BOOL *pVal);
[propput, id(63), helpstring("Preserve whitespace characters within attributes")]
HRESULT LiteralAttributes([in] VARIANT_BOOL newVal);
// Operation
[propget, id(33), helpstring("Suppress tidied document output")]
HRESULT Markup([out, retval] VARIANT_BOOL *pVal);
[propput, id(33), helpstring("Suppress tidied document output")]
HRESULT Markup([in] VARIANT_BOOL newVal);
[propget, id(34), helpstring("Quiet (no 'Parsing X', guessed DTD or error summary)")]
HRESULT Quiet([out, retval] VARIANT_BOOL *pVal);
[propput, id(34), helpstring("Quiet (no 'Parsing X', guessed DTD or error summary)")]
HRESULT Quiet([in] VARIANT_BOOL newVal);
[propget, id(35), helpstring("Show warnings")]
HRESULT ShowWarnings([out, retval] VARIANT_BOOL *pVal);
[propput, id(35), helpstring("Show warnings")]
HRESULT ShowWarnings([in] VARIANT_BOOL newVal);
[propget, id(36), helpstring("Create a sequence of slides")]
HRESULT Split([out, retval] VARIANT_BOOL *pVal);
[propput, id(36), helpstring("Create a sequence of slides")]
HRESULT Split([in] VARIANT_BOOL newVal);
[propget, id(38), helpstring("Keep time of source file")]
HRESULT KeepTime([out, retval] VARIANT_BOOL *pVal);
[propput, id(38), helpstring("Keep time of source file")]
HRESULT KeepTime([in] VARIANT_BOOL newVal);
[propget, id(60), helpstring("File to write errors and warnings")]
HRESULT ErrorFile([out, retval] BSTR *pVal);
[propput, id(60), helpstring("File to write errors and warnings")]
HRESULT ErrorFile([in] BSTR newVal);
[propget, id(62), helpstring("Format error output for GNU Emacs")]
HRESULT GnuEmacs([out, retval] VARIANT_BOOL *pVal);
[propput, id(62), helpstring("Format error output for GNU Emacs")]
HRESULT GnuEmacs([in] VARIANT_BOOL newVal);
[id(100), local, hidden]
HRESULT SetPtr([in] long val);
};
//-------------------------------------------------------------------
[
uuid(C7D153E0-26A9-11D4-BD8A-915594DC902D),
version(1.0),
helpstring("TidyCOM 1.2.6 Type Library - Wraps W3C's HTML Tidy (version 4th August 2000) - Written by André Blavier")
]
library TidyCOM
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(C7D153ED-26A9-11D4-BD8A-915594DC902D),
helpstring("TidyObject Class")
]
coclass TidyObject
{
[default] interface ITidyObject;
interface ITidyOptions;
};
[
uuid(C7D153EF-26A9-11D4-BD8A-915594DC902D),
helpstring("TidyOptions Class"),
noncreatable
]
coclass TidyOptions
{
[default] interface ITidyOptions;
};
};