bump product version to 4.1.6.2
[LibreOffice.git] / sw / source / ui / inc / SwXFilterOptions.hxx
blobc220de09e4ea3e590fe852a3db6b547fe227b508
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SWXFILTEROPTIONS_HXX
20 #define _SWXFILTEROPTIONS_HXX
22 #include <com/sun/star/beans/XPropertyAccess.hpp>
23 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
24 #include <com/sun/star/document/XImporter.hpp>
25 #include <com/sun/star/document/XExporter.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <cppuhelper/implbase5.hxx>
29 namespace com { namespace sun { namespace star { namespace io {
30 class XInputStream;
31 } } } }
33 class SwXFilterOptions : public ::cppu::WeakImplHelper5<
34 ::com::sun::star::beans::XPropertyAccess,
35 ::com::sun::star::ui::dialogs::XExecutableDialog,
36 ::com::sun::star::document::XImporter,
37 ::com::sun::star::document::XExporter,
38 ::com::sun::star::lang::XServiceInfo >
40 OUString sFilterName;
41 OUString sFilterOptions;
43 ::com::sun::star::uno::Reference<
44 ::com::sun::star::io::XInputStream > xInputStream;
45 ::com::sun::star::uno::Reference<
46 ::com::sun::star::lang::XComponent > xModel;
47 sal_Bool bExport;
49 public:
50 SwXFilterOptions();
51 virtual ~SwXFilterOptions();
53 static OUString getImplementationName_Static();
54 static ::com::sun::star::uno::Sequence< OUString> getSupportedServiceNames_Static();
56 // XPropertyAccess
57 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
58 SAL_CALL getPropertyValues() throw (::com::sun::star::uno::RuntimeException);
59 virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence<
60 ::com::sun::star::beans::PropertyValue >& aProps )
61 throw (::com::sun::star::beans::UnknownPropertyException,
62 ::com::sun::star::beans::PropertyVetoException,
63 ::com::sun::star::lang::IllegalArgumentException,
64 ::com::sun::star::lang::WrappedTargetException,
65 ::com::sun::star::uno::RuntimeException);
67 // XExecutableDialog
68 virtual void SAL_CALL setTitle( const OUString& aTitle )
69 throw (::com::sun::star::uno::RuntimeException);
70 virtual sal_Int16 SAL_CALL execute() throw (::com::sun::star::uno::RuntimeException);
72 // XImporter
73 virtual void SAL_CALL setTargetDocument( const ::com::sun::star::uno::Reference<
74 ::com::sun::star::lang::XComponent >& xDoc )
75 throw (::com::sun::star::lang::IllegalArgumentException,
76 ::com::sun::star::uno::RuntimeException);
78 // XExporter
79 virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference<
80 ::com::sun::star::lang::XComponent >& xDoc )
81 throw (::com::sun::star::lang::IllegalArgumentException,
82 ::com::sun::star::uno::RuntimeException);
84 // XServiceInfo
85 virtual OUString SAL_CALL getImplementationName()
86 throw(::com::sun::star::uno::RuntimeException);
87 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
88 throw(::com::sun::star::uno::RuntimeException);
89 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
90 throw(::com::sun::star::uno::RuntimeException);
94 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
95 SwXFilterOptions_createInstance(
96 const ::com::sun::star::uno::Reference<
97 ::com::sun::star::lang::XMultiServiceFactory >& );
99 #endif
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */