blob: 855c210cc450ed4c54e4e596d9babc85d8078f35 [file] [log] [blame]
<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> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>FormatterToXercesDOM.hpp</h1><a href="FormatterToXercesDOM_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(FORMATTERTOXERCESDOM_HEADER_GUARD_1357924680)</font>
<a name="l00017"></a><a class="code" href="FormatterToXercesDOM_8hpp.html#a0">00017</a> <font class="preprocessor"></font><font class="preprocessor">#define FORMATTERTOXERCESDOM_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 &lt;<a class="code" href="XercesParserLiaisonDefinitions_8hpp.html">xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp</a>&gt;</font>
00023
00024
00025
00026 <font class="preprocessor">#include &lt;<a class="code" href="XalanVector_8hpp.html">xalanc/Include/XalanVector.hpp</a>&gt;</font>
00027
00028
00029
00030 <font class="comment">// Base class header file.</font>
00031 <font class="preprocessor">#include &lt;<a class="code" href="FormatterListener_8hpp.html">xalanc/PlatformSupport/FormatterListener.hpp</a>&gt;</font>
00032
00033
00034
00035 <font class="preprocessor">#include &lt;<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>&gt;</font>
00036
00037
00038
00039 <font class="preprocessor">#include &lt;<a class="code" href="XercesWrapperTypes_8hpp.html">xalanc/XercesParserLiaison/XercesWrapperTypes.hpp</a>&gt;</font>
00040
00041
00042
00043 XALAN_CPP_NAMESPACE_BEGIN
00044
00045
00046
<a name="l00051"></a><a class="code" href="classFormatterToXercesDOM.html">00051</a> <font class="keyword">class </font>XALAN_XERCESPARSERLIAISON_EXPORT <a class="code" href="classFormatterToXercesDOM.html">FormatterToXercesDOM</a> : <font class="keyword">public</font> <a class="code" href="classFormatterListener.html">FormatterListener</a>
00052 {
00053 <font class="keyword">public</font>:
00054
00063 <a class="code" href="classFormatterToXercesDOM.html#a0">FormatterToXercesDOM</a>(
00064 DOMDocument_Type* doc,
00065 DOMDocumentFragmentType* docFrag,
00066 DOMElementType* currentElement,
00067 MemoryManagerType&amp; theManager XALAN_DEFAULT_MEMMGR);
00068
00076 <a class="code" href="classFormatterToXercesDOM.html#a0">FormatterToXercesDOM</a>(
00077 DOMDocument_Type* doc,
00078 DOMElementType* currentElement,
00079 MemoryManagerType&amp; theManager XALAN_DEFAULT_MEMMGR);
00080
00081 <font class="keyword">virtual</font>
00082 <a class="code" href="classFormatterToXercesDOM.html#a2">~FormatterToXercesDOM</a>();
00083
00084
00085 <font class="comment">// These methods are inherited from DocumentHandler ...</font>
00086
00087 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00088 <a class="code" href="classFormatterToXercesDOM.html#a3">charactersRaw</a>(
00089 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars,
00090 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length);
00091
00092 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00093 <a class="code" href="classFormatterToXercesDOM.html#a4">comment</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> data);
00094
00095 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00096 <a class="code" href="classFormatterToXercesDOM.html#a5">cdata</a>(
00097 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> ch,
00098 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length);
00099
00100 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00101 <a class="code" href="classFormatterToXercesDOM.html#a6">entityReference</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name);
00102
00103 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00104 <a class="code" href="classFormatterToXercesDOM.html#a7">setDocumentLocator</a>(<font class="keyword">const</font> LocatorType* <font class="keyword">const</font> locator);
00105
00106 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00107 <a class="code" href="classFormatterToXercesDOM.html#a8">startDocument</a>();
00108
00109 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00110 <a class="code" href="classFormatterToXercesDOM.html#a9">endDocument</a>();
00111
00112 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00113 <a class="code" href="classFormatterToXercesDOM.html#a10">startElement</a>(
00114 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name,
00115 AttributeListType&amp; attrs);
00116
00117 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00118 <a class="code" href="classFormatterToXercesDOM.html#a11">endElement</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name);
00119
00120 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00121 <a class="code" href="classFormatterToXercesDOM.html#a12">characters</a>(
00122 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars,
00123 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length);
00124
00125 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00126 <a class="code" href="classFormatterToXercesDOM.html#a13">ignorableWhitespace</a>(
00127 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars,
00128 <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length);
00129
00130 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00131 <a class="code" href="classFormatterToXercesDOM.html#a14">processingInstruction</a>(
00132 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> target,
00133 <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> data);
00134
00135 <font class="keyword">virtual</font> <font class="keywordtype">void</font>
00136 <a class="code" href="classFormatterToXercesDOM.html#a15">resetDocument</a>();
00137
00138 DOMDocument_Type*
<a name="l00139"></a><a class="code" href="classFormatterToXercesDOM.html#a16">00139</a> <a class="code" href="classFormatterToXercesDOM.html#a16">getDocument</a>()<font class="keyword"> const</font>
00140 <font class="keyword"> </font>{
00141 <font class="keywordflow">return</font> m_doc;
00142 }
00143
00144 <font class="keywordtype">void</font>
<a name="l00145"></a><a class="code" href="classFormatterToXercesDOM.html#a17">00145</a> <a class="code" href="classFormatterToXercesDOM.html#a17">setDocument</a>(DOMDocument_Type* theDocument)<font class="keyword"></font>
00146 <font class="keyword"> </font>{
00147 m_doc = theDocument;
00148 }
00149
00150 DOMDocumentFragmentType*
<a name="l00151"></a><a class="code" href="classFormatterToXercesDOM.html#a18">00151</a> <a class="code" href="classFormatterToXercesDOM.html#a18">getDocumentFragment</a>()<font class="keyword"> const</font>
00152 <font class="keyword"> </font>{
00153 <font class="keywordflow">return</font> m_docFrag;
00154 }
00155
00156 <font class="keywordtype">void</font>
<a name="l00157"></a><a class="code" href="classFormatterToXercesDOM.html#a19">00157</a> <a class="code" href="classFormatterToXercesDOM.html#a19">setDocumentFragment</a>(DOMDocumentFragmentType* theDocumentFragment)<font class="keyword"></font>
00158 <font class="keyword"> </font>{
00159 m_docFrag = theDocumentFragment;
00160 }
00161
00162 DOMElementType*
<a name="l00163"></a><a class="code" href="classFormatterToXercesDOM.html#a20">00163</a> <a class="code" href="classFormatterToXercesDOM.html#a20">getCurrentElement</a>()<font class="keyword"> const</font>
00164 <font class="keyword"> </font>{
00165 <font class="keywordflow">return</font> m_currentElem;
00166 }
00167
00168 <font class="keywordtype">void</font>
<a name="l00169"></a><a class="code" href="classFormatterToXercesDOM.html#a21">00169</a> <a class="code" href="classFormatterToXercesDOM.html#a21">setCurrentElement</a>(DOMElementType* theElement)<font class="keyword"></font>
00170 <font class="keyword"> </font>{
00171 m_currentElem = theElement;
00172 }
00173
00174 <font class="keyword">private</font>:
00175
00179 <font class="keywordtype">void</font>
00180 processAccumulatedText();
00181
00185 <font class="keywordtype">void</font>
00186 <a class="code" href="DOMStringHelper_8hpp.html#a77">append</a>(DOMNodeType* newNode);
00187
00195 DOMElementType*
00196 createElement(
00197 <font class="keyword">const</font> XalanDOMChar* theElementName,
00198 AttributeListType&amp; attrs);
00199
00200 <font class="keywordtype">void</font>
00201 addAttributes(
00202 DOMElementType* theElement,
00203 AttributeListType&amp; attrs);
00204
00205
00206 <font class="comment">// Data members...</font>
00207 DOMDocument_Type* m_doc;
00208
00209 DOMDocumentFragmentType* m_docFrag;
00210
00211 DOMElementType* m_currentElem;
00212
00213 <font class="keyword">typedef</font> XalanVector&lt;DOMElementType*&gt; ElementStackType;
00214
00215 ElementStackType m_elemStack;
00216
00217 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_buffer;
00218
00219 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_textBuffer;
00220
00221 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> s_emptyString;
00222 };
00223
00224
00225
00226 XALAN_CPP_NAMESPACE_END
00227
00228
00229
00230 <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 &copy; 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>