Changeset View
Changeset View
Standalone View
Standalone View
karbon/ui/KarbonPart.h
Show All 33 Lines | |||||
34 | 34 | | |||
35 | #include <KoPart.h> | 35 | #include <KoPart.h> | ||
36 | 36 | | |||
37 | #include "karbonui_export.h" | 37 | #include "karbonui_export.h" | ||
38 | 38 | | |||
39 | class KoView; | 39 | class KoView; | ||
40 | class KoDocument; | 40 | class KoDocument; | ||
41 | 41 | | |||
42 | class KarbonCanvas; | | |||
43 | | ||||
44 | class KARBONUI_EXPORT KarbonPart : public KoPart | 42 | class KARBONUI_EXPORT KarbonPart : public KoPart | ||
45 | { | 43 | { | ||
46 | Q_OBJECT | 44 | Q_OBJECT | ||
47 | 45 | | |||
48 | public: | 46 | public: | ||
49 | explicit KarbonPart(QObject *parent); | 47 | explicit KarbonPart(QObject *parent); | ||
50 | 48 | | |||
51 | virtual ~KarbonPart(); | 49 | virtual ~KarbonPart(); | ||
52 | 50 | | |||
53 | void setDocument(KoDocument *document); | | |||
54 | | ||||
55 | /// reimplemented | 51 | /// reimplemented | ||
56 | virtual KoView *createViewInstance(KoDocument *document, QWidget *parent); | 52 | virtual KoView *createViewInstance(KoDocument *document, QWidget *parent); | ||
57 | /// reimplemented | 53 | /// reimplemented | ||
58 | virtual KoMainWindow *createMainWindow(); | 54 | virtual KoMainWindow *createMainWindow(); | ||
59 | 55 | | |||
60 | protected Q_SLOTS: | 56 | protected Q_SLOTS: | ||
61 | | ||||
62 | /// reimplemented | 57 | /// reimplemented | ||
63 | virtual void openTemplate(const QUrl& url); | 58 | virtual void openTemplate(const QUrl& url); | ||
64 | | ||||
65 | private Q_SLOTS: | | |||
66 | | ||||
67 | void applyCanvasConfiguration(KarbonCanvas *canvas); | | |||
68 | }; | 59 | }; | ||
69 | 60 | | |||
70 | #endif | 61 | #endif |