summaryrefslogtreecommitdiffstats
path: root/kchart/kchart_factory.cc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-05-23 20:48:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-05-29 15:16:28 +0900
commit8b78a8791bc539bcffe7159f9d9714d577cb3d7d (patch)
tree1328291f966f19a22d7b13657d3f01a588eb1083 /kchart/kchart_factory.cc
parent95834e2bdc5e01ae1bd21ac0dfa4fa1d2417fae9 (diff)
downloadkoffice-8b78a8791bc539bcffe7159f9d9714d577cb3d7d.tar.gz
koffice-8b78a8791bc539bcffe7159f9d9714d577cb3d7d.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kchart/kchart_factory.cc')
-rw-r--r--kchart/kchart_factory.cc82
1 files changed, 0 insertions, 82 deletions
diff --git a/kchart/kchart_factory.cc b/kchart/kchart_factory.cc
deleted file mode 100644
index 05362738..00000000
--- a/kchart/kchart_factory.cc
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * $Id: kchart_factory.cc 483001 2005-11-24 18:27:18Z dfaure $
- *
- * Kalle Dalheimer <kalle@kde.org>
- */
-
-
-#include "kchart_factory.h"
-#include "kchart_aboutdata.h"
-#include "kchart_part.h"
-#include <tdelocale.h>
-#include <kinstance.h>
-#include <kdebug.h>
-#include <kiconloader.h>
-#include <kstandarddirs.h>
-
-namespace KChart
-{
-
-TDEInstance *KChartFactory::s_global = 0;
-TDEAboutData *KChartFactory::s_aboutData = 0;
-
-
-KChartFactory::KChartFactory( TQObject* parent, const char* name )
- : KoFactory( parent, name )
-{
- global();
-}
-
-
-KChartFactory::~KChartFactory()
-{
- delete s_aboutData;
- s_aboutData = 0;
- delete s_global;
- s_global = 0;
-}
-
-
-KParts::Part* KChartFactory::createPartObject( TQWidget *parentWidget,
- const char *widgetName,
- TQObject* parent,
- const char* name,
- const char *classname,
- const TQStringList & )
-{
- bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 );
-
- KChartPart *part = new KChartPart( parentWidget, widgetName, parent, name,
- !bWantKoDocument );
-
- if ( !bWantKoDocument )
- part->setReadWrite( false );
-
- return part;
-}
-
-
-TDEAboutData* KChartFactory::aboutData()
-{
- if( !s_aboutData )
- s_aboutData = newKChartAboutData();
- return s_aboutData;
-}
-
-
-TDEInstance* KChartFactory::global()
-{
- if ( !s_global )
- {
- s_global = new TDEInstance(aboutData());
- s_global->dirs()->addResourceType( "kchart_template",
- TDEStandardDirs::kde_default("data") + "kchart/templates/");
- // Tell the iconloader about share/apps/koffice/icons
- s_global->iconLoader()->addAppDir("koffice");
- }
- return s_global;
-}
-
-} //namespace KChart
-
-#include <kchart_factory.moc>