Files
core/XpsFile/XpsLib/Folder.h
Ilya.Kirillov 5cce624d49 Добавлен кроссплатформенный XpsFile.
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62681 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:05:42 +03:00

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