bump product version to 5.0.4.1
[LibreOffice.git] / sfx2 / source / inc / fltoptint.hxx
blob1572cc7f5054a9ed8686083feec3dab7c305a48f
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 INCLUDED_SFX2_SOURCE_INC_FLTOPTINT_HXX
20 #define INCLUDED_SFX2_SOURCE_INC_FLTOPTINT_HXX
22 #include <com/sun/star/document/XInteractionFilterOptions.hpp>
23 #include <com/sun/star/frame/XModel.hpp>
24 #include <comphelper/interaction.hxx>
26 class FilterOptionsContinuation : public comphelper::OInteraction< ::com::sun::star::document::XInteractionFilterOptions >
28 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties;
30 public:
31 virtual void SAL_CALL setFilterOptions( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProp ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
32 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getFilterOptions( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
35 class RequestFilterOptions : public ::cppu::WeakImplHelper1< ::com::sun::star::task::XInteractionRequest >
37 ::com::sun::star::uno::Any m_aRequest;
39 ::com::sun::star::uno::Sequence<
40 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
41 > m_lContinuations;
43 comphelper::OInteractionAbort* m_pAbort;
45 FilterOptionsContinuation* m_pOptions;
47 public:
48 RequestFilterOptions( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > rModel,
49 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProperties );
51 bool isAbort() { return m_pAbort->wasSelected(); }
53 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > getFilterOptions()
55 return m_pOptions->getFilterOptions();
58 virtual ::com::sun::star::uno::Any SAL_CALL getRequest()
59 throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
61 virtual ::com::sun::star::uno::Sequence<
62 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
63 > SAL_CALL getContinuations()
64 throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
67 #endif
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */