1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _PPTIMPORTER_HXX
29 #define _PPTIMPORTER_HXX
30 
31 #include "pptcom.hxx"
32 #include "ppttoxml.hxx"
33 
34 // ---------------
35 // - PptImporter -
36 // ---------------
37 
38 class PptImporter : public NMSP_CPPU::WeakImplHelper4
39 <
40 	NMSP_DOCUMENT::XFilter,
41 	NMSP_DOCUMENT::XImporter,
42 	NMSP_LANG::XInitialization,
43 	NMSP_LANG::XServiceInfo
44 >
45 {
46     PptToXml                                aFilter;
47     REF( NMSP_SAX::XDocumentHandler )       xHdl;
48 	REF( NMSP_LANG::XMultiServiceFactory )	xFact;
49     REF( NMSP_DOCUMENT::XImporter )         xImporter;
50 
51 public:
52 
53 											PptImporter( const REF( NMSP_LANG::XMultiServiceFactory )& rxMgr );
54 	virtual 								~PptImporter();
55 
56 	// XInterface
57     virtual void SAL_CALL					acquire() throw();
58     virtual void SAL_CALL					release() throw();
59 
60 	// XFilter
61     virtual sal_Bool SAL_CALL filter( const SEQ( NMSP_BEANS::PropertyValue )& aDescriptor )
62 		throw ( NMSP_UNO::RuntimeException );
63     virtual void SAL_CALL cancel(  )
64 		throw ( NMSP_UNO::RuntimeException );
65 
66 	// XImporter
67     virtual void SAL_CALL setTargetDocument( const REF(NMSP_LANG::XComponent)& xDoc )
68 		throw ( NMSP_LANG::IllegalArgumentException, NMSP_UNO::RuntimeException );
69 
70 	// XInitialization
71     virtual void SAL_CALL initialize( const SEQ( NMSP_UNO::Any )& aArguments )
72 		throw ( NMSP_UNO::Exception, NMSP_UNO::RuntimeException );
73 
74 	// XServiceInfo
75     virtual NMSP_RTL::OUString SAL_CALL getImplementationName()
76 		throw ( NMSP_UNO::RuntimeException );
77     virtual sal_Bool SAL_CALL supportsService( const NMSP_RTL::OUString& ServiceName )
78 		throw ( NMSP_UNO::RuntimeException );
79     virtual SEQ( NMSP_RTL::OUString ) SAL_CALL getSupportedServiceNames()
80 		throw ( NMSP_UNO::RuntimeException );
81 
82 };
83 
84 NMSP_RTL::OUString PptImporter_getImplementationName()
85 	throw ( NMSP_UNO::RuntimeException );
86 sal_Bool SAL_CALL PptImportert_supportsService( const NMSP_RTL::OUString& ServiceName )
87 	throw( NMSP_UNO::RuntimeException );
88 SEQ( NMSP_RTL::OUString ) SAL_CALL PptImporter_getSupportedServiceNames()
89 	throw( NMSP_UNO::RuntimeException );
90 
91 #endif
92