KPimTextEdit

tableformatdialog.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9
10#include <QDialog>
11
12#include <QTextLength>
13
14namespace KPIMTextEdit
15{
16class TableFormatDialog : public QDialog
17{
19public:
20 explicit TableFormatDialog(QWidget *parent);
21 ~TableFormatDialog() override;
22
23 [[nodiscard]] int columns() const;
24 [[nodiscard]] int rows() const;
25 [[nodiscard]] int border() const;
26
27 void setColumns(int);
28 void setRows(int);
29 void setBorder(int);
30
31 [[nodiscard]] int padding() const;
32 void setPadding(int);
33
34 [[nodiscard]] int spacing() const;
35 void setSpacing(int);
36
37 void setAlignment(Qt::Alignment alignment);
38 [[nodiscard]] Qt::Alignment alignment() const;
39
40 [[nodiscard]] QTextLength::Type typeOfLength() const;
41 void setTypeOfLength(QTextLength::Type type);
42
43 [[nodiscard]] int length() const;
44 void setLength(int);
45
46 [[nodiscard]] QColor tableBackgroundColor() const;
47 void setTableBackgroundColor(const QColor &col);
48
49 [[nodiscard]] bool useBackgroundColor() const;
50
51private:
52 class TableFormatDialogPrivate;
53 std::unique_ptr<TableFormatDialogPrivate> const d;
54};
55}
Q_OBJECTQ_OBJECT
QObject * parent() const const
typedef Alignment
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.