Coverage Report

Created: 2025-07-07 10:01

/src/libreoffice/sfx2/source/doc/exoticfileloadexception.hxx
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
 * This file is part of the LibreOffice project.
4
 *
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/.
8
 */
9
10
#ifndef INCLUDED_SFX2_EXOTICFILELOADEXCEPTION_HXX
11
#define INCLUDED_SFX2_EXOTICFILELOADEXCEPTION_HXX
12
13
#include <com/sun/star/task/XInteractionContinuation.hpp>
14
#include <com/sun/star/task/XInteractionRequest.hpp>
15
#include <comphelper/interaction.hxx>
16
#include <cppuhelper/implbase.hxx>
17
#include <rtl/ref.hxx>
18
19
class ExoticFileLoadException : public cppu::WeakImplHelper<css::task::XInteractionRequest>
20
{
21
    // C++ interface
22
public:
23
    ExoticFileLoadException(const OUString& rURL, const OUString& rFilterUIName);
24
    bool isApprove() const;
25
26
    // UNO interface
27
public:
28
    virtual css::uno::Sequence<css::uno::Reference<css::task::XInteractionContinuation>>
29
        SAL_CALL getContinuations() override
30
0
    {
31
0
        return m_lContinuations;
32
0
    }
33
0
    css::uno::Any SAL_CALL getRequest() override { return m_aRequest; }
34
35
    // member
36
private:
37
    css::uno::Any m_aRequest;
38
    rtl::Reference<comphelper::OInteractionAbort> m_xAbort;
39
    rtl::Reference<comphelper::OInteractionApprove> m_xApprove;
40
    css::uno::Sequence<css::uno::Reference<css::task::XInteractionContinuation>> m_lContinuations;
41
};
42
43
#endif
44
45
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */