KOffice – TDE office suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.7KB

  1. /* This file is part of the KDE project
  2. Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public License
  12. along with this library; see the file COPYING.LIB. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. * Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef KSPREAD_FACTORY_H
  17. #define KSPREAD_FACTORY_H
  18. #include <KoFactory.h>
  19. class TDEAboutData;
  20. class DCOPObject;
  21. namespace KSpread
  22. {
  23. class Factory : public KoFactory
  24. {
  25. Q_OBJECT
  26. public:
  27. Factory( TQObject* parent = 0, const char* name = 0 );
  28. ~Factory();
  29. virtual KParts::Part *createPartObject( TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0, const char *classname = "KoDocument", const TQStringList &args = TQStringList() );
  30. static TDEInstance* global();
  31. // _Creates_ a TDEAboutData but doesn't keep ownership
  32. static TDEAboutData* aboutData();
  33. static DCOPObject* dcopObject();
  34. private:
  35. static TDEInstance* s_global;
  36. static DCOPObject* s_dcopObject;
  37. static TDEAboutData* s_aboutData;
  38. };
  39. } // namespace KSpread
  40. #endif