koimportstyledia.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __KoImportStyleDia__
00021 #define __KoImportStyleDia__
00022
00023 #include <kdialogbase.h>
00024 #include <qstringlist.h>
00025 #include <kostyle.h>
00026 class QLineEdit;
00027 class QListBox;
00028 class QPushButton;
00029
00030 class KoImportStyleDia : public KDialogBase
00031 {
00032 Q_OBJECT
00033 public:
00034 KoImportStyleDia( const QStringList & _list, QWidget *parent, const char *name );
00035 ~KoImportStyleDia();
00036
00037 QPtrList<KoStyle> listOfStyleImported()const { return m_styleList;}
00038 protected slots:
00039 virtual void slotOk();
00040 void slotLoadFile();
00041 protected:
00044 virtual void loadFile()=0;
00045
00046 void generateStyleList();
00047 void updateFollowingStyle(const QString & _name);
00048
00049 QString generateStyleName( const QString & templateName );
00050
00051 KoStyle *findStyle( const QString & _name);
00052
00053 void initList();
00054
00055 QListBox *m_listStyleName;
00056 QPtrList<KoStyle> m_styleList;
00057
00058 QStringList m_list;
00059 };
00060
00061 #endif
This file is part of the documentation for lib Library Version 1.3.5.