3.0 source code

This commit is contained in:
agolybev
2015-04-28 17:59:00 +03:00
parent c69fd34bdd
commit 7b3b2248e5
16311 changed files with 1445974 additions and 3108429 deletions

View File

@@ -1,72 +1,72 @@
/*
* (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("DE.view.tablet.Main", {
extend: "DE.view.Main",
alias: "widget.detabletmain",
requires: (["Common.view.PopClip", "DE.view.tablet.panel.FontStyle", "DE.view.tablet.panel.Insert", "DE.view.tablet.panel.ListStyle", "DE.view.tablet.panel.ParagraphAlignment", "DE.view.tablet.panel.Spacing", "DE.view.tablet.panel.TextColor", "DE.view.tablet.toolbar.Edit", "DE.view.tablet.toolbar.Search", "DE.view.tablet.toolbar.View"]),
config: {
cls: "de-tablet-main",
fullscreen: true,
layout: {
type: "vbox",
pack: "center"
}
},
initialize: function () {
var me = this;
this.add(Ext.create("DE.view.tablet.toolbar.Edit", {
hidden: true
}));
this.add(Ext.create("DE.view.tablet.toolbar.View", {
hidden: true
}));
this.add(Ext.create("DE.view.tablet.toolbar.Search", {
hidden: true
}));
this.add({
xtype: "container",
layout: "vbox",
id: "id-conteiner-document",
flex: 1,
items: [{
xtype: "container",
flex: 1,
id: "id-sdkeditor"
}]
});
this.add({
xtype: "popclip",
hidden: true
});
this.callParent(arguments);
}
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.Main", {
extend: "DE.view.Main",
alias: "widget.detabletmain",
requires: (["Common.view.PopClip", "DE.view.tablet.panel.FontStyle", "DE.view.tablet.panel.Insert", "DE.view.tablet.panel.ListStyle", "DE.view.tablet.panel.ParagraphAlignment", "DE.view.tablet.panel.Spacing", "DE.view.tablet.panel.TextColor", "DE.view.tablet.toolbar.Edit", "DE.view.tablet.toolbar.Search", "DE.view.tablet.toolbar.View"]),
config: {
cls: "de-tablet-main",
fullscreen: true,
layout: {
type: "vbox",
pack: "center"
}
},
initialize: function () {
var me = this;
this.add(Ext.create("DE.view.tablet.toolbar.Edit", {
hidden: true
}));
this.add(Ext.create("DE.view.tablet.toolbar.View", {
hidden: true
}));
this.add(Ext.create("DE.view.tablet.toolbar.Search", {
hidden: true
}));
this.add({
xtype: "container",
layout: "vbox",
id: "id-conteiner-document",
flex: 1,
items: [{
xtype: "container",
flex: 1,
id: "id-sdkeditor"
}]
});
this.add({
xtype: "popclip",
hidden: true
});
this.callParent(arguments);
}
});

View File

@@ -1,119 +1,119 @@
/*
* (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("DE.view.tablet.panel.Font", {
extend: "Common.view.PopoverPanel",
alias: "widget.fontpanel",
requires: (["Ext.NavigationView", "Common.component.PlanarSpinner"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-font-navigate",
autoDestroy: false,
cls: "plain",
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
hidden: true,
ui: "edit"
},
layout: {
type: "card",
animation: null
},
items: [{
xtype: "container",
layout: "hbox",
height: 31,
id: "id-font-root",
style: "background: transparent;",
items: [{
xtype: "button",
id: "id-btn-fontname",
ui: "base",
style: "font-size: .7em;",
text: this.fontNameText,
width: 185
},
{
xtype: "spacer",
width: 7
},
{
xtype: "planarspinnerfield",
width: 135,
minValue: 6,
maxValue: 100,
stepValue: 1,
cycle: false,
component: {
disabled: false
}
},
{
xtype: "spacer",
width: 7
},
{
xtype: "segmentedbutton",
id: "id-toggle-baseline",
ui: "base",
cls: "divided",
allowDepress: true,
items: [{
id: "id-btn-baseline-up",
ui: "base",
iconCls: "superscript"
},
{
id: "id-btn-baseline-down",
ui: "base",
iconCls: "subscript"
}]
}]
}]
});
me.add({
xtype: "settingslist",
hidden: true,
title: this.fontNameText,
id: "id-font-name",
disableSelection: false,
variableHeights: false,
store: Ext.create("Common.store.SettingsList", {})
});
this.callParent(arguments);
},
fontNameText: "Font Name",
backText: "Back"
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.panel.Font", {
extend: "Common.view.PopoverPanel",
alias: "widget.fontpanel",
requires: (["Ext.NavigationView", "Common.component.PlanarSpinner"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-font-navigate",
autoDestroy: false,
cls: "plain",
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
hidden: true,
ui: "edit"
},
layout: {
type: "card",
animation: null
},
items: [{
xtype: "container",
layout: "hbox",
height: 31,
id: "id-font-root",
style: "background: transparent;",
items: [{
xtype: "button",
id: "id-btn-fontname",
ui: "base",
style: "font-size: .7em;",
text: this.fontNameText,
width: 185
},
{
xtype: "spacer",
width: 7
},
{
xtype: "planarspinnerfield",
width: 135,
minValue: 6,
maxValue: 100,
stepValue: 1,
cycle: false,
component: {
disabled: false
}
},
{
xtype: "spacer",
width: 7
},
{
xtype: "segmentedbutton",
id: "id-toggle-baseline",
ui: "base",
cls: "divided",
allowDepress: true,
items: [{
id: "id-btn-baseline-up",
ui: "base",
iconCls: "superscript"
},
{
id: "id-btn-baseline-down",
ui: "base",
iconCls: "subscript"
}]
}]
}]
});
me.add({
xtype: "settingslist",
hidden: true,
title: this.fontNameText,
id: "id-font-name",
disableSelection: false,
variableHeights: false,
store: Ext.create("Common.store.SettingsList", {})
});
this.callParent(arguments);
},
fontNameText: "Font Name",
backText: "Back"
});

View File

@@ -1,66 +1,66 @@
/*
* (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("DE.view.tablet.panel.FontStyle", {
extend: "Common.view.PopoverPanel",
alias: "widget.fontstylepanel",
requires: (["Ext.SegmentedButton"]),
initialize: function () {
var me = this;
me.add({
xtype: "container",
layout: "hbox",
items: [{
xtype: "segmentedbutton",
id: "id-toggle-fontstyles",
ui: "base",
cls: "divided",
allowMultiple: true,
items: [{
id: "id-btn-fontstyle-bold",
ui: "base",
iconCls: "bold"
},
{
id: "id-btn-fontstyle-italic",
ui: "base",
iconCls: "italic"
},
{
id: "id-btn-fontstyle-underline",
ui: "base",
iconCls: "underline"
}]
}]
});
this.callParent(arguments);
}
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.panel.FontStyle", {
extend: "Common.view.PopoverPanel",
alias: "widget.fontstylepanel",
requires: (["Ext.SegmentedButton"]),
initialize: function () {
var me = this;
me.add({
xtype: "container",
layout: "hbox",
items: [{
xtype: "segmentedbutton",
id: "id-toggle-fontstyles",
ui: "base",
cls: "divided",
allowMultiple: true,
items: [{
id: "id-btn-fontstyle-bold",
ui: "base",
iconCls: "bold"
},
{
id: "id-btn-fontstyle-italic",
ui: "base",
iconCls: "italic"
},
{
id: "id-btn-fontstyle-underline",
ui: "base",
iconCls: "underline"
}]
}]
});
this.callParent(arguments);
}
});

View File

@@ -1,163 +1,163 @@
/*
* (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("DE.view.tablet.panel.Insert", {
extend: "Common.view.PopoverPanel",
alias: "widget.insertpanel",
requires: (["Ext.NavigationView", "Common.component.PlanarSpinner"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-insert-navigate",
autoDestroy: false,
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
ui: "edit"
},
items: [{
xtype: "settingslist",
title: this.insertText,
id: "id-insert-root",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: this.insertTableText,
icon: "table",
group: "table",
child: "id-insert-table-container"
},
{
setting: this.insertRowText,
icon: "insert-row",
group: "table",
id: "id-insert-table-row"
},
{
setting: this.insertColumnText,
icon: "insert-column",
group: "table",
id: "id-insert-table-column"
},
{
setting: this.insertPicture,
icon: "picture",
group: "image",
child: "id-insert-picture-container"
}]
})
}]
});
me.add({
xtype: "container",
hidden: true,
title: this.tableText,
id: "id-insert-table-container",
padding: 10,
cls: "round",
items: [{
xtype: "planarspinnerfield",
id: "id-spinner-table-columns",
margin: "9",
label: this.columnsText,
labelWidth: "55%",
minValue: 2,
maxValue: 20,
stepValue: 1,
cycle: false
},
{
xtype: "spacer",
height: 2
},
{
xtype: "planarspinnerfield",
id: "id-spinner-table-rows",
margin: "9",
label: this.rowsText,
labelWidth: "55%",
minValue: 2,
maxValue: 20,
stepValue: 1,
cycle: false
},
{
xtype: "container",
padding: "5 5",
items: [{
xtype: "button",
id: "id-btn-insert-table",
ui: "light",
cls: "border-radius-10",
height: 44,
text: this.insertTableText
}]
}]
});
me.add({
xtype: "settingslist",
title: this.pictureText,
hidden: true,
id: "id-insert-picture-container",
ui: "round",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: '<div class="btn-input-image" style="display: inline-block;" id="id-insert-picture-inline">' + this.pictureUploadInline + '<input style="height: 44px;" type="file" accept="image/*" capture="camera"></div>',
group: "wrap"
},
{
setting: '<div class="btn-input-image" style="display: inline-block;" id="id-insert-picture-float">' + this.pictureUploadFloat + '<input style="height: 44px;" type="file" accept="image/*" capture="camera"></div>',
group: "wrap"
}]
})
});
this.callParent(arguments);
},
backText: "Back",
insertText: "Insert",
insertTableText: "Insert Table",
insertRowText: "Insert Row",
insertColumnText: "Insert Column",
insertPicture: "Insert Picture",
tableText: "Table",
columnsText: "Columns",
rowsText: "Rows",
pictureText: "Picture",
pictureUploadInline: "Insert Inline",
pictureUploadFloat: "Insert Float"
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.panel.Insert", {
extend: "Common.view.PopoverPanel",
alias: "widget.insertpanel",
requires: (["Ext.NavigationView", "Common.component.PlanarSpinner"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-insert-navigate",
autoDestroy: false,
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
ui: "edit"
},
items: [{
xtype: "settingslist",
title: this.insertText,
id: "id-insert-root",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: this.insertTableText,
icon: "table",
group: "table",
child: "id-insert-table-container"
},
{
setting: this.insertRowText,
icon: "insert-row",
group: "table",
id: "id-insert-table-row"
},
{
setting: this.insertColumnText,
icon: "insert-column",
group: "table",
id: "id-insert-table-column"
},
{
setting: this.insertPicture,
icon: "picture",
group: "image",
child: "id-insert-picture-container"
}]
})
}]
});
me.add({
xtype: "container",
hidden: true,
title: this.tableText,
id: "id-insert-table-container",
padding: 10,
cls: "round",
items: [{
xtype: "planarspinnerfield",
id: "id-spinner-table-columns",
margin: "9",
label: this.columnsText,
labelWidth: "55%",
minValue: 2,
maxValue: 20,
stepValue: 1,
cycle: false
},
{
xtype: "spacer",
height: 2
},
{
xtype: "planarspinnerfield",
id: "id-spinner-table-rows",
margin: "9",
label: this.rowsText,
labelWidth: "55%",
minValue: 2,
maxValue: 20,
stepValue: 1,
cycle: false
},
{
xtype: "container",
padding: "5 5",
items: [{
xtype: "button",
id: "id-btn-insert-table",
ui: "light",
cls: "border-radius-10",
height: 44,
text: this.insertTableText
}]
}]
});
me.add({
xtype: "settingslist",
title: this.pictureText,
hidden: true,
id: "id-insert-picture-container",
ui: "round",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: '<div class="btn-input-image" style="display: inline-block;" id="id-insert-picture-inline">' + this.pictureUploadInline + '<input style="height: 44px;" type="file" accept="image/*" capture="camera"></div>',
group: "wrap"
},
{
setting: '<div class="btn-input-image" style="display: inline-block;" id="id-insert-picture-float">' + this.pictureUploadFloat + '<input style="height: 44px;" type="file" accept="image/*" capture="camera"></div>',
group: "wrap"
}]
})
});
this.callParent(arguments);
},
backText: "Back",
insertText: "Insert",
insertTableText: "Insert Table",
insertRowText: "Insert Row",
insertColumnText: "Insert Column",
insertPicture: "Insert Picture",
tableText: "Table",
columnsText: "Columns",
rowsText: "Rows",
pictureText: "Picture",
pictureUploadInline: "Insert Inline",
pictureUploadFloat: "Insert Float"
});

View File

@@ -1,289 +1,289 @@
/*
* (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("DE.view.tablet.panel.ListStyle", {
extend: "Common.view.PopoverPanel",
alias: "widget.liststylepanel",
requires: (["Ext.NavigationView", "Common.component.SettingsList"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-liststyle-navigate",
autoDestroy: false,
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
ui: "edit"
},
items: [{
xtype: "settingslist",
title: this.listStyleText,
id: "id-liststyle-root",
ui: "round",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: this.bulletsText,
icon: "bullets",
group: "markers",
child: "id-liststyle-bullets"
},
{
setting: this.numberingText,
icon: "numbering",
group: "markers",
child: "id-liststyle-numbering"
},
{
setting: this.outlineText,
icon: "outline",
group: "markers",
child: "id-liststyle-outline"
},
{
setting: this.incIndentText,
icon: "indent-inc",
group: "indent",
id: "id-list-indent-increment"
},
{
setting: this.decIndentText,
icon: "indent-dec",
group: "indent",
id: "id-list-indent-decrement"
}]
})
}]
});
me.add({
title: this.bulletsText,
hidden: true,
id: "id-liststyle-bullets",
xtype: "container",
layout: "vbox",
cls: "round",
items: [{
xtype: "dataview",
flex: 1,
cls: "icon-view bullets",
action: "style",
style: "display: inline-block;",
disableSelection: true,
scrollable: {
disabled: true
},
store: {
field: ["bullet", "cls", "type", "subtype"],
data: [{
bullet: "none",
type: 0,
subtype: -1,
cls: "top-left"
},
{
bullet: "bullet-0",
type: 0,
subtype: 1,
cls: ""
},
{
bullet: "bullet-1",
type: 0,
subtype: 2,
cls: ""
},
{
bullet: "bullet-2",
type: 0,
subtype: 3,
cls: "top-right"
},
{
bullet: "bullet-3",
type: 0,
subtype: 4,
cls: "bottom-left"
},
{
bullet: "bullet-4",
type: 0,
subtype: 5,
cls: ""
},
{
bullet: "bullet-5",
type: 0,
subtype: 6,
cls: ""
},
{
bullet: "bullet-6",
type: 0,
subtype: 7,
cls: "bottom-right"
}]
},
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner {cls}">', "<tpl if=\"bullet == 'none'\">", '<div class="text">' + me.noneText + "</div>", "<tpl else>", '<div class="icon {bullet}">&nbsp;</div>', "</tpl>", "</div>", "</tpl>")
}]
});
me.add({
title: this.numberingText,
hidden: true,
id: "id-liststyle-numbering",
xtype: "container",
layout: "vbox",
cls: "round",
items: [{
xtype: "dataview",
flex: 1,
cls: "icon-view numbering",
action: "style",
style: "display: inline-block;",
disableSelection: true,
scrollable: {
disabled: true
},
store: {
field: ["numbering", "cls", "type", "subtype"],
data: [{
numbering: "none",
type: 1,
subtype: -1,
cls: "top-left"
},
{
numbering: "numbering-0",
type: 1,
subtype: 4,
cls: ""
},
{
numbering: "numbering-1",
type: 1,
subtype: 5,
cls: ""
},
{
numbering: "numbering-2",
type: 1,
subtype: 6,
cls: "top-right"
},
{
numbering: "numbering-3",
type: 1,
subtype: 1,
cls: "bottom-left"
},
{
numbering: "numbering-4",
type: 1,
subtype: 2,
cls: ""
},
{
numbering: "numbering-5",
type: 1,
subtype: 3,
cls: ""
},
{
numbering: "numbering-6",
type: 1,
subtype: 7,
cls: "bottom-right"
}]
},
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner {cls}">', "<tpl if=\"numbering == 'none'\">", '<div class="text">' + me.noneText + "</div>", "<tpl else>", '<div class="icon {numbering}">&nbsp;</div>', "</tpl>", "</div>", "</tpl>")
}]
});
me.add({
title: this.outlineText,
hidden: true,
id: "id-liststyle-outline",
xtype: "container",
layout: "vbox",
cls: "round",
items: [{
xtype: "dataview",
flex: 1,
cls: "icon-view outline",
action: "style",
style: "display: inline-block;",
disableSelection: true,
scrollable: {
disabled: true
},
store: {
field: ["outline", "cls", "type", "subtype"],
data: [{
outline: "none",
type: 2,
subtype: -1,
cls: "top-left bottom-left"
},
{
outline: "outline-0",
type: 2,
subtype: 1,
cls: ""
},
{
outline: "outline-1",
type: 2,
subtype: 2,
cls: ""
},
{
outline: "outline-2",
type: 2,
subtype: 3,
cls: "top-right bottom-right"
}]
},
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner {cls}">', "<tpl if=\"outline == 'none'\">", '<div class="text">' + me.noneText + "</div>", "<tpl else>", '<div class="icon {outline}">&nbsp;</div>', "</tpl>", "</div>", "</tpl>")
}]
});
this.callParent(arguments);
},
backText: "Back",
listStyleText: "List Style",
bulletsText: "Bullets",
numberingText: "Numbering",
outlineText: "Outline",
incIndentText: "Increment indent",
decIndentText: "Decrement Indent",
noneText: "none"
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.panel.ListStyle", {
extend: "Common.view.PopoverPanel",
alias: "widget.liststylepanel",
requires: (["Ext.NavigationView", "Common.component.SettingsList"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-liststyle-navigate",
autoDestroy: false,
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
ui: "edit"
},
items: [{
xtype: "settingslist",
title: this.listStyleText,
id: "id-liststyle-root",
ui: "round",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: this.bulletsText,
icon: "bullets",
group: "markers",
child: "id-liststyle-bullets"
},
{
setting: this.numberingText,
icon: "numbering",
group: "markers",
child: "id-liststyle-numbering"
},
{
setting: this.outlineText,
icon: "outline",
group: "markers",
child: "id-liststyle-outline"
},
{
setting: this.incIndentText,
icon: "indent-inc",
group: "indent",
id: "id-list-indent-increment"
},
{
setting: this.decIndentText,
icon: "indent-dec",
group: "indent",
id: "id-list-indent-decrement"
}]
})
}]
});
me.add({
title: this.bulletsText,
hidden: true,
id: "id-liststyle-bullets",
xtype: "container",
layout: "vbox",
cls: "round",
items: [{
xtype: "dataview",
flex: 1,
cls: "icon-view bullets",
action: "style",
style: "display: inline-block;",
disableSelection: true,
scrollable: {
disabled: true
},
store: {
field: ["bullet", "cls", "type", "subtype"],
data: [{
bullet: "none",
type: 0,
subtype: -1,
cls: "top-left"
},
{
bullet: "bullet-0",
type: 0,
subtype: 1,
cls: ""
},
{
bullet: "bullet-1",
type: 0,
subtype: 2,
cls: ""
},
{
bullet: "bullet-2",
type: 0,
subtype: 3,
cls: "top-right"
},
{
bullet: "bullet-3",
type: 0,
subtype: 4,
cls: "bottom-left"
},
{
bullet: "bullet-4",
type: 0,
subtype: 5,
cls: ""
},
{
bullet: "bullet-5",
type: 0,
subtype: 6,
cls: ""
},
{
bullet: "bullet-6",
type: 0,
subtype: 7,
cls: "bottom-right"
}]
},
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner {cls}">', "<tpl if=\"bullet == 'none'\">", '<div class="text">' + me.noneText + "</div>", "<tpl else>", '<div class="icon {bullet}">&nbsp;</div>', "</tpl>", "</div>", "</tpl>")
}]
});
me.add({
title: this.numberingText,
hidden: true,
id: "id-liststyle-numbering",
xtype: "container",
layout: "vbox",
cls: "round",
items: [{
xtype: "dataview",
flex: 1,
cls: "icon-view numbering",
action: "style",
style: "display: inline-block;",
disableSelection: true,
scrollable: {
disabled: true
},
store: {
field: ["numbering", "cls", "type", "subtype"],
data: [{
numbering: "none",
type: 1,
subtype: -1,
cls: "top-left"
},
{
numbering: "numbering-0",
type: 1,
subtype: 4,
cls: ""
},
{
numbering: "numbering-1",
type: 1,
subtype: 5,
cls: ""
},
{
numbering: "numbering-2",
type: 1,
subtype: 6,
cls: "top-right"
},
{
numbering: "numbering-3",
type: 1,
subtype: 1,
cls: "bottom-left"
},
{
numbering: "numbering-4",
type: 1,
subtype: 2,
cls: ""
},
{
numbering: "numbering-5",
type: 1,
subtype: 3,
cls: ""
},
{
numbering: "numbering-6",
type: 1,
subtype: 7,
cls: "bottom-right"
}]
},
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner {cls}">', "<tpl if=\"numbering == 'none'\">", '<div class="text">' + me.noneText + "</div>", "<tpl else>", '<div class="icon {numbering}">&nbsp;</div>', "</tpl>", "</div>", "</tpl>")
}]
});
me.add({
title: this.outlineText,
hidden: true,
id: "id-liststyle-outline",
xtype: "container",
layout: "vbox",
cls: "round",
items: [{
xtype: "dataview",
flex: 1,
cls: "icon-view outline",
action: "style",
style: "display: inline-block;",
disableSelection: true,
scrollable: {
disabled: true
},
store: {
field: ["outline", "cls", "type", "subtype"],
data: [{
outline: "none",
type: 2,
subtype: -1,
cls: "top-left bottom-left"
},
{
outline: "outline-0",
type: 2,
subtype: 1,
cls: ""
},
{
outline: "outline-1",
type: 2,
subtype: 2,
cls: ""
},
{
outline: "outline-2",
type: 2,
subtype: 3,
cls: "top-right bottom-right"
}]
},
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner {cls}">', "<tpl if=\"outline == 'none'\">", '<div class="text">' + me.noneText + "</div>", "<tpl else>", '<div class="icon {outline}">&nbsp;</div>', "</tpl>", "</div>", "</tpl>")
}]
});
this.callParent(arguments);
},
backText: "Back",
listStyleText: "List Style",
bulletsText: "Bullets",
numberingText: "Numbering",
outlineText: "Outline",
incIndentText: "Increment indent",
decIndentText: "Decrement Indent",
noneText: "none"
});

View File

@@ -1,69 +1,69 @@
/*
* (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("DE.view.tablet.panel.ParagraphAlignment", {
extend: "Common.view.PopoverPanel",
alias: "widget.paragraphalignmentpanel",
initialize: function () {
var me = this;
me.add({
xtype: "container",
layout: "hbox",
items: [{
xtype: "segmentedbutton",
id: "id-toggle-paragraphalignment",
ui: "base",
cls: "divided",
items: [{
id: "id-btn-paragraphalignment-left",
ui: "base",
iconCls: "align-left"
},
{
id: "id-btn-paragraphalignment-center",
ui: "base",
iconCls: "align-center"
},
{
id: "id-btn-paragraphalignment-right",
ui: "base",
iconCls: "align-right"
},
{
id: "id-btn-paragraphalignment-fill",
ui: "base",
iconCls: "align-fill"
}]
}]
});
this.callParent(arguments);
}
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.panel.ParagraphAlignment", {
extend: "Common.view.PopoverPanel",
alias: "widget.paragraphalignmentpanel",
initialize: function () {
var me = this;
me.add({
xtype: "container",
layout: "hbox",
items: [{
xtype: "segmentedbutton",
id: "id-toggle-paragraphalignment",
ui: "base",
cls: "divided",
items: [{
id: "id-btn-paragraphalignment-left",
ui: "base",
iconCls: "align-left"
},
{
id: "id-btn-paragraphalignment-center",
ui: "base",
iconCls: "align-center"
},
{
id: "id-btn-paragraphalignment-right",
ui: "base",
iconCls: "align-right"
},
{
id: "id-btn-paragraphalignment-fill",
ui: "base",
iconCls: "align-fill"
}]
}]
});
this.callParent(arguments);
}
});

View File

@@ -1,119 +1,119 @@
/*
* (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("DE.view.tablet.panel.Spacing", {
extend: "Common.view.PopoverPanel",
alias: "widget.spacingpanel",
requires: (["Ext.NavigationView", "Common.component.SettingsList"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-spacing-navigate",
autoDestroy: false,
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
ui: "edit"
},
items: [{
xtype: "settingslist",
title: this.spacingText,
id: "id-spacing-root",
ui: "round",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: this.lineSpacingText,
icon: "spacing",
group: "line",
child: "id-spacing-linespacing"
},
{
setting: this.incIndentText,
icon: "indent-inc",
group: "indent",
id: "id-linespacing-increaseindent"
},
{
setting: this.decIndentText,
icon: "indent-dec",
group: "indent",
id: "id-linespacing-decrementindent"
}]
})
}]
});
me.add({
title: this.spacingText,
hidden: true,
id: "id-spacing-linespacing",
xtype: "settingslist",
disableSelection: false,
allowDeselect: true,
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: "1.0",
group: "spacing"
},
{
setting: "1.15",
group: "spacing"
},
{
setting: "1.5",
group: "spacing"
},
{
setting: "2",
group: "spacing"
},
{
setting: "2.5",
group: "spacing"
},
{
setting: "3.0",
group: "spacing"
}]
})
});
this.callParent(arguments);
},
backText: "Back",
spacingText: "Spacing",
lineSpacingText: "Paragraph Line Spacing",
incIndentText: "Increase Indent",
decIndentText: "Decrement Indent"
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.panel.Spacing", {
extend: "Common.view.PopoverPanel",
alias: "widget.spacingpanel",
requires: (["Ext.NavigationView", "Common.component.SettingsList"]),
initialize: function () {
var me = this;
me.add({
xtype: "navigationview",
id: "id-spacing-navigate",
autoDestroy: false,
defaultBackButtonText: this.backText,
navigationBar: {
height: 44,
minHeight: 44,
ui: "edit"
},
items: [{
xtype: "settingslist",
title: this.spacingText,
id: "id-spacing-root",
ui: "round",
scrollable: {
disabled: true
},
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: this.lineSpacingText,
icon: "spacing",
group: "line",
child: "id-spacing-linespacing"
},
{
setting: this.incIndentText,
icon: "indent-inc",
group: "indent",
id: "id-linespacing-increaseindent"
},
{
setting: this.decIndentText,
icon: "indent-dec",
group: "indent",
id: "id-linespacing-decrementindent"
}]
})
}]
});
me.add({
title: this.spacingText,
hidden: true,
id: "id-spacing-linespacing",
xtype: "settingslist",
disableSelection: false,
allowDeselect: true,
store: Ext.create("Common.store.SettingsList", {
data: [{
setting: "1.0",
group: "spacing"
},
{
setting: "1.15",
group: "spacing"
},
{
setting: "1.5",
group: "spacing"
},
{
setting: "2",
group: "spacing"
},
{
setting: "2.5",
group: "spacing"
},
{
setting: "3.0",
group: "spacing"
}]
})
});
this.callParent(arguments);
},
backText: "Back",
spacingText: "Spacing",
lineSpacingText: "Paragraph Line Spacing",
incIndentText: "Increase Indent",
decIndentText: "Decrement Indent"
});

View File

@@ -1,219 +1,219 @@
/*
* (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("DE.view.tablet.toolbar.Edit", {
extend: "Ext.Toolbar",
xtype: "edittoolbar",
requires: (["Common.component.RepeatableButton"]),
config: {
docked: "top",
zIndex: 5,
minHeight: 44,
ui: "edit"
},
initialize: function () {
var me = this;
this.add([{
xtype: "toolbar",
minHeight: 40,
flex: 1,
style: "margin: 0; padding: 0;",
items: [{
id: "id-tb-btn-done",
ui: "base-blue",
cls: "text-offset-12",
text: this.doneText
},
{
id: "id-tb-btn-save",
ui: "base",
iconCls: "save"
}]
},
{
xtype: "repeatablebutton",
id: "id-tb-btn-undo",
disabled: true,
ui: "base",
iconCls: "undo"
},
{
xtype: "spacer",
width: 30
},
{
id: "id-tb-btn-font",
ui: "base",
cls: "text-offset-30",
text: this.fontText
},
{
id: "id-tb-btn-style",
ui: "base",
iconCls: "font-style"
},
{
id: "id-tb-btn-color",
ui: "base",
iconCls: "font-color"
},
{
xtype: "spacer",
width: 30
},
{
id: "id-tb-btn-align",
ui: "base",
iconCls: "align-left"
},
{
id: "id-tb-btn-liststyle",
ui: "base",
iconCls: "bullets"
},
{
id: "id-tb-btn-paragraph",
ui: "base",
iconCls: "spacing"
},
{
xtype: "spacer",
width: 30
},
{
id: "id-tb-btn-table",
ui: "base",
iconCls: "insert"
},
{
xtype: "toolbar",
minHeight: 40,
flex: 1,
style: "margin: 0; padding: 0;",
layout: {
type: "hbox",
pack: "end"
},
items: [{
id: "id-tb-btn-share",
ui: "base",
iconCls: "share"
}]
}]);
this.add({
xtype: "fontpanel",
layout: "fit",
ui: "settings",
width: 440,
height: 46,
id: "id-panel-font",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "fontstylepanel",
layout: "fit",
ui: "settings",
width: 154,
height: 45,
id: "id-panel-font-style",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "textcolorsettingspanel",
layout: "fit",
ui: "settings",
width: 350,
height: 172,
id: "id-panel-text-color",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "paragraphalignmentpanel",
layout: "fit",
ui: "settings",
width: 205,
height: 45,
id: "id-panel-paragraph-alignment",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "liststylepanel",
layout: "fit",
ui: "settings",
width: 337,
height: 328,
id: "id-panel-liststyle",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "spacingpanel",
layout: "fit",
ui: "settings",
width: 350,
height: 235,
id: "id-panel-spacing",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "insertpanel",
layout: "fit",
ui: "settings",
width: 350,
height: 283,
id: "id-panel-insert",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.callParent(arguments);
},
doneText: "Done",
fontText: "Font"
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.toolbar.Edit", {
extend: "Ext.Toolbar",
xtype: "edittoolbar",
requires: (["Common.component.RepeatableButton"]),
config: {
docked: "top",
zIndex: 5,
minHeight: 44,
ui: "edit"
},
initialize: function () {
var me = this;
this.add([{
xtype: "toolbar",
minHeight: 40,
flex: 1,
style: "margin: 0; padding: 0;",
items: [{
id: "id-tb-btn-done",
ui: "base-blue",
cls: "text-offset-12",
text: this.doneText
},
{
id: "id-tb-btn-save",
ui: "base",
iconCls: "save"
}]
},
{
xtype: "repeatablebutton",
id: "id-tb-btn-undo",
disabled: true,
ui: "base",
iconCls: "undo"
},
{
xtype: "spacer",
width: 30
},
{
id: "id-tb-btn-font",
ui: "base",
cls: "text-offset-30",
text: this.fontText
},
{
id: "id-tb-btn-style",
ui: "base",
iconCls: "font-style"
},
{
id: "id-tb-btn-color",
ui: "base",
iconCls: "font-color"
},
{
xtype: "spacer",
width: 30
},
{
id: "id-tb-btn-align",
ui: "base",
iconCls: "align-left"
},
{
id: "id-tb-btn-liststyle",
ui: "base",
iconCls: "bullets"
},
{
id: "id-tb-btn-paragraph",
ui: "base",
iconCls: "spacing"
},
{
xtype: "spacer",
width: 30
},
{
id: "id-tb-btn-table",
ui: "base",
iconCls: "insert"
},
{
xtype: "toolbar",
minHeight: 40,
flex: 1,
style: "margin: 0; padding: 0;",
layout: {
type: "hbox",
pack: "end"
},
items: [{
id: "id-tb-btn-share",
ui: "base",
iconCls: "share"
}]
}]);
this.add({
xtype: "fontpanel",
layout: "fit",
ui: "settings",
width: 440,
height: 46,
id: "id-panel-font",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "fontstylepanel",
layout: "fit",
ui: "settings",
width: 154,
height: 45,
id: "id-panel-font-style",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "textcolorsettingspanel",
layout: "fit",
ui: "settings",
width: 350,
height: 172,
id: "id-panel-text-color",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "paragraphalignmentpanel",
layout: "fit",
ui: "settings",
width: 205,
height: 45,
id: "id-panel-paragraph-alignment",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "liststylepanel",
layout: "fit",
ui: "settings",
width: 337,
height: 328,
id: "id-panel-liststyle",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "spacingpanel",
layout: "fit",
ui: "settings",
width: 350,
height: 235,
id: "id-panel-spacing",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.add({
xtype: "insertpanel",
layout: "fit",
ui: "settings",
width: 350,
height: 283,
id: "id-panel-insert",
top: 0,
left: 0,
hidden: true,
hideOnMaskTap: true
});
this.callParent(arguments);
},
doneText: "Done",
fontText: "Font"
});

View File

@@ -1,69 +1,69 @@
/*
* (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("DE.view.tablet.toolbar.Search", {
extend: "Ext.Toolbar",
xtype: "searchtoolbar",
requires: (["Ext.Label", "Ext.field.Search"]),
config: {
docked: "top",
zIndex: 10,
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-up",
ui: "base",
iconCls: "spinner-prev",
disabled: true
},
{
id: "id-btn-search-down",
ui: "base",
iconCls: "spinner-next",
disabled: true
}]
}]);
this.callParent(arguments);
},
searchText: "Search"
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.toolbar.Search", {
extend: "Ext.Toolbar",
xtype: "searchtoolbar",
requires: (["Ext.Label", "Ext.field.Search"]),
config: {
docked: "top",
zIndex: 10,
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-up",
ui: "base",
iconCls: "spinner-prev",
disabled: true
},
{
id: "id-btn-search-down",
ui: "base",
iconCls: "spinner-next",
disabled: true
}]
}]);
this.callParent(arguments);
},
searchText: "Search"
});

View File

@@ -1,109 +1,109 @@
/*
* (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("DE.view.tablet.toolbar.View", {
extend: "Ext.Toolbar",
xtype: "viewtoolbar",
config: {
docked: "top",
zIndex: 10,
minHeight: 44,
ui: "edit"
},
initialize: function () {
this.add([{
xtype: "toolbar",
minHeight: 40,
flex: 1,
style: "margin: 0; padding: 0;",
items: [{
id: "id-tb-btn-view-done",
ui: "base-blue",
cls: "text-offset-12",
hidden: true,
text: this.doneText
},
{
id: "id-tb-btn-editmode",
ui: "base",
cls: "text-offset-12",
text: this.editText
},
{
id: "id-tb-btn-readable",
ui: "base",
cls: "text-offset-12",
text: this.readerText
}]
},
{
id: "id-tb-btn-search",
ui: "base",
iconCls: "search"
},
{
id: "id-tb-btn-incfontsize",
ui: "base",
iconCls: "textbigger",
hidden: true
},
{
id: "id-tb-btn-decfontsize",
ui: "base",
iconCls: "textless",
hidden: true
},
{
id: "id-tb-btn-fullscreen",
ui: "base",
iconCls: "fullscreen"
},
{
xtype: "toolbar",
minHeight: 40,
style: "margin: 0; padding: 0;",
layout: {
type: "hbox",
pack: "end"
},
flex: 1,
items: [{
id: "id-tb-btn-view-share",
ui: "base",
iconCls: "share"
}]
}]);
this.callParent(arguments);
},
doneText: "Done",
editText: "Edit",
readerText: "Reader"
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* 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("DE.view.tablet.toolbar.View", {
extend: "Ext.Toolbar",
xtype: "viewtoolbar",
config: {
docked: "top",
zIndex: 10,
minHeight: 44,
ui: "edit"
},
initialize: function () {
this.add([{
xtype: "toolbar",
minHeight: 40,
flex: 1,
style: "margin: 0; padding: 0;",
items: [{
id: "id-tb-btn-view-done",
ui: "base-blue",
cls: "text-offset-12",
hidden: true,
text: this.doneText
},
{
id: "id-tb-btn-editmode",
ui: "base",
cls: "text-offset-12",
text: this.editText
},
{
id: "id-tb-btn-readable",
ui: "base",
cls: "text-offset-12",
text: this.readerText
}]
},
{
id: "id-tb-btn-search",
ui: "base",
iconCls: "search"
},
{
id: "id-tb-btn-incfontsize",
ui: "base",
iconCls: "textbigger",
hidden: true
},
{
id: "id-tb-btn-decfontsize",
ui: "base",
iconCls: "textless",
hidden: true
},
{
id: "id-tb-btn-fullscreen",
ui: "base",
iconCls: "fullscreen"
},
{
xtype: "toolbar",
minHeight: 40,
style: "margin: 0; padding: 0;",
layout: {
type: "hbox",
pack: "end"
},
flex: 1,
items: [{
id: "id-tb-btn-view-share",
ui: "base",
iconCls: "share"
}]
}]);
this.callParent(arguments);
},
doneText: "Done",
editText: "Edit",
readerText: "Reader"
});