00001 /* 00002 * Copyright 1999-2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #if !defined(XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680) 00017 #define XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680 00018 00019 00020 00021 // Base include file. Must be first. 00022 #include <xalanc/XSLT/XSLTDefinitions.hpp> 00023 00024 00025 00026 // Base class header file... 00027 #include <xalanc/XSLT/XSLTProcessorEnvSupport.hpp> 00028 00029 00030 00031 #include <xalanc/XPath/XPathEnvSupportDefault.hpp> 00032 00033 00034 00035 XALAN_CPP_NAMESPACE_BEGIN 00036 00037 00038 00039 class XSLTProcessor; 00040 00041 00042 00043 class XALAN_XSLT_EXPORT XSLTProcessorEnvSupportDefault : public XSLTProcessorEnvSupport 00044 { 00045 public: 00046 00047 XSLTProcessorEnvSupportDefault( MemoryManagerType& theManager, 00048 XSLTProcessor* theProcessor = 0); 00049 00050 virtual 00051 ~XSLTProcessorEnvSupportDefault(); 00052 00058 void 00059 setProcessor(XSLTProcessor* theProcessor) 00060 { 00061 m_processor = theProcessor; 00062 } 00063 00064 00072 static void 00073 installExternalFunctionGlobal( 00074 const XalanDOMString& theNamespace, 00075 const XalanDOMString& functionName, 00076 const Function& function); 00077 00084 static void 00085 uninstallExternalFunctionGlobal( 00086 const XalanDOMString& theNamespace, 00087 const XalanDOMString& functionName); 00088 00089 // Interfaces to install and uninstall external functions in this instance. 00090 00098 virtual void 00099 installExternalFunctionLocal( 00100 const XalanDOMString& theNamespace, 00101 const XalanDOMString& functionName, 00102 const Function& function); 00103 00110 virtual void 00111 uninstallExternalFunctionLocal( 00112 const XalanDOMString& theNamespace, 00113 const XalanDOMString& functionName); 00114 00115 00116 // These interfaces are inherited from XSLTProcessorEnvSupport... 00117 00118 virtual bool 00119 problem( 00120 eSource where, 00121 eClassification classification, 00122 const XalanNode* sourceNode, 00123 const ElemTemplateElement* styleNode, 00124 const XalanDOMString& msg, 00125 const XalanDOMChar* uri, 00126 int lineNo, 00127 int charOffset) const; 00128 00129 // These interfaces are inherited from XPathEnvSupport... 00130 00131 virtual XalanDocument* 00132 parseXML( 00133 MemoryManagerType& theManager, 00134 const XalanDOMString& urlString, 00135 const XalanDOMString& base); 00136 00137 virtual XalanDocument* 00138 getSourceDocument(const XalanDOMString& theURI) const; 00139 00140 virtual void 00141 setSourceDocument( 00142 const XalanDOMString& theURI, 00143 XalanDocument* theDocument); 00144 00145 virtual const XalanDOMString& 00146 findURIFromDoc(const XalanDocument* owner) const; 00147 00148 virtual bool 00149 elementAvailable( 00150 const XalanDOMString& theNamespace, 00151 const XalanDOMString& elementName) const; 00152 00153 virtual bool 00154 functionAvailable( 00155 const XalanDOMString& theNamespace, 00156 const XalanDOMString& functionName) const; 00157 00158 virtual XObjectPtr 00159 extFunction( 00160 XPathExecutionContext& executionContext, 00161 const XalanDOMString& theNamespace, 00162 const XalanDOMString& functionName, 00163 XalanNode* context, 00164 const XObjectArgVectorType& argVec, 00165 const LocatorType* locator) const; 00166 00167 virtual bool 00168 problem( 00169 eSource where, 00170 eClassification classification, 00171 const PrefixResolver* resolver, 00172 const XalanNode* sourceNode, 00173 const XalanDOMString& msg, 00174 const XalanDOMChar* uri, 00175 int lineNo, 00176 int charOffset) const; 00177 00178 // These interfaces are inherited from Resettable... 00179 00180 virtual void 00181 reset(); 00182 00183 00184 // These are not implemented... 00185 XSLTProcessorEnvSupportDefault(const XSLTProcessorEnvSupportDefault&); 00186 00187 XSLTProcessorEnvSupportDefault& 00188 operator=(const XSLTProcessorEnvSupportDefault&); 00189 00190 bool 00191 operator==(const XSLTProcessorEnvSupportDefault&) const; 00192 00193 00194 // Data members... 00195 00196 XPathEnvSupportDefault m_defaultSupport; 00197 00198 XSLTProcessor* m_processor; 00199 }; 00200 00201 00202 00203 XALAN_CPP_NAMESPACE_END 00204 00205 00206 00207 #endif // XSLTPROCESSORENVSUPPORTDEFAULT_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.10 |
|