1*ec61c6edSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*ec61c6edSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ec61c6edSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ec61c6edSAndrew Rist * distributed with this work for additional information 6*ec61c6edSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ec61c6edSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ec61c6edSAndrew Rist * "License"); you may not use this file except in compliance 9*ec61c6edSAndrew Rist * with the License. You may obtain a copy of the License at 10*ec61c6edSAndrew Rist * 11*ec61c6edSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ec61c6edSAndrew Rist * 13*ec61c6edSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ec61c6edSAndrew Rist * software distributed under the License is distributed on an 15*ec61c6edSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ec61c6edSAndrew Rist * KIND, either express or implied. See the License for the 17*ec61c6edSAndrew Rist * specific language governing permissions and limitations 18*ec61c6edSAndrew Rist * under the License. 19*ec61c6edSAndrew Rist * 20*ec61c6edSAndrew Rist *************************************************************/ 21*ec61c6edSAndrew Rist 22*ec61c6edSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SAXEVENTKEEPERIMPL_HXX 25cdf0e10cSrcweir #define _SAXEVENTKEEPERIMPL_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <com/sun/star/xml/crypto/sax/XSecuritySAXEventKeeper.hpp> 28cdf0e10cSrcweir #include <com/sun/star/xml/crypto/sax/XReferenceResolvedBroadcaster.hpp> 29cdf0e10cSrcweir #include <com/sun/star/xml/crypto/sax/XSAXEventKeeperStatusChangeBroadcaster.hpp> 30cdf0e10cSrcweir #include <com/sun/star/xml/crypto/sax/XSAXEventKeeperStatusChangeListener.hpp> 31cdf0e10cSrcweir #include <com/sun/star/xml/csax/XCompressedDocumentHandler.hpp> 32cdf0e10cSrcweir #include <com/sun/star/xml/wrapper/XXMLDocumentWrapper.hpp> 33cdf0e10cSrcweir #include <com/sun/star/xml/sax/XDocumentHandler.hpp> 34cdf0e10cSrcweir #include <com/sun/star/lang/XInitialization.hpp> 35cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 36cdf0e10cSrcweir #include <cppuhelper/implbase6.hxx> 37cdf0e10cSrcweir 38cdf0e10cSrcweir #include "buffernode.hxx" 39cdf0e10cSrcweir #include "elementmark.hxx" 40cdf0e10cSrcweir #include "elementcollector.hxx" 41cdf0e10cSrcweir 42cdf0e10cSrcweir #ifndef INCLUDED_VECTOR 43cdf0e10cSrcweir #include <vector> 44cdf0e10cSrcweir #define INCLUDED_VECTOR 45cdf0e10cSrcweir #endif 46cdf0e10cSrcweir 47cdf0e10cSrcweir class SAXEventKeeperImpl : public cppu::WeakImplHelper6 48cdf0e10cSrcweir < 49cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XSecuritySAXEventKeeper, 50cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XReferenceResolvedBroadcaster, 51cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XSAXEventKeeperStatusChangeBroadcaster, 52cdf0e10cSrcweir com::sun::star::xml::sax::XDocumentHandler, 53cdf0e10cSrcweir com::sun::star::lang::XInitialization, 54cdf0e10cSrcweir com::sun::star::lang::XServiceInfo 55cdf0e10cSrcweir > 56cdf0e10cSrcweir /****** SAXEventKeeperImpl.hxx/CLASS SAXEventKeeperImpl *********************** 57cdf0e10cSrcweir * 58cdf0e10cSrcweir * NAME 59cdf0e10cSrcweir * SAXEventKeeperImpl -- SAX events buffer controller 60cdf0e10cSrcweir * 61cdf0e10cSrcweir * FUNCTION 62cdf0e10cSrcweir * Controls SAX events to be bufferred, and controls bufferred SAX events 63cdf0e10cSrcweir * to be released. 64cdf0e10cSrcweir * 65cdf0e10cSrcweir * HISTORY 66cdf0e10cSrcweir * 05.01.2004 - Interface supported: XSecuritySAXEventKeeper, 67cdf0e10cSrcweir * XReferenceResolvedBroadcaster, 68cdf0e10cSrcweir * XSAXEventKeeperStatusChangeBroadcaster, 69cdf0e10cSrcweir * XDocumentHandler, XInitialization, XServiceInfo 70cdf0e10cSrcweir * 71cdf0e10cSrcweir * AUTHOR 72cdf0e10cSrcweir * Michael Mi 73cdf0e10cSrcweir * Email: michael.mi@sun.com 74cdf0e10cSrcweir ******************************************************************************/ 75cdf0e10cSrcweir { 76cdf0e10cSrcweir private: 77cdf0e10cSrcweir /* 78cdf0e10cSrcweir * the XMLDocumentWrapper component which maintains all bufferred SAX 79cdf0e10cSrcweir * in DOM format. 80cdf0e10cSrcweir */ 81cdf0e10cSrcweir com::sun::star::uno::Reference< 82cdf0e10cSrcweir com::sun::star::xml::wrapper::XXMLDocumentWrapper > 83cdf0e10cSrcweir m_xXMLDocument; 84cdf0e10cSrcweir 85cdf0e10cSrcweir /* 86cdf0e10cSrcweir * the document handler provided by the XMLDocumentWrapper component. 87cdf0e10cSrcweir */ 88cdf0e10cSrcweir com::sun::star::uno::Reference< 89cdf0e10cSrcweir com::sun::star::xml::sax::XDocumentHandler > m_xDocumentHandler; 90cdf0e10cSrcweir 91cdf0e10cSrcweir /* 92cdf0e10cSrcweir * the compressed document handler provided by the XMLDocumentWrapper 93cdf0e10cSrcweir * component, the handler has more effient method definition that the 94cdf0e10cSrcweir * normal document handler. 95cdf0e10cSrcweir */ 96cdf0e10cSrcweir com::sun::star::uno::Reference< 97cdf0e10cSrcweir com::sun::star::xml::csax::XCompressedDocumentHandler > 98cdf0e10cSrcweir m_xCompressedDocumentHandler; 99cdf0e10cSrcweir 100cdf0e10cSrcweir /* 101cdf0e10cSrcweir * a listener which receives this SAXEventKeeper's status change 102cdf0e10cSrcweir * notification. 103cdf0e10cSrcweir * Based on the status changes, the listener can decide whether the 104cdf0e10cSrcweir * SAXEventKeeper should chain on/chain off the SAX chain, or whether 105cdf0e10cSrcweir * the SAXEventKeeper is useless any long. 106cdf0e10cSrcweir */ 107cdf0e10cSrcweir com::sun::star::uno::Reference< 108cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XSAXEventKeeperStatusChangeListener > 109cdf0e10cSrcweir m_xSAXEventKeeperStatusChangeListener; 110cdf0e10cSrcweir 111cdf0e10cSrcweir /* 112cdf0e10cSrcweir * the root node of the BufferNode tree. 113cdf0e10cSrcweir * the BufferNode tree is used to keep track of all bufferred elements, 114cdf0e10cSrcweir * it has the same structure with the document which maintains those 115cdf0e10cSrcweir * elements physically. 116cdf0e10cSrcweir */ 117cdf0e10cSrcweir BufferNode* m_pRootBufferNode; 118cdf0e10cSrcweir 119cdf0e10cSrcweir /* 120cdf0e10cSrcweir * the current active BufferNode. 121cdf0e10cSrcweir * this is used to keep track the current location in the BufferNode tree, 122cdf0e10cSrcweir * the next generated BufferNode will become a child BufferNode of it. 123cdf0e10cSrcweir */ 124cdf0e10cSrcweir BufferNode* m_pCurrentBufferNode; 125cdf0e10cSrcweir 126cdf0e10cSrcweir /* 127cdf0e10cSrcweir * the next Id for a coming ElementMark. 128cdf0e10cSrcweir * the variable is increased by 1 when an new ElementMark is generated, 129cdf0e10cSrcweir * in this way, we can promise the Id of any ElementMark is unique. 130cdf0e10cSrcweir */ 131cdf0e10cSrcweir sal_Int32 m_nNextElementMarkId; 132cdf0e10cSrcweir 133cdf0e10cSrcweir /* 134cdf0e10cSrcweir * maintains a collection of all ElementMarks. 135cdf0e10cSrcweir */ 136cdf0e10cSrcweir std::vector< const ElementMark* > m_vElementMarkBuffers; 137cdf0e10cSrcweir 138cdf0e10cSrcweir /* 139cdf0e10cSrcweir * maintains a list of new ElementCollectors that will be created 140cdf0e10cSrcweir * on the element represented by the next incoming startElement SAX 141cdf0e10cSrcweir * event. 142cdf0e10cSrcweir * The reason that such the m_vNewElementCollectors is necessary 143cdf0e10cSrcweir * is: when an ElementCollector is asked to create, it can't be 144cdf0e10cSrcweir * created completely at once, because the BufferNode it will be 145cdf0e10cSrcweir * working on has not been created until the next startElement 146cdf0e10cSrcweir * SAX event comes. 147cdf0e10cSrcweir */ 148cdf0e10cSrcweir std::vector< const ElementCollector* > m_vNewElementCollectors; 149cdf0e10cSrcweir 150cdf0e10cSrcweir /* 151cdf0e10cSrcweir * maintains the new Blocker that will be created 152cdf0e10cSrcweir * on the element represented by the next incoming startElement SAX 153cdf0e10cSrcweir * event. 154cdf0e10cSrcweir */ 155cdf0e10cSrcweir ElementMark* m_pNewBlocker; 156cdf0e10cSrcweir 157cdf0e10cSrcweir /* 158cdf0e10cSrcweir * the document handler to which all received SAX events will be 159cdf0e10cSrcweir * forwarded. 160cdf0e10cSrcweir */ 161cdf0e10cSrcweir com::sun::star::uno::Reference< 162cdf0e10cSrcweir com::sun::star::xml::sax::XDocumentHandler > m_xNextHandler; 163cdf0e10cSrcweir 164cdf0e10cSrcweir /* 165cdf0e10cSrcweir * the current BufferNode which prevents the SAX events to be 166cdf0e10cSrcweir * forwarded to the m_xNextHandler. 167cdf0e10cSrcweir */ 168cdf0e10cSrcweir BufferNode* m_pCurrentBlockingBufferNode; 169cdf0e10cSrcweir 170cdf0e10cSrcweir /* 171cdf0e10cSrcweir * maintains a list of ElementMark that has been asked to release. 172cdf0e10cSrcweir * Because during processing a request of releasing an ElementMark, 173cdf0e10cSrcweir * another releasing ElementMark request can be invoked. To avoid 174cdf0e10cSrcweir * reentering the same method, a such request only add that ElementMark 175cdf0e10cSrcweir * into this ElementMark list, then all ElementMarks will be processed in 176cdf0e10cSrcweir * order. 177cdf0e10cSrcweir */ 178cdf0e10cSrcweir std::vector< sal_Int32 > m_vReleasedElementMarkBuffers; 179cdf0e10cSrcweir 180cdf0e10cSrcweir /* 181cdf0e10cSrcweir * a flag to indicate whether the ElementMark releasing process is runing. 182cdf0e10cSrcweir * When a releasing request comes, the assigned ElementMark is added to 183cdf0e10cSrcweir * the m_vReleasedElementMarkBuffers first, then this flag is checked. 184cdf0e10cSrcweir * If the ElementMark releasing process is not running, then call that 185cdf0e10cSrcweir * method. 186cdf0e10cSrcweir */ 187cdf0e10cSrcweir bool m_bIsReleasing; 188cdf0e10cSrcweir 189cdf0e10cSrcweir /* 190cdf0e10cSrcweir * a flag to indicate whether it is the "Forwarding" mode now. 191cdf0e10cSrcweir * A "Forwarding" mode means that all received SAX events are from the 192cdf0e10cSrcweir * XMLDocumentWrapper component, instead of up-stream component in the 193cdf0e10cSrcweir * SAX chain. 194cdf0e10cSrcweir * The difference between "Forwarding" mode and normal mode is that: 195cdf0e10cSrcweir * no SAX events need to be transferred to the XMLDocumentWrapper component 196cdf0e10cSrcweir * again even if a buffer request happens. 197cdf0e10cSrcweir */ 198cdf0e10cSrcweir bool m_bIsForwarding; 199cdf0e10cSrcweir 200cdf0e10cSrcweir void setCurrentBufferNode(BufferNode* pBufferNode); 201cdf0e10cSrcweir 202cdf0e10cSrcweir BufferNode* addNewElementMarkBuffers(); 203cdf0e10cSrcweir 204cdf0e10cSrcweir ElementMark* findElementMarkBuffer(sal_Int32 nId) const; 205cdf0e10cSrcweir 206cdf0e10cSrcweir void removeElementMarkBuffer(sal_Int32 nId); 207cdf0e10cSrcweir 208cdf0e10cSrcweir rtl::OUString printBufferNode( 209cdf0e10cSrcweir BufferNode* pBufferNode, sal_Int32 nIndent) const; 210cdf0e10cSrcweir 211cdf0e10cSrcweir com::sun::star::uno::Sequence< com::sun::star::uno::Reference< 212cdf0e10cSrcweir com::sun::star::xml::wrapper::XXMLElementWrapper > > 213cdf0e10cSrcweir collectChildWorkingElement(BufferNode* pBufferNode) const; 214cdf0e10cSrcweir 215cdf0e10cSrcweir void smashBufferNode( 216cdf0e10cSrcweir BufferNode* pBufferNode, bool bClearRoot) const; 217cdf0e10cSrcweir 218cdf0e10cSrcweir BufferNode* findNextBlockingBufferNode( 219cdf0e10cSrcweir BufferNode* pStartBufferNode) const; 220cdf0e10cSrcweir 221cdf0e10cSrcweir void diffuse(BufferNode* pBufferNode) const; 222cdf0e10cSrcweir 223cdf0e10cSrcweir void releaseElementMarkBuffer(); 224cdf0e10cSrcweir 225cdf0e10cSrcweir void markElementMarkBuffer(sal_Int32 nId); 226cdf0e10cSrcweir 227cdf0e10cSrcweir sal_Int32 createElementCollector( 228cdf0e10cSrcweir sal_Int32 nSecurityId, 229cdf0e10cSrcweir com::sun::star::xml::crypto::sax::ElementMarkPriority nPriority, 230cdf0e10cSrcweir bool bModifyElement, 231cdf0e10cSrcweir const com::sun::star::uno::Reference< 232cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XReferenceResolvedListener>& 233cdf0e10cSrcweir xReferenceResolvedListener); 234cdf0e10cSrcweir 235cdf0e10cSrcweir sal_Int32 createBlocker(sal_Int32 nSecurityId); 236cdf0e10cSrcweir 237cdf0e10cSrcweir public: 238cdf0e10cSrcweir SAXEventKeeperImpl(); 239cdf0e10cSrcweir virtual ~SAXEventKeeperImpl(); 240cdf0e10cSrcweir 241cdf0e10cSrcweir /* XSAXEventKeeper */ 242cdf0e10cSrcweir virtual sal_Int32 SAL_CALL addElementCollector( ) 243cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 244cdf0e10cSrcweir virtual void SAL_CALL removeElementCollector( sal_Int32 id ) 245cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 246cdf0e10cSrcweir virtual sal_Int32 SAL_CALL addBlocker( ) 247cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 248cdf0e10cSrcweir virtual void SAL_CALL removeBlocker( sal_Int32 id ) 249cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 250cdf0e10cSrcweir virtual sal_Bool SAL_CALL isBlocking( ) 251cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 252cdf0e10cSrcweir virtual com::sun::star::uno::Reference< 253cdf0e10cSrcweir com::sun::star::xml::wrapper::XXMLElementWrapper > SAL_CALL 254cdf0e10cSrcweir getElement( sal_Int32 id ) 255cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 256cdf0e10cSrcweir virtual void SAL_CALL setElement( 257cdf0e10cSrcweir sal_Int32 id, 258cdf0e10cSrcweir const com::sun::star::uno::Reference< 259cdf0e10cSrcweir com::sun::star::xml::wrapper::XXMLElementWrapper >& 260cdf0e10cSrcweir aElement ) 261cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 262cdf0e10cSrcweir virtual com::sun::star::uno::Reference< 263cdf0e10cSrcweir com::sun::star::xml::sax::XDocumentHandler > SAL_CALL 264cdf0e10cSrcweir setNextHandler( const com::sun::star::uno::Reference< 265cdf0e10cSrcweir com::sun::star::xml::sax::XDocumentHandler >& xNewHandler ) 266cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 267cdf0e10cSrcweir virtual rtl::OUString SAL_CALL printBufferNodeTree() 268cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 269cdf0e10cSrcweir virtual com::sun::star::uno::Reference< 270cdf0e10cSrcweir com::sun::star::xml::wrapper::XXMLElementWrapper > SAL_CALL 271cdf0e10cSrcweir getCurrentBlockingNode() 272cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 273cdf0e10cSrcweir 274cdf0e10cSrcweir /* XSecuritySAXEventKeeper */ 275cdf0e10cSrcweir virtual sal_Int32 SAL_CALL addSecurityElementCollector( 276cdf0e10cSrcweir com::sun::star::xml::crypto::sax::ElementMarkPriority priority, 277cdf0e10cSrcweir sal_Bool modifyElement ) 278cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 279cdf0e10cSrcweir virtual sal_Int32 SAL_CALL cloneElementCollector( 280cdf0e10cSrcweir sal_Int32 referenceId, 281cdf0e10cSrcweir com::sun::star::xml::crypto::sax::ElementMarkPriority priority ) 282cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 283cdf0e10cSrcweir virtual void SAL_CALL setSecurityId( sal_Int32 id, sal_Int32 securityId ) 284cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 285cdf0e10cSrcweir 286cdf0e10cSrcweir /* XReferenceResolvedBroadcaster */ 287cdf0e10cSrcweir virtual void SAL_CALL addReferenceResolvedListener( 288cdf0e10cSrcweir sal_Int32 referenceId, 289cdf0e10cSrcweir const com::sun::star::uno::Reference< 290cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XReferenceResolvedListener >& 291cdf0e10cSrcweir listener ) 292cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 293cdf0e10cSrcweir virtual void SAL_CALL removeReferenceResolvedListener( 294cdf0e10cSrcweir sal_Int32 referenceId, 295cdf0e10cSrcweir const com::sun::star::uno::Reference< 296cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XReferenceResolvedListener >& 297cdf0e10cSrcweir listener ) 298cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 299cdf0e10cSrcweir 300cdf0e10cSrcweir /* XSAXEventKeeperStatusChangeBroadcaster */ 301cdf0e10cSrcweir virtual void SAL_CALL addSAXEventKeeperStatusChangeListener( 302cdf0e10cSrcweir const com::sun::star::uno::Reference< 303cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XSAXEventKeeperStatusChangeListener >& 304cdf0e10cSrcweir listener ) 305cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 306cdf0e10cSrcweir virtual void SAL_CALL removeSAXEventKeeperStatusChangeListener( 307cdf0e10cSrcweir const com::sun::star::uno::Reference< 308cdf0e10cSrcweir com::sun::star::xml::crypto::sax::XSAXEventKeeperStatusChangeListener >& 309cdf0e10cSrcweir listener ) 310cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 311cdf0e10cSrcweir 312cdf0e10cSrcweir /* XDocumentHandler */ 313cdf0e10cSrcweir virtual void SAL_CALL startDocument( ) 314cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 315cdf0e10cSrcweir virtual void SAL_CALL endDocument( ) 316cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 317cdf0e10cSrcweir virtual void SAL_CALL startElement( 318cdf0e10cSrcweir const rtl::OUString& aName, 319cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& 320cdf0e10cSrcweir xAttribs ) 321cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 322cdf0e10cSrcweir virtual void SAL_CALL endElement( const rtl::OUString& aName ) 323cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 324cdf0e10cSrcweir virtual void SAL_CALL characters( const rtl::OUString& aChars ) 325cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 326cdf0e10cSrcweir virtual void SAL_CALL ignorableWhitespace( const rtl::OUString& aWhitespaces ) 327cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 328cdf0e10cSrcweir virtual void SAL_CALL processingInstruction( 329cdf0e10cSrcweir const rtl::OUString& aTarget, const rtl::OUString& aData ) 330cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 331cdf0e10cSrcweir virtual void SAL_CALL setDocumentLocator( 332cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::xml::sax::XLocator >& xLocator ) 333cdf0e10cSrcweir throw (com::sun::star::xml::sax::SAXException, com::sun::star::uno::RuntimeException); 334cdf0e10cSrcweir 335cdf0e10cSrcweir /* XInitialization */ 336cdf0e10cSrcweir virtual void SAL_CALL initialize( 337cdf0e10cSrcweir const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments ) 338cdf0e10cSrcweir throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException); 339cdf0e10cSrcweir 340cdf0e10cSrcweir /* XServiceInfo */ 341cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getImplementationName( ) 342cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 343cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName ) 344cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 345cdf0e10cSrcweir virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames( ) 346cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException); 347cdf0e10cSrcweir }; 348cdf0e10cSrcweir 349cdf0e10cSrcweir rtl::OUString SAXEventKeeperImpl_getImplementationName() 350cdf0e10cSrcweir throw ( com::sun::star::uno::RuntimeException ); 351cdf0e10cSrcweir 352cdf0e10cSrcweir sal_Bool SAL_CALL SAXEventKeeperImpl_supportsService( const rtl::OUString& ServiceName ) 353cdf0e10cSrcweir throw ( com::sun::star::uno::RuntimeException ); 354cdf0e10cSrcweir 355cdf0e10cSrcweir com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL SAXEventKeeperImpl_getSupportedServiceNames( ) 356cdf0e10cSrcweir throw ( com::sun::star::uno::RuntimeException ); 357cdf0e10cSrcweir 358cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::uno::XInterface > 359cdf0e10cSrcweir SAL_CALL SAXEventKeeperImpl_createInstance( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > & rSMgr) 360cdf0e10cSrcweir throw ( com::sun::star::uno::Exception ); 361cdf0e10cSrcweir 362cdf0e10cSrcweir #endif 363cdf0e10cSrcweir 364cdf0e10cSrcweir 365cdf0e10cSrcweir 366