mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 15:49:49 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
43 lines
676 B
C++
43 lines
676 B
C++
#pragma once
|
|
#ifndef COMMON_POSITION_INCLUDE_H_
|
|
#define COMMON_POSITION_INCLUDE_H_
|
|
|
|
|
|
namespace Common
|
|
{
|
|
class Position
|
|
{
|
|
public:
|
|
Position();
|
|
|
|
enum Type
|
|
{
|
|
background,
|
|
foreground
|
|
};
|
|
|
|
public:
|
|
const Type type() const;
|
|
|
|
public:
|
|
static const Position Background();
|
|
static const Position Foreground();
|
|
|
|
public:
|
|
const bool isBackground() const;
|
|
const bool isForeground() const;
|
|
|
|
public:
|
|
void setBackground();
|
|
void setForeground();
|
|
|
|
protected:
|
|
Type m_type;
|
|
|
|
protected:
|
|
Position(const Type type);
|
|
void fromBase(const Position& position);
|
|
};
|
|
} // namespace Common
|
|
|
|
#endif // COMMON_POSITION_INCLUDE_H_
|