init repo
41
OfficeWeb/apps/spreadsheeteditor/mobile/app.js
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.application({
|
||||
name: "SSE",
|
||||
icon: "resources/img/icon.png",
|
||||
tabletStartupScreen: "resources/img/tablet_startup.png",
|
||||
phoneStartupScreen: "resources/img/phone_startup.png",
|
||||
viewport: {
|
||||
autoMaximize: false
|
||||
},
|
||||
profiles: ["Tablet", "Phone"]
|
||||
});
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.ApiEvents", {
|
||||
mixins: {
|
||||
observable: "Ext.mixin.Observable"
|
||||
},
|
||||
view: undefined,
|
||||
widget: undefined,
|
||||
element: undefined,
|
||||
handlers: undefined,
|
||||
settings: undefined,
|
||||
enableKeyEvents: false,
|
||||
isSelectMode: false,
|
||||
hasCursor: false,
|
||||
constructor: function (config) {
|
||||
this.initConfig(config);
|
||||
this.callParent(arguments);
|
||||
return this;
|
||||
},
|
||||
init: function (view, widgetElem, canvasElem, handlers, settings) {
|
||||
this.view = view;
|
||||
this.widget = widgetElem;
|
||||
this.element = canvasElem;
|
||||
this.handlers = new window.Asc.asc_CHandlersList(handlers);
|
||||
this.settings = $.extend(true, {},
|
||||
this.defaults, settings);
|
||||
return this;
|
||||
},
|
||||
destroy: function () {
|
||||
$(window).off("." + this.namespace);
|
||||
return this;
|
||||
},
|
||||
enableKeyEventsHandler: function (f) {
|
||||
this.enableKeyEvents = !!f;
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.Document", {
|
||||
extend: "Ext.app.Controller",
|
||||
config: {
|
||||
refs: {},
|
||||
control: {
|
||||
"#id-btn-zoom-in": {
|
||||
tap: "onZoomIn"
|
||||
},
|
||||
"#id-btn-zoom-out": {
|
||||
tap: "onZoomOut"
|
||||
}
|
||||
}
|
||||
},
|
||||
_currZoom: 1,
|
||||
_baseZoom: 1,
|
||||
_maxZoom: 2,
|
||||
_incrementZoom: 0.05,
|
||||
init: function () {},
|
||||
launch: function () {},
|
||||
setApi: function (o) {
|
||||
this.api = o;
|
||||
if (this.api) {
|
||||
this.api.asc_registerCallback("asc_onDoubleTapEvent", Ext.bind(this._onDoubleTapDocument, this));
|
||||
this.api.asc_registerCallback("asc_onStartAction", Ext.bind(this._onLongActionBegin, this));
|
||||
this.api.asc_registerCallback("asc_onEndAction", Ext.bind(this._onLongActionEnd, this));
|
||||
}
|
||||
},
|
||||
_onLongActionBegin: function (type, id) {},
|
||||
_onLongActionEnd: function (type, id) {
|
||||
if (type === c_oAscAsyncActionType["BlockInteraction"]) {
|
||||
switch (id) {
|
||||
case c_oAscAsyncAction["Open"]:
|
||||
var i = this.api.asc_getActiveWorksheetIndex();
|
||||
this.api.asc_showWorksheet(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
_onDoubleTapDocument: function () {
|
||||
if (this.api) {
|
||||
if (this._currZoom != this._baseZoom) {
|
||||
this._currZoom = this._baseZoom;
|
||||
} else {
|
||||
this._currZoom = this._maxZoom;
|
||||
}
|
||||
this.api.asc_setZoom(this._currZoom);
|
||||
}
|
||||
},
|
||||
onZoomIn: function (event, node, opt) {
|
||||
this._currZoom += this._incrementZoom;
|
||||
if (this._currZoom > this._maxZoom) {
|
||||
this._currZoom = this._maxZoom;
|
||||
}
|
||||
this.api.asc_setZoom(this._currZoom);
|
||||
},
|
||||
onZoomOut: function (event, node, opt) {
|
||||
this._currZoom -= this._incrementZoom;
|
||||
if (this._currZoom < this._baseZoom) {
|
||||
this._currZoom = this._baseZoom;
|
||||
}
|
||||
this.api.asc_setZoom(this._currZoom);
|
||||
}
|
||||
});
|
||||
297
OfficeWeb/apps/spreadsheeteditor/mobile/app/controller/Main.js
Normal file
@@ -0,0 +1,297 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.Main", {
|
||||
extend: "Ext.app.Controller",
|
||||
editMode: false,
|
||||
requires: ["Ext.Anim", "Ext.MessageBox", "SSE.controller.ApiEvents", "SSE.view.OpenCsvPanel"],
|
||||
config: {
|
||||
refs: {
|
||||
mainView: "semainview"
|
||||
}
|
||||
},
|
||||
launch: function () {
|
||||
if (!this._isSupport()) {
|
||||
Common.Gateway.reportError(undefined, this.unsupportedBrowserErrorText);
|
||||
return;
|
||||
}
|
||||
this.initControl();
|
||||
Common.component.Analytics.initialize("UA-12442749-13", "Spreadsheet Mobile");
|
||||
var app = this.getApplication();
|
||||
this.api = new Asc.spreadsheet_api("id-sdkeditor", "", SSE.controller.ApiEvents, {},
|
||||
{});
|
||||
this.api.asc_Init("../../../sdk/Fonts/");
|
||||
this.api.asc_setMobileVersion(true);
|
||||
this.api.asc_registerCallback("asc_onAdvancedOptions", Ext.bind(this.onAdvancedOptions, this));
|
||||
this.api.asc_registerCallback("asc_onOpenDocumentProgress", Ext.bind(this.onOpenDocumentProgress, this));
|
||||
this.api.asc_registerCallback("asc_onEndAction", Ext.bind(this.onLongActionEnd, this));
|
||||
this.api.asc_registerCallback("asc_onError", Ext.bind(this.onError, this));
|
||||
this.api.asc_registerCallback("asc_onSaveUrl", Ext.bind(this.onSaveUrl, this));
|
||||
this.api.asc_registerCallback("asc_onGetEditorPermissions", Ext.bind(this.onEditorPermissions, this));
|
||||
Ext.each(app.getControllers(), function (controllerName) {
|
||||
var controller = app.getController(controllerName);
|
||||
controller && Ext.isFunction(controller.setApi) && controller.setApi(this.api);
|
||||
},
|
||||
this);
|
||||
this.initApi();
|
||||
this.editorConfig = {};
|
||||
Common.Gateway.on("init", Ext.bind(this.loadConfig, this));
|
||||
Common.Gateway.on("opendocument", Ext.bind(this.loadDocument, this));
|
||||
Common.Gateway.on("showmessage", Ext.bind(this.onExternalMessage, this));
|
||||
Common.Gateway.on("processsaveresult", Ext.bind(this.onProcessSaveResult, this));
|
||||
Common.Gateway.ready();
|
||||
},
|
||||
initControl: function () {},
|
||||
initApi: function () {},
|
||||
loadConfig: function (data) {
|
||||
this.editorConfig = Ext.merge(this.editorConfig, data.config);
|
||||
if ((this.editorConfig.user === undefined || this.editorConfig.user === null)) {
|
||||
this.editorConfig.user = {};
|
||||
if (this.editorConfig.users) {
|
||||
this.editorConfig.userId = this.editorConfig.userId || 0;
|
||||
for (var i = 0; i < this.editorConfig.users.length; i++) {
|
||||
if (this.editorConfig.users[i].id === this.editorConfig.userId) {
|
||||
this.editorConfig.user = {
|
||||
id: this.editorConfig.users[i].id,
|
||||
name: this.editorConfig.users[i].username
|
||||
};
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.editorConfig.user.id = this.editorConfig.user.id || ("uid-" + Ext.Date.now());
|
||||
this.editorConfig.user.name = this.editorConfig.user.name || this.textAnonymous;
|
||||
},
|
||||
loadDocument: function (data) {
|
||||
if (data.doc) {
|
||||
this.permissions = data.doc.permissions;
|
||||
var docInfo = {
|
||||
Id: data.doc.key,
|
||||
Url: data.doc.url,
|
||||
Title: data.doc.title,
|
||||
Format: data.doc.fileType,
|
||||
Options: data.doc.options,
|
||||
VKey: data.doc.vkey,
|
||||
Origin: data.doc.origin,
|
||||
UserId: this.editorConfig.user.id,
|
||||
UserName: this.editorConfig.user.name
|
||||
};
|
||||
this.api.asc_setDocInfo(docInfo);
|
||||
this.api.asc_getEditorPermissions();
|
||||
Common.component.Analytics.trackEvent("Load", "Start");
|
||||
}
|
||||
},
|
||||
onEditorPermissions: function (params) {
|
||||
this.permissions.edit !== false && (this.permissions.edit = params.asc_getCanEdit());
|
||||
var modeEdit = this.permissions.edit === true && this.editorConfig.mode !== "view";
|
||||
this.api.asc_setViewerMode(modeEdit);
|
||||
this.api.asc_LoadDocument();
|
||||
var profileName = this.getApplication().getCurrentProfile().getName();
|
||||
this.getApplication().getController(profileName + ".Main").setMode(modeEdit);
|
||||
},
|
||||
goBack: function () {
|
||||
Common.Gateway.goBack();
|
||||
},
|
||||
onError: function (id, level) {
|
||||
this._hideLoadSplash();
|
||||
var config = {
|
||||
closable: false
|
||||
};
|
||||
switch (id) {
|
||||
case c_oAscError.ID.Unknown:
|
||||
config.message = this.unknownErrorText;
|
||||
break;
|
||||
case c_oAscError.ID.ConvertationTimeout:
|
||||
config.message = this.convertationTimeoutText;
|
||||
break;
|
||||
case c_oAscError.ID.ConvertationError:
|
||||
config.message = this.convertationErrorText;
|
||||
break;
|
||||
case c_oAscError.ID.DownloadError:
|
||||
config.message = this.downloadErrorText;
|
||||
break;
|
||||
case c_oAscError.ID.UplImageSize:
|
||||
config.message = this.uploadImageSizeMessage;
|
||||
break;
|
||||
case c_oAscError.ID.UplImageExt:
|
||||
config.message = this.uploadImageExtMessage;
|
||||
break;
|
||||
case c_oAscError.ID.UplImageFileCount:
|
||||
config.message = this.uploadImageFileCountMessage;
|
||||
break;
|
||||
case c_oAscError.ID.VKeyEncrypt:
|
||||
config.msg = this.errorKeyEncrypt;
|
||||
break;
|
||||
case c_oAscError.ID.KeyExpire:
|
||||
config.msg = this.errorKeyExpire;
|
||||
break;
|
||||
case c_oAscError.ID.UserCountExceed:
|
||||
config.msg = this.errorUsersExceed;
|
||||
break;
|
||||
default:
|
||||
config.message = this.errorDefaultMessage.replace("%1", id);
|
||||
break;
|
||||
}
|
||||
if (level == c_oAscError.Level.Critical) {
|
||||
Common.Gateway.reportError(id, config.message);
|
||||
config.title = this.criticalErrorTitle;
|
||||
config.message += "<br/>" + this.criticalErrorExtText;
|
||||
config.buttons = Ext.Msg.OK;
|
||||
config.fn = function (btn) {
|
||||
if (btn == "ok") {
|
||||
window.location.reload();
|
||||
}
|
||||
};
|
||||
} else {
|
||||
config.title = this.notcriticalErrorTitle;
|
||||
config.buttons = Ext.Msg.OK;
|
||||
config.fn = Ext.emptyFn;
|
||||
}
|
||||
Ext.Msg.show(config);
|
||||
},
|
||||
onSaveUrl: function (url) {
|
||||
Common.Gateway.save(url);
|
||||
},
|
||||
onExternalMessage: function (msg) {
|
||||
if (msg) {
|
||||
this._hideLoadSplash();
|
||||
Ext.Msg.show({
|
||||
title: msg.title,
|
||||
msg: "<br/>" + msg.msg,
|
||||
icon: Ext.Msg[msg.severity.toUpperCase()],
|
||||
buttons: Ext.Msg.OK
|
||||
});
|
||||
Common.component.Analytics.trackEvent("External Error", msg.title);
|
||||
}
|
||||
},
|
||||
onAdvancedOptions: function (advOptions) {
|
||||
if (advOptions.asc_getOptionId() == c_oAscAdvancedOptionsID["CSV"]) {
|
||||
var preloader = Ext.get("loading-mask"),
|
||||
me = this;
|
||||
Ext.Anim.run(preloader, "slide", {
|
||||
out: true,
|
||||
direction: "up",
|
||||
duration: 250,
|
||||
after: function () {
|
||||
preloader.hide();
|
||||
}
|
||||
});
|
||||
var viewAdvOptionsCsv = Ext.Viewport.add({
|
||||
xtype: "seopencsvpanel",
|
||||
left: 0,
|
||||
top: 0,
|
||||
width: "100%",
|
||||
height: "100%"
|
||||
});
|
||||
Ext.Anim.run(viewAdvOptionsCsv, "slide", {
|
||||
out: false,
|
||||
direction: "up",
|
||||
duration: 1000
|
||||
});
|
||||
viewAdvOptionsCsv.on("close", Ext.bind(function (panel, result) {
|
||||
preloader.show();
|
||||
Ext.Anim.run(preloader, "slide", {
|
||||
out: false,
|
||||
direction: "down",
|
||||
duration: 1000
|
||||
});
|
||||
Ext.Anim.run(viewAdvOptionsCsv, "slide", {
|
||||
out: true,
|
||||
direction: "down",
|
||||
duration: 1000,
|
||||
after: function () {
|
||||
Ext.Viewport.remove(viewAdvOptionsCsv);
|
||||
if (me.api) {
|
||||
me.api.asc_setAdvancedOptions(c_oAscAdvancedOptionsID["CSV"], new Asc.asc_CCSVAdvancedOptions(result.encoding, result.delimiter));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
this));
|
||||
}
|
||||
},
|
||||
onOpenDocumentProgress: function (progress) {
|
||||
var elem = document.getElementById("loadmask-text");
|
||||
if (elem) {
|
||||
var proc = (progress["CurrentFont"] + progress["CurrentImage"]) / (progress["FontsCount"] + progress["ImagesCount"]);
|
||||
elem.innerHTML = this.textLoadingDocument + ": " + Math.round(proc * 100) + "%";
|
||||
}
|
||||
},
|
||||
onOpenDocument: function () {
|
||||
this._hideLoadSplash();
|
||||
if (this.api) {
|
||||
this.api.asc_cleanSelection();
|
||||
}
|
||||
},
|
||||
onLongActionEnd: function (type, id) {
|
||||
if (type === c_oAscAsyncActionType["BlockInteraction"]) {
|
||||
switch (id) {
|
||||
case c_oAscAsyncAction["Open"]:
|
||||
this.onOpenDocument();
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
_hideLoadSplash: function () {
|
||||
var preloader = Ext.get("loading-mask");
|
||||
if (preloader) {
|
||||
Ext.Anim.run(preloader, "fade", {
|
||||
out: true,
|
||||
duration: 1000,
|
||||
after: function () {
|
||||
preloader.destroy();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
_isSupport: function () {
|
||||
return (Ext.browser.is.WebKit && (Ext.os.is.iOS || Ext.os.is.Android || Ext.os.is.Desktop));
|
||||
},
|
||||
printText: "Printing...",
|
||||
criticalErrorTitle: "Error",
|
||||
notcriticalErrorTitle: "Warning",
|
||||
errorDefaultMessage: "Error code: %1",
|
||||
criticalErrorExtText: 'Press "Ok" to reload view page.',
|
||||
uploadImageSizeMessage: "Maximium image size limit exceeded.",
|
||||
uploadImageExtMessage: "Unknown image format.",
|
||||
uploadImageFileCountMessage: "No images uploaded.",
|
||||
unknownErrorText: "Unknown error.",
|
||||
convertationTimeoutText: "Convertation timeout exceeded.",
|
||||
convertationErrorText: "Convertation failed.",
|
||||
downloadErrorText: "Download failed.",
|
||||
unsupportedBrowserErrorText: "Your browser is not supported.",
|
||||
errorKeyEncrypt: "Unknown key descriptor",
|
||||
errorKeyExpire: "Key descriptor expired",
|
||||
errorUsersExceed: "Count of users was exceed",
|
||||
textAnonymous: "Anonymous",
|
||||
textLoadingDocument: "LOADING DOCUMENT"
|
||||
});
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.Search", {
|
||||
extend: "Ext.app.Controller",
|
||||
config: {
|
||||
refs: {
|
||||
nextResult: "#id-btn-search-prev",
|
||||
previousResult: "#id-btn-search-next",
|
||||
searchField: "#id-field-search"
|
||||
},
|
||||
control: {
|
||||
"#id-btn-search-prev": {
|
||||
tap: "onPreviousResult"
|
||||
},
|
||||
"#id-btn-search-next": {
|
||||
tap: "onNextResult"
|
||||
},
|
||||
"#id-field-search": {
|
||||
keyup: "onSearchKeyUp",
|
||||
change: "onSearchChange",
|
||||
clearicontap: "onSearchClear"
|
||||
}
|
||||
}
|
||||
},
|
||||
_step: -1,
|
||||
init: function () {},
|
||||
setApi: function (o) {
|
||||
this.api = o;
|
||||
},
|
||||
onNextResult: function () {
|
||||
var searchField = this.getSearchField();
|
||||
if (this.api && searchField) {
|
||||
this.api.asc_findText(searchField.getValue(), true, true);
|
||||
}
|
||||
},
|
||||
onPreviousResult: function () {
|
||||
var searchField = this.getSearchField();
|
||||
if (this.api && searchField) {
|
||||
this.api.asc_findText(searchField.getValue(), true, false);
|
||||
}
|
||||
},
|
||||
onSearchKeyUp: function (field, e) {
|
||||
var keyCode = e.event.keyCode,
|
||||
searchField = this.getSearchField();
|
||||
if (keyCode == 13 && this.api) {
|
||||
this.api.asc_findText(searchField.getValue(), true, true);
|
||||
}
|
||||
this.updateNavigation();
|
||||
},
|
||||
onSearchChange: function (field, newValue, oldValue) {
|
||||
this.updateNavigation();
|
||||
},
|
||||
onSearchClear: function (field, e) {
|
||||
this.updateNavigation();
|
||||
window.focus();
|
||||
document.activeElement.blur();
|
||||
},
|
||||
updateNavigation: function () {
|
||||
var searchField = this.getSearchField(),
|
||||
nextResult = this.getNextResult(),
|
||||
previousResult = this.getPreviousResult();
|
||||
if (searchField && nextResult && previousResult) {
|
||||
nextResult.setDisabled(searchField.getValue() == "");
|
||||
previousResult.setDisabled(searchField.getValue() == "");
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.WorksheetList", {
|
||||
extend: "Ext.app.Controller",
|
||||
config: {
|
||||
refs: {
|
||||
worksheetList: {
|
||||
selector: "seworksheetlist list"
|
||||
}
|
||||
}
|
||||
},
|
||||
init: function () {
|
||||
this.control({
|
||||
"seworksheetlist list": {
|
||||
itemtap: this._worksheetSelect
|
||||
}
|
||||
});
|
||||
},
|
||||
setApi: function (o) {
|
||||
this.api = o;
|
||||
if (this.api) {
|
||||
this.api.asc_registerCallback("asc_onEndAction", Ext.bind(this.onLongActionEnd, this));
|
||||
}
|
||||
},
|
||||
_worksheetSelect: function (dataview, index, target, record, event, eOpts) {
|
||||
if (this.api) {
|
||||
var dataIndex = record.data.index;
|
||||
if ((dataIndex > -1) && (this.api.asc_getActiveWorksheetIndex() != dataIndex)) {
|
||||
this.api.asc_showWorksheet(dataIndex);
|
||||
}
|
||||
}
|
||||
},
|
||||
_loadWorksheets: function () {
|
||||
if (this.api) {
|
||||
var worksheetsStore = Ext.getStore("Worksheets"),
|
||||
worksheetList = this.getWorksheetList();
|
||||
if (worksheetsStore && worksheetList) {
|
||||
worksheetsStore.removeAll(false);
|
||||
var worksheetsCount = this.api.asc_getWorksheetsCount();
|
||||
if (worksheetsCount) {
|
||||
for (var i = 0; i < worksheetsCount; i++) {
|
||||
var result = {
|
||||
text: this.api.asc_getWorksheetName(i),
|
||||
index: i
|
||||
};
|
||||
worksheetsStore.add(result);
|
||||
}
|
||||
var rec = worksheetsStore.findRecord("index", this.api.asc_getActiveWorksheetIndex());
|
||||
if (rec) {
|
||||
worksheetList.select(rec);
|
||||
} else {
|
||||
worksheetList.select(worksheetsStore.getAt(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
onLongActionEnd: function (type, id) {
|
||||
if (type === c_oAscAsyncActionType["BlockInteraction"]) {
|
||||
switch (id) {
|
||||
case c_oAscAsyncAction["Open"]:
|
||||
this._loadWorksheets();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.phone.Main", {
|
||||
extend: "SSE.controller.Main",
|
||||
requires: ["Ext.Anim"],
|
||||
config: {
|
||||
refs: {
|
||||
viewToolbar: "viewtoolbar",
|
||||
searchToolbar: "searchtoolbar"
|
||||
},
|
||||
control: {}
|
||||
},
|
||||
launch: function () {
|
||||
this.callParent(arguments);
|
||||
},
|
||||
initControl: function () {
|
||||
this.callParent(arguments);
|
||||
},
|
||||
initApi: function () {
|
||||
this.callParent(arguments);
|
||||
},
|
||||
setApi: function (o) {
|
||||
this.api = o;
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
},
|
||||
setDocumentName: function (name) {
|
||||
var caption = this.getDocumentNameLabel();
|
||||
if (caption) {
|
||||
caption.setHtml(Ext.String.htmlEncode(name));
|
||||
}
|
||||
},
|
||||
onTapBack: function () {
|
||||
Common.Gateway.goBack();
|
||||
},
|
||||
setMode: function (mode) {
|
||||
var viewToolbar = this.getViewToolbar(),
|
||||
searchToolbar = this.getSearchToolbar();
|
||||
if (mode == "edit") {
|
||||
viewToolbar && viewToolbar.hide();
|
||||
searchToolbar && searchToolbar.hide();
|
||||
this.api && this.api.asc_enableKeyEvents(true);
|
||||
} else {
|
||||
viewToolbar && viewToolbar.show();
|
||||
this.api && this.api.asc_enableKeyEvents(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.tablet.Main", {
|
||||
extend: "SSE.controller.Main",
|
||||
requires: ["Ext.Anim"],
|
||||
config: {
|
||||
refs: {
|
||||
viewToolbar: "viewtoolbar",
|
||||
searchToolbar: "searchtoolbar"
|
||||
},
|
||||
control: {}
|
||||
},
|
||||
launch: function () {
|
||||
this.callParent(arguments);
|
||||
},
|
||||
initControl: function () {
|
||||
this.callParent(arguments);
|
||||
},
|
||||
initApi: function () {
|
||||
this.callParent(arguments);
|
||||
},
|
||||
setApi: function (o) {
|
||||
this.api = o;
|
||||
this.api.asc_enableKeyEvents(true);
|
||||
},
|
||||
setDocumentName: function (name) {
|
||||
var caption = this.getDocumentNameLabel();
|
||||
if (caption) {
|
||||
caption.setHtml(Ext.String.htmlEncode(name));
|
||||
}
|
||||
},
|
||||
setMode: function (mode) {
|
||||
var viewToolbar = this.getViewToolbar(),
|
||||
searchToolbar = this.getSearchToolbar();
|
||||
if (mode == "edit") {
|
||||
viewToolbar && viewToolbar.hide();
|
||||
searchToolbar && searchToolbar.hide();
|
||||
this.api && this.api.asc_enableKeyEvents(true);
|
||||
} else {
|
||||
viewToolbar && viewToolbar.show();
|
||||
this.api && this.api.asc_enableKeyEvents(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,261 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.controller.toolbar.View", {
|
||||
extend: "Ext.app.Controller",
|
||||
config: {
|
||||
refs: {
|
||||
viewToolbar: "viewtoolbar",
|
||||
searchToolbar: "searchtoolbar",
|
||||
worksheetPanel: "#id-worksheets-panel",
|
||||
doneButton: "#id-tb-btn-view-done",
|
||||
searchButton: "#id-tb-btn-search",
|
||||
fullscreenButton: "#id-tb-btn-fullscreen",
|
||||
shareButton: "#id-tb-btn-view-share",
|
||||
worksheetsButton: "#id-tb-btn-pages"
|
||||
},
|
||||
control: {
|
||||
doneButton: {
|
||||
tap: "onTapDoneButton"
|
||||
},
|
||||
searchButton: {
|
||||
tap: "onTapSearchButton"
|
||||
},
|
||||
fullscreenButton: {
|
||||
tap: "onTapFullscreenButton"
|
||||
},
|
||||
shareButton: {
|
||||
tap: "onTapShareButton"
|
||||
},
|
||||
worksheetsButton: {
|
||||
tap: "onTapWorksheets"
|
||||
},
|
||||
"#id-worksheets-panel seworksheetlist list": {
|
||||
itemtap: "onSelectWorksheet"
|
||||
}
|
||||
},
|
||||
searchMode: false,
|
||||
fullscreenMode: false
|
||||
},
|
||||
launch: function () {
|
||||
this.callParent(arguments);
|
||||
Common.Gateway.on("init", Ext.bind(this.loadConfig, this));
|
||||
},
|
||||
initControl: function () {
|
||||
this.callParent(arguments);
|
||||
},
|
||||
initApi: function () {},
|
||||
setApi: function (o) {
|
||||
this.api = o;
|
||||
if (this.api) {
|
||||
this.api.asc_registerCallback("asc_onTapEvent", Ext.bind(this.onSingleTapDocument, this));
|
||||
}
|
||||
},
|
||||
loadConfig: function (data) {
|
||||
var doneButton = this.getDoneButton();
|
||||
if (doneButton && data && data.config && data.config.canBackToFolder === true) {
|
||||
doneButton.show();
|
||||
}
|
||||
},
|
||||
applySearchMode: function (search) {
|
||||
if (!Ext.isBoolean(search)) {
|
||||
Ext.Logger.error("Invalid parameters.");
|
||||
} else {
|
||||
var me = this,
|
||||
searchToolbar = me.getSearchToolbar(),
|
||||
searchButton = me.getSearchButton();
|
||||
if (searchToolbar) {
|
||||
if (search) {
|
||||
searchButton && searchButton.addCls("x-button-pressing");
|
||||
if (me.getFullscreenMode()) {
|
||||
searchToolbar.show({
|
||||
easing: "ease-out",
|
||||
preserveEndState: true,
|
||||
autoClear: false,
|
||||
from: {
|
||||
top: "22px",
|
||||
opacity: 0.3
|
||||
},
|
||||
to: {
|
||||
top: "44px",
|
||||
opacity: 0.9
|
||||
}
|
||||
});
|
||||
} else {
|
||||
searchToolbar.show();
|
||||
}
|
||||
} else {
|
||||
if (me.getFullscreenMode()) {
|
||||
searchToolbar.hide({
|
||||
easing: "ease-in",
|
||||
to: {
|
||||
top: "22px",
|
||||
opacity: 0.3
|
||||
}
|
||||
});
|
||||
} else {
|
||||
searchToolbar.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
return search;
|
||||
}
|
||||
},
|
||||
applyFullscreenMode: function (fullscreen) {
|
||||
if (!Ext.isBoolean(fullscreen)) {
|
||||
Ext.Logger.error("Invalid parameters.");
|
||||
} else {
|
||||
var viewToolbar = this.getViewToolbar(),
|
||||
searchToolbar = this.getSearchToolbar(),
|
||||
fullscreenButton = this.getFullscreenButton(),
|
||||
popClipCmp = Ext.ComponentQuery.query("popclip");
|
||||
if (popClipCmp.length > 0) {
|
||||
popClipCmp[0].hide();
|
||||
}
|
||||
if (viewToolbar && searchToolbar) {
|
||||
if (fullscreen) {
|
||||
fullscreenButton && fullscreenButton.addCls("x-button-pressing");
|
||||
viewToolbar.setStyle({
|
||||
position: "absolute",
|
||||
left: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
opacity: 0.9,
|
||||
"z-index": 17
|
||||
});
|
||||
searchToolbar.setStyle({
|
||||
position: "absolute",
|
||||
left: 0,
|
||||
top: "44px",
|
||||
right: 0,
|
||||
opacity: 0.9,
|
||||
"z-index": 16
|
||||
});
|
||||
this.setHiddenToolbars(true);
|
||||
} else {
|
||||
viewToolbar.setStyle({
|
||||
position: "initial",
|
||||
opacity: 1
|
||||
});
|
||||
searchToolbar.setStyle({
|
||||
position: "initial",
|
||||
opacity: 1
|
||||
});
|
||||
viewToolbar.setDocked("top");
|
||||
searchToolbar.setDocked("top");
|
||||
}
|
||||
}
|
||||
return fullscreen;
|
||||
}
|
||||
},
|
||||
setHiddenToolbars: function (hide) {
|
||||
var viewToolbar = this.getViewToolbar(),
|
||||
searchToolbar = this.getSearchToolbar();
|
||||
if (viewToolbar && searchToolbar) {
|
||||
if (hide) {
|
||||
viewToolbar.hide({
|
||||
easing: "ease-out",
|
||||
from: {
|
||||
opacity: 0.9
|
||||
},
|
||||
to: {
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
searchToolbar.hide({
|
||||
easing: "ease-out",
|
||||
from: {
|
||||
opacity: 0.9
|
||||
},
|
||||
to: {
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
} else {
|
||||
viewToolbar.show({
|
||||
preserveEndState: true,
|
||||
easing: "ease-in",
|
||||
from: {
|
||||
opacity: 0
|
||||
},
|
||||
to: {
|
||||
opacity: 0.9
|
||||
}
|
||||
});
|
||||
this.getSearchMode() && searchToolbar.show({
|
||||
preserveEndState: true,
|
||||
easing: "ease-in",
|
||||
from: {
|
||||
opacity: 0
|
||||
},
|
||||
to: {
|
||||
opacity: 0.9
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
onTapDoneButton: function () {
|
||||
Common.Gateway.goBack();
|
||||
},
|
||||
onTapSearchButton: function (btn) {
|
||||
this.setSearchMode(!this.getSearchMode());
|
||||
},
|
||||
onTapFullscreenButton: function (btn) {
|
||||
this.setFullscreenMode(!this.getFullscreenMode());
|
||||
if (this.api) {
|
||||
this.api.asc_Resize();
|
||||
}
|
||||
},
|
||||
onTapShareButton: function () {
|
||||
this.api && this.api.asc_Print();
|
||||
Common.component.Analytics.trackEvent("ToolBar View", "Share");
|
||||
},
|
||||
onSingleTapDocument: function () {
|
||||
var viewToolbar = this.getViewToolbar();
|
||||
if (viewToolbar && this.getFullscreenMode()) {
|
||||
this.setHiddenToolbars(!viewToolbar.isHidden());
|
||||
}
|
||||
},
|
||||
onTapWorksheets: function () {
|
||||
var worksheetPanel = this.getWorksheetPanel(),
|
||||
worksheetsButton = this.getWorksheetsButton();
|
||||
if (worksheetPanel) {
|
||||
worksheetPanel.showBy(worksheetsButton);
|
||||
}
|
||||
},
|
||||
onSelectWorksheet: function (dataview, index, target, record, event, eOpts) {
|
||||
var worksheetPanel = this.getWorksheetPanel();
|
||||
if (worksheetPanel) {
|
||||
worksheetPanel.hide();
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.model.Worksheet", {
|
||||
extend: "Ext.data.Model",
|
||||
config: {
|
||||
fields: [{
|
||||
name: "index",
|
||||
type: "int"
|
||||
},
|
||||
{
|
||||
name: "text",
|
||||
type: "string"
|
||||
}]
|
||||
}
|
||||
});
|
||||
48
OfficeWeb/apps/spreadsheeteditor/mobile/app/profile/Phone.js
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.profile.Phone", {
|
||||
extend: "Ext.app.Profile",
|
||||
config: {
|
||||
name: "phone",
|
||||
namespace: "phone",
|
||||
controllers: ["Main", "SSE.controller.Document", "SSE.controller.Search", "SSE.controller.WorksheetList", "SSE.controller.toolbar.View"],
|
||||
views: ["Main"],
|
||||
models: ["SSE.model.Worksheet"],
|
||||
stores: ["SSE.store.Worksheets"]
|
||||
},
|
||||
isActive: function () {
|
||||
return (Ext.os.is.Phone && (Ext.os.is.iOS || Ext.os.is.Android));
|
||||
},
|
||||
launch: function () {
|
||||
Ext.widget("sephonemain");
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.profile.Tablet", {
|
||||
extend: "Ext.app.Profile",
|
||||
config: {
|
||||
name: "tablet",
|
||||
namespace: "tablet",
|
||||
controllers: ["Main", "SSE.controller.Document", "SSE.controller.Search", "SSE.controller.WorksheetList", "SSE.controller.toolbar.View"],
|
||||
views: ["Main"],
|
||||
models: ["SSE.model.Worksheet"],
|
||||
stores: ["SSE.store.Worksheets"]
|
||||
},
|
||||
isActive: function () {
|
||||
return (Ext.browser.is.WebKit && ((Ext.os.is.Tablet && (Ext.os.is.iOS || Ext.os.is.Android)) || Ext.os.is.Desktop));
|
||||
},
|
||||
launch: function () {
|
||||
Ext.widget("setabletmain");
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.store.Worksheets", {
|
||||
extend: "Ext.data.Store",
|
||||
config: {
|
||||
model: "SSE.model.Worksheet"
|
||||
}
|
||||
});
|
||||
38
OfficeWeb/apps/spreadsheeteditor/mobile/app/view/Main.js
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.Main", {
|
||||
extend: "Ext.Container",
|
||||
alias: "widget.semainview",
|
||||
initialize: function () {
|
||||
this.callParent(arguments);
|
||||
}
|
||||
});
|
||||
656
OfficeWeb/apps/spreadsheeteditor/mobile/app/view/OpenCsvPanel.js
Normal file
@@ -0,0 +1,656 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.OpenCsvPanel", {
|
||||
extend: "Ext.form.Panel",
|
||||
alias: "widget.seopencsvpanel",
|
||||
requires: ["Ext.form.Panel", "Ext.form.FieldSet", "Ext.field.Select"],
|
||||
config: {
|
||||
style: "padding: 0;"
|
||||
},
|
||||
initialize: function () {
|
||||
var me = this;
|
||||
this.add({
|
||||
xtype: "fieldset",
|
||||
title: this.txtTitle,
|
||||
instructions: this.txtHint,
|
||||
defaults: {
|
||||
labelWidth: "36%"
|
||||
},
|
||||
items: [{
|
||||
xtype: "selectfield",
|
||||
name: "encoding",
|
||||
label: this.txtEncoding,
|
||||
options: [{
|
||||
value: 37,
|
||||
text: "IBM EBCDIC (US-Canada)"
|
||||
},
|
||||
{
|
||||
value: 437,
|
||||
text: "OEM United States"
|
||||
},
|
||||
{
|
||||
value: 500,
|
||||
text: "IBM EBCDIC (International)"
|
||||
},
|
||||
{
|
||||
value: 708,
|
||||
text: "Arabic (ASMO 708)"
|
||||
},
|
||||
{
|
||||
value: 720,
|
||||
text: "Arabic (DOS)"
|
||||
},
|
||||
{
|
||||
value: 737,
|
||||
text: "Greek (DOS)"
|
||||
},
|
||||
{
|
||||
value: 775,
|
||||
text: "Baltic (DOS)"
|
||||
},
|
||||
{
|
||||
value: 850,
|
||||
text: "Western European (DOS)"
|
||||
},
|
||||
{
|
||||
value: 852,
|
||||
text: "Central European (DOS)"
|
||||
},
|
||||
{
|
||||
value: 855,
|
||||
text: "OEM Cyrillic"
|
||||
},
|
||||
{
|
||||
value: 857,
|
||||
text: "Turkish (DOS)"
|
||||
},
|
||||
{
|
||||
value: 858,
|
||||
text: "OEM Multilingual Latin I"
|
||||
},
|
||||
{
|
||||
value: 860,
|
||||
text: "Portuguese (DOS)"
|
||||
},
|
||||
{
|
||||
value: 861,
|
||||
text: "Icelandic (DOS)"
|
||||
},
|
||||
{
|
||||
value: 862,
|
||||
text: "Hebrew (DOS)"
|
||||
},
|
||||
{
|
||||
value: 863,
|
||||
text: "French Canadian (DOS)"
|
||||
},
|
||||
{
|
||||
value: 864,
|
||||
text: "Arabic (864) "
|
||||
},
|
||||
{
|
||||
value: 865,
|
||||
text: "Nordic (DOS)"
|
||||
},
|
||||
{
|
||||
value: 866,
|
||||
text: "Cyrillic (DOS)"
|
||||
},
|
||||
{
|
||||
value: 869,
|
||||
text: "Greek, Modern (DOS)"
|
||||
},
|
||||
{
|
||||
value: 870,
|
||||
text: "IBM EBCDIC (Multilingual Latin-2)"
|
||||
},
|
||||
{
|
||||
value: 874,
|
||||
text: "Thai (Windows)"
|
||||
},
|
||||
{
|
||||
value: 875,
|
||||
text: "IBM EBCDIC (Greek Modern)"
|
||||
},
|
||||
{
|
||||
value: 932,
|
||||
text: "Japanese (Shift-JIS)"
|
||||
},
|
||||
{
|
||||
value: 936,
|
||||
text: "Chinese Simplified (GB2312)"
|
||||
},
|
||||
{
|
||||
value: 949,
|
||||
text: "Korean"
|
||||
},
|
||||
{
|
||||
value: 950,
|
||||
text: "Chinese Traditional (Big5)"
|
||||
},
|
||||
{
|
||||
value: 1026,
|
||||
text: "IBM EBCDIC (Turkish Latin-5)"
|
||||
},
|
||||
{
|
||||
value: 1047,
|
||||
text: "IBM Latin-1"
|
||||
},
|
||||
{
|
||||
value: 1140,
|
||||
text: "IBM EBCDIC (US-Canada-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1141,
|
||||
text: "IBM EBCDIC (Germany-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1142,
|
||||
text: "IBM EBCDIC (Denmark-Norway-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1143,
|
||||
text: "IBM EBCDIC (Finland-Sweden-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1144,
|
||||
text: "IBM EBCDIC (Italy-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1145,
|
||||
text: "IBM EBCDIC (Spain-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1146,
|
||||
text: "IBM EBCDIC (UK-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1147,
|
||||
text: "IBM EBCDIC (France-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1148,
|
||||
text: "IBM EBCDIC (International-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1149,
|
||||
text: "IBM EBCDIC (Icelandic-Euro)"
|
||||
},
|
||||
{
|
||||
value: 1200,
|
||||
text: "Unicode"
|
||||
},
|
||||
{
|
||||
value: 1201,
|
||||
text: "Unicode (Big-Endian)"
|
||||
},
|
||||
{
|
||||
value: 1250,
|
||||
text: "Central European (Windows)"
|
||||
},
|
||||
{
|
||||
value: 1251,
|
||||
text: "Cyrillic (Windows)"
|
||||
},
|
||||
{
|
||||
value: 1252,
|
||||
text: "Western European (Windows)"
|
||||
},
|
||||
{
|
||||
value: 1253,
|
||||
text: "Greek (Windows)"
|
||||
},
|
||||
{
|
||||
value: 1254,
|
||||
text: "Turkish (Windows)"
|
||||
},
|
||||
{
|
||||
value: 1255,
|
||||
text: "Hebrew (Windows) "
|
||||
},
|
||||
{
|
||||
value: 1256,
|
||||
text: "Arabic (Windows) "
|
||||
},
|
||||
{
|
||||
value: 1257,
|
||||
text: "Baltic (Windows)"
|
||||
},
|
||||
{
|
||||
value: 1258,
|
||||
text: "Vietnamese (Windows)"
|
||||
},
|
||||
{
|
||||
value: 1361,
|
||||
text: "Korean (Johab)"
|
||||
},
|
||||
{
|
||||
value: 10000,
|
||||
text: "Western European (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10001,
|
||||
text: "Japanese (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10002,
|
||||
text: "Chinese Traditional (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10003,
|
||||
text: "Korean (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10004,
|
||||
text: "Arabic (Mac) "
|
||||
},
|
||||
{
|
||||
value: 10005,
|
||||
text: "Hebrew (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10006,
|
||||
text: "Greek (Mac) "
|
||||
},
|
||||
{
|
||||
value: 10007,
|
||||
text: "Cyrillic (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10008,
|
||||
text: "Chinese Simplified (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10010,
|
||||
text: "Romanian (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10017,
|
||||
text: "Ukrainian (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10021,
|
||||
text: "Thai (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10029,
|
||||
text: "Central European (Mac) "
|
||||
},
|
||||
{
|
||||
value: 10079,
|
||||
text: "Icelandic (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10081,
|
||||
text: "Turkish (Mac)"
|
||||
},
|
||||
{
|
||||
value: 10082,
|
||||
text: "Croatian (Mac)"
|
||||
},
|
||||
{
|
||||
value: 12000,
|
||||
text: "Unicode (UTF-32)"
|
||||
},
|
||||
{
|
||||
value: 12001,
|
||||
text: "Unicode (UTF-32 Big-Endian)"
|
||||
},
|
||||
{
|
||||
value: 20000,
|
||||
text: "Chinese Traditional (CNS)"
|
||||
},
|
||||
{
|
||||
value: 20001,
|
||||
text: "TCA Taiwan"
|
||||
},
|
||||
{
|
||||
value: 20002,
|
||||
text: "Chinese Traditional (Eten)"
|
||||
},
|
||||
{
|
||||
value: 20003,
|
||||
text: "IBM5550 Taiwan"
|
||||
},
|
||||
{
|
||||
value: 20004,
|
||||
text: "TeleText Taiwan"
|
||||
},
|
||||
{
|
||||
value: 20005,
|
||||
text: "Wang Taiwan"
|
||||
},
|
||||
{
|
||||
value: 20105,
|
||||
text: "Western European (IA5)"
|
||||
},
|
||||
{
|
||||
value: 20106,
|
||||
text: "German (IA5)"
|
||||
},
|
||||
{
|
||||
value: 20107,
|
||||
text: "Swedish (IA5) "
|
||||
},
|
||||
{
|
||||
value: 20108,
|
||||
text: "Norwegian (IA5) "
|
||||
},
|
||||
{
|
||||
value: 20127,
|
||||
text: "US-ASCII"
|
||||
},
|
||||
{
|
||||
value: 20261,
|
||||
text: "T.61 "
|
||||
},
|
||||
{
|
||||
value: 20269,
|
||||
text: "ISO-6937"
|
||||
},
|
||||
{
|
||||
value: 20273,
|
||||
text: "IBM EBCDIC (Germany)"
|
||||
},
|
||||
{
|
||||
value: 20277,
|
||||
text: "IBM EBCDIC (Denmark-Norway) "
|
||||
},
|
||||
{
|
||||
value: 20278,
|
||||
text: "IBM EBCDIC (Finland-Sweden)"
|
||||
},
|
||||
{
|
||||
value: 20280,
|
||||
text: "IBM EBCDIC (Italy)"
|
||||
},
|
||||
{
|
||||
value: 20284,
|
||||
text: "IBM EBCDIC (Spain)"
|
||||
},
|
||||
{
|
||||
value: 20285,
|
||||
text: "IBM EBCDIC (UK)"
|
||||
},
|
||||
{
|
||||
value: 20290,
|
||||
text: "IBM EBCDIC (Japanese katakana)"
|
||||
},
|
||||
{
|
||||
value: 20297,
|
||||
text: "IBM EBCDIC (France)"
|
||||
},
|
||||
{
|
||||
value: 20420,
|
||||
text: "IBM EBCDIC (Arabic)"
|
||||
},
|
||||
{
|
||||
value: 20423,
|
||||
text: "IBM EBCDIC (Greek)"
|
||||
},
|
||||
{
|
||||
value: 20424,
|
||||
text: "IBM EBCDIC (Hebrew)"
|
||||
},
|
||||
{
|
||||
value: 20833,
|
||||
text: "IBM EBCDIC (Korean Extended)"
|
||||
},
|
||||
{
|
||||
value: 20838,
|
||||
text: "IBM EBCDIC (Thai)"
|
||||
},
|
||||
{
|
||||
value: 20866,
|
||||
text: "Cyrillic (KOI8-R)"
|
||||
},
|
||||
{
|
||||
value: 20871,
|
||||
text: "IBM EBCDIC (Icelandic) "
|
||||
},
|
||||
{
|
||||
value: 20880,
|
||||
text: "IBM EBCDIC (Cyrillic Russian)"
|
||||
},
|
||||
{
|
||||
value: 20905,
|
||||
text: "IBM EBCDIC (Turkish)"
|
||||
},
|
||||
{
|
||||
value: 20924,
|
||||
text: "IBM Latin-1 "
|
||||
},
|
||||
{
|
||||
value: 20932,
|
||||
text: "Japanese (JIS 0208-1990 and 0212-1990)"
|
||||
},
|
||||
{
|
||||
value: 20936,
|
||||
text: "Chinese Simplified (GB2312-80) "
|
||||
},
|
||||
{
|
||||
value: 20949,
|
||||
text: "Korean Wansung "
|
||||
},
|
||||
{
|
||||
value: 21025,
|
||||
text: "IBM EBCDIC (Cyrillic Serbian-Bulgarian)"
|
||||
},
|
||||
{
|
||||
value: 21866,
|
||||
text: "Cyrillic (KOI8-U)"
|
||||
},
|
||||
{
|
||||
value: 28591,
|
||||
text: "Western European (ISO) "
|
||||
},
|
||||
{
|
||||
value: 28592,
|
||||
text: "Central European (ISO)"
|
||||
},
|
||||
{
|
||||
value: 28593,
|
||||
text: "Latin 3 (ISO)"
|
||||
},
|
||||
{
|
||||
value: 28594,
|
||||
text: "Baltic (ISO)"
|
||||
},
|
||||
{
|
||||
value: 28595,
|
||||
text: "Cyrillic (ISO) "
|
||||
},
|
||||
{
|
||||
value: 28596,
|
||||
text: "Arabic (ISO)"
|
||||
},
|
||||
{
|
||||
value: 28597,
|
||||
text: "Greek (ISO) "
|
||||
},
|
||||
{
|
||||
value: 28598,
|
||||
text: "Hebrew (ISO-Visual)"
|
||||
},
|
||||
{
|
||||
value: 28599,
|
||||
text: "Turkish (ISO)"
|
||||
},
|
||||
{
|
||||
value: 28603,
|
||||
text: "Estonian (ISO)"
|
||||
},
|
||||
{
|
||||
value: 28605,
|
||||
text: "Latin 9 (ISO)"
|
||||
},
|
||||
{
|
||||
value: 29001,
|
||||
text: "Europa"
|
||||
},
|
||||
{
|
||||
value: 38598,
|
||||
text: "Hebrew (ISO-Logical)"
|
||||
},
|
||||
{
|
||||
value: 50220,
|
||||
text: "Japanese (JIS)"
|
||||
},
|
||||
{
|
||||
value: 50221,
|
||||
text: "Japanese (JIS-Allow 1 byte Kana) "
|
||||
},
|
||||
{
|
||||
value: 50222,
|
||||
text: "Japanese (JIS-Allow 1 byte Kana - SO/SI)"
|
||||
},
|
||||
{
|
||||
value: 50225,
|
||||
text: "Korean (ISO)"
|
||||
},
|
||||
{
|
||||
value: 50227,
|
||||
text: "Chinese Simplified (ISO-2022)"
|
||||
},
|
||||
{
|
||||
value: 51932,
|
||||
text: "Japanese (EUC)"
|
||||
},
|
||||
{
|
||||
value: 51936,
|
||||
text: "Chinese Simplified (EUC) "
|
||||
},
|
||||
{
|
||||
value: 51949,
|
||||
text: "Korean (EUC)"
|
||||
},
|
||||
{
|
||||
value: 52936,
|
||||
text: "Chinese Simplified (HZ)"
|
||||
},
|
||||
{
|
||||
value: 54936,
|
||||
text: "Chinese Simplified (GB18030)"
|
||||
},
|
||||
{
|
||||
value: 57002,
|
||||
text: "ISCII Devanagari "
|
||||
},
|
||||
{
|
||||
value: 57003,
|
||||
text: "ISCII Bengali "
|
||||
},
|
||||
{
|
||||
value: 57004,
|
||||
text: "ISCII Tamil"
|
||||
},
|
||||
{
|
||||
value: 57005,
|
||||
text: "ISCII Telugu "
|
||||
},
|
||||
{
|
||||
value: 57006,
|
||||
text: "ISCII Assamese "
|
||||
},
|
||||
{
|
||||
value: 57007,
|
||||
text: "ISCII Oriya"
|
||||
},
|
||||
{
|
||||
value: 57008,
|
||||
text: "ISCII Kannada"
|
||||
},
|
||||
{
|
||||
value: 57009,
|
||||
text: "ISCII Malayalam "
|
||||
},
|
||||
{
|
||||
value: 57010,
|
||||
text: "ISCII Gujarati"
|
||||
},
|
||||
{
|
||||
value: 57011,
|
||||
text: "ISCII Punjabi"
|
||||
},
|
||||
{
|
||||
value: 65000,
|
||||
text: "Unicode (UTF-7)"
|
||||
},
|
||||
{
|
||||
value: 65001,
|
||||
text: "Unicode (UTF-8)"
|
||||
}]
|
||||
},
|
||||
{
|
||||
xtype: "selectfield",
|
||||
name: "delimiter",
|
||||
label: this.txtDelimiter,
|
||||
options: [{
|
||||
value: 4,
|
||||
text: ","
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
text: ";"
|
||||
},
|
||||
{
|
||||
value: 3,
|
||||
text: ":"
|
||||
},
|
||||
{
|
||||
value: 1,
|
||||
text: this.txtTab
|
||||
},
|
||||
{
|
||||
value: 5,
|
||||
text: this.txtSpace
|
||||
}]
|
||||
}]
|
||||
});
|
||||
this.add({
|
||||
xtype: "button",
|
||||
text: "OK",
|
||||
handler: function () {
|
||||
me.fireEvent("close", this, {
|
||||
encoding: me.getValues().encoding,
|
||||
delimiter: me.getValues().delimiter
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
txtEncoding: "Encoding ",
|
||||
txtDelimiter: "Delimiter",
|
||||
txtTab: "Tab",
|
||||
txtSpace: "Space",
|
||||
txtTitle: "Choose CSV opening options",
|
||||
txtHint: "Please enter the information above."
|
||||
});
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.WorksheetList", {
|
||||
extend: "Ext.Container",
|
||||
requires: (["Ext.dataview.List", "Ext.XTemplate"]),
|
||||
alias: ["widget.seworksheetlist"],
|
||||
config: {
|
||||
layout: {
|
||||
type: "fit"
|
||||
}
|
||||
},
|
||||
initialize: function () {
|
||||
var worksheetItemTpl = Ext.create("Ext.XTemplate", '<tpl for=".">' + '<div class="worksheet-item">{text:htmlEncode}</div>' + "</tpl>");
|
||||
this.add({
|
||||
xtype: "list",
|
||||
store: "Worksheets",
|
||||
itemTpl: worksheetItemTpl,
|
||||
singleSelect: true,
|
||||
itemSelector: "div.worksheet-item",
|
||||
emptyText: "",
|
||||
cls: "x-worksheet-item x-select-overlay"
|
||||
});
|
||||
this.callParent(arguments);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.phone.Main", {
|
||||
extend: "SSE.view.Main",
|
||||
alias: "widget.sephonemain",
|
||||
requires: (["Ext.field.Search"]),
|
||||
config: {
|
||||
cls: "de-phone-main",
|
||||
fullscreen: true,
|
||||
layout: {
|
||||
type: "vbox",
|
||||
pack: "center"
|
||||
}
|
||||
},
|
||||
initialize: function () {
|
||||
var me = this;
|
||||
this.add(Ext.create("SSE.view.phone.toolbar.View", {
|
||||
hidden: true
|
||||
}));
|
||||
this.add(Ext.create("SSE.view.phone.toolbar.Search", {
|
||||
hidden: true
|
||||
}));
|
||||
this.add({
|
||||
xtype: "container",
|
||||
id: "id-pnl-top-fixed",
|
||||
docked: "top",
|
||||
style: "opacity: 0;"
|
||||
});
|
||||
this.add({
|
||||
xtype: "container",
|
||||
layout: "vbox",
|
||||
id: "id-container-document",
|
||||
flex: 1,
|
||||
items: [{
|
||||
xtype: "container",
|
||||
flex: 1,
|
||||
id: "id-sdkeditor"
|
||||
}]
|
||||
});
|
||||
this.add({
|
||||
xtype: "panel",
|
||||
layout: "fit",
|
||||
width: 200,
|
||||
height: 200,
|
||||
id: "id-worksheets-panel",
|
||||
top: 0,
|
||||
left: 0,
|
||||
modal: true,
|
||||
hidden: true,
|
||||
hideOnMaskTap: true,
|
||||
items: [{
|
||||
xtype: "seworksheetlist"
|
||||
}]
|
||||
});
|
||||
this.callParent(arguments);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.phone.toolbar.Search", {
|
||||
extend: "Ext.Toolbar",
|
||||
xtype: "searchtoolbar",
|
||||
requires: (["Ext.Label", "Ext.field.Search"]),
|
||||
config: {
|
||||
docked: "top",
|
||||
minHeight: 52,
|
||||
ui: "search"
|
||||
},
|
||||
initialize: function () {
|
||||
this.add([{
|
||||
xtype: "searchfield",
|
||||
id: "id-field-search",
|
||||
placeHolder: this.searchText,
|
||||
flex: 1
|
||||
},
|
||||
{
|
||||
xtype: "segmentedbutton",
|
||||
allowToggle: false,
|
||||
ui: "base",
|
||||
items: [{
|
||||
id: "id-btn-search-prev",
|
||||
ui: "base",
|
||||
iconCls: "search-prev",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
id: "id-btn-search-next",
|
||||
ui: "base",
|
||||
iconCls: "search-next",
|
||||
disabled: true
|
||||
}]
|
||||
}]);
|
||||
this.callParent(arguments);
|
||||
},
|
||||
searchText: "Search"
|
||||
});
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.phone.toolbar.View", {
|
||||
extend: "Ext.Toolbar",
|
||||
xtype: "viewtoolbar",
|
||||
config: {
|
||||
docked: "top",
|
||||
minHeight: 44,
|
||||
ui: "edit"
|
||||
},
|
||||
initialize: function () {
|
||||
this.add([{
|
||||
id: "id-tb-btn-view-done",
|
||||
ui: "base-blue",
|
||||
cls: "text-offset-12",
|
||||
hidden: true,
|
||||
text: this.doneText
|
||||
},
|
||||
{
|
||||
xtype: "spacer"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-search",
|
||||
ui: "base",
|
||||
iconCls: "search"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-pages",
|
||||
ui: "base",
|
||||
iconCls: "pages"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-fullscreen",
|
||||
ui: "base",
|
||||
iconCls: "fullscreen"
|
||||
},
|
||||
{
|
||||
xtype: "spacer"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-view-share",
|
||||
ui: "base",
|
||||
iconCls: "share"
|
||||
}]);
|
||||
this.callParent(arguments);
|
||||
},
|
||||
doneText: "Done",
|
||||
editText: "Edit"
|
||||
});
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.tablet.Main", {
|
||||
extend: "SSE.view.Main",
|
||||
alias: "widget.setabletmain",
|
||||
requires: (["SSE.view.tablet.toolbar.Search", "SSE.view.tablet.toolbar.View", "SSE.view.WorksheetList"]),
|
||||
config: {
|
||||
fullscreen: true,
|
||||
layout: {
|
||||
type: "vbox",
|
||||
pack: "center"
|
||||
}
|
||||
},
|
||||
initialize: function () {
|
||||
this.add(Ext.create("SSE.view.tablet.toolbar.View", {
|
||||
hidden: true
|
||||
}));
|
||||
this.add(Ext.create("SSE.view.tablet.toolbar.Search", {
|
||||
hidden: true
|
||||
}));
|
||||
this.add({
|
||||
xtype: "container",
|
||||
layout: "vbox",
|
||||
id: "id-container-document",
|
||||
flex: 1,
|
||||
items: [{
|
||||
xtype: "container",
|
||||
flex: 1,
|
||||
id: "id-sdkeditor"
|
||||
}]
|
||||
});
|
||||
this.add({
|
||||
xtype: "panel",
|
||||
layout: "fit",
|
||||
width: 200,
|
||||
height: 200,
|
||||
id: "id-worksheets-panel",
|
||||
top: 0,
|
||||
left: 0,
|
||||
modal: true,
|
||||
hidden: true,
|
||||
hideOnMaskTap: true,
|
||||
items: [{
|
||||
xtype: "seworksheetlist"
|
||||
}]
|
||||
});
|
||||
this.callParent(arguments);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.tablet.toolbar.Search", {
|
||||
extend: "Ext.Toolbar",
|
||||
xtype: "searchtoolbar",
|
||||
requires: (["Ext.Label", "Ext.field.Search"]),
|
||||
config: {
|
||||
docked: "top",
|
||||
minHeight: 52,
|
||||
ui: "search"
|
||||
},
|
||||
initialize: function () {
|
||||
this.add([{
|
||||
xtype: "searchfield",
|
||||
id: "id-field-search",
|
||||
placeHolder: this.searchText,
|
||||
flex: 1
|
||||
},
|
||||
{
|
||||
xtype: "segmentedbutton",
|
||||
allowToggle: false,
|
||||
ui: "base",
|
||||
items: [{
|
||||
id: "id-btn-search-prev",
|
||||
ui: "base",
|
||||
iconCls: "search-prev",
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
id: "id-btn-search-next",
|
||||
ui: "base",
|
||||
iconCls: "search-next",
|
||||
disabled: true
|
||||
}]
|
||||
}]);
|
||||
this.callParent(arguments);
|
||||
},
|
||||
searchText: "Search"
|
||||
});
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* (c) Copyright Ascensio System SIA 2010-2014
|
||||
*
|
||||
* This program is a free software product. You can redistribute it and/or
|
||||
* modify it under the terms of the GNU Affero General Public License (AGPL)
|
||||
* version 3 as published by the Free Software Foundation. In accordance with
|
||||
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
|
||||
* that Ascensio System SIA expressly excludes the warranty of non-infringement
|
||||
* of any third-party rights.
|
||||
*
|
||||
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
|
||||
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
|
||||
*
|
||||
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
|
||||
* EU, LV-1021.
|
||||
*
|
||||
* The interactive user interfaces in modified source and object code versions
|
||||
* of the Program must display Appropriate Legal Notices, as required under
|
||||
* Section 5 of the GNU AGPL version 3.
|
||||
*
|
||||
* Pursuant to Section 7(b) of the License you must retain the original Product
|
||||
* logo when distributing the program. Pursuant to Section 7(e) we decline to
|
||||
* grant you any rights under trademark law for use of our trademarks.
|
||||
*
|
||||
* All the Product's GUI elements, including illustrations and icon sets, as
|
||||
* well as technical writing content are licensed under the terms of the
|
||||
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
|
||||
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
*
|
||||
*/
|
||||
Ext.define("SSE.view.tablet.toolbar.View", {
|
||||
extend: "Ext.Toolbar",
|
||||
xtype: "viewtoolbar",
|
||||
config: {
|
||||
docked: "top",
|
||||
minHeight: 44,
|
||||
ui: "edit"
|
||||
},
|
||||
initialize: function () {
|
||||
this.add([{
|
||||
id: "id-tb-btn-view-done",
|
||||
ui: "base-blue",
|
||||
cls: "text-offset-12",
|
||||
hidden: true,
|
||||
text: this.doneText
|
||||
},
|
||||
{
|
||||
xtype: "spacer"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-search",
|
||||
ui: "base",
|
||||
iconCls: "search"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-pages",
|
||||
ui: "base",
|
||||
iconCls: "pages"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-fullscreen",
|
||||
ui: "base",
|
||||
iconCls: "fullscreen"
|
||||
},
|
||||
{
|
||||
xtype: "spacer"
|
||||
},
|
||||
{
|
||||
id: "id-tb-btn-view-share",
|
||||
ui: "base",
|
||||
iconCls: "share"
|
||||
}]);
|
||||
this.callParent(arguments);
|
||||
},
|
||||
doneText: "Done",
|
||||
editText: "Edit"
|
||||
});
|
||||
217
OfficeWeb/apps/spreadsheeteditor/mobile/index.html
Normal file
@@ -0,0 +1,217 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ONLYOFFICE Spreadsheet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="description" content="" />
|
||||
<meta name="keywords" content="" />
|
||||
|
||||
<!-- splash -->
|
||||
|
||||
<style type="text/css">
|
||||
.loadmask {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
background-color: #f4f4f4;
|
||||
z-index: 20002;
|
||||
}
|
||||
|
||||
.loadmask-body {
|
||||
position:relative;
|
||||
top:44%;
|
||||
}
|
||||
|
||||
.loadmask-logo {
|
||||
display:inline-block;
|
||||
min-width:220px;
|
||||
height: 62px;
|
||||
vertical-align:top;
|
||||
background-image:url('./resources/img/loading-logo.gif');
|
||||
background-image: -webkit-image-set(url('./resources/img/loading-logo.gif') 1x, url('./resources/img/loading-logo@2x.gif') 2x);
|
||||
background-repeat:no-repeat;
|
||||
}
|
||||
|
||||
#loadmask-text {
|
||||
color: #b2b2b2;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
font-family: Arial;
|
||||
height:14px;
|
||||
margin-top:32px;
|
||||
padding-left:40px;
|
||||
text-align:left;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- 3rdparty -->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../sdk/Excel/css/main-mobile.css"/>
|
||||
|
||||
<script type="text/javascript" src="../../../3rdparty/touch/sencha-touch-debug.js"></script>
|
||||
<script type="text/javascript" src="../../../3rdparty/jquery/jquery-1.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../3rdparty/xregexp/xregexp-all-min.js"></script>
|
||||
<script type="text/javascript" src="../../../3rdparty/sockjs/sockjs-0.3.min.js"></script>
|
||||
|
||||
<!-- Application -->
|
||||
|
||||
<script type="text/javascript" src="../../common/Analytics.js"></script>
|
||||
<script type="text/javascript" src="../../common/Gateway.js"></script>
|
||||
<script type="text/javascript" src="../../common/mobile/loader.js"></script>
|
||||
<script type="text/javascript" src="app.js"></script>
|
||||
<script type="text/javascript" src="../../common/locale.js"></script>
|
||||
|
||||
<!-- SDK -->
|
||||
|
||||
<script type="text/javascript" src="../../../sdk/Common/docscoapisettings.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/AllFonts.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/browser.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/docscoapisettings.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/docscoapicommon.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/docscoapi.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/downloaderfiles.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/apiCommon.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/commonDefines.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/editorscommon.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/NumFormat.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/Charts/charts.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/Charts/DrawingObjects.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/FontsFreeType/font_engine.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/FontsFreeType/FontFile.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/FontsFreeType/FontManager.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Drawing/HatchPattern.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Drawing/Externals.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Drawing/Graphics.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Drawing/Metafile.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/GlobalLoaders.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/trackFile.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/apiDefines.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/offlinedocs/test-workbook9/Editor.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/offlinedocs/empty-workbook.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/utils/utils.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/clipboard.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/autofilters.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/graphics/DrawingContext.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/graphics/pdfprinter.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/CollaborativeEditing.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/ConditionalFormatting.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/parserFormula.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/dateandtimeFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/engineeringFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/cubeFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/databaseFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/textanddataFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/statisticalFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/financialFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/mathematicFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/lookupandreferenceFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/informationFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/FormulaObjects/logicalFunctions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/Serialize.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/WorkbookElems.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/Workbook.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/CellInfo.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/AdvancedOptions.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/History.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/UndoRedo.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/CellComment.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/view/StringRender.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/view/CellTextRender.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/view/CellEditorView.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/view/WorksheetView.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/view/HandlerList.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/view/EventsController.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/view/WorkbookView.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/scroll.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Drawing/ColorArray.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/Shapes/EditorSettings.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/Shapes/Serialize.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/Shapes/SerializeWriter.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Editor/SerializeCommon.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Format.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Editor/GraphicObjects/ObjectTypes/CreateGeometry.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Geometry.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Path.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Editor/GraphicObjects/Math.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/Drawing/ArcTo.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Common/SerializeCommonWordExcel.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/DrawingObjectsController.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/States.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/GroupShape.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Image.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Shape.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/TextBody.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Styles.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Numbering.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/ParagraphContent.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Paragraph.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/DocumentContent.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/FontClassification.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/Chart.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/ChartLayout.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/ChartLegend.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Format/ChartTitle.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Tracks/AdjustmentTracks.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Tracks/ResizeTracks.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Tracks/RotateTracks.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Tracks/NewShapeTracks.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Tracks/PolyLine.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Tracks/Spline.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Tracks/MoveTracks.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Hit.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Controls.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Graphics.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/Overlay.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/GlobalCounters.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/DrawingDocument.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/model/DrawingObjects/ShapeDrawer.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Word/apiCommon.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/api.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
if (!(Ext.browser.is.WebKit && (Ext.os.is.iOS || Ext.os.is.Android || Ext.os.is.Desktop))) {
|
||||
document.write(
|
||||
'<div id="unsuported-view-id" class="unsuported-view"></div>'
|
||||
);
|
||||
} else {
|
||||
document.write(
|
||||
'<div id="loading-mask" class="loadmask">' +
|
||||
'<div class="loadmask-body" align="center">' +
|
||||
'<div class="loadmask-logo">' +
|
||||
// '<div id="loadmask-text">LOADING APPLICATION</div>' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
'</div>');
|
||||
}
|
||||
|
||||
var injectStyleElement = function(url) {
|
||||
var style = document.createElement('link'),
|
||||
documentHead = typeof document != 'undefined' && (document.head || document.getElementsByTagName('head')[0]);
|
||||
|
||||
style.rel = 'stylesheet';
|
||||
style.href = url;
|
||||
style.type = 'text/css';
|
||||
|
||||
if (documentHead) {
|
||||
documentHead.appendChild(style);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
injectStyleElement(
|
||||
(window.devicePixelRatio > 1)
|
||||
? 'resources/css/application-retina.css'
|
||||
: 'resources/css/application-normal.css'
|
||||
);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
113
OfficeWeb/apps/spreadsheeteditor/mobile/index.html.deploy
Normal file
@@ -0,0 +1,113 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ONLYOFFICE Spreadsheet</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="description" content="" />
|
||||
<meta name="keywords" content="" />
|
||||
|
||||
<!-- splash -->
|
||||
|
||||
<style type="text/css">
|
||||
.loadmask {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
background-color: #f4f4f4;
|
||||
z-index: 20002;
|
||||
}
|
||||
|
||||
.loadmask-body {
|
||||
position:relative;
|
||||
top:44%;
|
||||
}
|
||||
|
||||
.loadmask-logo {
|
||||
display:inline-block;
|
||||
min-width:220px;
|
||||
height: 62px;
|
||||
vertical-align:top;
|
||||
background-image:url('./resources/img/loading-logo.gif');
|
||||
background-repeat:no-repeat;
|
||||
}
|
||||
|
||||
#loadmask-text {
|
||||
color: #b2b2b2;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
font-family: Arial;
|
||||
height:14px;
|
||||
margin-top:32px;
|
||||
padding-left:40px;
|
||||
text-align:left;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- 3rdparty -->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../sdk/Excel/css/main-mobile.css"/>
|
||||
|
||||
<script type="text/javascript" src="../../../3rdparty/touch/sencha-touch-all.js"></script>
|
||||
<script type="text/javascript" src="../../../3rdparty/jquery/jquery-1.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../3rdparty/xregexp/xregexp-all-min.js"></script>
|
||||
<script type="text/javascript" src="../../../3rdparty/sockjs/sockjs-0.3.min.js"></script>
|
||||
|
||||
<!-- SDK -->
|
||||
|
||||
<script type="text/javascript" src="../../../sdk/Common/AllFonts.js"></script>
|
||||
<script type="text/javascript" src="../../../sdk/Excel/sdk-all.js"></script>
|
||||
|
||||
<!-- Application -->
|
||||
|
||||
<link rel="stylesheet" href="../../../apps/spreadsheeteditor/mobile/resources/css/application-normal.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../apps/spreadsheeteditor/mobile/app-all.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
if (!(Ext.browser.is.WebKit && (Ext.os.is.iOS || Ext.os.is.Android || Ext.os.is.Desktop))) {
|
||||
document.write(
|
||||
'<div id="unsuported-view-id" class="unsuported-view"></div>'
|
||||
);
|
||||
} else {
|
||||
var injectStyleElement = function(url) {
|
||||
var style = document.createElement('link'),
|
||||
documentHead = typeof document != 'undefined' && (document.head || document.getElementsByTagName('head')[0]);
|
||||
|
||||
style.rel = 'stylesheet';
|
||||
style.href = url;
|
||||
style.type = 'text/css';
|
||||
|
||||
if (documentHead) {
|
||||
documentHead.appendChild(style);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
document.write(
|
||||
'<div id="loading-mask" class="loadmask">' +
|
||||
'<div class="loadmask-body" align="center">' +
|
||||
'<div class="loadmask-logo">' +
|
||||
// '<div id="loadmask-text">LOADING APPLICATION</div>' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
'</div>');
|
||||
|
||||
injectStyleElement(
|
||||
(window.devicePixelRatio > 1)
|
||||
? 'resources/css/application-retina.css'
|
||||
: 'resources/css/application-normal.css'
|
||||
);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
30
OfficeWeb/apps/spreadsheeteditor/mobile/locale/de.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"SSE.controller.Main.convertationErrorText": "Konvertierung ist fehlgeschlagen.",
|
||||
"SSE.controller.Main.convertationTimeoutText": "Timeout für die Konvertierung wurde überschritten.",
|
||||
"SSE.controller.Main.criticalErrorExtText": "Klicken Sie auf \"OK\", um die Seite neu zu laden.",
|
||||
"SSE.controller.Main.criticalErrorTitle": "Fehler",
|
||||
"SSE.controller.Main.downloadErrorText": "Download ist fehlgeschlagen.",
|
||||
"SSE.controller.Main.errorDefaultMessage": "Fehlercode: %1",
|
||||
"SSE.controller.Main.errorKeyEncrypt": "Unbekannter Schlüsseldeskriptor",
|
||||
"SSE.controller.Main.errorKeyExpire": "Der Schlüsseldeskriptor ist abgelaufen",
|
||||
"SSE.controller.Main.errorUsersExceed": "Die nach dem Zahlungsplan erlaubte Benutzeranzahl ist überschritten",
|
||||
"SSE.controller.Main.notcriticalErrorTitle": "Warnung",
|
||||
"SSE.controller.Main.printText": "Drucken...",
|
||||
"SSE.controller.Main.textAnonymous": "Anonym",
|
||||
"SSE.controller.Main.textLoadingDocument": "Ladevorgang",
|
||||
"SSE.controller.Main.unknownErrorText": "Unbekannter Fehler.",
|
||||
"SSE.controller.Main.unsupportedBrowserErrorText ": "Ihr Webbrowser wird nicht unterstützt.",
|
||||
"SSE.controller.Main.uploadImageExtMessage": "Unbekanntes Bildformat.",
|
||||
"SSE.controller.Main.uploadImageFileCountMessage": "Keine Bilder hochgeladen.",
|
||||
"SSE.controller.Main.uploadImageSizeMessage": "Die maximal zulässige Bildgröße ist überschritten.",
|
||||
"SSE.view.OpenCsvPanel.txtDelimiter": "Trennzeichen",
|
||||
"SSE.view.OpenCsvPanel.txtEncoding": "Codierung ",
|
||||
"SSE.view.OpenCsvPanel.txtHint": "Bitte geben Sie die oben angegebenen Daten ein.",
|
||||
"SSE.view.OpenCsvPanel.txtSpace": "Leerzeichen",
|
||||
"SSE.view.OpenCsvPanel.txtTab": "Tabulator",
|
||||
"SSE.view.OpenCsvPanel.txtTitle": "CSV-Öffnungsoptionen wählen",
|
||||
"SSE.view.phone.toolbar.Search.searchText": "Suchen",
|
||||
"SSE.view.phone.toolbar.View.doneText": "Fertig",
|
||||
"SSE.view.tablet.toolbar.Search.searchText": "Suchen",
|
||||
"SSE.view.tablet.toolbar.View.doneText": "Fertig"
|
||||
}
|
||||
30
OfficeWeb/apps/spreadsheeteditor/mobile/locale/en.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"SSE.controller.Main.convertationErrorText": "Conversion failed.",
|
||||
"SSE.controller.Main.convertationTimeoutText": "Conversion timeout exceeded.",
|
||||
"SSE.controller.Main.criticalErrorExtText": "Press \"OK\" to reload view page.",
|
||||
"SSE.controller.Main.criticalErrorTitle": "Error",
|
||||
"SSE.controller.Main.downloadErrorText": "Download failed.",
|
||||
"SSE.controller.Main.errorDefaultMessage": "Error code: %1",
|
||||
"SSE.controller.Main.errorKeyEncrypt": "Unknown key descriptor",
|
||||
"SSE.controller.Main.errorKeyExpire": "Key descriptor expired",
|
||||
"SSE.controller.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
|
||||
"SSE.controller.Main.notcriticalErrorTitle": "Warning",
|
||||
"SSE.controller.Main.printText": "Printing...",
|
||||
"SSE.controller.Main.textAnonymous": "Anonymous",
|
||||
"SSE.controller.Main.textLoadingDocument": "Loading document",
|
||||
"SSE.controller.Main.unknownErrorText": "Unknown error.",
|
||||
"SSE.controller.Main.unsupportedBrowserErrorText ": "Your browser is not supported.",
|
||||
"SSE.controller.Main.uploadImageExtMessage": "Unknown image format.",
|
||||
"SSE.controller.Main.uploadImageFileCountMessage": "No images uploaded.",
|
||||
"SSE.controller.Main.uploadImageSizeMessage": "Maximium image size limit exceeded.",
|
||||
"SSE.view.OpenCsvPanel.txtDelimiter": "Delimiter",
|
||||
"SSE.view.OpenCsvPanel.txtEncoding": "Encoding ",
|
||||
"SSE.view.OpenCsvPanel.txtHint": "Please enter the information above.",
|
||||
"SSE.view.OpenCsvPanel.txtSpace": "Space",
|
||||
"SSE.view.OpenCsvPanel.txtTab": "Tab",
|
||||
"SSE.view.OpenCsvPanel.txtTitle": "Choose CSV opening options",
|
||||
"SSE.view.phone.toolbar.Search.searchText": "Search",
|
||||
"SSE.view.phone.toolbar.View.doneText": "Done",
|
||||
"SSE.view.tablet.toolbar.Search.searchText": "Search",
|
||||
"SSE.view.tablet.toolbar.View.doneText": "Done"
|
||||
}
|
||||
30
OfficeWeb/apps/spreadsheeteditor/mobile/locale/es.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"SSE.controller.Main.convertationErrorText": "Conversión fallida.",
|
||||
"SSE.controller.Main.convertationTimeoutText": "Tiempo de conversión está superado.",
|
||||
"SSE.controller.Main.criticalErrorExtText": "Pulse \"OK\" para recargar la página",
|
||||
"SSE.controller.Main.criticalErrorTitle": "Error",
|
||||
"SSE.controller.Main.downloadErrorText": "Descarga fallida.",
|
||||
"SSE.controller.Main.errorDefaultMessage": "Código de error: %1",
|
||||
"SSE.controller.Main.errorKeyEncrypt": "Descriptor de clave desconocido",
|
||||
"SSE.controller.Main.errorKeyExpire": "Descriptor de clave ha expirado",
|
||||
"SSE.controller.Main.errorUsersExceed": "El número de usuarios permitido según su plano de precios fue excedido",
|
||||
"SSE.controller.Main.notcriticalErrorTitle": "Aviso",
|
||||
"SSE.controller.Main.printText": "Imprimiendo...",
|
||||
"SSE.controller.Main.textAnonymous": "Anónimo",
|
||||
"SSE.controller.Main.textLoadingDocument": "Cargando documento",
|
||||
"SSE.controller.Main.unknownErrorText": "Error desconocido.",
|
||||
"SSE.controller.Main.unsupportedBrowserErrorText ": "Su navegador no está soportado.",
|
||||
"SSE.controller.Main.uploadImageExtMessage": "Formato de imagen desconocido.",
|
||||
"SSE.controller.Main.uploadImageFileCountMessage": "No hay imágenes subidas.",
|
||||
"SSE.controller.Main.uploadImageSizeMessage": "Tamaño de imagen máximo está superado.",
|
||||
"SSE.view.OpenCsvPanel.txtDelimiter": "Delimitador",
|
||||
"SSE.view.OpenCsvPanel.txtEncoding": "Codificación ",
|
||||
"SSE.view.OpenCsvPanel.txtHint": "Por favor introduzca la información más arriba.",
|
||||
"SSE.view.OpenCsvPanel.txtSpace": "Espacio",
|
||||
"SSE.view.OpenCsvPanel.txtTab": "Tab",
|
||||
"SSE.view.OpenCsvPanel.txtTitle": "Seleccione las opciones de apertura CSV",
|
||||
"SSE.view.phone.toolbar.Search.searchText": "Búsqueda",
|
||||
"SSE.view.phone.toolbar.View.doneText": "Listo",
|
||||
"SSE.view.tablet.toolbar.Search.searchText": "Búsqueda",
|
||||
"SSE.view.tablet.toolbar.View.doneText": "Listo"
|
||||
}
|
||||
30
OfficeWeb/apps/spreadsheeteditor/mobile/locale/fr.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"SSE.controller.Main.convertationErrorText": "Échec de la conversion.",
|
||||
"SSE.controller.Main.convertationTimeoutText": "Expiration du délai de conversion.",
|
||||
"SSE.controller.Main.criticalErrorExtText": "Cliquez sur \"Ok\" pour recharger la page.",
|
||||
"SSE.controller.Main.criticalErrorTitle": "Erreur",
|
||||
"SSE.controller.Main.downloadErrorText": "Échec du téléchargement.",
|
||||
"SSE.controller.Main.errorDefaultMessage": "Code d'erreur: %1",
|
||||
"SSE.controller.Main.errorKeyEncrypt": "Descripteur de clés inconnu",
|
||||
"SSE.controller.Main.errorKeyExpire": "Descripteur de clés expiré",
|
||||
"SSE.controller.Main.errorUsersExceed": "Le nombre d'utilisateurs autorisés par le plan tarifaire a été dépassé",
|
||||
"SSE.controller.Main.notcriticalErrorTitle": "Avertissement",
|
||||
"SSE.controller.Main.printText": "Impression en cours...",
|
||||
"SSE.controller.Main.textAnonymous": "Anonyme",
|
||||
"SSE.controller.Main.textLoadingDocument": "Chargement du document",
|
||||
"SSE.controller.Main.unknownErrorText": "Erreur inconnue.",
|
||||
"SSE.controller.Main.unsupportedBrowserErrorText ": "Votre navigateur n'est pas pris en charge.",
|
||||
"SSE.controller.Main.uploadImageExtMessage": "Format d'image inconnu.",
|
||||
"SSE.controller.Main.uploadImageFileCountMessage": "Aucune image n'est téléchargée.",
|
||||
"SSE.controller.Main.uploadImageSizeMessage": "La taille de l'image a dépassé la limite maximale.",
|
||||
"SSE.view.OpenCsvPanel.txtDelimiter": "Délimiteur",
|
||||
"SSE.view.OpenCsvPanel.txtEncoding": "Codage ",
|
||||
"SSE.view.OpenCsvPanel.txtHint": "Entrez les informations ci-dessus.",
|
||||
"SSE.view.OpenCsvPanel.txtSpace": "Espace",
|
||||
"SSE.view.OpenCsvPanel.txtTab": "Tabulation",
|
||||
"SSE.view.OpenCsvPanel.txtTitle": "Sélectionnez les options d'ouverture de CSV",
|
||||
"SSE.view.phone.toolbar.Search.searchText": "Recherche",
|
||||
"SSE.view.phone.toolbar.View.doneText": "Fait",
|
||||
"SSE.view.tablet.toolbar.Search.searchText": "Recherche",
|
||||
"SSE.view.tablet.toolbar.View.doneText": "Fait"
|
||||
}
|
||||
30
OfficeWeb/apps/spreadsheeteditor/mobile/locale/it.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"SSE.controller.Main.convertationErrorText": "Conversione fallita.",
|
||||
"SSE.controller.Main.convertationTimeoutText": "E' stato superato il tempo limite della conversione.",
|
||||
"SSE.controller.Main.criticalErrorExtText": "Clicca su \"OK\" per ricaricare la pagina.",
|
||||
"SSE.controller.Main.criticalErrorTitle": "Errore",
|
||||
"SSE.controller.Main.downloadErrorText": "Download fallito.",
|
||||
"SSE.controller.Main.errorDefaultMessage": "Codice errore: %1",
|
||||
"SSE.controller.Main.errorKeyEncrypt": "Descrittore di chiave sconosciuto",
|
||||
"SSE.controller.Main.errorKeyExpire": "Descrittore di chiave scaduto",
|
||||
"SSE.controller.Main.errorUsersExceed": "E' stato superato il numero di utenti consentito dal piano tariffario",
|
||||
"SSE.controller.Main.notcriticalErrorTitle": "Avviso",
|
||||
"SSE.controller.Main.printText": "Stampa in corso...",
|
||||
"SSE.controller.Main.textAnonymous": "Anonimo",
|
||||
"SSE.controller.Main.textLoadingDocument": "Caricamento del documento",
|
||||
"SSE.controller.Main.unknownErrorText": "Errore sconosciuto.",
|
||||
"SSE.controller.Main.unsupportedBrowserErrorText ": "Il tuo browser non è supportato.",
|
||||
"SSE.controller.Main.uploadImageExtMessage": "Formato immagine sconosciuto.",
|
||||
"SSE.controller.Main.uploadImageFileCountMessage": "Nessun immagine caricata.",
|
||||
"SSE.controller.Main.uploadImageSizeMessage": "E' stata superata la dimensione massima.",
|
||||
"SSE.view.OpenCsvPanel.txtDelimiter": "Delimitatore",
|
||||
"SSE.view.OpenCsvPanel.txtEncoding": "Codifica ",
|
||||
"SSE.view.OpenCsvPanel.txtHint": "Si prega di inserire le informazioni al di sopra.",
|
||||
"SSE.view.OpenCsvPanel.txtSpace": "Spazio",
|
||||
"SSE.view.OpenCsvPanel.txtTab": "Scheda",
|
||||
"SSE.view.OpenCsvPanel.txtTitle": "Seleziona opzioni di apertura CSV",
|
||||
"SSE.view.phone.toolbar.Search.searchText": "Ricerca",
|
||||
"SSE.view.phone.toolbar.View.doneText": "Fatto",
|
||||
"SSE.view.tablet.toolbar.Search.searchText": "Ricerca",
|
||||
"SSE.view.tablet.toolbar.View.doneText": "Fatto"
|
||||
}
|
||||
28
OfficeWeb/apps/spreadsheeteditor/mobile/locale/lv.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"SSE.controller.Main.convertationErrorText": "Conversion failed.",
|
||||
"SSE.controller.Main.convertationTimeoutText": "Conversion timeout exceeded.",
|
||||
"SSE.controller.Main.criticalErrorExtText": "Press \"OK\" to reload view page.",
|
||||
"SSE.controller.Main.criticalErrorTitle": "Error",
|
||||
"SSE.controller.Main.downloadErrorText": "Download failed.",
|
||||
"SSE.controller.Main.errorDefaultMessage": "Error code: %1",
|
||||
"SSE.controller.Main.errorKeyEncrypt": "Unknown key descriptor",
|
||||
"SSE.controller.Main.errorKeyExpire": "Key descriptor expired",
|
||||
"SSE.controller.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
|
||||
"SSE.controller.Main.notcriticalErrorTitle": "Warning",
|
||||
"SSE.controller.Main.printText": "Drukā...",
|
||||
"SSE.controller.Main.unknownErrorText": "Unknown error.",
|
||||
"SSE.controller.Main.unsupportedBrowserErrorText ": "Your browser is not supported.",
|
||||
"SSE.controller.Main.uploadImageExtMessage": "Unknown image format.",
|
||||
"SSE.controller.Main.uploadImageFileCountMessage": "No images uploaded.",
|
||||
"SSE.controller.Main.uploadImageSizeMessage": "Maximium image size limit exceeded.",
|
||||
"SSE.view.OpenCsvPanel.txtDelimiter": "Norobežotājs",
|
||||
"SSE.view.OpenCsvPanel.txtEncoding": "Kodēšana",
|
||||
"SSE.view.OpenCsvPanel.txtHint": "Lūdzu ievadiet informāciju augstāk.",
|
||||
"SSE.view.OpenCsvPanel.txtSpace": "Space",
|
||||
"SSE.view.OpenCsvPanel.txtTab": "Tab",
|
||||
"SSE.view.OpenCsvPanel.txtTitle": "Izvēlieties CSV atvēršanas opcijas",
|
||||
"SSE.view.phone.toolbar.Search.searchText": "Search",
|
||||
"SSE.view.phone.toolbar.View.doneText": "Done",
|
||||
"SSE.view.tablet.toolbar.Search.searchText": "Search",
|
||||
"SSE.view.tablet.toolbar.View.doneText": "Done"
|
||||
}
|
||||
30
OfficeWeb/apps/spreadsheeteditor/mobile/locale/ru.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"SSE.controller.Main.convertationErrorText": "Конвертация не удалась.",
|
||||
"SSE.controller.Main.convertationTimeoutText": "Превышено время ожидания конвертации.",
|
||||
"SSE.controller.Main.criticalErrorExtText": "Нажмите \"OK\", чтобы обновить страницу.",
|
||||
"SSE.controller.Main.criticalErrorTitle": "Ошибка",
|
||||
"SSE.controller.Main.downloadErrorText": "Загрузка не удалась.",
|
||||
"SSE.controller.Main.errorDefaultMessage": "Код ошибки: %1",
|
||||
"SSE.controller.Main.errorKeyEncrypt": "Неизвестный дескриптор ключа",
|
||||
"SSE.controller.Main.errorKeyExpire": "Срок действия дескриптора ключа истек",
|
||||
"SSE.controller.Main.errorUsersExceed": "Превышено количество пользователей, разрешенных согласно тарифному плану",
|
||||
"SSE.controller.Main.notcriticalErrorTitle": "Предупреждение",
|
||||
"SSE.controller.Main.printText": "Печать...",
|
||||
"SSE.controller.Main.textAnonymous": "Аноним",
|
||||
"SSE.controller.Main.textLoadingDocument": "Загрузка документа",
|
||||
"SSE.controller.Main.unknownErrorText": "Неизвестная ошибка.",
|
||||
"SSE.controller.Main.unsupportedBrowserErrorText ": "Ваш браузер не поддерживается.",
|
||||
"SSE.controller.Main.uploadImageExtMessage": "Неизвестный формат изображения.",
|
||||
"SSE.controller.Main.uploadImageFileCountMessage": "Ни одного изображения не загружено.",
|
||||
"SSE.controller.Main.uploadImageSizeMessage": "Превышен максимальный размер изображения.",
|
||||
"SSE.view.OpenCsvPanel.txtDelimiter": "Разделитель",
|
||||
"SSE.view.OpenCsvPanel.txtEncoding": "Кодировка ",
|
||||
"SSE.view.OpenCsvPanel.txtHint": "Пожалуйста, введите информацию выше.",
|
||||
"SSE.view.OpenCsvPanel.txtSpace": "Пробел",
|
||||
"SSE.view.OpenCsvPanel.txtTab": "Табуляция",
|
||||
"SSE.view.OpenCsvPanel.txtTitle": "Выбрать параметры открытия CSV",
|
||||
"SSE.view.phone.toolbar.Search.searchText": "Поиск",
|
||||
"SSE.view.phone.toolbar.View.doneText": "Готово",
|
||||
"SSE.view.tablet.toolbar.Search.searchText": "Поиск",
|
||||
"SSE.view.tablet.toolbar.View.doneText": "Готово"
|
||||
}
|
||||
BIN
OfficeWeb/apps/spreadsheeteditor/mobile/resources/img/icon.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 728 B |
|
After Width: | Height: | Size: 669 B |
|
After Width: | Height: | Size: 618 B |
|
After Width: | Height: | Size: 788 B |
|
After Width: | Height: | Size: 752 B |
@@ -0,0 +1,112 @@
|
||||
// Basic
|
||||
$base-color : #cbcbcb;
|
||||
$active-color : #798d45;
|
||||
$base-gradient : 'matte';
|
||||
$include-default-icons : false;
|
||||
$include-default-uis : false;
|
||||
|
||||
// Toolbar
|
||||
$toolbar-icon-size : 1.0em;
|
||||
|
||||
// Setting list
|
||||
$settinglist-icon-size : 24px;
|
||||
$settinglist-image-width : 72px;
|
||||
$settinglist-image-height : 48px;
|
||||
|
||||
// Image default icons
|
||||
$icons-default-size : 24px;
|
||||
$icons-default-image-width : 72px;
|
||||
$icons-default-image-height : 624px;
|
||||
|
||||
@import 'sencha-touch/default/all';
|
||||
|
||||
@include sencha-panel;
|
||||
@include sencha-buttons;
|
||||
@include sencha-toolbar;
|
||||
@include sencha-toolbar-forms;
|
||||
@include sencha-indexbar;
|
||||
@include sencha-list;
|
||||
@include sencha-layout;
|
||||
@include sencha-form;
|
||||
@include sencha-msgbox;
|
||||
@include sencha-loading-spinner;
|
||||
|
||||
@import 'common-buttons';
|
||||
@import 'common-dataview';
|
||||
@import 'common-toolbar';
|
||||
@import 'common-settingspanel';
|
||||
@import 'common-planarspinner';
|
||||
@import 'common-settingslist';
|
||||
@import 'common-messagebox';
|
||||
|
||||
@import 'application-mixins';
|
||||
//@import 'application-dataview';
|
||||
|
||||
@include common-settings-panel;
|
||||
@include common-planar-spinner;
|
||||
|
||||
@include common-toolbar-ui('edit', $base-color);
|
||||
@include common-toolbar-ui('search', $base-color);
|
||||
|
||||
@include application-icon-normal('save', 0);
|
||||
@include application-icon-normal('undo', 1);
|
||||
@include application-icon-normal('share', 2);
|
||||
@include application-icon-normal('font-style', 3);
|
||||
@include application-icon-normal('font-color', 4);
|
||||
@include application-icon-normal('bold', 5);
|
||||
@include application-icon-normal('italic', 6);
|
||||
@include application-icon-normal('underline', 7);
|
||||
@include application-icon-normal('align-left', 8);
|
||||
@include application-icon-normal('align-center', 9);
|
||||
@include application-icon-normal('align-right', 10);
|
||||
@include application-icon-normal('align-fill', 11);
|
||||
@include application-icon-normal('pages', 12);
|
||||
@include application-icon-normal('search-prev', 13);
|
||||
@include application-icon-normal('search-next', 14);
|
||||
@include application-icon-normal('insert', 15);
|
||||
@include application-icon-normal('search', 16);
|
||||
@include application-icon-normal('fullscreen', 17);
|
||||
@include application-icon-normal('spinner-down', 18);
|
||||
@include application-icon-normal('spinner-up', 19);
|
||||
@include application-icon-normal('table', 20);
|
||||
@include application-icon-normal('picture', 21);
|
||||
@include application-icon-normal('insert-row', 22);
|
||||
@include application-icon-normal('insert-column', 23);
|
||||
@include application-icon-normal('textbigger', 24);
|
||||
@include application-icon-normal('textless', 25);
|
||||
|
||||
|
||||
@include common-button-ui('base', $base-color);
|
||||
@include common-button-ui('light', lighten($base-color, 100%));
|
||||
@include common-button-ui('base-blue', $active-color, 'dark');
|
||||
@include common-button-ui('back', $base-color);
|
||||
|
||||
/*
|
||||
* unsupport
|
||||
*/
|
||||
|
||||
//TODO: need retina resolution
|
||||
.unsuported-view {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: url(../img/ios-only.png) no-repeat center #efefef;
|
||||
background-attachment: fixed;
|
||||
z-index: 90000;
|
||||
}
|
||||
|
||||
/*
|
||||
* Additional styles
|
||||
*/
|
||||
|
||||
.x-button.text-offset-12 {
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.x-button.text-offset-30 {
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
@mixin application-icon-normal($name, $index) {
|
||||
.x-button-icon.#{$name},
|
||||
.list-icon.#{$name} {
|
||||
background-image: url($icons-default-path);
|
||||
background-color: transparent;
|
||||
background-position: 0 -1 * $index * $icons-default-size;
|
||||
background-size: $icons-default-image-width $icons-default-image-height;
|
||||
}
|
||||
|
||||
.x-button-pressing,
|
||||
.x-button-pressed,
|
||||
.x-button-active,
|
||||
.x-item-pressed {
|
||||
.x-button-icon.#{$name},
|
||||
.list-icon.#{$name} {
|
||||
background-position: -1 * $icons-default-size -1 * $index * $icons-default-size;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
$icons-default-path : '../img/icons/icons-normal.png';
|
||||
$icons-setting-list-image : '../img/icons/list-normal.png';
|
||||
|
||||
@import 'application-base';
|
||||
@@ -0,0 +1,4 @@
|
||||
$icons-default-path : '../img/icons/icons-retina.png';
|
||||
$icons-setting-list-image : '../img/icons/list-retina.png';
|
||||
|
||||
@import 'application-base';
|
||||
@@ -0,0 +1,14 @@
|
||||
# Get the directory that this configuration file exists in
|
||||
dir = File.dirname(__FILE__)
|
||||
|
||||
# Load the sencha-touch framework automatically.
|
||||
load File.join(dir, '..', '..', '..', '..', '..', '3rdparty', 'touch', 'resources', 'themes')
|
||||
|
||||
# Add include path for command styles
|
||||
add_import_path File.join(dir, '..', '..', '..', '..', '..', 'apps', 'common', 'mobile', 'resources', 'sass')
|
||||
|
||||
# Compass configurations
|
||||
sass_path = dir
|
||||
css_path = File.join(dir, "..", "css")
|
||||
environment = :development
|
||||
output_style = :expanded
|
||||
@@ -0,0 +1,11 @@
|
||||
# Get the directory that this configuration file exists in
|
||||
dir = File.dirname(__FILE__)
|
||||
|
||||
# Load the sencha-touch framework automatically.
|
||||
load File.join(dir, '..', '..', '..', '..', '..', '3rdparty', 'touch', 'resources', 'themes')
|
||||
|
||||
# Compass configurations
|
||||
sass_path = dir
|
||||
css_path = File.join(dir, "..", "css")
|
||||
environment = :production
|
||||
output_style = :compressed
|
||||