mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
32 lines
709 B
C++
32 lines
709 B
C++
#pragma once
|
|
|
|
#include "IMapping.h"
|
|
#include "PropertiesMapping.h"
|
|
#include "LanguageId.h"
|
|
#include "../Common/XmlTools.h"
|
|
|
|
namespace DocFileFormat
|
|
{
|
|
typedef enum _LanguageType
|
|
{
|
|
Default,
|
|
EastAsian,
|
|
Complex
|
|
} LanguageType;
|
|
|
|
class LanguageIdMapping : public PropertiesMapping, public IMapping
|
|
{
|
|
public:
|
|
LanguageIdMapping( XmlUtils::CXmlWriter* writer, LanguageType type );
|
|
LanguageIdMapping( XMLTools::XMLElement<wchar_t>* parentElement, LanguageType type );
|
|
virtual ~LanguageIdMapping();
|
|
void Apply( IVisitable* lid );
|
|
|
|
static wstring getLanguageCode( LanguageId* lid );
|
|
|
|
private:
|
|
LanguageType _type;
|
|
XMLTools::XMLElement<wchar_t>* _parent;
|
|
};
|
|
}
|