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@53593 954022d7-b5bf-4e40-9824-e11837661b57
107 lines
1.2 KiB
C++
107 lines
1.2 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_common.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Wrap.h"
|
|
|
|
|
|
namespace Common
|
|
{
|
|
|
|
Wrap::Wrap()
|
|
: m_type(square)
|
|
{
|
|
}
|
|
|
|
|
|
const Wrap::Type Wrap::type() const
|
|
{
|
|
return m_type;
|
|
}
|
|
|
|
|
|
const Wrap Wrap::Square()
|
|
{
|
|
return Wrap(square);
|
|
}
|
|
|
|
|
|
const Wrap Wrap::Tight()
|
|
{
|
|
return Wrap(tight);
|
|
}
|
|
|
|
|
|
const Wrap Wrap::TopAndBottom()
|
|
{
|
|
return Wrap(topAndBottom);
|
|
}
|
|
|
|
|
|
const Wrap Wrap::None()
|
|
{
|
|
return Wrap(none);
|
|
}
|
|
|
|
|
|
const bool Wrap::isSquare() const
|
|
{
|
|
return m_type == square;
|
|
}
|
|
|
|
|
|
const bool Wrap::isTight() const
|
|
{
|
|
return m_type == tight;
|
|
}
|
|
|
|
|
|
const bool Wrap::isTopAndBottom() const
|
|
{
|
|
return m_type == topAndBottom;
|
|
}
|
|
|
|
|
|
const bool Wrap::isNone() const
|
|
{
|
|
return m_type == none;
|
|
}
|
|
|
|
|
|
void Wrap::setSquare()
|
|
{
|
|
m_type = square;
|
|
}
|
|
|
|
|
|
void Wrap::setTight()
|
|
{
|
|
m_type = tight;
|
|
}
|
|
|
|
|
|
void Wrap::setTopAndBottom()
|
|
{
|
|
m_type = topAndBottom;
|
|
}
|
|
|
|
|
|
void Wrap::setNone()
|
|
{
|
|
m_type = none;
|
|
}
|
|
|
|
|
|
Wrap::Wrap(const Wrap::Type type)
|
|
: m_type(type)
|
|
{
|
|
}
|
|
|
|
|
|
void Wrap::fromBase(const Wrap& wrap)
|
|
{
|
|
m_type = wrap.m_type;
|
|
}
|
|
|
|
} // namespace Common
|