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
4ee5489e
Commit
4ee5489e
authored
May 16, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PE] Поправка к bug 27793
parent
d0382c04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
apps/presentationeditor/main/app/controller/Toolbar.js
apps/presentationeditor/main/app/controller/Toolbar.js
+12
-1
apps/presentationeditor/main/app/view/Toolbar.js
apps/presentationeditor/main/app/view/Toolbar.js
+11
-10
No files found.
apps/presentationeditor/main/app/controller/Toolbar.js
View file @
4ee5489e
...
...
@@ -69,6 +69,7 @@ define([
slidelayoutdisable
:
undefined
,
shapecontrolsdisable
:
undefined
,
no_paragraph
:
undefined
,
no_text
:
undefined
,
no_object
:
undefined
,
clrtext
:
undefined
,
linespace
:
undefined
,
...
...
@@ -560,6 +561,7 @@ define([
slide_deleted
=
undefined
,
slide_layout_lock
=
undefined
,
no_paragraph
=
true
,
no_text
=
true
,
no_object
=
true
;
while
(
++
i
<
selectedObjects
.
length
)
{
...
...
@@ -568,6 +570,7 @@ define([
if
(
type
==
Asc
.
c_oAscTypeSelectElement
.
Paragraph
)
{
paragraph_locked
=
pr
.
get_Locked
();
no_paragraph
=
false
;
no_text
=
false
;
no_object
=
false
;
}
else
if
(
type
==
Asc
.
c_oAscTypeSelectElement
.
Slide
)
{
slide_deleted
=
pr
.
get_LockDelete
();
...
...
@@ -575,6 +578,9 @@ define([
}
else
if
(
type
==
Asc
.
c_oAscTypeSelectElement
.
Image
||
type
==
Asc
.
c_oAscTypeSelectElement
.
Shape
||
type
==
Asc
.
c_oAscTypeSelectElement
.
Chart
||
type
==
Asc
.
c_oAscTypeSelectElement
.
Table
)
{
shape_locked
=
pr
.
get_Locked
();
no_object
=
false
;
if
(
type
!==
Asc
.
c_oAscTypeSelectElement
.
Image
)
{
no_text
=
false
;
}
}
}
...
...
@@ -589,9 +595,14 @@ define([
this
.
toolbar
.
lockToolbar
(
PE
.
enumLock
.
noParagraphSelected
,
no_paragraph
,
{
array
:
[
me
.
toolbar
.
btnCopyStyle
]});
}
if
(
this
.
_state
.
no_text
!==
no_text
)
{
if
(
this
.
_state
.
activated
)
this
.
_state
.
no_text
=
no_text
;
this
.
toolbar
.
lockToolbar
(
PE
.
enumLock
.
noTextSelected
,
no_text
,
{
array
:
me
.
toolbar
.
paragraphControls
});
}
if
(
shape_locked
!==
undefined
&&
this
.
_state
.
shapecontrolsdisable
!==
shape_locked
)
{
if
(
this
.
_state
.
activated
)
this
.
_state
.
shapecontrolsdisable
=
shape_locked
;
this
.
toolbar
.
lockToolbar
(
PE
.
enumLock
.
shapeLock
,
shape_locked
,
{
array
:
me
.
toolbar
.
shapeControls
});
this
.
toolbar
.
lockToolbar
(
PE
.
enumLock
.
shapeLock
,
shape_locked
,
{
array
:
me
.
toolbar
.
shapeControls
.
concat
(
me
.
toolbar
.
paragraphControls
)
});
}
if
(
this
.
_state
.
no_object
!==
no_object
)
{
...
...
apps/presentationeditor/main/app/view/Toolbar.js
View file @
4ee5489e
...
...
@@ -79,7 +79,8 @@ define([
noParagraphSelected
:
'
no-paragraph
'
,
noObjectSelected
:
'
no-object
'
,
disableOnStart
:
'
on-start
'
,
cantPrint
:
'
cant-print
'
cantPrint
:
'
cant-print
'
,
noTextSelected
:
'
no-text
'
};
PE
.
Views
.
Toolbar
=
Backbone
.
View
.
extend
(
_
.
extend
({
...
...
@@ -282,7 +283,7 @@ define([
menuCls
:
'
scrollable-menu
'
,
menuStyle
:
'
min-width: 325px;
'
,
hint
:
me
.
tipFontName
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
store
:
new
Common
.
Collections
.
Fonts
()
});
me
.
paragraphControls
.
push
(
me
.
cmbFontName
);
...
...
@@ -291,7 +292,7 @@ define([
cls
:
'
input-group-nr
'
,
menuStyle
:
'
min-width: 55px;
'
,
hint
:
me
.
tipFontSize
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
data
:
[
{
value
:
8
,
displayValue
:
"
8
"
},
{
value
:
9
,
displayValue
:
"
9
"
},
...
...
@@ -317,7 +318,7 @@ define([
id
:
'
id-toolbar-btn-bold
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-bold
'
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
hint
:
me
.
textBold
+
Common
.
Utils
.
String
.
platformKey
(
'
Ctrl+B
'
),
enableToggle
:
true
});
...
...
@@ -327,7 +328,7 @@ define([
id
:
'
id-toolbar-btn-italic
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-italic
'
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
hint
:
me
.
textItalic
+
Common
.
Utils
.
String
.
platformKey
(
'
Ctrl+I
'
),
enableToggle
:
true
});
...
...
@@ -337,7 +338,7 @@ define([
id
:
'
id-toolbar-btn-underline
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-underline
'
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
hint
:
me
.
textUnderline
+
Common
.
Utils
.
String
.
platformKey
(
'
Ctrl+U
'
),
enableToggle
:
true
});
...
...
@@ -347,7 +348,7 @@ define([
id
:
'
id-toolbar-btn-strikeout
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-strikeout
'
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
hint
:
me
.
textStrikeout
,
enableToggle
:
true
});
...
...
@@ -357,7 +358,7 @@ define([
id
:
'
id-toolbar-btn-superscript
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-superscript
'
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
hint
:
me
.
textSuperscript
,
enableToggle
:
true
,
toggleGroup
:
'
superscriptGroup
'
...
...
@@ -368,7 +369,7 @@ define([
id
:
'
id-toolbar-btn-subscript
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-subscript
'
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
hint
:
me
.
textSubscript
,
enableToggle
:
true
,
toggleGroup
:
'
superscriptGroup
'
...
...
@@ -379,7 +380,7 @@ define([
id
:
'
id-toolbar-btn-fontcolor
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-fontcolor
'
,
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
ParagraphSelected
],
lock
:
[
_set
.
slideDeleted
,
_set
.
paragraphLock
,
_set
.
lostConnect
,
_set
.
noSlides
,
_set
.
no
TextSelected
,
_set
.
shapeLock
],
hint
:
me
.
tipFontColor
,
split
:
true
,
menu
:
new
Common
.
UI
.
Menu
({
...
...
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