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
34 lines
835 B
C++
34 lines
835 B
C++
#ifndef _XPS_XPSLIB_CONTEXTSTATE_H
|
|
#define _XPS_XPSLIB_CONTEXTSTATE_H
|
|
|
|
#include "../../DesktopEditor/graphics/Matrix.h"
|
|
#include "../../DesktopEditor/graphics/IRenderer.h"
|
|
|
|
#include <list>
|
|
#include <map>
|
|
|
|
namespace XPS
|
|
{
|
|
class CContextState
|
|
{
|
|
public:
|
|
|
|
CContextState();
|
|
~CContextState();
|
|
|
|
void AddFigure(const std::wstring& wsKey, const std::wstring& wsName);
|
|
std::wstring GetFigure(const std::wstring& wsKey);
|
|
void PushTransform(const double arrTransform[6]);
|
|
void PopTransform();
|
|
double NormalizeTransform();
|
|
void SetTransformToRenderer(IRenderer* pRenderer);
|
|
|
|
public:
|
|
|
|
Aggplus::CMatrix m_oCurrentTransform;
|
|
std::list<Aggplus::CMatrix> m_lTransformStack;
|
|
std::map<std::wstring, std::wstring> m_mFigures;
|
|
};
|
|
}
|
|
|
|
#endif //_XPS_XPSLIB_CONTEXTSTATE_H
|