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: SwXFilterOptions.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 ************************************************************************/
30 #ifndef _SWXFILTEROPTIONS_HXX
31 #define _SWXFILTEROPTIONS_HXX
33 #include <com/sun/star/beans/XPropertyAccess.hpp>
34 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
35 #include <com/sun/star/document/XImporter.hpp>
36 #include <com/sun/star/document/XExporter.hpp>
37 #include <com/sun/star/lang/XServiceInfo.hpp>
38 #include <cppuhelper/implbase5.hxx>
40 namespace com
{ namespace sun
{ namespace star
{ namespace io
{
45 /* -----------------------------2002/06/21 12:07------------------------------
47 ---------------------------------------------------------------------------*/
48 class SwXFilterOptions
: public ::cppu::WeakImplHelper5
<
49 ::com::sun::star::beans::XPropertyAccess
,
50 ::com::sun::star::ui::dialogs::XExecutableDialog
,
51 ::com::sun::star::document::XImporter
,
52 ::com::sun::star::document::XExporter
,
53 ::com::sun::star::lang::XServiceInfo
>
55 ::rtl::OUString sFilterName
;
56 ::rtl::OUString sFilterOptions
;
58 ::com::sun::star::uno::Reference
<
59 ::com::sun::star::io::XInputStream
> xInputStream
;
60 ::com::sun::star::uno::Reference
<
61 ::com::sun::star::lang::XComponent
> xModel
;
66 virtual ~SwXFilterOptions();
68 static ::rtl::OUString
getImplementationName_Static();
69 static ::com::sun::star::uno::Sequence
< ::rtl::OUString
> getSupportedServiceNames_Static();
72 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>
73 SAL_CALL
getPropertyValues() throw (::com::sun::star::uno::RuntimeException
);
74 virtual void SAL_CALL
setPropertyValues( const ::com::sun::star::uno::Sequence
<
75 ::com::sun::star::beans::PropertyValue
>& aProps
)
76 throw (::com::sun::star::beans::UnknownPropertyException
,
77 ::com::sun::star::beans::PropertyVetoException
,
78 ::com::sun::star::lang::IllegalArgumentException
,
79 ::com::sun::star::lang::WrappedTargetException
,
80 ::com::sun::star::uno::RuntimeException
);
83 virtual void SAL_CALL
setTitle( const ::rtl::OUString
& aTitle
)
84 throw (::com::sun::star::uno::RuntimeException
);
85 virtual sal_Int16 SAL_CALL
execute() throw (::com::sun::star::uno::RuntimeException
);
88 virtual void SAL_CALL
setTargetDocument( const ::com::sun::star::uno::Reference
<
89 ::com::sun::star::lang::XComponent
>& xDoc
)
90 throw (::com::sun::star::lang::IllegalArgumentException
,
91 ::com::sun::star::uno::RuntimeException
);
94 virtual void SAL_CALL
setSourceDocument( const ::com::sun::star::uno::Reference
<
95 ::com::sun::star::lang::XComponent
>& xDoc
)
96 throw (::com::sun::star::lang::IllegalArgumentException
,
97 ::com::sun::star::uno::RuntimeException
);
100 virtual ::rtl::OUString SAL_CALL
getImplementationName()
101 throw(::com::sun::star::uno::RuntimeException
);
102 virtual sal_Bool SAL_CALL
supportsService( const ::rtl::OUString
& ServiceName
)
103 throw(::com::sun::star::uno::RuntimeException
);
104 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames()
105 throw(::com::sun::star::uno::RuntimeException
);
109 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SAL_CALL
110 SwXFilterOptions_createInstance(
111 const ::com::sun::star::uno::Reference
<
112 ::com::sun::star::lang::XMultiServiceFactory
>& );