Commit 02cae2f5 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

coding


git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@57637 954022d7-b5bf-4e40-9824-e11837661b57
parent 6058bb4e
......@@ -5,6 +5,82 @@
#include <string>
namespace NSEditorApi
{
class CColorMod
{
private:
std::string m_sName;
int m_nValue;
public:
CColorMod()
{
m_sName = "";
m_nValue = 0;
}
LINK_PROPERTY_STRING(Name)
LINK_PROPERTY_INT(Value)
};
class CAscColor
{
private:
int m_nType; // c_oAscColor_COLOR_TYPE
BYTE m_nR;
BYTE m_nG;
BYTE m_nB;
BYTE m_nA;
bool m_bAuto;
int m_nValue;
int m_nColorSchemeId;
CColorMod* m_pMods;
public:
CAscColor()
{
m_nType = c_oAscColor_COLOR_TYPE_SRGB;
m_nR = 0;
m_nG = 0;
m_nB = 0;
m_nA = 255;
m_bAuto = false;
m_nValue = -1;
m_nColorSchemeId = -1;
m_pMods = NULL;
}
~CAscColor()
{
if (NULL != m_pMods)
delete [] m_pMods;
}
LINK_PROPERTY_INT(Type)
LINK_PROPERTY_BYTE(R)
LINK_PROPERTY_BYTE(G)
LINK_PROPERTY_BYTE(B)
LINK_PROPERTY_BYTE(A)
LINK_PROPERTY_BOOL(Auto)
LINK_PROPERTY_INT(Value)
LINK_PROPERTY_INT(ColorSchemeId)
// эти методы дергает лишь sdk. оно должно следить за удалением само.
CColorMod* GetMods() { return m_pMods; }
void SetMods(CColorMod* pMods) { m_pMods = pMods; }
};
}
namespace NSEditorApi
{
......@@ -188,50 +264,6 @@ public:
LINK_PROPERTY_STRING(Image)
};
class CAscColor
{
private:
int m_nType;
BYTE m_nR;
BYTE m_nG;
BYTE m_nB;
BYTE m_nA;
bool m_bAuto;
int m_nValue;
int m_nColorSchemeId;
void* m_pMods;
public:
CAscColor()
{
m_nType = c_oAscColor_COLOR_TYPE_SRGB;
m_nR = 0;
m_nG = 0;
m_nB = 0;
m_nA = 255;
m_bAuto = false;
m_nValue = -1;
m_nColorSchemeId = -1;
m_pMods = NULL;
}
LINK_PROPERTY_INT(Type)
LINK_PROPERTY_BYTE(R)
LINK_PROPERTY_BYTE(G)
LINK_PROPERTY_BYTE(B)
LINK_PROPERTY_BYTE(A)
LINK_PROPERTY_BOOL(Auto)
LINK_PROPERTY_INT(Value)
LINK_PROPERTY_INT(ColorSchemeId)
};
// fill
class CAscFillSolid
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment