Files
core/ASCOfficeOdtFile/Source/Common/Wrap.cpp
Elen.Subbotina 6138139c4e исправлен проект - подключен "старый" DocxFormat (тот который с AVS - без вытирания буста)
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:37:54 +03:00

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