mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-13 20:23:37 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
89 lines
1.0 KiB
C++
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
|