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(XSLTProcessor* theProcessor = 0); 00048 00049 virtual 00050 ~XSLTProcessorEnvSupportDefault(); 00051 00057 void 00058 setProcessor(XSLTProcessor* theProcessor) 00059 { 00060 m_processor = theProcessor; 00061 } 00062 00063 00071 static void 00072 installExternalFunctionGlobal( 00073 const XalanDOMString& theNamespace, 00074 const XalanDOMString& functionName, 00075 const Function& function); 00076 00083 static void 00084 uninstallExternalFunctionGlobal( 00085 const XalanDOMString& theNamespace, 00086 const XalanDOMString& functionName); 00087 00088 // Interfaces to install and uninstall external functions in this instance. 00089 00097 virtual void 00098 installExternalFunctionLocal( 00099 const XalanDOMString& theNamespace, 00100 const XalanDOMString& functionName, 00101 const Function& function); 00102 00109 virtual void 00110 uninstallExternalFunctionLocal( 00111 const XalanDOMString& theNamespace, 00112 const XalanDOMString& functionName); 00113 00114 00115 // These interfaces are inherited from XSLTProcessorEnvSupport... 00116 00117 virtual bool 00118 problem( 00119 eSource where, 00120 eClassification classification, 00121 const XalanNode* sourceNode, 00122 const ElemTemplateElement* styleNode, 00123 const XalanDOMString& msg, 00124 const XalanDOMChar* uri, 00125 int lineNo, 00126 int charOffset) const; 00127 00128 // These interfaces are inherited from XPathEnvSupport... 00129 00130 virtual XalanDocument* 00131 parseXML( 00132 const XalanDOMString& urlString, 00133 const XalanDOMString& base); 00134 00135 virtual XalanDocument* 00136 getSourceDocument(const XalanDOMString& theURI) const; 00137 00138 virtual void 00139 setSourceDocument( 00140 const XalanDOMString& theURI, 00141 XalanDocument* theDocument); 00142 00143 virtual XalanDOMString 00144 findURIFromDoc(const XalanDocument* owner) const; 00145 00146 virtual bool 00147 elementAvailable( 00148 const XalanDOMString& theNamespace, 00149 const XalanDOMString& elementName) const; 00150 00151 virtual bool 00152 functionAvailable( 00153 const XalanDOMString& theNamespace, 00154 const XalanDOMString& functionName) const; 00155 00156 virtual XObjectPtr 00157 extFunction( 00158 XPathExecutionContext& executionContext, 00159 const XalanDOMString& theNamespace, 00160 const XalanDOMString& functionName, 00161 XalanNode* context, 00162 const XObjectArgVectorType& argVec, 00163 const LocatorType* locator) const; 00164 00165 virtual bool 00166 problem( 00167 eSource where, 00168 eClassification classification, 00169 const PrefixResolver* resolver, 00170 const XalanNode* sourceNode, 00171 const XalanDOMString& msg, 00172 const XalanDOMChar* uri, 00173 int lineNo, 00174 int charOffset) const; 00175 00176 // These interfaces are inherited from Resettable... 00177 00178 virtual void 00179 reset(); 00180 00181 00182 // These are not implemented... 00183 XSLTProcessorEnvSupportDefault(const XSLTProcessorEnvSupportDefault&); 00184 00185 XSLTProcessorEnvSupportDefault& 00186 operator=(const XSLTProcessorEnvSupportDefault&); 00187 00188 bool 00189 operator==(const XSLTProcessorEnvSupportDefault&) const; 00190 00191 00192 // Data members... 00193 00194 XPathEnvSupportDefault m_defaultSupport; 00195 00196 XSLTProcessor* m_processor; 00197 }; 00198 00199 00200 00201 XALAN_CPP_NAMESPACE_END 00202 00203 00204 00205 #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.8 |
|