mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
28 lines
796 B
C++
28 lines
796 B
C++
#include "CtrlShapeConnectLine.h"
|
|
|
|
namespace HWP
|
|
{
|
|
EConnectLineType GetConnectLineType(int nValue)
|
|
{
|
|
switch(static_cast<EConnectLineType>(nValue))
|
|
{
|
|
case EConnectLineType::STRAIGHT_NOARROW:
|
|
case EConnectLineType::STRAIGHT_ONEWAY:
|
|
case EConnectLineType::STRAIGHT_BOTH:
|
|
case EConnectLineType::STROKE_NOARROW:
|
|
case EConnectLineType::STROKE_ONEWAY:
|
|
case EConnectLineType::STROKE_BOTH:
|
|
case EConnectLineType::ARC_NOARROW:
|
|
case EConnectLineType::ARC_ONEWAY:
|
|
case EConnectLineType::ARC_BOTH:
|
|
return static_cast<EConnectLineType>(nValue);
|
|
default:
|
|
return EConnectLineType::null;
|
|
}
|
|
}
|
|
|
|
CCtrlShapeConnectLine::CCtrlShapeConnectLine(const STRING& sCtrlID, int nSize, CHWPStream& oBuffer, int nOff, int nVersion)
|
|
: CCtrlGeneralShape(sCtrlID, nSize, oBuffer, nOff, nVersion)
|
|
{}
|
|
}
|