summaryrefslogtreecommitdiffstats
path: root/kviewshell/kviewpart_iface.h
blob: ac7869de637fcc1952148f19cff7e0dc0b864a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// -*- C++ -*-
#ifndef KVIEWPART_IFACE_H
#define KVIEWPART_IFACE_H

#include <kparts/part.h>

class TQStringList;


class KViewPart_Iface : public KParts::ReadOnlyPart
{
  Q_OBJECT
  TQ_OBJECT
public:
  KViewPart_Iface(TQObject *tqparent, const char *name)
    : KParts::ReadOnlyPart(tqparent, 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 TQString 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 TQStringList supportedMimeTypes() = 0;

public slots:
  virtual void slotSetFullPage(bool fullpage) = 0;
  virtual TQStringList fileFormats() const = 0;
};

#endif