Commit 82c2519e authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил метод asc_SetFontsPath (в базовом классе)

asc_Init -> asc_SetFontsPath
SetFontsPath -> asc_SetFontsPath

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66453 954022d7-b5bf-4e40-9824-e11837661b57
parent 5047b664
...@@ -142,6 +142,9 @@ baseEditorsApi.prototype.asc_setDocInfo = function(oDocInfo) { ...@@ -142,6 +142,9 @@ baseEditorsApi.prototype.asc_setDocInfo = function(oDocInfo) {
window["AscDesktopEditor"]["SetDocumentName"](this.documentTitle); window["AscDesktopEditor"]["SetDocumentName"](this.documentTitle);
} }
}; };
baseEditorsApi.asc_SetFontsPath = function(path) {
this.FontLoader.fontFilesPath = path;
};
// Events // Events
baseEditorsApi.prototype.sendEvent = function() { baseEditorsApi.prototype.sendEvent = function() {
}; };
......
...@@ -418,7 +418,7 @@ ...@@ -418,7 +418,7 @@
console.log(arguments[0]); console.log(arguments[0]);
}); });
api.asc_Init("../Fonts/"); api.asc_SetFontsPath("../Fonts/");
function getURLParameter(name) { function getURLParameter(name) {
return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1]; return (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1];
......
...@@ -98,6 +98,8 @@ var editor; ...@@ -98,6 +98,8 @@ var editor;
spreadsheet_api.prototype._init = function() { spreadsheet_api.prototype._init = function() {
this.topLineEditorElement = document.getElementById(this.topLineEditorName); this.topLineEditorElement = document.getElementById(this.topLineEditorName);
this.formulasList = getFormulasInfo(); this.formulasList = getFormulasInfo();
// ToDo нужно ли это
asc['editor'] = ( asc['editor'] || this );
}; };
spreadsheet_api.prototype.asc_CheckGuiControlColors = function() { spreadsheet_api.prototype.asc_CheckGuiControlColors = function() {
...@@ -286,12 +288,7 @@ var editor; ...@@ -286,12 +288,7 @@ var editor;
}; };
spreadsheet_api.prototype.asc_Init = function(fontsPath) { spreadsheet_api.prototype.asc_Init = function(fontsPath) {
var t = this; this.asc_SetFontsPath(fontsPath);
asc["editor"] = ( asc["editor"] || t );
t.FontLoader.fontFilesPath = fontsPath;
t.asc_registerCallback("loadFonts", function(fonts, callback) {
t._loadFonts(fonts, callback);
});
}; };
spreadsheet_api.prototype.asc_getLocaleExample = function(val, number, date) { spreadsheet_api.prototype.asc_getLocaleExample = function(val, number, date) {
var res = ''; var res = '';
...@@ -3321,6 +3318,7 @@ var editor; ...@@ -3321,6 +3318,7 @@ var editor;
prot = spreadsheet_api.prototype; prot = spreadsheet_api.prototype;
prot["asc_GetFontThumbnailsPath"] = prot.asc_GetFontThumbnailsPath; prot["asc_GetFontThumbnailsPath"] = prot.asc_GetFontThumbnailsPath;
prot["asc_SetFontsPath"] = prot.asc_SetFontsPath;
prot["asc_Init"] = prot.asc_Init; prot["asc_Init"] = prot.asc_Init;
prot["asc_setDocInfo"] = prot.asc_setDocInfo; prot["asc_setDocInfo"] = prot.asc_setDocInfo;
prot["asc_getLocaleExample"] = prot.asc_getLocaleExample; prot["asc_getLocaleExample"] = prot.asc_getLocaleExample;
......
...@@ -532,7 +532,7 @@ ...@@ -532,7 +532,7 @@
$("#themeSelect ul").empty().append(cellThemeContent); $("#themeSelect ul").empty().append(cellThemeContent);
}); });
api.asc_Init("../Fonts/"); api.asc_SetFontsPath("../Fonts/");
//api.asc_setViewerMode(true); //api.asc_setViewerMode(true);
function getURLParameter(name) { function getURLParameter(name) {
......
...@@ -1684,13 +1684,6 @@ ...@@ -1684,13 +1684,6 @@
var ws = t.getWorksheet(); var ws = t.getWorksheet();
t.clipboard.pasteRange(ws); t.clipboard.pasteRange(ws);
} else { } else {
// t.clipboard.pasteCellValue(function (text, fonts) {
// if (fonts.length > 0) {
// t.handlers.trigger("loadFonts", fonts, function(){t.cellEditor.paste(fragments)});
// } else {
// t.cellEditor.pasteText(text);
// }
// });
t.clipboard.pasteAsText(function (text) { t.clipboard.pasteAsText(function (text) {
t.cellEditor.pasteText(text); t.cellEditor.pasteText(text);
}); });
......
...@@ -1300,7 +1300,7 @@ ...@@ -1300,7 +1300,7 @@
var editor = new asc_docs_api("editor_sdk"); var editor = new asc_docs_api("editor_sdk");
editor.CreateComponents(); editor.CreateComponents();
editor.SetFontsPath("../Fonts/"); editor.asc_SetFontsPath("../Fonts/");
editor.SetThemesPath("themes/"); editor.SetThemesPath("themes/");
editor.Init(); editor.Init();
//editor.LoadDocument(); //editor.LoadDocument();
......
...@@ -666,7 +666,7 @@ asc_docs_api.prototype.LoadDocument = function() { ...@@ -666,7 +666,7 @@ asc_docs_api.prototype.LoadDocument = function() {
asc_docs_api.prototype.SetFontsPath = function(path) asc_docs_api.prototype.SetFontsPath = function(path)
{ {
this.FontLoader.fontFilesPath = path; this.asc_SetFontsPath(path);
}; };
asc_docs_api.prototype.SetThemesPath = function(path) asc_docs_api.prototype.SetThemesPath = function(path)
{ {
......
...@@ -27,6 +27,7 @@ asc_docs_api.prototype['asc_getEditorPermissions'] = asc_docs_api.prototype.asc_ ...@@ -27,6 +27,7 @@ asc_docs_api.prototype['asc_getEditorPermissions'] = asc_docs_api.prototype.asc_
asc_docs_api.prototype['asc_setDocInfo'] = asc_docs_api.prototype.asc_setDocInfo; asc_docs_api.prototype['asc_setDocInfo'] = asc_docs_api.prototype.asc_setDocInfo;
asc_docs_api.prototype['asc_setLocale'] = asc_docs_api.prototype.asc_setLocale; asc_docs_api.prototype['asc_setLocale'] = asc_docs_api.prototype.asc_setLocale;
asc_docs_api.prototype['LoadDocument'] = asc_docs_api.prototype.LoadDocument; asc_docs_api.prototype['LoadDocument'] = asc_docs_api.prototype.LoadDocument;
asc_docs_api.prototype['asc_SetFontsPath'] = asc_docs_api.prototype.asc_SetFontsPath;
asc_docs_api.prototype['SetFontsPath'] = asc_docs_api.prototype.SetFontsPath; asc_docs_api.prototype['SetFontsPath'] = asc_docs_api.prototype.SetFontsPath;
asc_docs_api.prototype['SetThemesPath'] = asc_docs_api.prototype.SetThemesPath; asc_docs_api.prototype['SetThemesPath'] = asc_docs_api.prototype.SetThemesPath;
asc_docs_api.prototype['CreateCSS'] = asc_docs_api.prototype.CreateCSS; asc_docs_api.prototype['CreateCSS'] = asc_docs_api.prototype.CreateCSS;
......
...@@ -590,7 +590,7 @@ asc_docs_api.prototype.LoadDocument = function(isVersionHistory) { ...@@ -590,7 +590,7 @@ asc_docs_api.prototype.LoadDocument = function(isVersionHistory) {
asc_docs_api.prototype.SetFontsPath = function(path) asc_docs_api.prototype.SetFontsPath = function(path)
{ {
this.FontLoader.fontFilesPath = path; this.asc_SetFontsPath(path);
}; };
asc_docs_api.prototype.SetTextBoxInputMode = function(bIsEA) asc_docs_api.prototype.SetTextBoxInputMode = function(bIsEA)
......
...@@ -98,6 +98,7 @@ asc_docs_api.prototype['asc_getEditorPermissions'] = asc_docs_api.prototype.asc_ ...@@ -98,6 +98,7 @@ asc_docs_api.prototype['asc_getEditorPermissions'] = asc_docs_api.prototype.asc_
asc_docs_api.prototype['asc_setDocInfo'] = asc_docs_api.prototype.asc_setDocInfo; asc_docs_api.prototype['asc_setDocInfo'] = asc_docs_api.prototype.asc_setDocInfo;
asc_docs_api.prototype['asc_setLocale'] = asc_docs_api.prototype.asc_setLocale; asc_docs_api.prototype['asc_setLocale'] = asc_docs_api.prototype.asc_setLocale;
asc_docs_api.prototype['LoadDocument'] = asc_docs_api.prototype.LoadDocument; asc_docs_api.prototype['LoadDocument'] = asc_docs_api.prototype.LoadDocument;
asc_docs_api.prototype['asc_SetFontsPath'] = asc_docs_api.prototype.asc_SetFontsPath;
asc_docs_api.prototype['SetFontsPath'] = asc_docs_api.prototype.SetFontsPath; asc_docs_api.prototype['SetFontsPath'] = asc_docs_api.prototype.SetFontsPath;
asc_docs_api.prototype['SetTextBoxInputMode'] = asc_docs_api.prototype.SetTextBoxInputMode; asc_docs_api.prototype['SetTextBoxInputMode'] = asc_docs_api.prototype.SetTextBoxInputMode;
asc_docs_api.prototype['GetTextBoxInputMode'] = asc_docs_api.prototype.GetTextBoxInputMode; asc_docs_api.prototype['GetTextBoxInputMode'] = asc_docs_api.prototype.GetTextBoxInputMode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment