Files
core/ASCOfficeOdtFile/Source/Common/Index.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

89 lines
1.0 KiB
C++

// auto inserted precompiled begin
#include "precompiled_common.h"
// auto inserted precompiled end
#include "Index.h"
namespace Common
{
Index::Index()
: m_type(normal)
{
}
const Index::Type Index::type() const
{
return m_type;
}
const Index Index::Super()
{
return Index(super);
}
const Index Index::Normal()
{
return Index(normal);
}
const Index Index::Sub()
{
return Index(sub);
}
const bool Index::isSuper() const
{
return m_type == super;
}
const bool Index::isNormal() const
{
return m_type == normal;
}
const bool Index::isSub() const
{
return m_type == sub;
}
void Index::setSuper()
{
m_type = super;
}
void Index::setNormal()
{
m_type = normal;
}
void Index::setSub()
{
m_type = sub;
}
Index::Index(const Index::Type type)
: m_type(type)
{
}
void Index::fromBase(const Index& index)
{
m_type = index.m_type;
}
} // namespace Common