Coverage Report

Created: 2026-08-14 10:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/source/ui/operation/UngroupSparklinesOperation.cxx
Line
Count
Source
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
#include <operation/UngroupSparklinesOperation.hxx>
11
12
#include <docsh.hxx>
13
#include <undo/UndoUngroupSparklines.hxx>
14
15
namespace sc
16
{
17
UngroupSparklinesOperation::UngroupSparklinesOperation(ScDocShell& rDocShell, ScRange const& rRange)
18
0
    : Operation(OperationType::SparklineUngroup, false, false)
19
0
    , mrDocShell(rDocShell)
20
0
    , maRange(rRange)
21
0
{
22
0
}
23
24
bool UngroupSparklinesOperation::runImplementation()
25
0
{
26
0
    ScRange aRange = convertRange(maRange);
27
28
0
    auto pUndo = std::make_unique<UndoUngroupSparklines>(mrDocShell, aRange);
29
    // ungroup sparklines by "redoing"
30
0
    pUndo->Redo();
31
0
    mrDocShell.GetUndoManager()->AddUndoAction(std::move(pUndo));
32
33
0
    syncSheetViews();
34
35
0
    return true;
36
0
}
37
}
38
39
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */