init repo
This commit is contained in:
@@ -0,0 +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"
|
||||
});
|
||||
@@ -0,0 +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);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +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"
|
||||
});
|
||||
@@ -0,0 +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}"> </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}"> </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}"> </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"
|
||||
});
|
||||
@@ -0,0 +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);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +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"
|
||||
});
|
||||
@@ -0,0 +1,531 @@
|
||||
/*
|
||||
* (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.TextColor", {
|
||||
extend: "Common.view.PopoverPanel",
|
||||
alias: "widget.textcolorsettingspanel",
|
||||
requires: (["Ext.NavigationView", "Common.component.SettingsList"]),
|
||||
initialize: function () {
|
||||
var me = this;
|
||||
me.add({
|
||||
xtype: "navigationview",
|
||||
id: "id-textcolor-navigate",
|
||||
autoDestroy: false,
|
||||
defaultBackButtonText: this.backText,
|
||||
navigationBar: {
|
||||
height: 44,
|
||||
minHeight: 44,
|
||||
ui: "edit"
|
||||
},
|
||||
items: [{
|
||||
xtype: "settingslist",
|
||||
title: this.colorText,
|
||||
id: "id-textcolor-root",
|
||||
scrollable: {
|
||||
disabled: true
|
||||
},
|
||||
store: Ext.create("Common.store.SettingsList", {
|
||||
data: [{
|
||||
setting: this.highlightColorText,
|
||||
icon: "highlightcolor",
|
||||
group: "color",
|
||||
child: "id-textcolor-highlight"
|
||||
},
|
||||
{
|
||||
setting: this.textColorText,
|
||||
icon: "textcolor",
|
||||
group: "color",
|
||||
child: "id-textcolor-text"
|
||||
}]
|
||||
})
|
||||
}]
|
||||
});
|
||||
me.add({
|
||||
title: this.highlightColorText,
|
||||
hidden: true,
|
||||
id: "id-textcolor-highlight",
|
||||
xtype: "container",
|
||||
layout: "vbox",
|
||||
cls: "round",
|
||||
items: [{
|
||||
xtype: "dataview",
|
||||
flex: 1,
|
||||
cls: "color",
|
||||
style: "display: inline-block;",
|
||||
store: {
|
||||
field: ["color"],
|
||||
data: [{
|
||||
color: "FFFF00"
|
||||
},
|
||||
{
|
||||
color: "00FF00"
|
||||
},
|
||||
{
|
||||
color: "00FFFF"
|
||||
},
|
||||
{
|
||||
color: "FF00FF"
|
||||
},
|
||||
{
|
||||
color: "0000FF"
|
||||
},
|
||||
{
|
||||
color: "FF0000"
|
||||
},
|
||||
{
|
||||
color: "00008B"
|
||||
},
|
||||
{
|
||||
color: "008B8B"
|
||||
},
|
||||
{
|
||||
color: "006400"
|
||||
},
|
||||
{
|
||||
color: "800080"
|
||||
},
|
||||
{
|
||||
color: "8B0000"
|
||||
},
|
||||
{
|
||||
color: "808000"
|
||||
},
|
||||
{
|
||||
color: "FFFFFF"
|
||||
},
|
||||
{
|
||||
color: "D3D3D3"
|
||||
},
|
||||
{
|
||||
color: "A9A9A9"
|
||||
},
|
||||
{
|
||||
color: "000000"
|
||||
}]
|
||||
},
|
||||
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner" style="background-color: #{color};"></div>', "</tpl>")
|
||||
},
|
||||
{
|
||||
xtype: "container",
|
||||
padding: "12 18",
|
||||
items: [{
|
||||
xtype: "button",
|
||||
id: "id-btn-highlight-none",
|
||||
ui: "light",
|
||||
cls: "border-radius-10",
|
||||
height: 44,
|
||||
text: this.noFillText
|
||||
}]
|
||||
}]
|
||||
});
|
||||
me.add({
|
||||
title: this.textColorText,
|
||||
hidden: true,
|
||||
id: "id-textcolor-text",
|
||||
xtype: "container",
|
||||
layout: "vbox",
|
||||
cls: "round",
|
||||
items: [{
|
||||
xtype: "dataview",
|
||||
flex: 1,
|
||||
cls: "color",
|
||||
style: "display: inline-block;",
|
||||
store: {
|
||||
field: ["color"],
|
||||
data: [{
|
||||
color: "FFFFFF"
|
||||
},
|
||||
{
|
||||
color: "EBEBEB"
|
||||
},
|
||||
{
|
||||
color: "D6D6D6"
|
||||
},
|
||||
{
|
||||
color: "C0C0C0"
|
||||
},
|
||||
{
|
||||
color: "AAAAAA"
|
||||
},
|
||||
{
|
||||
color: "929292"
|
||||
},
|
||||
{
|
||||
color: "7A7A7A"
|
||||
},
|
||||
{
|
||||
color: "606060"
|
||||
},
|
||||
{
|
||||
color: "444444"
|
||||
},
|
||||
{
|
||||
color: "232323"
|
||||
},
|
||||
{
|
||||
color: "000000"
|
||||
},
|
||||
{
|
||||
color: "0C3649"
|
||||
},
|
||||
{
|
||||
color: "0E1957"
|
||||
},
|
||||
{
|
||||
color: "14003B"
|
||||
},
|
||||
{
|
||||
color: "2E013E"
|
||||
},
|
||||
{
|
||||
color: "3A051C"
|
||||
},
|
||||
{
|
||||
color: "580504"
|
||||
},
|
||||
{
|
||||
color: "561C04"
|
||||
},
|
||||
{
|
||||
color: "553403"
|
||||
},
|
||||
{
|
||||
color: "523E02"
|
||||
},
|
||||
{
|
||||
color: "646302"
|
||||
},
|
||||
{
|
||||
color: "4E5703"
|
||||
},
|
||||
{
|
||||
color: "263F0E"
|
||||
},
|
||||
{
|
||||
color: "144C64"
|
||||
},
|
||||
{
|
||||
color: "18297A"
|
||||
},
|
||||
{
|
||||
color: "1F0052"
|
||||
},
|
||||
{
|
||||
color: "440259"
|
||||
},
|
||||
{
|
||||
color: "530D2A"
|
||||
},
|
||||
{
|
||||
color: "7D0C08"
|
||||
},
|
||||
{
|
||||
color: "772907"
|
||||
},
|
||||
{
|
||||
color: "764A05"
|
||||
},
|
||||
{
|
||||
color: "745904"
|
||||
},
|
||||
{
|
||||
color: "8A8803"
|
||||
},
|
||||
{
|
||||
color: "6D780A"
|
||||
},
|
||||
{
|
||||
color: "395919"
|
||||
},
|
||||
{
|
||||
color: "216C8E"
|
||||
},
|
||||
{
|
||||
color: "253AA9"
|
||||
},
|
||||
{
|
||||
color: "310076"
|
||||
},
|
||||
{
|
||||
color: "60047C"
|
||||
},
|
||||
{
|
||||
color: "74153F"
|
||||
},
|
||||
{
|
||||
color: "AE1610"
|
||||
},
|
||||
{
|
||||
color: "A63D0E"
|
||||
},
|
||||
{
|
||||
color: "A3690B"
|
||||
},
|
||||
{
|
||||
color: "A27D09"
|
||||
},
|
||||
{
|
||||
color: "C0BF06"
|
||||
},
|
||||
{
|
||||
color: "98A811"
|
||||
},
|
||||
{
|
||||
color: "507C27"
|
||||
},
|
||||
{
|
||||
color: "2C8BB3"
|
||||
},
|
||||
{
|
||||
color: "314DD5"
|
||||
},
|
||||
{
|
||||
color: "3E0094"
|
||||
},
|
||||
{
|
||||
color: "7A069F"
|
||||
},
|
||||
{
|
||||
color: "941E51"
|
||||
},
|
||||
{
|
||||
color: "DA1E17"
|
||||
},
|
||||
{
|
||||
color: "D15014"
|
||||
},
|
||||
{
|
||||
color: "CE8611"
|
||||
},
|
||||
{
|
||||
color: "CC9F0E"
|
||||
},
|
||||
{
|
||||
color: "F0EF0A"
|
||||
},
|
||||
{
|
||||
color: "C0D41B"
|
||||
},
|
||||
{
|
||||
color: "689F34"
|
||||
},
|
||||
{
|
||||
color: "36A1D7"
|
||||
},
|
||||
{
|
||||
color: "3D55FE"
|
||||
},
|
||||
{
|
||||
color: "5301B3"
|
||||
},
|
||||
{
|
||||
color: "980ABD"
|
||||
},
|
||||
{
|
||||
color: "B2275F"
|
||||
},
|
||||
{
|
||||
color: "F83D26"
|
||||
},
|
||||
{
|
||||
color: "F86A1D"
|
||||
},
|
||||
{
|
||||
color: "F7AC16"
|
||||
},
|
||||
{
|
||||
color: "F7CA12"
|
||||
},
|
||||
{
|
||||
color: "FAFF44"
|
||||
},
|
||||
{
|
||||
color: "D6EF39"
|
||||
},
|
||||
{
|
||||
color: "79BE40"
|
||||
},
|
||||
{
|
||||
color: "41C5FB"
|
||||
},
|
||||
{
|
||||
color: "5581FD"
|
||||
},
|
||||
{
|
||||
color: "6800EB"
|
||||
},
|
||||
{
|
||||
color: "BD10F3"
|
||||
},
|
||||
{
|
||||
color: "DE337D"
|
||||
},
|
||||
{
|
||||
color: "F86056"
|
||||
},
|
||||
{
|
||||
color: "F8864D"
|
||||
},
|
||||
{
|
||||
color: "F8B544"
|
||||
},
|
||||
{
|
||||
color: "F8CD44"
|
||||
},
|
||||
{
|
||||
color: "FBFA6D"
|
||||
},
|
||||
{
|
||||
color: "E1F266"
|
||||
},
|
||||
{
|
||||
color: "97D65F"
|
||||
},
|
||||
{
|
||||
color: "6CD4FC"
|
||||
},
|
||||
{
|
||||
color: "81A3FE"
|
||||
},
|
||||
{
|
||||
color: "8D3BFD"
|
||||
},
|
||||
{
|
||||
color: "D145FE"
|
||||
},
|
||||
{
|
||||
color: "E76DA0"
|
||||
},
|
||||
{
|
||||
color: "FA8B84"
|
||||
},
|
||||
{
|
||||
color: "F9A67F"
|
||||
},
|
||||
{
|
||||
color: "F9C879"
|
||||
},
|
||||
{
|
||||
color: "FADA79"
|
||||
},
|
||||
{
|
||||
color: "FBFB96"
|
||||
},
|
||||
{
|
||||
color: "E8F590"
|
||||
},
|
||||
{
|
||||
color: "B2E08B"
|
||||
},
|
||||
{
|
||||
color: "9FE3FD"
|
||||
},
|
||||
{
|
||||
color: "AEC3FE"
|
||||
},
|
||||
{
|
||||
color: "B385FD"
|
||||
},
|
||||
{
|
||||
color: "E18BFF"
|
||||
},
|
||||
{
|
||||
color: "EFA2C1"
|
||||
},
|
||||
{
|
||||
color: "FBB4B0"
|
||||
},
|
||||
{
|
||||
color: "FBC5AC"
|
||||
},
|
||||
{
|
||||
color: "FBDAA9"
|
||||
},
|
||||
{
|
||||
color: "FBE6A9"
|
||||
},
|
||||
{
|
||||
color: "FCFDBA"
|
||||
},
|
||||
{
|
||||
color: "F0F9B8"
|
||||
},
|
||||
{
|
||||
color: "CDEAB5"
|
||||
},
|
||||
{
|
||||
color: "CFF0FE"
|
||||
},
|
||||
{
|
||||
color: "D6E2FE"
|
||||
},
|
||||
{
|
||||
color: "DAC7FE"
|
||||
},
|
||||
{
|
||||
color: "F0C7FE"
|
||||
},
|
||||
{
|
||||
color: "F6D2E1"
|
||||
},
|
||||
{
|
||||
color: "FCDAD9"
|
||||
},
|
||||
{
|
||||
color: "FDE2D7"
|
||||
},
|
||||
{
|
||||
color: "FDEDD5"
|
||||
},
|
||||
{
|
||||
color: "FDF2D5"
|
||||
},
|
||||
{
|
||||
color: "FDFDDD"
|
||||
},
|
||||
{
|
||||
color: "F7FBDB"
|
||||
},
|
||||
{
|
||||
color: "E0EED4"
|
||||
}]
|
||||
},
|
||||
itemTpl: Ext.create("Ext.XTemplate", '<tpl for=".">', '<div class="item-inner" style="background-color: #{color};"></div>', "</tpl>")
|
||||
}]
|
||||
});
|
||||
this.callParent(arguments);
|
||||
},
|
||||
backText: "Back",
|
||||
colorText: "Color",
|
||||
highlightColorText: "Highlight color",
|
||||
textColorText: "Text color",
|
||||
noFillText: "No Fill"
|
||||
});
|
||||
Reference in New Issue
Block a user