Files
sdkjs/Common/spellCheckLanguage.js
Alexey.Golubev 7ab34afdbe Изменения для корректной работы объединения документов.
git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47886 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-18 17:30:45 +03:00

57 lines
1.6 KiB
JavaScript

/* spellCheckLanguages.js
*
* Author: Alexander.Trofimov
* Date: 24.06.13
*/
( /**
* @param {Window} window
* @param {undefined} undefined
*/
function (window, undefined) {
/*
* Import
* -----------------------------------------------------------------------------
*/
var asc = window["Asc"] ? window["Asc"] : (window["Asc"] = {});
var prot;
/**
* Класс language для получения списка языков в проверке орфографии
* -----------------------------------------------------------------------------
* @constructor
* @memberOf Asc
* @param id
* @param name
* @return {*}
*/
function asc_CLanguage (name, id) {
if ( !(this instanceof asc_CLanguage) ) {
return new asc_CLanguage(name, id);
}
this.name = name; // имя языка
this.id = id; // уникальный id языка
return this;
}
asc_CLanguage.prototype = {
constructor: asc_CLanguage,
asc_getId: function () { return this.id; },
asc_getName: function () { return this.name; },
asc_setId: function (val) { this.id = val; },
asc_setName: function (val) { this.name = val; }
};
/*
* Export
* -----------------------------------------------------------------------------
*/
window["Asc"]["asc_CLanguage"] = window["Asc"].asc_CLanguage = asc_CLanguage;
prot = asc_CLanguage.prototype;
prot["asc_getId"] = prot.asc_getId;
prot["asc_getName"] = prot.asc_getName;
prot["asc_setId"] = prot.asc_setId;
prot["asc_setName"] = prot.asc_setName;
}
)(window);