Files
core/XpsFile/XpsLib/Document.h
Oleg.Korshul b8f1d41eef полностью реализован механизм билда статической и динамической библиотеки
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63675 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:17:54 +03:00

40 lines
1.0 KiB
C++

#ifndef _XPS_XPSLIB_DOCUMENT_H
#define _XPS_XPSLIB_DOCUMENT_H
#include "FontList.h"
#include "Page.h"
#include <map>
#include <vector>
#include "../../DesktopEditor/graphics/IRenderer.h"
#include "../../DesktopEditor/graphics/TemporaryCS.h"
namespace XPS
{
class CPath;
class CStaticResource;
class CDocument
{
public:
CDocument(CFontManager* pFontManager);
~CDocument();
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();
CStaticResource* GetStaticResource(const wchar_t* wsPath);
private:
std::wstring m_wsPath;
std::map<int, XPS::Page*> m_mPages;
CFontList m_oFontList;
CFontManager* m_pFontManager;
std::map<std::wstring, CStaticResource*> m_mStaticResources;
};
}
#endif //_XPS_XPSLIB_DOCUMENT_H