mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
76 lines
2.1 KiB
C
76 lines
2.1 KiB
C
![]() |
/*
|
||
|
Copyright (c) 2012 Montel Laurent <montel@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or modify it
|
||
|
under the terms of the GNU Library General Public License as published by
|
||
|
the Free Software Foundation; either version 2 of the License, or (at your
|
||
|
option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful, but WITHOUT
|
||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
|
||
|
License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to the
|
||
|
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||
|
02110-1301, USA.
|
||
|
|
||
|
*/
|
||
|
|
||
|
#ifndef KPIMTEXTEDIT_TABLECELLFORMATDIALOG_H
|
||
|
#define KPIMTEXTEDIT_TABLECELLFORMATDIALOG_H
|
||
|
|
||
|
#include "kpimtextedit_export.h"
|
||
|
|
||
|
#include <KDE/KDialog>
|
||
|
|
||
|
#include <QTextCharFormat>
|
||
|
|
||
|
namespace KPIMTextEdit {
|
||
|
|
||
|
class KPIMTEXTEDIT_EXPORT TableCellFormatDialog : public KDialog
|
||
|
{
|
||
|
public:
|
||
|
explicit TableCellFormatDialog( QWidget *parent );
|
||
|
~TableCellFormatDialog();
|
||
|
|
||
|
/**
|
||
|
* @brief tableCellBackgroundColor
|
||
|
* @return background color of cell.
|
||
|
*/
|
||
|
QColor tableCellBackgroundColor() const;
|
||
|
|
||
|
/**
|
||
|
* @brief setTableCellBackgroundColor
|
||
|
* @param color, set the background color of cell
|
||
|
*/
|
||
|
void setTableCellBackgroundColor( const QColor &color );
|
||
|
|
||
|
/**
|
||
|
* @brief verticalAlignment
|
||
|
* @return vertical alignment for current cell.
|
||
|
*/
|
||
|
QTextCharFormat::VerticalAlignment verticalAlignment() const;
|
||
|
|
||
|
/**
|
||
|
* @brief setVerticalAlignment
|
||
|
* @param vertical vertical alignment for current cell.
|
||
|
*/
|
||
|
void setVerticalAlignment( QTextCharFormat::VerticalAlignment vertical );
|
||
|
|
||
|
/**
|
||
|
* @brief useBackgroundColor
|
||
|
* @return true if we define background color. Otherwise false and allows to clear it.
|
||
|
*/
|
||
|
bool useBackgroundColor() const;
|
||
|
|
||
|
private:
|
||
|
class TableCellFormatDialogPrivate;
|
||
|
TableCellFormatDialogPrivate * const d;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // KPIMTEXTEDIT_TABLECELLFORMATDIALOG_H
|