Files
qt5-legatus-legacy/Lts/Plugins/FileManagement/Gui/Explorer/flm_office_integration.h
T
2026-08-13 18:33:10 +02:00

43 lines
800 B
C++
Executable File

/**
* @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;
};
}