mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 03:46:15 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
71 lines
965 B
C++
71 lines
965 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_common.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Position.h"
|
|
|
|
|
|
namespace Common
|
|
{
|
|
|
|
Position::Position()
|
|
: m_type(foreground)
|
|
{
|
|
}
|
|
|
|
|
|
const Position::Type Position::type() const
|
|
{
|
|
return m_type;
|
|
}
|
|
|
|
|
|
const Position Position::Background()
|
|
{
|
|
return Position(background);
|
|
}
|
|
|
|
|
|
const Position Position::Foreground()
|
|
{
|
|
return Position(foreground);
|
|
}
|
|
|
|
|
|
const bool Position::isBackground() const
|
|
{
|
|
return m_type == background;
|
|
}
|
|
|
|
|
|
const bool Position::isForeground() const
|
|
{
|
|
return m_type == foreground;
|
|
}
|
|
|
|
|
|
void Position::setBackground()
|
|
{
|
|
m_type = background;
|
|
}
|
|
|
|
|
|
void Position::setForeground()
|
|
{
|
|
m_type = foreground;
|
|
}
|
|
|
|
|
|
Position::Position(const Position::Type type)
|
|
: m_type(type)
|
|
{
|
|
}
|
|
|
|
|
|
void Position::fromBase(const Position& position)
|
|
{
|
|
m_type = position.m_type;
|
|
}
|
|
|
|
} // namespace Common
|