home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / KoPageLayoutHeader.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-30  |  1.8 KB  |  57 lines

  1. /* This file is part of the KDE project
  2.  * Copyright (C) 2005 Thomas Zander <zander@kde.org>
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Library General Public
  6.  * License as published by the Free Software Foundation; version 2.
  7.  *
  8.  * This library is distributed in the hope that it will be useful,
  9.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  11.  * Library General Public License for more details.
  12.  *
  13.  * You should have received a copy of the GNU Library General Public License
  14.  * along with this library; see the file COPYING.LIB.  If not, write to
  15.  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  16.  * Boston, MA 02110-1301, USA.
  17.  */
  18.  
  19. #ifndef kopagelayoutheader_h
  20. #define kopagelayoutheader_h
  21.  
  22. #include <KoUnit.h>
  23. #include <KoPageLayout.h>
  24. #include <KoPageLayoutHeaderBase.h>
  25.  
  26. class QWidget;
  27. class KoUnitDoubleSpinBox;
  28. class KoPagePreview;
  29.  
  30. /**
  31.  * This class is a widget that shows the KoKWHeaderFooter data structure and allows the user to change it.
  32.  */
  33. class KoPageLayoutHeader : public KoPageLayoutHeaderBase {
  34.     Q_OBJECT
  35.  
  36. public:
  37.     /**
  38.      * Contructor
  39.      * @param parent the parent widget
  40.      * @param unit the unit-type (mm/cm/inch) that the dialog should show
  41.      * @param kwhf the data that this widget will be filled with initially
  42.      */
  43.     KoPageLayoutHeader(QWidget *parent, KoUnit::Unit unit, const KoKWHeaderFooter &kwhf);
  44.     /**
  45.      * @return the altered data as it is currently set by the user.
  46.      */
  47.     const KoKWHeaderFooter& headerFooter();
  48.  
  49. private:
  50.     KoUnitDoubleSpinBox *m_headerSpacing, *m_footerSpacing, *m_footnoteSpacing;
  51.  
  52.     KoKWHeaderFooter m_headerFooters;
  53. };
  54.  
  55. #endif
  56.  
  57.