mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-13 19:27:17 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52920 954022d7-b5bf-4e40-9824-e11837661b57
41 lines
820 B
C++
41 lines
820 B
C++
#pragma once
|
|
|
|
namespace ASCDocFileFormat
|
|
{
|
|
union PositionCodeOperand
|
|
{
|
|
private:
|
|
struct
|
|
{
|
|
byte padding:4;
|
|
byte pcVert:2;
|
|
byte pcHorz:2;
|
|
} PositionCodeOperandStruct;
|
|
|
|
byte PositionCodeOperandByte;
|
|
|
|
public:
|
|
PositionCodeOperand():
|
|
PositionCodeOperandByte(0)
|
|
{
|
|
}
|
|
|
|
explicit PositionCodeOperand( byte _pcVert, byte _pcHorz ):
|
|
PositionCodeOperandByte(0)
|
|
{
|
|
this->PositionCodeOperandStruct.padding = 0;
|
|
this->PositionCodeOperandStruct.pcVert = _pcVert;
|
|
this->PositionCodeOperandStruct.pcHorz = _pcHorz;
|
|
}
|
|
|
|
explicit PositionCodeOperand( byte _positionCodeOperand ):
|
|
PositionCodeOperandByte(_positionCodeOperand)
|
|
{
|
|
}
|
|
|
|
operator byte() const
|
|
{
|
|
return this->PositionCodeOperandByte;
|
|
}
|
|
};
|
|
} |