| <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>StylesheetHandler.hpp</h1><a href="StylesheetHandler_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 |
| 00017 <font class="preprocessor">#if !defined(XALAN_STYLESHEETHANDLER_HEADER_GUARD)</font> |
| <a name="l00018"></a><a class="code" href="StylesheetHandler_8hpp.html#a0">00018</a> <font class="preprocessor"></font><font class="preprocessor">#define XALAN_STYLESHEETHANDLER_HEADER_GUARD</font> |
| 00019 <font class="preprocessor"></font> |
| 00020 <font class="comment">// Base include file. Must be first.</font> |
| 00021 <font class="preprocessor">#include "<a class="code" href="XSLTDefinitions_8hpp.html">XSLTDefinitions.hpp</a>"</font> |
| 00022 |
| 00023 |
| 00024 |
| 00025 <font class="preprocessor">#include <<a class="code" href="XalanVector_8hpp.html">xalanc/Include/XalanVector.hpp</a>></font> |
| 00026 <font class="preprocessor">#include <<a class="code" href="XalanSet_8hpp.html">xalanc/Include/XalanSet.hpp</a>></font> |
| 00027 |
| 00028 |
| 00029 |
| 00030 <font class="preprocessor">#include <<a class="code" href="XalanDOMString_8hpp.html">xalanc/XalanDOM/XalanDOMString.hpp</a>></font> |
| 00031 |
| 00032 |
| 00033 |
| 00034 <font class="preprocessor">#include <<a class="code" href="FormatterListener_8hpp.html">xalanc/PlatformSupport/FormatterListener.hpp</a>></font> |
| 00035 |
| 00036 |
| 00037 |
| 00038 <font class="preprocessor">#include <<a class="code" href="XalanQNameByValue_8hpp.html">xalanc/XPath/XalanQNameByValue.hpp</a>></font> |
| 00039 |
| 00040 |
| 00041 |
| 00042 <font class="preprocessor">#include <<a class="code" href="NamespacesHandler_8hpp.html">xalanc/XSLT/NamespacesHandler.hpp</a>></font> |
| 00043 <font class="preprocessor">#include <<a class="code" href="Stylesheet_8hpp.html">xalanc/XSLT/Stylesheet.hpp</a>></font> |
| 00044 <font class="preprocessor">#include <<a class="code" href="XalanElemEmptyAllocator_8hpp.html">xalanc/XSLT/XalanElemEmptyAllocator.hpp</a>></font> |
| 00045 <font class="preprocessor">#include <<a class="code" href="XalanElemTextAllocator_8hpp.html">xalanc/XSLT/XalanElemTextAllocator.hpp</a>></font> |
| 00046 |
| 00047 |
| 00048 |
| 00049 XALAN_CPP_NAMESPACE_BEGIN |
| 00050 |
| 00051 |
| 00052 |
| <a name="l00053"></a><a class="code" href="StylesheetHandler_8hpp.html#a1">00053</a> <font class="keyword">class </font><a class="code" href="classElemTemplate.html">ElemTemplate</a>; |
| 00054 <font class="keyword">class </font><a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>; |
| 00055 <font class="keyword">class </font><a class="code" href="classElemTextLiteral.html">ElemTextLiteral</a>; |
| 00056 <font class="keyword">class </font><a class="code" href="classExtensionNSHandler.html">ExtensionNSHandler</a>; |
| 00057 <font class="keyword">class </font><a class="code" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a>; |
| 00058 |
| 00059 |
| 00060 |
| <a name="l00067"></a><a class="code" href="classStylesheetHandler.html">00067</a> <font class="keyword">class </font>XALAN_XSLT_EXPORT <a class="code" href="classStylesheetHandler.html">StylesheetHandler</a> : <font class="keyword">public</font> <a class="code" href="classFormatterListener.html">FormatterListener</a> |
| 00068 { |
| 00069 |
| 00070 <font class="keyword">public</font>: |
| 00071 |
| <a name="l00072"></a><a class="code" href="classStylesheetHandler.html#s0">00072</a> <font class="keyword">typedef</font> XalanVector<ElemTemplateElement*> ElemTemplateStackType; |
| <a name="l00073"></a><a class="code" href="classStylesheetHandler.html#s1">00073</a> <font class="keyword">typedef</font> XalanVector<ElemTemplateElement*> ElemTextLiteralStackType; |
| 00074 |
| <a name="l00075"></a><a class="code" href="classStylesheetHandler.html#s2">00075</a> <font class="keyword">typedef</font> XalanVector<bool> BoolStackType; |
| <a name="l00076"></a><a class="code" href="classStylesheetHandler.html#s3">00076</a> <font class="keyword">typedef</font> <a class="code" href="classXalanSet.html">XalanSet<XalanQNameByReference></a> <a class="code" href="classXalanSet.html">QNameSetType</a>; |
| 00077 <font class="keyword">typedef</font> XalanVector<QNameSetType, ConstructWithMemoryManagerTraits<QNameSetType> > |
| <a name="l00078"></a><a class="code" href="classStylesheetHandler.html#s4">00078</a> QNameSetVectorType; |
| 00079 |
| 00083 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| 00084 <a class="code" href="classStylesheetHandler.html#d0">initialize</a>(MemoryManagerType& theManager); |
| 00085 |
| 00089 <font class="keyword">static</font> <font class="keywordtype">void</font> |
| 00090 <a class="code" href="classStylesheetHandler.html#d1">terminate</a>(); |
| 00091 |
| 00096 <a class="code" href="classStylesheetHandler.html#a0">StylesheetHandler</a>( |
| 00097 Stylesheet& stylesheetTree, |
| 00098 <a class="code" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a>& constructionContext); |
| 00099 |
| 00100 MemoryManagerType& |
| <a name="l00101"></a><a class="code" href="classStylesheetHandler.html#a1">00101</a> <a class="code" href="classStylesheetHandler.html#a1">getMemoryManager</a>()<font class="keyword"></font> |
| 00102 <font class="keyword"> </font>{ |
| 00103 <font class="keywordflow">return</font> m_constructionContext.<a class="code" href="classXPathConstructionContext.html#a7">getMemoryManager</a>(); |
| 00104 } |
| 00105 |
| 00106 <font class="keyword">virtual</font> |
| 00107 <a class="code" href="classStylesheetHandler.html#a2">~StylesheetHandler</a>(); |
| 00108 |
| 00132 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a3">characters</a> (<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars, <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00133 |
| 00144 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a4">charactersRaw</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars, <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00145 |
| 00169 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a5">cdata</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> ch, <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00170 |
| 00194 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a6">ignorableWhitespace</a> (<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> chars, <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> length); |
| 00195 |
| 00212 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a7">processingInstruction</a> (<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> target, <font class="keyword">const</font> XMLCh* <font class="keyword">const</font> data); |
| 00213 |
| 00220 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a8">comment</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> data); |
| 00221 |
| 00228 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a9">entityReference</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> data); |
| 00229 |
| 00230 <font class="comment">// These methods are inherited DocumentHandler ...</font> |
| 00231 |
| 00232 <font class="comment">// $$$ Theoretically, shouldn't need javadoc for these, since they are</font> |
| 00233 <font class="comment">// inherited from DocumentHandler, but let's leave them in for now -- JMD</font> |
| 00234 |
| 00260 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a10">setDocumentLocator</a>(<font class="keyword">const</font> LocatorType* <font class="keyword">const</font> locator); |
| 00261 |
| 00271 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a11">startDocument</a>(); |
| 00272 |
| 00284 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a12">endDocument</a>(); |
| 00285 |
| 00307 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a13">startElement</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name, AttributeListType& attrs); |
| 00308 |
| 00323 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a14">endElement</a>(<font class="keyword">const</font> XMLCh* <font class="keyword">const</font> name); |
| 00324 |
| 00330 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classStylesheetHandler.html#a15">resetDocument</a>(); |
| 00331 |
| 00332 <font class="keyword">protected</font>: |
| 00333 |
| 00343 <font class="keywordtype">bool</font> |
| 00344 <a class="code" href="classStylesheetHandler.html#b0">isAttrOK</a>( |
| 00345 <font class="keyword">const</font> XalanDOMChar* attrName, |
| 00346 <font class="keyword">const</font> AttributeListType& atts, |
| 00347 <font class="keywordtype">int</font> which); |
| 00348 |
| 00360 <font class="keywordtype">bool</font> |
| 00361 <a class="code" href="classStylesheetHandler.html#b1">processSpaceAttr</a>( |
| 00362 <font class="keyword">const</font> XalanDOMChar* elementName, |
| 00363 <font class="keyword">const</font> XalanDOMChar* aname, |
| 00364 <font class="keyword">const</font> AttributeListType& atts, |
| 00365 <font class="keywordtype">int</font> which, |
| 00366 <font class="keyword">const</font> LocatorType* locator, |
| 00367 <font class="keywordtype">bool</font>& fPreserve); |
| 00368 |
| 00378 <font class="keywordtype">bool</font> |
| 00379 <a class="code" href="classStylesheetHandler.html#b1">processSpaceAttr</a>( |
| 00380 <font class="keyword">const</font> XalanDOMChar* elementName, |
| 00381 <font class="keyword">const</font> AttributeListType& atts, |
| 00382 <font class="keyword">const</font> LocatorType* locator, |
| 00383 <font class="keywordtype">bool</font>& fPreserve); |
| 00384 |
| 00388 <font class="keywordtype">void</font> |
| 00389 <a class="code" href="classStylesheetHandler.html#b3">processImport</a>( |
| 00390 <font class="keyword">const</font> XalanDOMChar* name, |
| 00391 <font class="keyword">const</font> AttributeListType& atts, |
| 00392 <font class="keyword">const</font> LocatorType* locator); |
| 00393 |
| 00397 <font class="keywordtype">void</font> |
| 00398 <a class="code" href="classStylesheetHandler.html#b4">processInclude</a>( |
| 00399 <font class="keyword">const</font> XalanDOMChar* name, |
| 00400 <font class="keyword">const</font> AttributeListType& atts, |
| 00401 <font class="keyword">const</font> LocatorType* locator); |
| 00402 |
| 00403 <font class="keywordtype">void</font> |
| 00404 <a class="code" href="classStylesheetHandler.html#b5">doCleanup</a>(); |
| 00405 |
| 00406 <font class="keyword">private</font>: |
| 00407 |
| 00408 <font class="keyword">enum</font> { eElemEmptyAllocatorBlockSize = 10, eElemTextBlockSize = 10 }; |
| 00409 |
| 00410 <font class="comment">// not implemented</font> |
| 00411 <a class="code" href="classStylesheetHandler.html#a0">StylesheetHandler</a>(<font class="keyword">const</font> <a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>&); |
| 00412 |
| 00413 <a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>& |
| 00414 operator=(<font class="keyword">const</font> <a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>&); |
| 00415 |
| 00416 <font class="comment">// Utility functions...</font> |
| 00417 <font class="keywordtype">void</font> |
| 00418 illegalAttributeError( |
| 00419 <font class="keyword">const</font> XalanDOMChar* theElementName, |
| 00420 <font class="keyword">const</font> XalanDOMChar* theAttributeName, |
| 00421 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00422 |
| 00423 <font class="keywordtype">void</font> |
| 00424 error( |
| 00425 <font class="keyword">const</font> XalanDOMChar* theMessage1, |
| 00426 <font class="keyword">const</font> XalanDOMChar* theMessage2, |
| 00427 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00428 |
| 00429 <font class="keywordtype">void</font> |
| 00430 error( |
| 00431 <font class="keyword">const</font> XalanDOMChar* theMessage1, |
| 00432 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage2, |
| 00433 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00434 |
| 00435 <font class="keywordtype">void</font> |
| 00436 error( |
| 00437 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage1, |
| 00438 <font class="keyword">const</font> XalanDOMChar* theMessage2, |
| 00439 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00440 |
| 00441 <font class="keywordtype">void</font> |
| 00442 error( |
| 00443 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage1, |
| 00444 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage2, |
| 00445 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00446 |
| 00447 <font class="keywordtype">void</font> |
| 00448 warn( |
| 00449 <font class="keyword">const</font> XalanDOMChar* theMessage1, |
| 00450 <font class="keyword">const</font> XalanDOMChar* theMessage2, |
| 00451 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00452 |
| 00453 <font class="keywordtype">void</font> |
| 00454 warn( |
| 00455 <font class="keyword">const</font> XalanDOMChar* theMessage1, |
| 00456 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage2, |
| 00457 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00458 <font class="keywordtype">void</font> |
| 00459 warn( |
| 00460 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage, |
| 00461 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00462 |
| 00463 <font class="keywordtype">void</font> |
| 00464 error( |
| 00465 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theMessage, |
| 00466 <font class="keyword">const</font> LocatorType* theLocator) <font class="keyword">const</font>; |
| 00467 |
| 00468 <font class="keywordtype">void</font> |
| 00469 processText( |
| 00470 <font class="keyword">const</font> XMLCh* chars, |
| 00471 XalanDOMString::size_type length); |
| 00472 |
| 00473 <font class="keywordtype">void</font> |
| 00474 accumulateText( |
| 00475 <font class="keyword">const</font> XMLCh* chars, |
| 00476 XalanDOMString::size_type length); |
| 00477 |
| 00478 <font class="keywordtype">void</font> |
| 00479 processAccumulatedText(); |
| 00480 |
| 00481 <font class="keywordtype">void</font> |
| 00482 processTopLevelElement( |
| 00483 <font class="keyword">const</font> XalanDOMChar* name, |
| 00484 <font class="keyword">const</font> AttributeListType& atts, |
| 00485 <font class="keywordtype">int</font> xslToken, |
| 00486 <font class="keyword">const</font> LocatorType* locator, |
| 00487 <font class="keywordtype">bool</font>& fPreserveSpace, |
| 00488 <font class="keywordtype">bool</font>& fSpaceAttrProcessed); |
| 00489 |
| 00490 <font class="keywordtype">void</font> |
| 00491 processStylesheet( |
| 00492 <font class="keyword">const</font> XalanDOMChar* name, |
| 00493 <font class="keyword">const</font> AttributeListType& atts, |
| 00494 <font class="keyword">const</font> LocatorType* locator, |
| 00495 <font class="keywordtype">bool</font>& fPreserveSpace, |
| 00496 <font class="keywordtype">bool</font>& fSpaceAttrProcessed); |
| 00497 |
| 00498 <font class="keywordtype">void</font> |
| 00499 processPreserveStripSpace( |
| 00500 <font class="keyword">const</font> XalanDOMChar* name, |
| 00501 <font class="keyword">const</font> AttributeListType& atts, |
| 00502 <font class="keyword">const</font> LocatorType* locator, |
| 00503 <font class="keywordtype">int</font> xslToken); |
| 00504 |
| 00505 <font class="keywordtype">void</font> |
| 00506 appendChildElementToParent( |
| 00507 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* elem, |
| 00508 <font class="keyword">const</font> LocatorType* locator); |
| 00509 |
| 00510 <font class="keywordtype">void</font> |
| 00511 appendChildElementToParent( |
| 00512 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* parent, |
| 00513 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* elem); |
| 00514 |
| 00515 <font class="keywordtype">void</font> |
| 00516 appendChildElementToParent( |
| 00517 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* parent, |
| 00518 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* elem, |
| 00519 <font class="keyword">const</font> LocatorType* locator); |
| 00520 |
| 00521 <font class="keywordtype">bool</font> |
| 00522 inExtensionElement() <font class="keyword">const</font>; |
| 00523 |
| 00524 <font class="keywordtype">void</font> |
| 00525 processExtensionElement( |
| 00526 <font class="keyword">const</font> XalanDOMChar* name, |
| 00527 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& localName, |
| 00528 <font class="keyword">const</font> AttributeListType& atts, |
| 00529 <font class="keyword">const</font> LocatorType* locator); |
| 00530 |
| 00531 <font class="keywordtype">void</font> |
| 00532 checkForOrAddVariableName( |
| 00533 <font class="keyword">const</font> <a class="code" href="classXalanQName.html">XalanQName</a>& theVariableName, |
| 00534 <font class="keyword">const</font> LocatorType* theLocator); |
| 00535 |
| 00536 <font class="comment">// Data members...</font> |
| 00537 |
| 00541 Stylesheet& m_stylesheet; |
| 00542 |
| 00546 <a class="code" href="classStylesheetConstructionContext.html">StylesheetConstructionContext</a>& m_constructionContext; |
| 00547 |
| 00551 <a class="code" href="classXalanElemEmptyAllocator.html">XalanElemEmptyAllocator</a> m_elemEmptyAllocator; |
| 00552 |
| 00556 <a class="code" href="classXalanElemTextAllocator.html">XalanElemTextAllocator</a> m_elemTextAllocator; |
| 00557 |
| 00561 ElemTemplateStackType m_elemStack; |
| 00562 |
| 00568 ElemTextLiteralStackType m_whiteSpaceElems; |
| 00569 |
| 00573 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* m_pTemplate; |
| 00574 |
| 00575 <font class="keyword">class </font>LastPoppedHolder |
| 00576 { |
| 00577 <font class="keyword">public</font>: |
| 00578 |
| 00579 <a class="code" href="classStylesheetHandler.html#l0">LastPoppedHolder</a>(<a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>& theStylesheetHandler) : |
| 00580 m_stylesheetHandler(theStylesheetHandler), |
| 00581 m_lastPopped(0) |
| 00582 { |
| 00583 } |
| 00584 |
| 00585 ~LastPoppedHolder()<font class="keyword"></font> |
| 00586 <font class="keyword"> </font>{ |
| 00587 cleanup(); |
| 00588 } |
| 00589 |
| 00590 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* |
| 00591 operator->()<font class="keyword"> const</font> |
| 00592 <font class="keyword"> </font>{ |
| 00593 <font class="keywordflow">return</font> m_lastPopped; |
| 00594 } |
| 00595 |
| 00596 <font class="keywordtype">bool</font> |
| 00597 <a class="code" href="ElemAttributeSet_8hpp.html#a1">operator==</a>(<a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* theRHS)<font class="keyword"></font> |
| 00598 <font class="keyword"> </font>{ |
| 00599 <font class="keywordflow">return</font> m_lastPopped == theRHS; |
| 00600 } |
| 00601 |
| 00602 <font class="keywordtype">bool</font> |
| 00603 <a class="code" href="XObject_8hpp.html#a3">operator!=</a>(<a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* theRHS)<font class="keyword"></font> |
| 00604 <font class="keyword"> </font>{ |
| 00605 <font class="keywordflow">return</font> m_lastPopped != theRHS; |
| 00606 } |
| 00607 |
| 00608 <font class="keywordtype">void</font> |
| 00609 operator=(<a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* theRHS)<font class="keyword"></font> |
| 00610 <font class="keyword"> </font>{ |
| 00611 <font class="keywordflow">if</font> (theRHS != m_lastPopped) |
| 00612 { |
| 00613 cleanup(); |
| 00614 |
| 00615 m_lastPopped = theRHS; |
| 00616 } |
| 00617 } |
| 00618 |
| 00619 <font class="keywordtype">void</font> |
| 00620 <a class="code" href="XalanVector_8hpp.html#a2">swap</a>(LastPoppedHolder& theOther)<font class="keyword"></font> |
| 00621 <font class="keyword"> </font>{ |
| 00622 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* <font class="keyword">const</font> theTemp = m_lastPopped; |
| 00623 |
| 00624 m_lastPopped = theOther.m_lastPopped; |
| 00625 |
| 00626 theOther.m_lastPopped = theTemp; |
| 00627 } |
| 00628 |
| 00629 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* |
| 00630 get()<font class="keyword"> const</font> |
| 00631 <font class="keyword"> </font>{ |
| 00632 <font class="keywordflow">return</font> m_lastPopped; |
| 00633 } |
| 00634 |
| 00635 <font class="keyword">private</font>: |
| 00636 |
| 00637 <font class="keywordtype">void</font> |
| 00638 set(<a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* theNewElement)<font class="keyword"></font> |
| 00639 <font class="keyword"> </font>{ |
| 00640 <font class="keywordflow">if</font> (theNewElement != m_lastPopped) |
| 00641 { |
| 00642 cleanup(); |
| 00643 |
| 00644 m_lastPopped = theNewElement; |
| 00645 } |
| 00646 } |
| 00647 |
| 00648 <font class="comment">// Not implemented...</font> |
| 00649 LastPoppedHolder& |
| 00650 operator=(<font class="keyword">const</font> LastPoppedHolder&); |
| 00651 |
| 00652 <a class="code" href="classStylesheetHandler.html#l0">LastPoppedHolder</a>(<font class="keyword">const</font> LastPoppedHolder&); |
| 00653 |
| 00654 <font class="comment">// Helper functions...</font> |
| 00655 <font class="keywordtype">void</font> |
| 00656 cleanup(); |
| 00657 |
| 00658 <font class="comment">// Data members...</font> |
| 00659 <a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>& m_stylesheetHandler; |
| 00660 |
| 00661 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* m_lastPopped; |
| 00662 }; |
| 00663 |
| <a name="l00664"></a><a class="code" href="classStylesheetHandler.html#l0">00664</a> <font class="keyword">friend</font> <font class="keyword">class </font>LastPoppedHolder; |
| 00665 |
| 00669 LastPoppedHolder m_lastPopped; |
| 00670 |
| 00674 <font class="keywordtype">bool</font> m_inTemplate; |
| 00675 |
| 00680 <font class="keywordtype">bool</font> m_foundStylesheet; |
| 00681 |
| 00687 <font class="keywordtype">bool</font> m_foundNotImport; |
| 00688 |
| 00689 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_elementLocalName; |
| 00690 |
| 00695 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_accumulateText; |
| 00696 |
| 00697 <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_includeBase; |
| 00698 |
| 00699 BoolStackType m_inExtensionElementStack; |
| 00700 |
| 00701 BoolStackType m_preserveSpaceStack; |
| 00702 |
| 00703 <font class="comment">// Note that these variables must not be saved by</font> |
| 00704 <font class="comment">// PushPopIncludeState...</font> |
| 00705 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> m_locatorsPushed; |
| 00706 |
| 00707 <a class="code" href="classXalanSet.html">QNameSetType</a> m_globalVariableNames; |
| 00708 |
| 00709 <font class="keyword">enum</font> { eVariablesStackDefault = 20 }; |
| 00710 |
| 00711 QNameSetVectorType m_inScopeVariableNamesStack; |
| 00712 |
| 00716 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* |
| 00717 initWrapperless( |
| 00718 <font class="keyword">const</font> XalanDOMChar* name, |
| 00719 <font class="keyword">const</font> AttributeListType& atts, |
| 00720 <font class="keyword">const</font> LocatorType* locator); |
| 00721 |
| 00722 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>* |
| 00723 getNamespaceFromStack(<font class="keyword">const</font> XalanDOMChar* theName, |
| 00724 <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& theBuffer) <font class="keyword">const</font>; |
| 00725 |
| 00726 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>* |
| 00727 getNamespaceForPrefixFromStack(<font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a>& thePrefix) <font class="keyword">const</font>; |
| 00728 |
| 00729 <font class="keyword">class </font>PushPopIncludeState; |
| 00730 |
| 00731 <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>::PushPopIncludeState; |
| 00732 |
| 00733 class PushPopIncludeState |
| 00734 { |
| 00735 <font class="keyword">public</font>: |
| 00736 |
| 00737 PushPopIncludeState(<a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>& theHandler); |
| 00738 |
| 00739 ~PushPopIncludeState(); |
| 00740 |
| 00741 <font class="keyword">private</font>: |
| 00742 |
| 00743 <a class="code" href="classStylesheetHandler.html">StylesheetHandler</a>& m_handler; |
| 00744 |
| 00745 ElemTemplateStackType m_elemStack; |
| 00746 |
| 00747 <a class="code" href="classElemTemplateElement.html">ElemTemplateElement</a>* <font class="keyword">const</font> m_pTemplate; |
| 00748 |
| 00749 LastPoppedHolder m_lastPopped; |
| 00750 |
| 00751 <font class="keyword">const</font> <font class="keywordtype">bool</font> m_inTemplate; |
| 00752 |
| 00753 <font class="keyword">const</font> <font class="keywordtype">bool</font> m_foundStylesheet; |
| 00754 |
| 00755 <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> m_XSLNameSpaceURL; |
| 00756 |
| 00757 <font class="keyword">const</font> <font class="keywordtype">bool</font> m_foundNotImport; |
| 00758 |
| 00759 Stylesheet::NamespaceVectorType m_namespaceDecls; |
| 00760 |
| 00761 Stylesheet::NamespacesStackType m_namespaces; |
| 00762 |
| 00763 <a class="code" href="classNamespacesHandler.html">NamespacesHandler</a> m_namespacesHandler; |
| 00764 |
| 00765 BoolStackType m_inExtensionElementStack; |
| 00766 |
| 00767 BoolStackType m_preserveSpaceStack; |
| 00768 }; |
| 00769 |
| 00770 <font class="keyword">static</font> <font class="keyword">const</font> <a class="code" href="classXalanDOMString.html">XalanDOMString</a> s_emptyString; |
| 00771 }; |
| 00772 |
| 00773 |
| 00774 |
| 00775 XALAN_CPP_NAMESPACE_END |
| 00776 |
| 00777 |
| 00778 |
| 00779 <font class="preprocessor">#endif // XALAN_STYLESHEETHANDLER_HEADER_GUARD</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>
|