| <HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
|
| <BODY>
|
| <h2 align="center">Xalan-C++ API Documentation</h2>
|
| <h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
|
| </BODY> |
| <!-- Generated by Doxygen 1.2.8.1 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> |
| <hr><h1>FormatterToDOM.hpp</h1><a href="FormatterToDOM_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font> |
| 00002 <font class="comment"> * Copyright 1999-2004 The Apache Software Foundation.</font> |
| 00003 <font class="comment"> *</font> |
| 00004 <font class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</font> |
| 00005 <font class="comment"> * you may not use this file except in compliance with the License.</font> |
| 00006 <font class="comment"> * You may obtain a copy of the License at</font> |
| 00007 <font class="comment"> *</font> |
| 00008 <font class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</font> |
| 00009 <font class="comment"> *</font> |
| 00010 <font class="comment"> * Unless required by applicable law or agreed to in writing, software</font> |
| 00011 <font class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</font> |
| 00012 <font class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</font> |
| 00013 <font class="comment"> * See the License for the specific language governing permissions and</font> |
| 00014 <font class="comment"> * limitations under the License.</font> |
| 00015 <font class="comment"> */</font> |
| 00016 <font class="preprocessor">#if !defined(FORMATTERTODOM_HEADER_GUARD_1357924680)</font> |
| <a name="l00017"></a><a class="code" href="FormatterToDOM_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define FORMATTERTODOM_HEADER_GUARD_1357924680</font> |
| 00018 <font class="preprocessor"></font> |
| 00019 |
| 00020 |
| 00021 <font class="comment">// Base include file. Must be first.</font> |
| 00022 <font class="preprocessor">#include <<a class="code" href="XMLSupportDefinitions_8hpp.html">xalanc/XMLSupport/XMLSupportDefinitions.hpp</a>></font> |
| 00023 |
| 00024 |
| 00025 |
| 00026 <font class="preprocessor">#include <<a class="code" href="XalanVector_8hpp.html">xalanc/Include/XalanVector.hpp</a>></font> |
| 00027 |
| 00028 |
| 00029 |
| 00030 <font class="comment">// Base class header file.</font> |
| 00031 <font class="preprocessor">#include <<a class="code" href="FormatterListener_8hpp.html">xalanc/PlatformSupport/FormatterListener.hpp</a>></font> |
| 00032 |
| 00033 |
| 00034 |
| 00035 <font class="preprocessor">#include <<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>></font> |
| 00036 |
| 00037 |
| 00038 |
| 00039 XALAN_CPP_NAMESPACE_BEGIN |
| 00040 |
| 00041 |
| 00042 |
| <a name="l00043"></a><a class="code" href="FormatterToDOM_8hpp.html#a1">00043</a> <font class="keyword">class </font><a class="code" href="classXalanDocument.html">XalanDocument</a>; |
| 00044 <font class="keyword">class </font><a class="code" href="classXalanDocumentFragment.html">XalanDocumentFragment</a>; |
| 00045 <font class="keyword">class </font><a class="code" href="classXalanElement.html">XalanElement</a>; |
| 00046 <font class="keyword">class </font><a class="code" href="classXalanNode.html">XalanNode</a>; |
| 00047 |
| 00048 |
| 00049 |
| <a name="l00056"></a><a class="code" href="classFormatterToDOM.html">00056</a> <font class="keyword">class </font>XALAN_XMLSUPPORT_EXPORT <a class="code" href="classFormatterToDOM.html">FormatterToDOM</a> : <font class="keyword">public</font> <a class="code" href="classFormatterListener.html">FormatterListener</a> |
| 00057 { |
| 00058 <font class="keyword">public</font>: |
| 00059 |
| <a name="l00060"></a><a class="code" href="classFormatterToDOM.html#s0">00060</a> <font class="keyword">typedef</font> XalanVector<XalanElement*> ElementStackType; |
| 00061 |
| 00070 <a class="code" href="classFormatterToDOM.html#a0">FormatterToDOM</a>( |
| 00071 <a class="code" href="classXalanDocument.html">XalanDocument</a>* doc, |
| 00072 <a class="code" href="classXalanDocumentFragment.html">XalanDocumentFragment</a>* docFrag, |
| 00073 <a class="code" href="classXalanElement.html">XalanElement</a>* currentElement, |
| 00074 MemoryManagerType& theManager XALAN_DEFAULT_MEMMGR); |
| 00075 |
| 00083 <a class="code" href="classFormatterToDOM.html#a0">FormatterToDOM</a>( |
| 00084 <a class="code" href="classXalanDocument.html">XalanDocument</a>* doc, |
| 00085 <a class="code" href="classXalanElement.html">XalanElement</a>* elem, |
| 00086 MemoryManagerType& theManager XALAN_DEFAULT_MEMMGR); |
| 00087 |
| 00088 <font class="keyword">virtual</font> |
| 00089 <a class="code" href="classFormatterToDOM.html#a2">~FormatterToDOM</a>(); |
| 00090 |
| 00091 |
| 00092 <font class="comment">// These methods are inherited from DocumentHandler ...</font> |
| 00093 |
| 00094 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00095 <a class="code" href="classFormatterToDOM.html#a3">charactersRaw</a>( |
| 00096 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars, |
| 00097 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00098 |
| 00099 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00100 <a class="code" href="classFormatterToDOM.html#a4">comment</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> data); |
| 00101 |
| 00102 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00103 <a class="code" href="classFormatterToDOM.html#a5">cdata</a>( |
| 00104 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> ch, |
| 00105 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00106 |
| 00107 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00108 <a class="code" href="classFormatterToDOM.html#a6">entityReference</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name); |
| 00109 |
| 00110 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00111 <a class="code" href="classFormatterToDOM.html#a7">setDocumentLocator</a>(<font class="keyword">const</font> LocatorType* <font class="keyword">const</font> locator); |
| 00112 |
| 00113 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00114 <a class="code" href="classFormatterToDOM.html#a8">startDocument</a>(); |
| 00115 |
| 00116 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00117 <a class="code" href="classFormatterToDOM.html#a9">endDocument</a>(); |
| 00118 |
| 00119 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00120 <a class="code" href="classFormatterToDOM.html#a10">startElement</a>( |
| 00121 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name, |
| 00122 AttributeListType& attrs); |
| 00123 |
| 00124 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00125 <a class="code" href="classFormatterToDOM.html#a11">endElement</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name); |
| 00126 |
| 00127 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00128 <a class="code" href="classFormatterToDOM.html#a12">characters</a>( |
| 00129 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars, |
| 00130 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00131 |
| 00132 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00133 <a class="code" href="classFormatterToDOM.html#a13">ignorableWhitespace</a>( |
| 00134 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars, |
| 00135 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00136 |
| 00137 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00138 <a class="code" href="classFormatterToDOM.html#a14">processingInstruction</a>( |
| 00139 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> target, |
| 00140 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> data); |
| 00141 |
| 00142 <font class="keyword">virtual</font> <font class="keywordtype">void</font> |
| 00143 <a class="code" href="classFormatterToDOM.html#a15">resetDocument</a>(); |
| 00144 |
| 00145 <a class="code" href="classXalanDocument.html">XalanDocument</a>* |
| <a name="l00146"></a><a class="code" href="classFormatterToDOM.html#a16">00146</a> <a class="code" href="classFormatterToDOM.html#a16">getDocument</a>()<font class="keyword"> const</font> |
| 00147 <font class="keyword"> </font>{ |
| 00148 <font class="keywordflow">return</font> m_doc; |
| 00149 } |
| 00150 |
| 00151 <font class="keywordtype">void</font> |
| <a name="l00152"></a><a class="code" href="classFormatterToDOM.html#a17">00152</a> <a class="code" href="classFormatterToDOM.html#a17">setDocument</a>(<a class="code" href="classXalanDocument.html">XalanDocument</a>* theDocument)<font class="keyword"></font> |
| 00153 <font class="keyword"> </font>{ |
| 00154 m_doc = theDocument; |
| 00155 } |
| 00156 |
| 00157 <a class="code" href="classXalanDocumentFragment.html">XalanDocumentFragment</a>* |
| <a name="l00158"></a><a class="code" href="classFormatterToDOM.html#a18">00158</a> <a class="code" href="classFormatterToDOM.html#a18">getDocumentFragment</a>()<font class="keyword"> const</font> |
| 00159 <font class="keyword"> </font>{ |
| 00160 <font class="keywordflow">return</font> m_docFrag; |
| 00161 } |
| 00162 |
| 00163 <font class="keywordtype">void</font> |
| <a name="l00164"></a><a class="code" href="classFormatterToDOM.html#a19">00164</a> <a class="code" href="classFormatterToDOM.html#a19">setDocumentFragment</a>(<a class="code" href="classXalanDocumentFragment.html">XalanDocumentFragment</a>* theDocumentFragment)<font class="keyword"></font> |
| 00165 <font class="keyword"> </font>{ |
| 00166 m_docFrag = theDocumentFragment; |
| 00167 } |
| 00168 |
| 00169 <a class="code" href="classXalanElement.html">XalanElement</a>* |
| <a name="l00170"></a><a class="code" href="classFormatterToDOM.html#a20">00170</a> <a class="code" href="classFormatterToDOM.html#a20">getCurrentElement</a>()<font class="keyword"> const</font> |
| 00171 <font class="keyword"> </font>{ |
| 00172 <font class="keywordflow">return</font> m_currentElem; |
| 00173 } |
| 00174 |
| 00175 <font class="keywordtype">void</font> |
| <a name="l00176"></a><a class="code" href="classFormatterToDOM.html#a21">00176</a> <a class="code" href="classFormatterToDOM.html#a21">setCurrentElement</a>(<a class="code" href="classXalanElement.html">XalanElement</a>* theElement)<font class="keyword"></font> |
| 00177 <font class="keyword"> </font>{ |
| 00178 m_currentElem = theElement; |
| 00179 } |
| 00180 |
| 00181 <font class="keyword">private</font>: |
| 00182 |
| 00186 <font class="keywordtype">void</font> |
| 00187 <a class="code" href="DOMStringHelper_8hpp.html#a77">append</a>(<a class="code" href="classXalanNode.html">XalanNode</a>* newNode); |
| 00188 |
| 00196 <a class="code" href="classXalanElement.html">XalanElement</a>* |
| 00197 createElement( |
| 00198 <font class="keyword">const</font> XalanDOMChar* theElementName, |
| 00199 AttributeListType& attrs); |
| 00200 |
| 00201 <font class="keywordtype">void</font> |
| 00202 addAttributes( |
| 00203 <a class="code" href="classXalanElement.html">XalanElement</a>* theElement, |
| 00204 AttributeListType& attrs); |
| 00205 |
| 00206 |
| 00207 <font class="comment">// Data members...</font> |
| 00208 <a class="code" href="classXalanDocument.html">XalanDocument</a>* m_doc; |
| 00209 |
| 00210 <a class="code" href="classXalanDocumentFragment.html">XalanDocumentFragment</a>* m_docFrag; |
| 00211 |
| 00212 <a class="code" href="classXalanElement.html">XalanElement</a>* m_currentElem; |
| 00213 |
| 00214 ElementStackType m_elemStack; |
| 00215 |
| 00216 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_buffer1; |
| 00217 |
| 00218 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_buffer2; |
| 00219 |
| 00220 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> s_emptyString; |
| 00221 }; |
| 00222 |
| 00223 |
| 00224 |
| 00225 XALAN_CPP_NAMESPACE_END |
| 00226 |
| 00227 |
| 00228 |
| 00229 <font class="preprocessor">#endif // FORMATTERTODOM_HEADER_GUARD_1357924680</font> |
| </font></pre></div><p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
|
| <p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
|
| <i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
|
| <A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
|
|
|
| <TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
|
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
|
| <TR>
|
| <TD WIDTH="80%" VALIGN="TOP">
|
| <P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
|
| Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
|
| </TD>
|
| </TR>
|
| <TR>
|
| <TD WIDTH="100%">
|
| <P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
|
| </TD>
|
| </TR>
|
| </TABLE>
|