MagicSmoke  $VERSION$
office.h
Go to the documentation of this file.
1 //
2 // C++ Interface: office
3 //
4 // Description: Wrapper and Config Dialog around OpenOffice.org
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2008-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_OFFICE_H
14 #define MAGICSMOKE_OFFICE_H
15 
16 #include <QString>
17 
19 void openOfficeFile(QString fname);
20 
22 void printOfficeFile(QString fname);
23 
26 QString convertOfficeFilePdf(QString fname);
27 
28 #include <QDialog>
29 
30 #include "commonexport.h"
31 
32 class QComboBox;
33 class QCheckBox;
34 class QLineEdit;
35 
38 {
39  Q_OBJECT
40  public:
41  MOfficeConfig(QWidget*);
42 
43  private slots:
44  void savedata();
45  void selectpath();
46  private:
47  QComboBox*printer;
48  QCheckBox*viewonly,*doopen,*askprint,*saveprint;
49  QLineEdit*oopath;
50 };
51 
52 
53 #endif
#define MAGICSMOKE_COMMON_EXPORT
Definition: commonexport.h:7
QString convertOfficeFilePdf(QString fname)
calls OpenOffice.org to convert an ODF file to PDF; returns the PDF file name on success, empty string on failure
Definition: office.cpp:104
configuration dialog for OpenOffice access
Definition: office.h:37
void printOfficeFile(QString fname)
calls OpenOffice.org to print an ODF file
Definition: office.cpp:80
void openOfficeFile(QString fname)
calls OpenOffice.org to open an ODF file
Definition: office.cpp:37