summaryrefslogtreecommitdiffstats
path: root/part/kxmleditorfactory.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-03-26 13:50:43 +0100
committerSlávek Banko <[email protected]>2016-03-26 13:50:43 +0100
commitd62c8c002c51fb7c36487839eeeb4ac89f044dee (patch)
treebb4d1f5c631ab1f22a3018ba39e6a806035f80fd /part/kxmleditorfactory.h
downloadkxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.tar.gz
kxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.zip
Initial import of kxmleditor 1.1.4
Diffstat (limited to 'part/kxmleditorfactory.h')
-rw-r--r--part/kxmleditorfactory.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/part/kxmleditorfactory.h b/part/kxmleditorfactory.h
new file mode 100644
index 0000000..b2c5e15
--- /dev/null
+++ b/part/kxmleditorfactory.h
@@ -0,0 +1,55 @@
+/***************************************************************************
+ kxmleditorfactory.h - description
+ -------------------
+ begin : Wed Sep 19 2001
+ copyright : (C) 2001, 2002, 2003 by The KXMLEditor Team
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+ /**
+@file
+*/
+
+#ifndef KXMLEDITORFACTORY_H
+#define KXMLEDITORFACTORY_H
+
+#include <kparts/factory.h>
+
+class KInstance;
+class KXEConfiguration;
+/**
+ @brief Factory for creating our parts.
+*/
+class KXMLEditorFactory : public KParts::Factory
+{
+ Q_OBJECT
+
+ public:
+ /** @brief Constructor */
+ KXMLEditorFactory( QObject * pParent = 0, const char * pszName = 0 );
+ /** @brief Destructor */
+ virtual ~KXMLEditorFactory();
+
+ /** @short Creates part object, depending on given part class */
+ virtual KParts::Part * createPartObject( QWidget * pParentWidget = 0, const char * pszWidgetName = 0, QObject * pParent = 0, const char * pszName = 0, const char * pszClassName = "KParts::Part", const QStringList & args = QStringList() );
+
+ static KInstance * instance();
+ static KXEConfiguration * configuration();
+
+ private:
+ static KInstance * s_instance;
+
+ /** @brief Our configuration - the same for all parts. */
+ static KXEConfiguration * s_pKXEConfig;
+};
+
+#endif