1
/* This file is part of the KDE project
2
Copyright (C) 2002 Montel Laurent <lmontel@mandrakesoft.com>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
Boston, MA 02111-1307, USA.
20
#ifndef __KoImportStyleDia__
21
#define __KoImportStyleDia__
23
#include <kdialogbase.h>
24
#include <qstringlist.h>
30
class KoImportStyleDia : public KDialogBase
34
KoImportStyleDia( const QStringList & _list, QWidget *parent, const char *name );
37
QPtrList<KoStyle> listOfStyleImported()const { return m_styleList;}
39
virtual void slotOk();
42
/** Open file dialog and load the list of styles from the selected doc.
44
virtual void loadFile()=0;
46
void generateStyleList();
47
void updateFollowingStyle(const QString & _name);
49
QString generateStyleName( const QString & templateName );
51
KoStyle *findStyle( const QString & _name);
55
QListBox *m_listStyleName;
56
QPtrList<KoStyle> m_styleList;