mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 10:07:28 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63673 954022d7-b5bf-4e40-9824-e11837661b57
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include "../DesktopEditor/graphics/IRenderer.h"
|
|
|
|
#ifndef DJVU_USE_DYNAMIC_LIBRARY
|
|
#define DJVU_DECL_EXPORT
|
|
#else
|
|
#include "../DesktopEditor/common/base_export.h"
|
|
#define DJVU_DECL_EXPORT Q_DECL_EXPORT
|
|
#endif
|
|
|
|
// –аботаем через класс CDjVuFileImplementation, чтобы когда цепл¤лс¤ данный h-файл, ничего лишнего не инклюдилось
|
|
class CDjVuFileImplementation;
|
|
class CApplicationFonts;
|
|
|
|
class DJVU_DECL_EXPORT CDjVuFile
|
|
{
|
|
private:
|
|
|
|
CDjVuFileImplementation* m_pImplementation;
|
|
|
|
public:
|
|
|
|
CDjVuFile();
|
|
~CDjVuFile();
|
|
|
|
bool LoadFromFile(const std::wstring& wsSrcFileName, const std::wstring& wsXmlOptions = L"");
|
|
void Close();
|
|
std::wstring GetTempDirectory() const;
|
|
void SetTempDirectory(const std::wstring& wsDirectory);
|
|
int GetPagesCount() const;
|
|
void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY) const;
|
|
void DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pBreak);
|
|
void ConvertToRaster(CApplicationFonts* pAppFonts, int nPageIndex, const std::wstring& wsDstPath, int nImageType);
|
|
void ConvertToPdf(CApplicationFonts* pAppFonts, const std::wstring& wsDstPath);
|
|
};
|