fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / ucb / source / ucp / ftp / ftpintreq.cxx
blob55f51d3aca262d3b5ae9e307d84175e2c0548b2a
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 .
21 #include <com/sun/star/ucb/UnsupportedNameClashException.hpp>
22 #include <com/sun/star/ucb/NameClash.hpp>
23 #include "ftpintreq.hxx"
25 using namespace cppu;
26 using namespace com::sun::star;
27 using namespace com::sun::star::uno;
28 using namespace com::sun::star::lang;
29 using namespace com::sun::star::ucb;
30 using namespace com::sun::star::task;
31 using namespace ftp;
34 XInteractionApproveImpl::XInteractionApproveImpl()
35 : m_bSelected(false)
39 void SAL_CALL XInteractionApproveImpl::select()
40 throw (RuntimeException,
41 std::exception)
43 m_bSelected = true;
49 // XInteractionDisapproveImpl
51 XInteractionDisapproveImpl::XInteractionDisapproveImpl()
52 : m_bSelected(false)
56 void SAL_CALL XInteractionDisapproveImpl::select()
57 throw (RuntimeException,
58 std::exception)
60 m_bSelected = true;
63 // XInteractionRequestImpl
65 XInteractionRequestImpl::XInteractionRequestImpl()
66 : p1( new XInteractionApproveImpl )
67 , p2( new XInteractionDisapproveImpl )
68 , m_aSeq( 2 )
70 m_aSeq[0] = Reference<XInteractionContinuation>(p1);
71 m_aSeq[1] = Reference<XInteractionContinuation>(p2);
74 Any SAL_CALL XInteractionRequestImpl::getRequest( )
75 throw (RuntimeException,
76 std::exception)
78 Any aAny;
79 UnsupportedNameClashException excep;
80 excep.NameClash = NameClash::ERROR;
81 aAny <<= excep;
82 return aAny;
85 Sequence<Reference<XInteractionContinuation > > SAL_CALL XInteractionRequestImpl::getContinuations()
86 throw (RuntimeException,
87 std::exception)
89 return m_aSeq;
92 bool XInteractionRequestImpl::approved() const
94 return p1->isSelected();
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */