mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-21 02:22:41 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62681 954022d7-b5bf-4e40-9824-e11837661b57
39 lines
902 B
C++
39 lines
902 B
C++
#ifndef _XPS_XPSLIB_FOLDER_H
|
|
#define _XPS_XPSLIB_FOLDER_H
|
|
|
|
#include "FontList.h"
|
|
#include "Page.h"
|
|
#include <map>
|
|
|
|
#define UNICODE
|
|
#define _UNICODE
|
|
#define _USE_LIBXML2_READER_
|
|
#define LIBXML_READER_ENABLED
|
|
|
|
#include "../../DesktopEditor/graphics/IRenderer.h"
|
|
#include "../../DesktopEditor/graphics/TemporaryCS.h"
|
|
|
|
namespace XPS
|
|
{
|
|
class Folder
|
|
{
|
|
public:
|
|
Folder(CFontManager* pFontManager);
|
|
~Folder();
|
|
|
|
bool ReadFromPath(const std::wstring& wsPath);
|
|
int GetPageCount() const;
|
|
void GetPageSize(int nPageIndex, int& nW, int& nH);
|
|
void DrawPage(int nPageIndex, IRenderer* pRenderer, bool* pbBreak);
|
|
void Close();
|
|
|
|
private:
|
|
|
|
std::wstring m_wsPath;
|
|
std::map<int, XPS::Page*> m_mPages;
|
|
CFontList m_oFontList;
|
|
CFontManager* m_pFontManager;
|
|
};
|
|
}
|
|
|
|
#endif //_XPS_XPSLIB_FOLDER_H
|