xref: /aoo42x/main/sc/inc/filtuno.hxx (revision 38d50f7b)
1*38d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*38d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*38d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*38d50f7bSAndrew Rist  * distributed with this work for additional information
6*38d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*38d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*38d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
9*38d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*38d50f7bSAndrew Rist  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*38d50f7bSAndrew Rist  *
13*38d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*38d50f7bSAndrew Rist  * software distributed under the License is distributed on an
15*38d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*38d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*38d50f7bSAndrew Rist  * specific language governing permissions and limitations
18*38d50f7bSAndrew Rist  * under the License.
19*38d50f7bSAndrew Rist  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SC_FILTUNO_HXX
25cdf0e10cSrcweir #define SC_FILTUNO_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp>
28cdf0e10cSrcweir #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
29cdf0e10cSrcweir #include <com/sun/star/document/XImporter.hpp>
30cdf0e10cSrcweir #include <com/sun/star/document/XExporter.hpp>
31cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
32cdf0e10cSrcweir #include <cppuhelper/implbase5.hxx>
33cdf0e10cSrcweir #include "scdllapi.h"
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace io {
36cdf0e10cSrcweir 	class XInputStream;
37cdf0e10cSrcweir } } } }
38cdf0e10cSrcweir 
39cdf0e10cSrcweir 
40cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
41cdf0e10cSrcweir 	ScFilterOptionsObj_CreateInstance(
42cdf0e10cSrcweir 		const ::com::sun::star::uno::Reference<
43cdf0e10cSrcweir 			::com::sun::star::lang::XMultiServiceFactory >& );
44cdf0e10cSrcweir 
45cdf0e10cSrcweir 
46cdf0e10cSrcweir class ScFilterOptionsObj : public ::cppu::WeakImplHelper5<
47cdf0e10cSrcweir 							::com::sun::star::beans::XPropertyAccess,
48cdf0e10cSrcweir 							::com::sun::star::ui::dialogs::XExecutableDialog,
49cdf0e10cSrcweir 							::com::sun::star::document::XImporter,
50cdf0e10cSrcweir 							::com::sun::star::document::XExporter,
51cdf0e10cSrcweir 							::com::sun::star::lang::XServiceInfo >
52cdf0e10cSrcweir {
53cdf0e10cSrcweir private:
54cdf0e10cSrcweir 	::rtl::OUString		aFileName;
55cdf0e10cSrcweir 	::rtl::OUString		aFilterName;
56cdf0e10cSrcweir 	::rtl::OUString		aFilterOptions;
57cdf0e10cSrcweir 	::com::sun::star::uno::Reference<
58cdf0e10cSrcweir 		::com::sun::star::io::XInputStream > xInputStream;
59cdf0e10cSrcweir 	sal_Bool			bExport;
60cdf0e10cSrcweir 
61cdf0e10cSrcweir public:
62cdf0e10cSrcweir 							ScFilterOptionsObj();
63cdf0e10cSrcweir 	virtual					~ScFilterOptionsObj();
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	static ::rtl::OUString	getImplementationName_Static();
66cdf0e10cSrcweir 	static ::com::sun::star::uno::Sequence< ::rtl::OUString> getSupportedServiceNames_Static();
67cdf0e10cSrcweir 
68cdf0e10cSrcweir 							// XPropertyAccess
69cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
70cdf0e10cSrcweir 							SAL_CALL getPropertyValues() throw (::com::sun::star::uno::RuntimeException);
71cdf0e10cSrcweir 	virtual void SAL_CALL	setPropertyValues( const ::com::sun::star::uno::Sequence<
72cdf0e10cSrcweir 									::com::sun::star::beans::PropertyValue >& aProps )
73cdf0e10cSrcweir 								throw (::com::sun::star::beans::UnknownPropertyException,
74cdf0e10cSrcweir 										::com::sun::star::beans::PropertyVetoException,
75cdf0e10cSrcweir 										::com::sun::star::lang::IllegalArgumentException,
76cdf0e10cSrcweir 										::com::sun::star::lang::WrappedTargetException,
77cdf0e10cSrcweir 										::com::sun::star::uno::RuntimeException);
78cdf0e10cSrcweir 
79cdf0e10cSrcweir 							// XExecutableDialog
80cdf0e10cSrcweir 	virtual void SAL_CALL	setTitle( const ::rtl::OUString& aTitle )
81cdf0e10cSrcweir 								throw (::com::sun::star::uno::RuntimeException);
82cdf0e10cSrcweir 	virtual sal_Int16 SAL_CALL execute() throw (::com::sun::star::uno::RuntimeException);
83cdf0e10cSrcweir 
84cdf0e10cSrcweir 							// XImporter
85cdf0e10cSrcweir 	virtual void SAL_CALL	setTargetDocument( const ::com::sun::star::uno::Reference<
86cdf0e10cSrcweir 									::com::sun::star::lang::XComponent >& xDoc )
87cdf0e10cSrcweir 								throw (::com::sun::star::lang::IllegalArgumentException,
88cdf0e10cSrcweir 										::com::sun::star::uno::RuntimeException);
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 							// XExporter
91cdf0e10cSrcweir 	virtual void SAL_CALL	setSourceDocument( const ::com::sun::star::uno::Reference<
92cdf0e10cSrcweir 									::com::sun::star::lang::XComponent >& xDoc )
93cdf0e10cSrcweir 								throw (::com::sun::star::lang::IllegalArgumentException,
94cdf0e10cSrcweir 										::com::sun::star::uno::RuntimeException);
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 							// XServiceInfo
97cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName()
98cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
99cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
100cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
101cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
102cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
103cdf0e10cSrcweir };
104cdf0e10cSrcweir 
105cdf0e10cSrcweir 
106cdf0e10cSrcweir #endif
107cdf0e10cSrcweir 
108