summaryrefslogtreecommitdiffstats
path: root/part/kxeprintsettings.h
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxeprintsettings.h')
-rw-r--r--part/kxeprintsettings.h95
1 files changed, 95 insertions, 0 deletions
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