Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Call Libre/MS Office
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "flm_get_content.h"
|
||||
|
||||
class QTemporaryFile;
|
||||
|
||||
namespace FileManagement
|
||||
{
|
||||
|
||||
class OfficeIntegration : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit OfficeIntegration(const FileContent &fileContent, QObject *parent = nullptr);
|
||||
~OfficeIntegration();
|
||||
|
||||
bool openOfficeWindow();
|
||||
QString errorString() const { return m_errorString; }
|
||||
private:
|
||||
bool callWfica();
|
||||
bool callLibreOffice();
|
||||
void startLibreOfficeServer();
|
||||
QString getParas() const;
|
||||
QString buildJdbcString() const;
|
||||
QString getWfIcaUsername() const;
|
||||
|
||||
private:
|
||||
FileManagement::FileContent m_selectedFileContent;
|
||||
QTemporaryFile *m_icaFile{nullptr};
|
||||
QString m_errorString;
|
||||
LOGGER_T m_logger;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user