1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: filtuno.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SC_FILTUNO_HXX
32 #define SC_FILTUNO_HXX
34 #include <com/sun/star/beans/XPropertyAccess.hpp>
35 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
36 #include <com/sun/star/document/XImporter.hpp>
37 #include <com/sun/star/document/XExporter.hpp>
38 #include <com/sun/star/lang/XServiceInfo.hpp>
39 #include <cppuhelper/implbase5.hxx>
42 namespace com
{ namespace sun
{ namespace star
{ namespace io
{
47 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SAL_CALL
48 ScFilterOptionsObj_CreateInstance(
49 const ::com::sun::star::uno::Reference
<
50 ::com::sun::star::lang::XMultiServiceFactory
>& );
53 class ScFilterOptionsObj
: public ::cppu::WeakImplHelper5
<
54 ::com::sun::star::beans::XPropertyAccess
,
55 ::com::sun::star::ui::dialogs::XExecutableDialog
,
56 ::com::sun::star::document::XImporter
,
57 ::com::sun::star::document::XExporter
,
58 ::com::sun::star::lang::XServiceInfo
>
61 ::rtl::OUString aFileName
;
62 ::rtl::OUString aFilterName
;
63 ::rtl::OUString aFilterOptions
;
64 ::com::sun::star::uno::Reference
<
65 ::com::sun::star::io::XInputStream
> xInputStream
;
70 virtual ~ScFilterOptionsObj();
72 static ::rtl::OUString
getImplementationName_Static();
73 static ::com::sun::star::uno::Sequence
< ::rtl::OUString
> getSupportedServiceNames_Static();
76 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>
77 SAL_CALL
getPropertyValues() throw (::com::sun::star::uno::RuntimeException
);
78 virtual void SAL_CALL
setPropertyValues( const ::com::sun::star::uno::Sequence
<
79 ::com::sun::star::beans::PropertyValue
>& aProps
)
80 throw (::com::sun::star::beans::UnknownPropertyException
,
81 ::com::sun::star::beans::PropertyVetoException
,
82 ::com::sun::star::lang::IllegalArgumentException
,
83 ::com::sun::star::lang::WrappedTargetException
,
84 ::com::sun::star::uno::RuntimeException
);
87 virtual void SAL_CALL
setTitle( const ::rtl::OUString
& aTitle
)
88 throw (::com::sun::star::uno::RuntimeException
);
89 virtual sal_Int16 SAL_CALL
execute() throw (::com::sun::star::uno::RuntimeException
);
92 virtual void SAL_CALL
setTargetDocument( const ::com::sun::star::uno::Reference
<
93 ::com::sun::star::lang::XComponent
>& xDoc
)
94 throw (::com::sun::star::lang::IllegalArgumentException
,
95 ::com::sun::star::uno::RuntimeException
);
98 virtual void SAL_CALL
setSourceDocument( const ::com::sun::star::uno::Reference
<
99 ::com::sun::star::lang::XComponent
>& xDoc
)
100 throw (::com::sun::star::lang::IllegalArgumentException
,
101 ::com::sun::star::uno::RuntimeException
);
104 virtual ::rtl::OUString SAL_CALL
getImplementationName()
105 throw(::com::sun::star::uno::RuntimeException
);
106 virtual sal_Bool SAL_CALL
supportsService( const ::rtl::OUString
& ServiceName
)
107 throw(::com::sun::star::uno::RuntimeException
);
108 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames()
109 throw(::com::sun::star::uno::RuntimeException
);