mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 02:44:13 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63449 954022d7-b5bf-4e40-9824-e11837661b57
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
#ifndef _XPS_XPSLIB_CONTEXTSTATE_H
|
|
#define _XPS_XPSLIB_CONTEXTSTATE_H
|
|
|
|
#include "Utils.h"
|
|
|
|
#include "../../DesktopEditor/graphics/Matrix.h"
|
|
#include "../../DesktopEditor/graphics/IRenderer.h"
|
|
|
|
#include <list>
|
|
#include <map>
|
|
|
|
namespace XPS
|
|
{
|
|
class CContextState
|
|
{
|
|
public:
|
|
|
|
CContextState(IRenderer* pRenderer);
|
|
~CContextState();
|
|
|
|
void PushOpacity(const double& dOpacity);
|
|
void PopOpacity();
|
|
double GetCurrentOpacity();
|
|
void PushClip(const CWString& wsClip);
|
|
void PopClip();
|
|
void PushTransform(const double arrTransform[6]);
|
|
void PopTransform();
|
|
double NormalizeTransform();
|
|
|
|
private:
|
|
|
|
void SetClipToRenderer(const CWString& wsClip);
|
|
void SetTransformToRenderer();
|
|
|
|
private:
|
|
|
|
Aggplus::CMatrix m_oCurrentTransform;
|
|
std::list<Aggplus::CMatrix> m_lTransformStack;
|
|
std::vector<CWString> m_vClipStack;
|
|
IRenderer* m_pRenderer;
|
|
std::vector<double> m_vOpacity;
|
|
double m_dCurOpacity;
|
|
};
|
|
}
|
|
|
|
#endif //_XPS_XPSLIB_CONTEXTSTATE_H
|