lateximportdia.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Robert JACOLIN <rjacolin@ifrance.com>
3
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.
8
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.
13
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., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20/*
21 This file is based on the file :
22 koffice/filters/kword/html/htmlexportdia.h
23 Copyright (C) 2001 Nicolas Goutte <goutte@kde.org>
24
25 which was based on the old file:
26 /home/kde/koffice/filters/kspread/csv/csvfilterdia.h
27
28 The old file was copyrighted by
29 Copyright (C) 1999 David Faure <faure@kde.org>
30
31 The old file was licensed under the terms of the GNU Library General Public
32 License version 2.
33*/
34
35#ifndef __LATEXIMPORTDIA_H__
36#define __LATEXIMPORTDIA_H__
37
38#include <tqwidget.h>
39#include <tqlabel.h>
40#include <tqlayout.h>
41#include <tqradiobutton.h>
42#include <tqvbuttongroup.h>
43
44#include <tdelocale.h>
45#include <dcopobject.h>
46
47#include <kdialogbase.h>
48#include <kdebug.h>
49#include <KoStore.h>
50
51class LATEXImportDia : public KDialogBase, public DCOPObject
52{
53 K_DCOP
54
55 TQ_OBJECT
56
57
58 TQString _fileIn;
59 TQByteArray _arrayIn;
60 KoStore* _out; /* the zipped file containing all pictures, part, ... */
61
62 public:
63 LATEXImportDia(KoStore*, TQWidget *parent=0L, const char *name=0L);
64
65 virtual ~LATEXImportDia() {}
66 void createDialog();
67
68 virtual void state();
69 void setInputFile(TQString file) { _fileIn = file; }
70 //void setOutputFile(TQString file) { _fileOut = file; }
71
72 private:
73 TQVButtonGroup* styleBox, *langBox, *docBox;
74 TQRadioButton* latexStyleRBtn, *kwordStyleRBtn; /* Document style */
75 TQRadioButton* unicodeRBtn, *latin1RBtn; /* Language */
76 TQRadioButton* newDocRBtn, *embededRBtn; /* Latex file */
77
78 k_dcop:
79 void useDefaultConfig() { slotOk(); }
80
81 public slots:
82 virtual void slotOk();
83};
84
85#endif /* __LATEXIMPORTDIA_H__ */
86