mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
111 lines
4.1 KiB
C++
111 lines
4.1 KiB
C++
/*
|
|
* (c) Copyright Ascensio System SIA 2010-2018
|
|
*
|
|
* This program is a free software product. You can redistribute it and/or
|
|
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
|
* version 3 as published by the Free Software Foundation. In accordance with
|
|
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
|
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
|
* of any third-party rights.
|
|
*
|
|
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
|
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
|
*
|
|
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
|
* EU, LV-1021.
|
|
*
|
|
* The interactive user interfaces in modified source and object code versions
|
|
* of the Program must display Appropriate Legal Notices, as required under
|
|
* Section 5 of the GNU AGPL version 3.
|
|
*
|
|
* Pursuant to Section 7(b) of the License you must retain the original Product
|
|
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
|
* grant you any rights under trademark law for use of our trademarks.
|
|
*
|
|
* All the Product's GUI elements, including illustrations and icon sets, as
|
|
* well as technical writing content are licensed under the terms of the
|
|
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
|
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
|
*
|
|
*/
|
|
#include "doctrenderer.h"
|
|
#include "docbuilder.h"
|
|
|
|
#ifdef BOOL
|
|
#undef BOOL
|
|
#endif
|
|
|
|
#include <iostream>
|
|
|
|
namespace NSDoctRenderer
|
|
{
|
|
CDocBuilderValue::CDocBuilderValue() {}
|
|
CDocBuilderValue::CDocBuilderValue(const CDocBuilderValue& src) {}
|
|
CDocBuilderValue& CDocBuilderValue::operator=(const CDocBuilderValue& src) { return *this; }
|
|
CDocBuilderValue::~CDocBuilderValue() {}
|
|
void* private_get_internal() { return NULL; }
|
|
|
|
bool CDocBuilderValue::IsEmpty() { return true; }
|
|
void CDocBuilderValue::Clear() {}
|
|
void CDocBuilderValue::FreeString(wchar_t* data) {}
|
|
|
|
bool IsNull() { return false; }
|
|
bool IsUndefined() { return false; }
|
|
int ToInt() { return 0; }
|
|
double ToDouble() { return 0; }
|
|
wchar_t* ToString() { return NULL; }
|
|
CDocBuilderValue CDocBuilderValue::GetProperty(const wchar_t* name) { CDocBuilderValue ret; return ret; }
|
|
}
|
|
|
|
namespace NSDoctRenderer
|
|
{
|
|
CDocBuilder::CDocBuilder() {}
|
|
CDocBuilder::~CDocBuilder() {}
|
|
|
|
int CDocBuilder::OpenFile(const wchar_t* path, const wchar_t* params) { return 0; }
|
|
bool CDocBuilder::CreateFile(const int& type) { return false; }
|
|
void CDocBuilder::SetTmpFolder(const wchar_t* folder) {}
|
|
int CDocBuilder::SaveFile(const int& type, const wchar_t* path, const wchar_t* params) { return 0; }
|
|
void CDocBuilder::CloseFile() {}
|
|
bool CDocBuilder::ExecuteCommand(const wchar_t* command, CDocBuilderValue* retValue) { return false; }
|
|
|
|
bool CDocBuilder::Run(const wchar_t* path) { return false; }
|
|
|
|
bool CDocBuilder::RunTextW(const wchar_t* commands) { return false; }
|
|
bool CDocBuilder::RunTextA(const char* commands) { return false; }
|
|
|
|
void CDocBuilder::SetProperty(const char* param, const wchar_t* value) {}
|
|
void CDocBuilder::SetPropertyW(const wchar_t* param, const wchar_t* value) {}
|
|
|
|
void CDocBuilder::WriteData(const wchar_t* path, const wchar_t* value, const bool& append) {}
|
|
bool CDocBuilder::IsSaveWithDoctrendererMode() { return false; }
|
|
|
|
char* CDocBuilder::GetVersion() { return "0.0"; }
|
|
|
|
void CDocBuilder::Initialize() {}
|
|
void CDocBuilder::Dispose() {}
|
|
}
|
|
|
|
namespace NSDoctRenderer
|
|
{
|
|
CDoctrenderer::CDoctrenderer(const std::wstring& sAllFontsPath) {}
|
|
|
|
CDoctrenderer::~CDoctrenderer() {}
|
|
|
|
void CDoctrenderer::LoadConfig(const std::wstring& sConfigDir, const std::wstring& sAllFontsPath)
|
|
{
|
|
}
|
|
|
|
bool CDoctrenderer::Execute(const std::wstring& strXml, std::wstring& strError)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
std::vector<std::wstring> CDoctrenderer::GetImagesInChanges()
|
|
{
|
|
std::vector<std::wstring> stub;
|
|
return stub;
|
|
}
|
|
}
|