File indexing completed on 2024-05-12 16:35:23

0001 /* This file is part of the KDE project
0002    Copyright (C) 2005 Ariya Hidayat <ariya@kde.org>
0003              (C) 2003 Norbert Andres <nandres@web.de>
0004              (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
0005              (C) 1999-2002 Laurent Montel <montel@kde.org>
0006              (C) 1999 Stephan Kulow <coolo@kde.org>
0007              (C) 1998-1999 Torben Weis <weis@kde.org>
0008 
0009    This library is free software; you can redistribute it and/or
0010    modify it under the terms of the GNU Library General Public
0011    License as published by the Free Software Foundation; either
0012    version 2 of the License, or (at your option) any later version.
0013 
0014    This library is distributed in the hope that it will be useful,
0015    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0017    Library General Public License for more details.
0018 
0019    You should have received a copy of the GNU Library General Public License
0020    along with this library; see the file COPYING.LIB.  If not, write to
0021    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0022    Boston, MA 02110-1301, USA.
0023 */
0024 
0025 #ifndef LINK_DIALOG
0026 #define LINK_DIALOG
0027 
0028 #include <kpagedialog.h>
0029 
0030 namespace Calligra
0031 {
0032 namespace Sheets
0033 {
0034 class Selection;
0035 
0036 /**
0037  * \ingroup UI
0038  * Dialog to insert a hyperlink.
0039  */
0040 class LinkDialog : public KPageDialog
0041 {
0042     Q_OBJECT
0043 public:
0044     explicit LinkDialog(QWidget* parent, Selection* selection);
0045     ~LinkDialog() override;
0046     QString text() const;
0047     QString link() const;
0048 
0049 public Q_SLOTS:
0050     void setText(const QString& text);
0051     void setLink(const QString& link);
0052 
0053 protected Q_SLOTS:
0054     void slotOk();
0055 
0056 private:
0057     Q_DISABLE_COPY(LinkDialog)
0058 
0059     class Private;
0060     Private * const d;
0061 };
0062 
0063 } // namespace Sheets
0064 } // namespace Calligra
0065 
0066 #endif /* LINK_DIALOG */