diff options
author | Slávek Banko <[email protected]> | 2019-11-26 03:41:03 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-04-06 12:31:03 +0200 |
commit | 7290d409ded081162638071fc24ede775c237b84 (patch) | |
tree | 9759d82160477434e22e134467046e84fe1e8b18 /src/kmplayer_koffice_part.cpp | |
parent | c8e807efb15be505af98066b8d56d052ed6ba4ca (diff) | |
download | kmplayer-7290d409ded081162638071fc24ede775c237b84.tar.gz kmplayer-7290d409ded081162638071fc24ede775c237b84.zip |
Fix building KOffice plugin.
This resolves issue #4.
Signed-off-by: Slávek Banko <[email protected]>
Signed-off-by: gregory guy <[email protected]>
(cherry picked from commit 9bf530c039a22017658d04de1080885b8adc5639)
Diffstat (limited to 'src/kmplayer_koffice_part.cpp')
-rw-r--r-- | src/kmplayer_koffice_part.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
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 <tqlayout.h> #include <tqptrlist.h> #include <tqpainter.h> -#include <koFrame.h> +#include <KoFrame.h> 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(); |