summaryrefslogtreecommitdiffstats
path: root/kviewshell/kviewpart_iface.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /kviewshell/kviewpart_iface.h
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/kviewpart_iface.h')
-rw-r--r--kviewshell/kviewpart_iface.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/kviewshell/kviewpart_iface.h b/kviewshell/kviewpart_iface.h
new file mode 100644
index 00000000..9e488f3e
--- /dev/null
+++ b/kviewshell/kviewpart_iface.h
@@ -0,0 +1,35 @@
+// -*- C++ -*-
+#ifndef KVIEWPART_IFACE_H
+#define KVIEWPART_IFACE_H
+
+#include <kparts/part.h>
+
+class QStringList;
+
+
+class KViewPart_Iface : public KParts::ReadOnlyPart
+{
+ Q_OBJECT
+public:
+ KViewPart_Iface(QObject *parent, const char *name)
+ : KParts::ReadOnlyPart(parent, name) {}
+
+ virtual ~KViewPart_Iface() {}
+
+ /* Returns a description of the current page size, for use in the
+ statusbar of the kviewshell that embeds this KViewPart. */
+ virtual QString pageSizeDescription() = 0;
+
+ /* This method calls closeURL(), but asks first ("The document was
+ modified. Do you really want to close?") if the document has been
+ modified after it has been loaded. */
+ virtual bool closeURL_ask() = 0;
+
+ virtual QStringList supportedMimeTypes() = 0;
+
+public slots:
+ virtual void slotSetFullPage(bool fullpage) = 0;
+ virtual QStringList fileFormats() const = 0;
+};
+
+#endif