summaryrefslogtreecommitdiffstats
path: root/kugar/part/kugar_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'kugar/part/kugar_view.h')
-rw-r--r--kugar/part/kugar_view.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/kugar/part/kugar_view.h b/kugar/part/kugar_view.h
new file mode 100644
index 00000000..a6838737
--- /dev/null
+++ b/kugar/part/kugar_view.h
@@ -0,0 +1,53 @@
+// Copyright (c) 2000 Phil Thompson <phil@river-bank.demon.co.uk>
+//
+// This file contains the definition of the interface to the Kugar KPart.
+
+
+#ifndef _KUGAR_VIEW_H
+#define _KUGAR_VIEW_H
+
+#include "mreportviewer.h"
+
+#include <KoView.h>
+
+class KugarPart;
+
+class KugarView: public KoView
+{
+ Q_OBJECT
+
+public:
+ KugarView( KugarPart *part, QWidget *parent, const char *name );
+ virtual ~KugarView();
+
+ void setForcedUserTemplate( const QString &name );
+
+ void updateReadWrite( bool )
+ {
+ ;
+ }
+
+ bool renderReport();
+
+ bool setReportTemplate( const QString &data )
+ {
+ return view -> setReportTemplate( data );
+ }
+
+
+ virtual void setupPrinter( KPrinter &printer );
+ virtual void print( KPrinter &printer );
+
+
+
+ //protected:
+ // virtual bool openFile();
+ // virtual bool closeURL();
+
+
+private:
+ Kugar::MReportViewer *view;
+ QString m_forcedUserTemplate;
+};
+
+#endif