mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
38 lines
734 B
C++
38 lines
734 B
C++
#pragma once
|
|
|
|
namespace ASCDocFileFormat
|
|
{
|
|
union Shd80
|
|
{
|
|
private:
|
|
struct
|
|
{
|
|
unsigned char icoFore:5;
|
|
unsigned char icoBack:5;
|
|
unsigned char ipat:6;
|
|
} Shd80Struct;
|
|
unsigned short Shd80UnsignedShort;
|
|
|
|
public:
|
|
Shd80():
|
|
Shd80UnsignedShort(0)
|
|
{
|
|
Shd80Struct.icoFore = 0x1F;
|
|
Shd80Struct.icoBack = 0x1F;
|
|
Shd80Struct.ipat = 0x3F;
|
|
}
|
|
|
|
explicit Shd80( unsigned char _icoFore, unsigned char _icoBack, unsigned char _ipat ):
|
|
Shd80UnsignedShort(0)
|
|
{
|
|
Shd80Struct.icoFore = _icoFore;
|
|
Shd80Struct.icoBack = _icoBack;
|
|
Shd80Struct.ipat = _ipat;
|
|
}
|
|
|
|
operator unsigned short() const
|
|
{
|
|
return this->Shd80UnsignedShort;
|
|
}
|
|
};
|
|
} |