kviewshell
kviewpart_iface.h
Go to the documentation of this file.00001 // -*- C++ -*- 00002 #ifndef KVIEWPART_IFACE_H 00003 #define KVIEWPART_IFACE_H 00004 00005 #include <kparts/part.h> 00006 00007 class QStringList; 00008 00009 00010 class KViewPart_Iface : public KParts::ReadOnlyPart 00011 { 00012 Q_OBJECT 00013 public: 00014 KViewPart_Iface(QObject *parent, const char *name) 00015 : KParts::ReadOnlyPart(parent, name) {} 00016 00017 virtual ~KViewPart_Iface() {} 00018 00019 /* Returns a description of the current page size, for use in the 00020 statusbar of the kviewshell that embeds this KViewPart. */ 00021 virtual QString pageSizeDescription() = 0; 00022 00023 /* This method calls closeURL(), but asks first ("The document was 00024 modified. Do you really want to close?") if the document has been 00025 modified after it has been loaded. */ 00026 virtual bool closeURL_ask() = 0; 00027 00028 virtual QStringList supportedMimeTypes() = 0; 00029 00030 public slots: 00031 virtual void slotSetFullPage(bool fullpage) = 0; 00032 virtual QStringList fileFormats() const = 0; 00033 }; 00034 00035 #endif