Bump version to 4.1-6
[LibreOffice.git] / sfx2 / source / inc / fltoptint.hxx
blob4530fcbcd1b76cd7f8a03204caa7736f2b0ab594
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 SFX2_FLTOPTINT_HXX
20 #define SFX2_FLTOPTINT_HXX
22 #include <com/sun/star/document/FilterOptionsRequest.hpp>
23 #include <com/sun/star/document/XInteractionFilterOptions.hpp>
24 #include <com/sun/star/frame/XModel.hpp>
25 #include <comphelper/interaction.hxx>
27 //using namespace ::framework;
29 class FilterOptionsContinuation : public comphelper::OInteraction< ::com::sun::star::document::XInteractionFilterOptions >
31 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties;
33 public:
34 virtual void SAL_CALL setFilterOptions( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProp ) throw (::com::sun::star::uno::RuntimeException);
35 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getFilterOptions( ) throw (::com::sun::star::uno::RuntimeException);
38 class RequestFilterOptions : public ::cppu::WeakImplHelper1< ::com::sun::star::task::XInteractionRequest >
40 ::com::sun::star::uno::Any m_aRequest;
42 ::com::sun::star::uno::Sequence<
43 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
44 > m_lContinuations;
46 comphelper::OInteractionAbort* m_pAbort;
48 FilterOptionsContinuation* m_pOptions;
50 public:
51 RequestFilterOptions( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > rModel,
52 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties );
54 sal_Bool isAbort() { return m_pAbort->wasSelected(); }
56 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > getFilterOptions()
58 return m_pOptions->getFilterOptions();
61 virtual ::com::sun::star::uno::Any SAL_CALL getRequest()
62 throw( ::com::sun::star::uno::RuntimeException );
64 virtual ::com::sun::star::uno::Sequence<
65 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
66 > SAL_CALL getContinuations()
67 throw( ::com::sun::star::uno::RuntimeException );
70 #endif
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */