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

51 lines
789 B
C++

#pragma once
#ifndef COMMON_ALIGN_INCLUDE_H_
#define COMMON_ALIGN_INCLUDE_H_
namespace Common
{
class Align
{
public:
Align();
enum Type
{
right,
left,
center,
both
};
public:
const Type type() const;
public:
static const Align Right();
static const Align Left();
static const Align Center();
static const Align Both();
public:
const bool isRight() const;
const bool isLeft() const;
const bool isCenter() const;
const bool isBoth() const;
public:
void setRight();
void setLeft();
void setCenter();
void setBoth();
protected:
Type m_type;
protected:
Align(const Type type);
void fromBase(const Align& align);
};
} // namespace Common
#endif // COMMON_ALIGN_INCLUDE_H_