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

68 lines
1.3 KiB
C++

#pragma once
#ifndef COMMON_NUM_FORMAT_INCLUDE_H_
#define COMMON_NUM_FORMAT_INCLUDE_H_
namespace Common
{
class NumFormat
{
public:
NumFormat();
//TODO: Add other types
enum Type
{
upperLetter,
lowerLetter,
upperRoman,
lowerRoman,
decimal,
symbol,
bullet,
chicago
};
public:
const Type type() const;
public:
static const NumFormat UpperLetter();
static const NumFormat LowerLetter();
static const NumFormat UpperRoman();
static const NumFormat LowerRoman();
static const NumFormat Decimal();
static const NumFormat Symbol();
static const NumFormat Bullet();
static const NumFormat Chicago();
public:
const bool isUpperLetter() const;
const bool isLowerLetter() const;
const bool isUpperRoman() const;
const bool isLowerRoman() const;
const bool isDecimal() const;
const bool isSymbol() const;
const bool isBullet() const;
const bool isChicago() const;
public:
void setUpperLetter();
void setLowerLetter();
void setUpperRoman();
void setLowerRoman();
void setDecimal();
void setSymbol();
void setBullet();
void setChicago();
protected:
Type m_type;
protected:
NumFormat(const Type type);
void fromBase(const NumFormat& numFormat);
};
} // namespace Common
#endif // COMMON_NUM_FORMAT_INCLUDE_H_