Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/embeddedobj/embeddedupdate.hxx
Line
Count
Source
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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
#pragma once
11
12
#include <embeddedobj/embobjdllapi.h>
13
14
namespace embeddedobj
15
{
16
/** This class is only used to tell the OCommonEmbeddedObject class
17
    that the following call is an Link- / Ole-refresh.
18
19
    @since LibreOffice 7.4
20
 */
21
class EMBOBJ_DLLPUBLIC SAL_LOPLUGIN_ANNOTATE("crosscast") EmbeddedUpdate
22
{
23
    /** By "Refresh all" is used to perform an OLE update and a link update.
24
        In the case of a link update, the class OCommonEmbeddedObject is
25
        informed with true that a link update will take place next
26
27
        @param bIsOleUpdate
28
            what kind of update, when true  is OLE-Object
29
                                 when false is Link-Object
30
     */
31
public:
32
    virtual void SetOleState(bool bIsOleUpdate) = 0;
33
34
0
    EmbeddedUpdate() = default;
35
0
    virtual ~EmbeddedUpdate() = default;
36
37
private:
38
    EmbeddedUpdate(const EmbeddedUpdate&) = delete;
39
    EmbeddedUpdate& operator=(const EmbeddedUpdate&) = delete;
40
};
41
42
} // namespace embeddedobj
43
44
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */