Coverage Report

Created: 2026-07-10 11:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/vcl/weld/LinkButton.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 <vcl/dllapi.h>
13
#include <vcl/weld/Widget.hxx>
14
15
namespace weld
16
{
17
class VCL_DLLPUBLIC LinkButton : virtual public Widget
18
{
19
    Link<LinkButton&, bool> m_aActivateLinkHdl;
20
21
protected:
22
0
    bool signal_activate_link() { return m_aActivateLinkHdl.Call(*this); }
23
24
public:
25
    virtual void set_label(const OUString& rText) = 0;
26
    virtual OUString get_label() const = 0;
27
    virtual void set_label_wrap(bool wrap) = 0;
28
    virtual void set_uri(const OUString& rUri) = 0;
29
    virtual OUString get_uri() const = 0;
30
31
0
    void connect_activate_link(const Link<LinkButton&, bool>& rLink) { m_aActivateLinkHdl = rLink; }
32
};
33
}
34
35
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */