Update ooo320-m1
[ooovba.git] / sfx2 / source / inc / fltoptint.hxx
blob13a4084c20855c1364bc443277915b42097db4cb
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: fltoptint.hxx,v $
10 * $Revision: 1.4 $
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 #include <com/sun/star/document/FilterOptionsRequest.hpp>
32 #include <com/sun/star/document/XInteractionFilterOptions.hpp>
33 #include <com/sun/star/frame/XModel.hpp>
34 #include <framework/interaction.hxx>
36 using namespace ::framework;
38 class FilterOptionsContinuation : public ContinuationBase< ::com::sun::star::document::XInteractionFilterOptions >
40 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties;
42 public:
43 virtual void SAL_CALL setFilterOptions( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProp ) throw (::com::sun::star::uno::RuntimeException);
44 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getFilterOptions( ) throw (::com::sun::star::uno::RuntimeException);
47 class RequestFilterOptions : public ::cppu::WeakImplHelper1< ::com::sun::star::task::XInteractionRequest >
49 ::com::sun::star::uno::Any m_aRequest;
51 ::com::sun::star::uno::Sequence<
52 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
53 > m_lContinuations;
55 ContinuationAbort* m_pAbort;
57 FilterOptionsContinuation* m_pOptions;
59 public:
60 RequestFilterOptions( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > rModel,
61 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties );
63 sal_Bool isAbort() { return m_pAbort->isSelected(); }
65 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > getFilterOptions()
67 return m_pOptions->getFilterOptions();
70 virtual ::com::sun::star::uno::Any SAL_CALL getRequest()
71 throw( ::com::sun::star::uno::RuntimeException );
73 virtual ::com::sun::star::uno::Sequence<
74 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
75 > SAL_CALL getContinuations()
76 throw( ::com::sun::star::uno::RuntimeException );
77 };