1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _PPTIMPORTER_HXX 25 #define _PPTIMPORTER_HXX 26 27 #include "pptcom.hxx" 28 #include "ppttoxml.hxx" 29 30 // --------------- 31 // - PptImporter - 32 // --------------- 33 34 class PptImporter : public NMSP_CPPU::WeakImplHelper4 35 < 36 NMSP_DOCUMENT::XFilter, 37 NMSP_DOCUMENT::XImporter, 38 NMSP_LANG::XInitialization, 39 NMSP_LANG::XServiceInfo 40 > 41 { 42 PptToXml aFilter; 43 REF( NMSP_SAX::XDocumentHandler ) xHdl; 44 REF( NMSP_LANG::XMultiServiceFactory ) xFact; 45 REF( NMSP_DOCUMENT::XImporter ) xImporter; 46 47 public: 48 49 PptImporter( const REF( NMSP_LANG::XMultiServiceFactory )& rxMgr ); 50 virtual ~PptImporter(); 51 52 // XInterface 53 virtual void SAL_CALL acquire() throw(); 54 virtual void SAL_CALL release() throw(); 55 56 // XFilter 57 virtual sal_Bool SAL_CALL filter( const SEQ( NMSP_BEANS::PropertyValue )& aDescriptor ) 58 throw ( NMSP_UNO::RuntimeException ); 59 virtual void SAL_CALL cancel( ) 60 throw ( NMSP_UNO::RuntimeException ); 61 62 // XImporter 63 virtual void SAL_CALL setTargetDocument( const REF(NMSP_LANG::XComponent)& xDoc ) 64 throw ( NMSP_LANG::IllegalArgumentException, NMSP_UNO::RuntimeException ); 65 66 // XInitialization 67 virtual void SAL_CALL initialize( const SEQ( NMSP_UNO::Any )& aArguments ) 68 throw ( NMSP_UNO::Exception, NMSP_UNO::RuntimeException ); 69 70 // XServiceInfo 71 virtual NMSP_RTL::OUString SAL_CALL getImplementationName() 72 throw ( NMSP_UNO::RuntimeException ); 73 virtual sal_Bool SAL_CALL supportsService( const NMSP_RTL::OUString& ServiceName ) 74 throw ( NMSP_UNO::RuntimeException ); 75 virtual SEQ( NMSP_RTL::OUString ) SAL_CALL getSupportedServiceNames() 76 throw ( NMSP_UNO::RuntimeException ); 77 78 }; 79 80 NMSP_RTL::OUString PptImporter_getImplementationName() 81 throw ( NMSP_UNO::RuntimeException ); 82 sal_Bool SAL_CALL PptImportert_supportsService( const NMSP_RTL::OUString& ServiceName ) 83 throw( NMSP_UNO::RuntimeException ); 84 SEQ( NMSP_RTL::OUString ) SAL_CALL PptImporter_getSupportedServiceNames() 85 throw( NMSP_UNO::RuntimeException ); 86 87 #endif 88