00001 /* This file is part of the KDE project 00002 * Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org> 00003 * Copyright (C) 2005 Thomas Zander <zander@kde.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; version 2. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this library; see the file COPYING.LIB. If not, write to 00016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 * Boston, MA 02110-1301, USA. 00018 */ 00019 00020 // Description: Page Layout Dialog (sources) 00021 00022 #ifndef kopagelayoutcolumns_h 00023 #define kopagelayoutcolumns_h 00024 00025 #include <KoUnit.h> 00026 #include <KoPageLayout.h> 00027 #include "ui_KoPageLayoutColumns.h" 00028 00029 class QWidget; 00030 class KoUnitDoubleSpinBox; 00031 class KoPagePreview; 00032 00036 class KOFFICEUI_EXPORT KoPageLayoutColumns : public QWidget, public Ui::KoPageLayoutColumns { 00037 Q_OBJECT 00038 00039 public: 00047 KoPageLayoutColumns(QWidget *parent, const KoColumns& columns, KoUnit::Unit unit, const KoPageLayout& layout); 00048 00053 void setLayout(KoPageLayout &layout); 00054 public slots: 00055 00060 void setEnableColumns(bool on); 00061 00062 signals: 00063 void propertyChange(KoColumns &columns); 00064 00065 protected: 00066 KoColumns m_columns; 00067 KoPagePreview *m_preview; 00068 KoUnitDoubleSpinBox *m_spacing; 00069 00070 private slots: 00071 void nColChanged( int ); 00072 void nSpaceChanged( double ); 00073 }; 00074 00075 #endif