macro.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KOMACRO_MACRO_H
00021 #define KOMACRO_MACRO_H
00022
00023 #include <qobject.h>
00024 #include <ksharedptr.h>
00025
00026 #include "action.h"
00027 #include "xmlhandler.h"
00028
00029 namespace KoMacro {
00030
00031
00032 class Manager;
00033 class MacroItem;
00034 class Context;
00035
00041 class KOMACRO_EXPORT Macro
00042 : public QObject
00043 , public KShared
00044 , public XMLHandler
00045 {
00046 Q_OBJECT
00047
00048 public:
00049
00055 typedef QMap<QString, KSharedPtr<Macro > > Map;
00056
00063 explicit Macro(const QString& name);
00064
00068 virtual ~Macro();
00069
00073 const QString name() const;
00074
00078 void setName(const QString& name);
00079
00083 virtual const QString toString() const;
00084
00089 QValueList< KSharedPtr<MacroItem> >& items() const;
00090
00095 void addItem(KSharedPtr<MacroItem> item);
00096
00100 void clearItems();
00101
00109
00110
00111 public slots:
00112
00119 virtual KSharedPtr<Context> execute(QObject* sender);
00120
00121 private:
00123 class Private;
00125 Private* const d;
00126 };
00127
00128 }
00129
00130 #endif
This file is part of the documentation for Kexi 2.0 alpha.