Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
381e886e
Commit
381e886e
authored
Oct 24, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Context menu for equations.
parent
d3748cdd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
746 additions
and
38 deletions
+746
-38
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
+710
-4
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+2
-4
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
+5
-0
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+29
-30
No files found.
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
View file @
381e886e
This diff is collapsed.
Click to expand it.
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
381e886e
...
...
@@ -2296,8 +2296,7 @@ define([
is_shape_text
=
seltype
==
Asc
.
c_oAscSelectionType
.
RangeShapeText
,
is_shape
=
seltype
==
Asc
.
c_oAscSelectionType
.
RangeShape
,
is_image
=
seltype
==
Asc
.
c_oAscSelectionType
.
RangeImage
,
is_equation
=
seltype
==
Asc
.
c_oAscSelectionType
.
RangeMath
,
is_mode_2
=
is_shape_text
||
is_shape
||
is_chart_text
||
is_chart
||
is_equation
;
is_mode_2
=
is_shape_text
||
is_shape
||
is_chart_text
||
is_chart
;
if
(
coauth_disable
)
{
toolbar
.
lockToolbar
(
SSE
.
enumLock
.
coAuth
,
coauth_disable
);
...
...
@@ -2310,7 +2309,6 @@ define([
case
Asc
.
c_oAscSelectionType
.
RangeShapeText
:
type
=
_set
.
selShapeText
;
break
;
case
Asc
.
c_oAscSelectionType
.
RangeChart
:
type
=
_set
.
selChart
;
break
;
case
Asc
.
c_oAscSelectionType
.
RangeChartText
:
type
=
_set
.
selChartText
;
break
;
case
Asc
.
c_oAscSelectionType
.
RangeMath
:
type
=
_set
.
selEquation
;
break
;
}
toolbar
.
lockToolbar
(
type
,
type
!=
seltype
,
{
...
...
@@ -2325,7 +2323,7 @@ define([
toolbar
.
mnuitemClearFilter
],
merge
:
true
,
clear
:
[
_set
.
selImage
,
_set
.
selChart
,
_set
.
selChartText
,
_set
.
selShape
,
_set
.
selShapeText
,
_set
.
selEquation
,
_set
.
coAuth
]
clear
:
[
_set
.
selImage
,
_set
.
selChart
,
_set
.
selChartText
,
_set
.
selShape
,
_set
.
selShapeText
,
_set
.
coAuth
]
});
}
...
...
apps/spreadsheeteditor/main/app/view/DocumentHolder.js
View file @
381e886e
...
...
@@ -558,12 +558,17 @@ define([
value
:
'
paste
'
});
me
.
menuEquationSeparator
=
new
Common
.
UI
.
MenuItem
({
caption
:
'
--
'
});
this
.
textInShapeMenu
=
new
Common
.
UI
.
Menu
({
items
:
[
me
.
pmiTextCut
,
me
.
pmiTextCopy
,
me
.
pmiTextPaste
,
{
caption
:
'
--
'
},
me
.
menuEquationSeparator
,
me
.
menuParagraphVAlign
,
me
.
menuParagraphDirection
,
me
.
menuAddHyperlinkShape
,
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
381e886e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment