|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class COutputOptions: public CInterface { public: COutputOptions(); ~COutputOptions(); public: enum { xml, html, text }; public: bool GetStandardMethod(int &nMethod); bool GetExtensionMethod( CString &strNamespaceUri, CString &strLocalName); bool GetVersion(CString &strVersion); bool GetEncoding(CString &strEncoding); bool GetOmitXmlDeclaration(bool &bOmitXmlDeclaration); bool GetStandalone(bool &bStandalone); bool GetDoctypePublic(CString &strDoctypePublic); bool GetDoctypeSystem(CString &strDoctypeSystem); bool IsCdataSectionElement( const CString &strNamespaceUri, const CString &strLocalName); bool GetIndent(bool &bIndent); bool GetMediaType(CString &strMediaType); void SetStandardMethod(int nMethod); void SetExtensionMethod( const CString &strNamespaceUri, const CString &strLocalName); void SetVersion(const CString &strVersion); void SetEncoding(const CString &strEncoding); void SetOmitXmlDeclaration(bool bOmitXmlDeclaration); void SetStandalone(bool bStandalone); void SetDoctypePublic(const CString &strDoctypePublic); void SetDoctypeSystem(const CString &strDoctypeSystem); void AddCdataSectionElement( const CString &strNamespaceUri, const CString &strLocalName); void SetIndent(bool bIndent); void SetMediaType(const CString &strMediaType); };
The set of output options.
Each output option corresponds to a certain attribute
on the XSLT
xsl:output
element.
Constructor/Destructor Summary | |
COutputOptions
();
����������Constructs the output options. |
|
~COutputOptions
();
����������Destroys the output options. |
Function Summary | |
bool
|
GetStandardMethod
(int &nMethod);
����������Returns the code of the standard output method. |
bool
|
GetExtensionMethod
(CString &strNamespaceUri, CString &strLocalName);
����������Returns the name of the extension output method. |
bool
|
GetVersion
(CString &strVersion);
����������Returns the version of the output format. |
bool
|
GetEncoding
(CString &strEncoding);
����������Returns the name of the character encoding. |
bool
|
GetOmitXmlDeclaration
(bool &bOmitXmlDeclaration);
����������Returns the omit XML declaration option. |
bool
|
GetStandalone
(bool &bStandalone);
����������Returns the standalone option. |
bool
|
GetDoctypePublic
(CString &strDoctypePublic);
����������Returns the document type public identifier. |
bool
|
GetDoctypeSystem
(CString &strDoctypeSystem);
����������Returns the document type system identifier. |
bool
|
IsCdataSectionElement
(const CString &strNamespaceUri, const CString &strLocalName);
����������Tests whether the text contents of elements with the given name must be written to the output as CDATA sections. |
bool
|
GetIndent
(bool &bIndent);
����������Returns the output indent option. |
bool
|
GetMediaType
(CString &strMediaType);
����������Returns the output media type. |
void
|
SetStandardMethod
(int nMethod);
����������Sets the code of the standard output method. |
void
|
SetExtensionMethod
(const CString &strNamespaceUri, const CString &strLocalName);
����������Sets the name of the extension output method. |
void
|
SetVersion
(const CString &strVersion);
����������Sets the version of the output format. |
void
|
SetEncoding
(const CString &strEncoding);
����������Sets the name of the character encoding. |
void
|
SetOmitXmlDeclaration
(bool bOmitXmlDeclaration);
����������Sets the omit XML declaration option. |
void
|
SetStandalone
(bool bStandalone);
����������Sets the standalone option. |
void
|
SetDoctypePublic
(const CString &strDoctypePublic);
����������Sets the document type public identifier. |
void
|
SetDoctypeSystem
(const CString &strDoctypeSystem);
����������Sets the document type system identifier. |
void
|
AddCdataSectionElement
(const CString &strNamespaceUri, const CString &strLocalName);
����������Specifies, that the text contents of elements with the given name must be written to the output as CDATA sections. |
void
|
SetIndent
(bool bIndent);
����������Sets the output indent option. |
void
|
SetMediaType
(const CString &strMediaType);
����������Sets the output media type. |
Constructor/Destructor Detail |
COutputOptions();
Constructs the output options.
~COutputOptions();
Destroys the output options.
Function Detail |
bool GetStandardMethod(int &nMethod);
Returns the code of the standard output method.
Allowed values are
COutputOptions::xml
,
COutputOptions::html
and
COutputOptions::text
.
nMethod
- on return,
the code of the standard output method, if specifiedtrue
if the standard
output method is specified;
false
otherwisebool GetExtensionMethod( CString &strNamespaceUri, CString &strLocalName);
Returns the name of the extension output method.
strNamespaceUri
- on return, the namespace URI of
the extension output method, if specifiedstrLocalName
- on return, the local name of
the extension output method, if specifiedtrue
if the extension
output method is specified;
false
otherwisebool GetVersion(CString &strVersion);
Returns the version of the output format.
strVersion
- the version of the output format,
if specifiedtrue
if the version
of the output format is specified;
false
otherwisebool GetEncoding(CString &strEncoding);
Returns the name of the character encoding.
strEncoding
- on return, the name of the character encoding,
if specifiedtrue
if the name of the
character encoding is specified;
false
otherwisebool GetOmitXmlDeclaration(bool &bOmitXmlDeclaration);
Returns the omit XML declaration option.
bOmitXmlDeclaration
- on return, the boolean value of the omit
XML declaration option, if specifiedtrue
if the omit XML declaration
option is specified;
false
otherwisebool GetStandalone(bool &bStandalone);
Returns the standalone option.
bStandalone
- on return, the boolean value of the standalone option,
if specifiedtrue
if the standalone
option is specified;
false
otherwisebool GetDoctypePublic(CString &strDoctypePublic);
Returns the document type public identifier.
strDoctypePublic
- on return, the name of the document
type public identifier, if specifiedtrue
if the document type
public identifier is specified;
false
otherwisebool GetDoctypeSystem(CString &strDoctypeSystem);
Returns the document type system identifier.
strDoctypeSystem
- on return, the name of the document
type system identifier, if specifiedtrue
if the document type
system identifier is specified;
false
otherwisebool IsCdataSectionElement( const CString &strNamespaceUri, const CString &strLocalName);
Tests whether the text contents of elements with the given name must be written to the output as CDATA sections.
strNamespaceUri
- the namespace URI of the elementstrLocalName
- the local name of the elementtrue
if
the text contents of elements with the
given name must be written to the output as CDATA sections;
false
otherwisebool GetIndent(bool &bIndent);
Returns the output indent option.
bIndent
- on return, the boolean value
of the output indent option, if specifiedtrue
if the output indent
option is specified;
false
otherwisebool GetMediaType(CString &strMediaType);
Returns the output media type.
strMediaType
- on return, the name of the output media type,
if specifiedtrue
if the output media type
is specified;
false
otherwisevoid SetStandardMethod(int nMethod);
Sets the code of the standard output method.
Allowed values are
COutputOptions::xml
,
COutputOptions::html
and
COutputOptions::text
.
nMethod
- the code of the standard output methodvoid SetExtensionMethod( const CString &strNamespaceUri, const CString &strLocalName);
Sets the name of the extension output method.
strNamespaceUri
- the namespace URI of the extension
output methodstrLocalName
- the local name of the extension
output methodvoid SetVersion(const CString &strVersion);
Sets the version of the output format.
strVersion
- the version of the output formatvoid SetEncoding(const CString &strEncoding);
Sets the name of the character encoding.
strEncoding
- the name of character encodingvoid SetOmitXmlDeclaration(bool bOmitXmlDeclaration);
Sets the omit XML declaration option.
bOmitXmlDeclaration
- the boolean omit XML declaration optionvoid SetStandalone(bool bStandalone);
Sets the standalone option.
bStandalone
- the boolean standalone optionvoid SetDoctypePublic(const CString &strDoctypePublic);
Sets the document type public identifier.
strDoctypePublic
- the document type public identifiervoid SetDoctypeSystem(const CString &strDoctypeSystem);
Sets the document type system identifier.
strDoctypeSystem
- the document type system identifiervoid AddCdataSectionElement( const CString &strNamespaceUri, const CString &strLocalName);
Specifies, that the text contents of elements with the given name must be written to the output as CDATA sections.
strNamespaceUri
- the namespace URI of the elementstrLocalName
- the local name of the elementvoid SetIndent(bool bIndent);
Sets the output indent option.
bIndent
- the boolean output indent optionvoid SetMediaType(const CString &strMediaType);
Sets the output media type.
strMediaType
- the output media type
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |