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
603b51f7
Commit
603b51f7
authored
Jul 03, 2017
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #35289
parent
e33d854b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
54 deletions
+22
-54
word/Editor/DocumentContentElementBase.js
word/Editor/DocumentContentElementBase.js
+22
-0
word/Editor/Paragraph.js
word/Editor/Paragraph.js
+0
-22
word/Editor/StructuredDocumentTags/BlockLevel.js
word/Editor/StructuredDocumentTags/BlockLevel.js
+0
-10
word/Editor/Table.js
word/Editor/Table.js
+0
-22
No files found.
word/Editor/DocumentContentElementBase.js
View file @
603b51f7
...
...
@@ -668,6 +668,28 @@ CDocumentContentElementBase.prototype.AcceptRevisionChanges = function(Type, bAl
CDocumentContentElementBase
.
prototype
.
RejectRevisionChanges
=
function
(
Type
,
bAll
)
{
};
CDocumentContentElementBase
.
prototype
.
GetDocumentPositionFromObject
=
function
(
PosArray
)
{
if
(
!
PosArray
)
PosArray
=
[];
if
(
this
.
Parent
)
{
PosArray
.
splice
(
0
,
0
,
{
Class
:
this
.
Parent
,
Position
:
this
.
Get_Index
()});
this
.
Parent
.
GetDocumentPositionFromObject
(
PosArray
);
}
return
PosArray
;
};
CDocumentContentElementBase
.
prototype
.
Get_Index
=
function
()
{
if
(
!
this
.
Parent
)
return
-
1
;
this
.
Parent
.
Update_ContentIndexing
();
return
this
.
Index
;
};
//----------------------------------------------------------------------------------------------------------------------
// Функции для работы с номерами страниц
//----------------------------------------------------------------------------------------------------------------------
...
...
word/Editor/Paragraph.js
View file @
603b51f7
...
...
@@ -11022,15 +11022,6 @@ Paragraph.prototype.GetTopElement = function()
return
this
.
Parent
.
GetTopElement
();
};
Paragraph
.
prototype
.
Get_Index
=
function
()
{
if
(
!
this
.
Parent
)
return
-
1
;
this
.
Parent
.
Update_ContentIndexing
();
return
this
.
Index
;
};
Paragraph
.
prototype
.
CompareDrawingsLogicPositions
=
function
(
CompareObject
)
{
var
Run1
=
this
.
Get_DrawingObjectRun
(
CompareObject
.
Drawing1
.
Get_Id
());
...
...
@@ -11670,19 +11661,6 @@ Paragraph.prototype.SetContentPosition = function(DocPos, Depth, Flag)
else
this
.
Correct_ContentPos2
();
};
Paragraph
.
prototype
.
GetDocumentPositionFromObject
=
function
(
PosArray
)
{
if
(
!
PosArray
)
PosArray
=
[];
if
(
this
.
Parent
)
{
PosArray
.
splice
(
0
,
0
,
{
Class
:
this
.
Parent
,
Position
:
this
.
Get_Index
()});
this
.
Parent
.
GetDocumentPositionFromObject
(
PosArray
);
}
return
PosArray
;
};
Paragraph
.
prototype
.
Get_XYByContentPos
=
function
(
ContentPos
)
{
var
ParaContentPos
=
this
.
Get_ParaContentPos
(
false
,
false
);
...
...
word/Editor/StructuredDocumentTags/BlockLevel.js
View file @
603b51f7
...
...
@@ -923,16 +923,6 @@ CBlockLevelSdt.prototype.GetTopElement = function()
return
this
.
Parent
.
GetTopElement
();
};
CBlockLevelSdt
.
prototype
.
GetDocumentPositionFromObject
=
function
(
PosArray
)
{
if
(
!
PosArray
)
PosArray
=
[];
if
(
this
.
Parent
&&
this
.
Parent
.
GetDocumentPositionFromObject
)
this
.
Parent
.
GetDocumentPositionFromObject
(
PosArray
);
return
PosArray
;
};
CBlockLevelSdt
.
prototype
.
GetMargins
=
function
()
{
return
this
.
Parent
.
GetMargins
();
...
...
word/Editor/Table.js
View file @
603b51f7
...
...
@@ -11228,15 +11228,6 @@ CTable.prototype.GetTopElement = function()
return
this
.
Parent
.
GetTopElement
();
};
CTable
.
prototype
.
Get_Index
=
function
()
{
if
(
!
this
.
Parent
)
return
-
1
;
this
.
Parent
.
Update_ContentIndexing
();
return
this
.
Index
;
};
CTable
.
prototype
.
Get_RowsCount
=
function
()
{
return
this
.
Content
.
length
;
...
...
@@ -11468,19 +11459,6 @@ CTable.prototype.Get_Index = function()
this
.
Parent
.
Update_ContentIndexing
();
return
this
.
Index
;
};
CTable
.
prototype
.
GetDocumentPositionFromObject
=
function
(
PosArray
)
{
if
(
!
PosArray
)
PosArray
=
[];
if
(
this
.
Parent
)
{
PosArray
.
splice
(
0
,
0
,
{
Class
:
this
.
Parent
,
Position
:
this
.
Get_Index
()});
this
.
Parent
.
GetDocumentPositionFromObject
(
PosArray
);
}
return
PosArray
;
};
CTable
.
prototype
.
SetContentSelection
=
function
(
StartDocPos
,
EndDocPos
,
Depth
,
StartFlag
,
EndFlag
)
{
if
((
0
===
StartFlag
&&
(
!
StartDocPos
[
Depth
]
||
this
!==
StartDocPos
[
Depth
].
Class
))
||
(
0
===
EndFlag
&&
(
!
EndDocPos
[
Depth
]
||
this
!==
EndDocPos
[
Depth
].
Class
)))
...
...
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