From d62c8c002c51fb7c36487839eeeb4ac89f044dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 26 Mar 2016 13:50:43 +0100 Subject: Initial import of kxmleditor 1.1.4 --- part/kxeprintsettings.h | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 part/kxeprintsettings.h (limited to 'part/kxeprintsettings.h') diff --git a/part/kxeprintsettings.h b/part/kxeprintsettings.h new file mode 100644 index 0000000..fb833f6 --- /dev/null +++ b/part/kxeprintsettings.h @@ -0,0 +1,95 @@ +/*************************************************************************** + kxeprintsettings.h + ------------------ + begin : Tue Dec 02 2003 + copyright : (C) 2003 by The KXMLEditor Team + email : hartig@users.sourceforge.net + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KXEPRINTSETTINGS_H +#define KXEPRINTSETTINGS_H + +#include "kxesettings.h" + +class KXEPrintSettingsPage; + +/** + * This class represents the group of configuration settings for + * printing. + * + * @author Olaf Hartig + */ +class KXEPrintSettings : public KXESettings +{ + public: + + KXEPrintSettings( QObject * pParent = 0, const char * pszName = 0 ); + + // The following functions can be used to access this object's settings. + QString fontFamily() const { return m_strFontFamily; } + int fontSize() const { return m_iFontSize; } + int indentSteps() const { return m_iIndentSteps; } + bool hasHeader() const { return m_bWithHeader; } + bool hasFooter() const { return m_bWithFooter; } + + /** + * Derived from @ref KXESettings + */ + virtual QString dialogPageName() const; + /** + * Derived from @ref KXESettings + */ + virtual QString dialogPageHeader() const; + /** + * Derived from @ref KXESettings + */ + virtual QString dialogPageIcon() const; + /** + * Derived from @ref KXESettings + */ + virtual QWidget * dialogPage( QFrame * pParent ); + + protected: + + /** + * Derived from @ref KXESettings + */ + virtual void write( KConfig * ) const; + /** + * Derived from @ref KXESettings + */ + virtual void read( const KConfig * ); + /** + * Derived from @ref KXESettings + */ + virtual void setFromPage(); + /** + * Derived from @ref KXESettings + */ + virtual void updatePage() const; + + // the settings itself + QString m_strFontFamily; + int m_iFontSize; + int m_iIndentSteps; + bool m_bWithHeader; + bool m_bWithFooter; + + /** + * the corresponding configuration dialog page + * It is created on demand by @ref dialogPage. + */ + KXEPrintSettingsPage * m_pDialogPage; + +}; + +#endif -- cgit v1.2.1