filters

lateximportdia.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Robert JACOLIN <rjacolin@ifrance.com>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 /*
00021    This file is based on the file :
00022     koffice/filters/kword/html/htmlexportdia.h
00023     Copyright (C) 2001 Nicolas Goutte <goutte@kde.org>
00024 
00025    which was based on the old file:
00026     /home/kde/koffice/filters/kspread/csv/csvfilterdia.h
00027 
00028    The old file was copyrighted by
00029     Copyright (C) 1999 David Faure <faure@kde.org>
00030 
00031    The old file was licensed under the terms of the GNU Library General Public
00032    License version 2.
00033 */
00034 
00035 #ifndef __LATEXIMPORTDIA_H__
00036 #define __LATEXIMPORTDIA_H__
00037 
00038 #include <qwidget.h>
00039 #include <qlabel.h>
00040 #include <qlayout.h>
00041 #include <qradiobutton.h>
00042 #include <qvbuttongroup.h>
00043 
00044 #include <klocale.h>
00045 #include <dcopobject.h>
00046 
00047 #include <kdialogbase.h>
00048 #include <kdebug.h>
00049 #include <KoStore.h>
00050 
00051 class LATEXImportDia : public KDialogBase, public DCOPObject
00052 {
00053     K_DCOP
00054     
00055     Q_OBJECT
00056     
00057     QString _fileIn;
00058     QByteArray _arrayIn;
00059     KoStore* _out;  /* the zipped file containing all pictures, part, ... */
00060 
00061     public:
00062         LATEXImportDia(KoStore*, QWidget *parent=0L, const char *name=0L);
00063 
00064         virtual ~LATEXImportDia() {}
00065         void createDialog();
00066 
00067         virtual void state();
00068         void setInputFile(QString file)  { _fileIn = file; }
00069         //void setOutputFile(QString file) { _fileOut = file; }
00070 
00071     private:
00072         QVButtonGroup* styleBox,       *langBox,        *docBox;
00073         QRadioButton*  latexStyleRBtn, *kwordStyleRBtn; /* Document style */
00074         QRadioButton*  unicodeRBtn,    *latin1RBtn;     /* Language       */
00075         QRadioButton*  newDocRBtn,     *embededRBtn;    /* Latex file     */
00076     
00077     k_dcop:
00078         void useDefaultConfig() { slotOk(); }
00079 
00080     public slots:
00081         virtual void slotOk();
00082 };
00083 
00084 #endif /* __LATEXIMPORTDIA_H__ */
00085 
KDE Home | KDE Accessibility Home | Description of Access Keys