From 7290d409ded081162638071fc24ede775c237b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 26 Nov 2019 03:41:03 +0100 Subject: Fix building KOffice plugin. This resolves issue #4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko Signed-off-by: gregory guy (cherry picked from commit 9bf530c039a22017658d04de1080885b8adc5639) --- src/kmplayer_koffice_part.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/kmplayer_koffice_part.cpp') diff --git a/src/kmplayer_koffice_part.cpp b/src/kmplayer_koffice_part.cpp index 55faaa2..61e9876 100644 --- a/src/kmplayer_koffice_part.cpp +++ b/src/kmplayer_koffice_part.cpp @@ -53,7 +53,7 @@ #include #include #include -#include +#include class KMPlayerFactory : public KParts::Factory { public: @@ -94,7 +94,7 @@ KParts::Part *KMPlayerFactory::createPartObject KOfficeMPlayer::KOfficeMPlayer (TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, bool singleViewMode) : KoDocument (parentWidget, widgetName, parent, name, singleViewMode), m_config (new TDEConfig ("kmplayerrc")), - m_player (new KMPlayer (parentWidget, 0L, 0L, 0L, m_config)) + m_player (new KMPlayer::PartBase (parentWidget, 0L, 0L, 0L, m_config)) { setInstance (KMPlayerFactory::instance (), false); setReadWrite (false); @@ -111,7 +111,7 @@ void KOfficeMPlayer::paintContent (TQPainter& p, const TQRect& r, bool, double, p.fillRect (r, TQBrush (TQColor (0, 0, 0))); } -bool KOfficeMPlayer::initDoc() { +bool KOfficeMPlayer::initDoc(InitDocFlags flags, TQWidget* parentWidget) { kdDebug() << "KOfficeMPlayer::initDoc" << endl; return true; } @@ -133,6 +133,11 @@ bool KOfficeMPlayer::loadOasis (const TQDomDocument &, KoOasisStyles &, const TQ return true; } +bool KOfficeMPlayer::saveOasis( KoStore* store, KoXmlWriter* manifestWriter ) +{ + return true; +} + TQDomDocument KOfficeMPlayer::saveXML() { TQDomDocument doc = createDomDocument ("kmplayer", TQString::number(1.0)); TQDomElement docelm = doc.documentElement(); -- cgit v1.2.1