diff options
Diffstat (limited to 'src/kmplayer_koffice_part.h')
-rw-r--r-- | src/kmplayer_koffice_part.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/kmplayer_koffice_part.h b/src/kmplayer_koffice_part.h index cae4250..5a68560 100644 --- a/src/kmplayer_koffice_part.h +++ b/src/kmplayer_koffice_part.h @@ -25,8 +25,8 @@ #include <tdeparts/factory.h> #include <kurl.h> #ifdef HAVE_KOFFICE -#include <koDocument.h> -#include <koView.h> +#include <KoDocument.h> +#include <KoView.h> #endif //HAVE_KOFFICE #include <tqobject.h> #include <tqvaluelist.h> @@ -39,10 +39,12 @@ class TDEProcess; class TDEAboutData; -class KMPlayer; class TDEInstance; class TDEConfig; class TQIODevice; +namespace KMPlayer { + class PartBase; +} #ifdef HAVE_KOFFICE class KOfficeMPlayer; @@ -64,22 +66,23 @@ class KOfficeMPlayer : public KoDocument { public: KOfficeMPlayer (TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject* parent = 0, const char* name = 0, bool singleViewMode = false); - ~KOfficeMPlayer (); + virtual ~KOfficeMPlayer (); virtual void paintContent (TQPainter& painter, const TQRect& rect, bool transparent = false, double zoomX = 1.0, double zoomY = 1.0); - virtual bool initDoc (); + virtual bool initDoc (InitDocFlags flags, TQWidget* parentWidget=0); virtual bool loadXML (TQIODevice *, const TQDomDocument &); virtual bool loadOasis (const TQDomDocument &, KoOasisStyles &, const TQDomDocument &, KoStore *); + virtual bool saveOasis( KoStore *store, KoXmlWriter *manifestWriter ); virtual TQDomDocument saveXML (); virtual TQCString mimeType() const { return "application/x-kmplayer"; } - KMPlayer * player () const { return m_player; } + KMPlayer::PartBase * player () const { return m_player; } protected: virtual KoView* createViewInstance (TQWidget* parent, const char* name); private: TDEConfig * m_config; - KMPlayer * m_player; + KMPlayer::PartBase * m_player; KOfficeMPlayerView * m_view; }; #endif //HAVE_KOFFICE |