mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62606 954022d7-b5bf-4e40-9824-e11837661b57
30 lines
993 B
C++
30 lines
993 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include "../DesktopEditor/graphics/IRenderer.h"
|
|
|
|
|
|
// Ðàáîòàåì ÷åðåç êëàññ CDjVuFileImplementation, ÷òîáû êîãäà öåïëÿëñÿ äàííûé h-ôàéë, íè÷åãî ëèøíåãî íå èíêëþäèëîñü
|
|
class CDjVuFileImplementation;
|
|
class CApplicationFonts;
|
|
|
|
class 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);
|
|
}; |