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
2497b820
Commit
2497b820
authored
Jan 28, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #33355
parent
14e8577f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
3 deletions
+58
-3
slide/Editor/Format/Comments.js
slide/Editor/Format/Comments.js
+4
-0
word/Editor/Comments.js
word/Editor/Comments.js
+4
-0
word/Editor/Math.js
word/Editor/Math.js
+5
-0
word/Editor/Paragraph.js
word/Editor/Paragraph.js
+24
-0
word/Editor/ParagraphContentBase.js
word/Editor/ParagraphContentBase.js
+9
-0
word/Editor/Paragraph_Recalculate.js
word/Editor/Paragraph_Recalculate.js
+4
-3
word/Editor/Run.js
word/Editor/Run.js
+8
-0
No files found.
slide/Editor/Format/Comments.js
View file @
2497b820
...
...
@@ -400,6 +400,10 @@ ParaComment.prototype =
{
},
Get_EndRangePos2
:
function
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
)
{
},
Get_StartPos
:
function
(
ContentPos
,
Depth
)
{
},
...
...
word/Editor/Comments.js
View file @
2497b820
...
...
@@ -1003,6 +1003,10 @@ ParaComment.prototype =
{
},
Get_EndRangePos2
:
function
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
)
{
},
Get_StartPos
:
function
(
ContentPos
,
Depth
)
{
},
...
...
word/Editor/Math.js
View file @
2497b820
...
...
@@ -2953,6 +2953,11 @@ ParaMath.prototype.Get_StartRangePos2 = function(_CurLine, _CurRange, ContentPos
return
this
.
Root
.
Get_StartRangePos2
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
);
};
ParaMath
.
prototype
.
Get_EndRangePos2
=
function
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
)
{
return
this
.
Root
.
Get_EndRangePos2
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
);
};
ParaMath
.
prototype
.
Get_StartPos
=
function
(
ContentPos
,
Depth
)
{
this
.
Root
.
Get_StartPos
(
ContentPos
,
Depth
);
...
...
word/Editor/Paragraph.js
View file @
2497b820
...
...
@@ -4609,6 +4609,19 @@ Paragraph.prototype =
return
ContentPos
;
},
Get_EndRangePos2
:
function
(
CurLine
,
CurRange
)
{
var
ContentPos
=
new
CParagraphContentPos
();
if
(
!
this
.
Lines
[
CurLine
]
||
!
this
.
Lines
[
CurLine
].
Ranges
[
CurRange
])
return
ContentPos
;
var
Depth
=
0
;
var
Pos
=
this
.
Lines
[
CurLine
].
Ranges
[
CurRange
].
EndPos
;
ContentPos
.
Update
(
Pos
,
Depth
);
this
.
Content
[
Pos
].
Get_EndRangePos2
(
CurLine
,
CurRange
,
ContentPos
,
Depth
+
1
);
return
ContentPos
;
},
Get_StartPos
:
function
()
{
var
ContentPos
=
new
CParagraphContentPos
();
...
...
@@ -12214,6 +12227,17 @@ Paragraph.prototype.CheckParaEnd = function()
this
.
Add_ToContent
(
this
.
Content
.
length
,
oEndRun
);
}
};
Paragraph
.
prototype
.
GetLineEndPos
=
function
(
CurLine
)
{
if
(
CurLine
<
0
||
CurLine
>=
this
.
Lines
.
length
)
return
new
CParagraphContentPos
();
var
oLine
=
this
.
Lines
[
CurLine
];
if
(
!
oLine
||
oLine
.
Ranges
.
length
<=
0
)
return
new
CParagraphContentPos
();
return
this
.
Get_EndRangePos2
(
CurLine
,
oLine
.
Ranges
.
length
-
1
);
};
var
pararecalc_0_All
=
0
;
var
pararecalc_0_None
=
1
;
...
...
word/Editor/ParagraphContentBase.js
View file @
2497b820
...
...
@@ -1865,6 +1865,15 @@ CParagraphContentWithParagraphLikeContent.prototype.Get_StartRangePos2 = functio
this
.
Content
[
Pos
].
Get_StartRangePos2
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
+
1
);
};
CParagraphContentWithParagraphLikeContent
.
prototype
.
Get_EndRangePos2
=
function
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
)
{
var
CurLine
=
_CurLine
-
this
.
StartLine
;
var
CurRange
=
(
0
===
CurLine
?
_CurRange
-
this
.
StartRange
:
_CurRange
);
var
Pos
=
this
.
protected_GetRangeEndPos
(
CurLine
,
CurRange
);
ContentPos
.
Update
(
Pos
,
Depth
);
this
.
Content
[
Pos
].
Get_EndRangePos2
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
+
1
);
};
CParagraphContentWithParagraphLikeContent
.
prototype
.
Get_StartPos
=
function
(
ContentPos
,
Depth
)
{
if
(
this
.
Content
.
length
>
0
)
...
...
word/Editor/Paragraph_Recalculate.js
View file @
2497b820
...
...
@@ -1835,15 +1835,16 @@ Paragraph.prototype.private_RecalculateLineCheckFootnotes = function(CurLine, Cu
if
(
PRS
.
Fast
)
return
true
;
var
oTopDocument
=
PRS
.
TopDocument
;
var
arrFootnotes
=
[];
var
oTopDocument
=
PRS
.
TopDocument
;
var
arrFootnotes
=
[];
var
oLineBreakPos
=
this
.
GetLineEndPos
(
CurLine
);
for
(
var
nIndex
=
0
,
nCount
=
PRS
.
Footnotes
.
length
;
nIndex
<
nCount
;
++
nIndex
)
{
var
oFootnote
=
PRS
.
Footnotes
[
nIndex
].
FootnoteReference
.
Get_Footnote
();
var
oPos
=
PRS
.
Footnotes
[
nIndex
].
Pos
;
// Проверим позицию
if
(
true
===
PRS
.
MoveToLBP
&&
PRS
.
LineBreakPos
.
Compare
(
oPos
)
<=
0
)
if
(
o
LineBreakPos
.
Compare
(
oPos
)
<=
0
)
continue
;
arrFootnotes
.
push
(
oFootnote
);
...
...
word/Editor/Run.js
View file @
2497b820
...
...
@@ -5662,6 +5662,14 @@ ParaRun.prototype.Get_StartRangePos2 = function(_CurLine, _CurRange, ContentPos,
ContentPos
.
Update
(
Pos
,
Depth
);
};
ParaRun
.
prototype
.
Get_EndRangePos2
=
function
(
_CurLine
,
_CurRange
,
ContentPos
,
Depth
)
{
var
CurLine
=
_CurLine
-
this
.
StartLine
;
var
CurRange
=
(
0
===
CurLine
?
_CurRange
-
this
.
StartRange
:
_CurRange
);
var
Pos
=
this
.
protected_GetRangeEndPos
(
CurLine
,
CurRange
);
ContentPos
.
Update
(
Pos
,
Depth
);
};
ParaRun
.
prototype
.
Get_StartPos
=
function
(
ContentPos
,
Depth
)
{
ContentPos
.
Update
(
0
,
Depth
);
...
...
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