Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
d5947268
Commit
d5947268
authored
May 30, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from ONLYOFFICE/release/3.8.0
Release/3.8.0
parents
0bef7a97
39d3528b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
30 deletions
+61
-30
common/Drawings/TrackObjects/AdjustmentTracks.js
common/Drawings/TrackObjects/AdjustmentTracks.js
+2
-2
slide/Editor/Format/Presentation.js
slide/Editor/Format/Presentation.js
+31
-26
word/Editor/Document.js
word/Editor/Document.js
+19
-1
word/Math/mathContent.js
word/Math/mathContent.js
+9
-1
No files found.
common/Drawings/TrackObjects/AdjustmentTracks.js
View file @
d5947268
...
...
@@ -367,8 +367,8 @@ function PolarAdjustmentTrack(originalShape, adjIndex, bTextWarp)
var
_pos_x_relative_center
=
_relative_x
-
this
.
shape
Height
*
0.5
;
var
_pos_y_relative_center
=
_relative_y
-
this
.
shape
Width
*
0.5
;
var
_pos_x_relative_center
=
_relative_x
-
this
.
shape
Width
*
0.5
;
var
_pos_y_relative_center
=
_relative_y
-
this
.
shape
Height
*
0.5
;
if
(
this
.
radiusFlag
)
{
var
_radius
=
Math
.
sqrt
(
_pos_x_relative_center
*
_pos_x_relative_center
+
_pos_y_relative_center
*
_pos_y_relative_center
);
...
...
slide/Editor/Format/Presentation.js
View file @
d5947268
...
...
@@ -1515,7 +1515,7 @@ CPresentation.prototype =
if
(
"
undefined
"
===
typeof
(
bRemoveOnlySelection
)
)
bRemoveOnlySelection
=
false
;
if
(
this
.
Slides
[
this
.
CurPage
])
if
(
this
.
Slides
[
this
.
CurPage
]
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectedObjects
.
length
!==
0
)
{
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
remove
(
Count
,
bOnlyText
,
bRemoveOnlySelection
,
AscCommon
.
CollaborativeEditing
.
Is_Fast
());
this
.
Document_UpdateInterfaceState
();
...
...
@@ -2074,21 +2074,27 @@ CPresentation.prototype =
{
if
(
e
.
ShiftKey
)
{
if
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaNewLine
(
break_Line
));
if
(
this
.
Slides
[
this
.
CurPage
]
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectedObjects
.
length
!==
0
)
{
if
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaNewLine
(
break_Line
));
}
}
}
else
if
(
e
.
CtrlKey
)
{
if
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaNewLine
(
break_Page
));
if
(
this
.
Slides
[
this
.
CurPage
]
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectedObjects
.
length
!==
0
)
{
if
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaNewLine
(
break_Page
));
}
}
}
else
{
this
.
Add_NewParagraph
();
if
(
this
.
Slides
[
this
.
CurPage
]
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectedObjects
.
length
!==
0
)
{
this
.
Add_NewParagraph
();
}
}
}
...
...
@@ -2212,8 +2218,10 @@ CPresentation.prototype =
if
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaText
(
String
.
fromCharCode
(
0x00A0
)));
if
(
this
.
Slides
[
this
.
CurPage
]
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectedObjects
.
length
!==
0
){
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaText
(
String
.
fromCharCode
(
0x00A0
)));
}
}
}
else
if
(
true
===
e
.
CtrlKey
)
...
...
@@ -2226,8 +2234,10 @@ CPresentation.prototype =
// this.DrawingDocument.TargetShow();
if
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaSpace
(
1
));
if
(
this
.
Slides
[
this
.
CurPage
]
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
&&
this
.
Slides
[
this
.
CurPage
].
graphicObjects
.
selectedObjects
.
length
!==
0
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
this
.
Paragraph_Add
(
new
ParaSpace
(
1
));
}
}
}
...
...
@@ -2757,25 +2767,20 @@ CPresentation.prototype =
}
else
if
(
e
.
KeyCode
==
189
&&
false
===
editor
.
isViewMode
)
// Клавиша Num-
{
this
.
DrawingDocument
.
TargetStart
();
this
.
DrawingDocument
.
TargetShow
();
if
((
true
===
e
.
CtrlKey
&&
true
===
e
.
ShiftKey
)
&&
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
))
{
this
.
DrawingDocument
.
TargetStart
();
this
.
DrawingDocument
.
TargetShow
();
if
(
AscCommon
.
CollaborativeEditing
.
Is_Fast
()
||
editor
.
WordControl
.
m_oLogicDocument
.
Document_Is_SelectionLocked
(
changestype_Drawing_Props
)
===
false
)
{
History
.
Create_NewPoint
(
AscDFH
.
historydescription_Presentation_ParagraphAdd
);
var
Item
=
null
;
if
(
true
===
e
.
CtrlKey
&&
true
===
e
.
ShiftKey
)
{
Item
=
new
ParaText
(
String
.
fromCharCode
(
0x2013
)
);
Item
.
SpaceAfter
=
false
;
}
else
if
(
true
===
e
.
ShiftKey
)
Item
=
new
ParaText
(
"
_
"
);
else
Item
=
new
ParaText
(
"
-
"
);
var
Item
=
new
ParaText
(
String
.
fromCharCode
(
0x2013
)
);
Item
.
SpaceAfter
=
false
;
this
.
Paragraph_Add
(
Item
);
bRetValue
=
keydownresult_PreventAll
;
}
bRetValue
=
keydownresult_PreventAll
;
}
else
if
(
e
.
KeyCode
==
190
&&
true
===
e
.
CtrlKey
)
// Ctrl + .
{
...
...
word/Editor/Document.js
View file @
d5947268
...
...
@@ -15511,8 +15511,23 @@ CDocument.prototype.private_MoveCursorDown = function(StartX, StartY, AddToSelec
if
(
this
.
CurPage
<
NewPage
)
{
this
.
CurPage
=
NewPage
;
StartY
+=
0.1
;
if
(
StartY
>
this
.
Pages
[
NewPage
].
Height
)
{
NewPage
++
;
if
(
this
.
Pages
.
length
-
1
<
NewPage
)
{
Result
=
false
;
break
;
}
StartY
=
0
;
}
else
{
StartY
+=
0.1
;
}
this
.
CurPage
=
NewPage
;
}
else
{
...
...
@@ -15520,6 +15535,9 @@ CDocument.prototype.private_MoveCursorDown = function(StartX, StartY, AddToSelec
}
}
if
(
false
===
Result
)
break
;
CurY
=
StartY
;
}
}
...
...
word/Math/mathContent.js
View file @
d5947268
...
...
@@ -1755,7 +1755,15 @@ CMathContent.prototype.SplitContent = function(NewContent, ContentPos, Depth)
};
CMathContent
.
prototype
.
Add_ToContent
=
function
(
Pos
,
Item
)
{
this
.
Internal_Content_Add
(
Pos
,
Item
);
if
(
Item
&&
para_Run
===
Item
.
Type
)
{
var
MathRun
=
new
ParaRun
(
Item
.
Get_Paragraph
(),
true
);
this
.
Internal_Content_Add
(
Pos
,
MathRun
);
}
else
{
this
.
Internal_Content_Add
(
Pos
,
Item
);
}
};
CMathContent
.
prototype
.
Concat_ToEnd
=
function
(
NewItems
)
{
...
...
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