wsd: move wopi stub/dummy interface to MobileApp.hpp
Change-Id: I58ac7467c4e74059e4de08c914546614ed6fe883 Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This commit is contained in:
parent
9782e3eea9
commit
062574341f
3 changed files with 36 additions and 31 deletions
|
@ -11,14 +11,15 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if MOBILEAPP
|
||||
|
||||
#include "MobileApp.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
|
||||
#include "Log.hpp"
|
||||
#include "MobileApp.hpp"
|
||||
|
||||
#if MOBILEAPP
|
||||
|
||||
static std::map<unsigned, DocumentData*> idToDocDataMap;
|
||||
static std::mutex idToDocDataMapMutex;
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
|
||||
#include <LibreOfficeKit/LibreOfficeKit.hxx>
|
||||
|
||||
#include <Storage.hpp>
|
||||
|
||||
#ifdef IOS
|
||||
#import "CODocument.h"
|
||||
#import <set>
|
||||
|
@ -59,4 +61,31 @@ public:
|
|||
#endif
|
||||
};
|
||||
|
||||
/// Stub/Dummy WOPI types/interface.
|
||||
class WopiStorage : public StorageBase
|
||||
{
|
||||
public:
|
||||
class WOPIFileInfo : public FileInfo
|
||||
{
|
||||
public:
|
||||
enum class TriState
|
||||
{
|
||||
False,
|
||||
True,
|
||||
Unset
|
||||
};
|
||||
|
||||
std::string getTemplateSource() const { return std::string(); }
|
||||
|
||||
bool getDisablePrint() const { return false; }
|
||||
bool getDisableExport() const { return false; }
|
||||
bool getDisableCopy() const { return false; }
|
||||
bool getEnableOwnerTermination() const { return false; }
|
||||
|
||||
TriState getDisableChangeTrackingShow() const { return TriState::Unset; }
|
||||
TriState getDisableChangeTrackingRecord() const { return TriState::Unset; }
|
||||
TriState getHideChangeTrackingControls() const { return TriState::Unset; }
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -37,34 +37,9 @@
|
|||
#if !MOBILEAPP
|
||||
#include "Admin.hpp"
|
||||
#include <wopi/WopiStorage.hpp>
|
||||
#else
|
||||
//FIXME: Move to a stub file.
|
||||
class WopiStorage : public StorageBase
|
||||
{
|
||||
public:
|
||||
class WOPIFileInfo : public FileInfo
|
||||
{
|
||||
public:
|
||||
enum class TriState
|
||||
{
|
||||
False,
|
||||
True,
|
||||
Unset
|
||||
};
|
||||
|
||||
std::string getTemplateSource() const { return std::string(); }
|
||||
|
||||
bool getDisablePrint() const { return false; }
|
||||
bool getDisableExport() const { return false; }
|
||||
bool getDisableCopy() const { return false; }
|
||||
bool getEnableOwnerTermination() const { return false; }
|
||||
|
||||
TriState getDisableChangeTrackingShow() const { return TriState::Unset; }
|
||||
TriState getDisableChangeTrackingRecord() const { return TriState::Unset; }
|
||||
TriState getHideChangeTrackingControls() const { return TriState::Unset; }
|
||||
};
|
||||
};
|
||||
#endif
|
||||
#else // MOBILEAPP
|
||||
#include <MobileApp.hpp>
|
||||
#endif // MOBILEAPP
|
||||
|
||||
// Forwards.
|
||||
class PrisonerRequestDispatcher;
|
||||
|
|
Loading…
Reference in a new issue