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
51fce398
Commit
51fce398
authored
Apr 19, 2016
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
не открываем таблицу без содержимого.
parent
fbef0c23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
34 deletions
+38
-34
word/Editor/Serialize2.js
word/Editor/Serialize2.js
+38
-34
No files found.
word/Editor/Serialize2.js
View file @
51fce398
...
@@ -7982,24 +7982,26 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
...
@@ -7982,24 +7982,26 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
return
oThis
.
ReadDocTable
(
t
,
l
,
oNewTable
);
return
oThis
.
ReadDocTable
(
t
,
l
,
oNewTable
);
});
});
oNewTable
.
ReIndexing
(
0
);
if
(
oNewTable
.
Content
.
length
>
0
)
{
oNewTable
.
Correct_BadTable
();
oNewTable
.
ReIndexing
(
0
);
if
(
2
==
g_nCurFileVersion
&&
false
==
oNewTable
.
Inline
)
oNewTable
.
Correct_BadTable
();
{
if
(
2
==
g_nCurFileVersion
&&
false
==
oNewTable
.
Inline
)
//делаем смещение левой границы
{
if
(
false
==
oNewTable
.
PositionH
.
Align
)
//делаем смещение левой границы
{
if
(
false
==
oNewTable
.
PositionH
.
Align
)
var
dx
=
Get_TableOffsetCorrection
(
oNewTable
);
{
oNewTable
.
PositionH
.
Value
+=
dx
;
var
dx
=
Get_TableOffsetCorrection
(
oNewTable
);
}
oNewTable
.
PositionH
.
Value
+=
dx
;
}
}
if
(
null
!=
this
.
lastPar
)
}
{
if
(
null
!=
this
.
lastPar
)
oNewTable
.
Set_DocumentPrev
(
this
.
lastPar
);
{
this
.
lastPar
.
Set_DocumentNext
(
oNewTable
);
oNewTable
.
Set_DocumentPrev
(
this
.
lastPar
);
this
.
lastPar
.
Set_DocumentNext
(
oNewTable
);
}
this
.
lastPar
=
oNewTable
;
Content
.
push
(
oNewTable
);
}
}
this
.
lastPar
=
oNewTable
;
Content
.
push
(
oNewTable
);
}
}
else
if
(
c_oSerParType
.
sectPr
===
type
)
else
if
(
c_oSerParType
.
sectPr
===
type
)
{
{
...
@@ -8421,24 +8423,26 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
...
@@ -8421,24 +8423,26 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
res
=
this
.
bcr
.
Read1
(
length
,
function
(
t
,
l
){
return
oThis
.
ReadDocTable
(
t
,
l
,
oNewTable
);
return
oThis
.
ReadDocTable
(
t
,
l
,
oNewTable
);
});
});
oNewTable
.
ReIndexing
(
0
);
if
(
oNewTable
.
Content
.
length
>
0
)
{
oNewTable
.
Correct_BadTable
();
oNewTable
.
ReIndexing
(
0
);
if
(
2
==
g_nCurFileVersion
&&
false
==
oNewTable
.
Inline
)
oNewTable
.
Correct_BadTable
();
{
if
(
2
==
g_nCurFileVersion
&&
false
==
oNewTable
.
Inline
)
//делаем смещение левой границы
{
if
(
false
==
oNewTable
.
PositionH
.
Align
)
//делаем смещение левой границы
{
if
(
false
==
oNewTable
.
PositionH
.
Align
)
var
dx
=
Get_TableOffsetCorrection
(
oNewTable
);
{
oNewTable
.
PositionH
.
Value
+=
dx
;
var
dx
=
Get_TableOffsetCorrection
(
oNewTable
);
}
oNewTable
.
PositionH
.
Value
+=
dx
;
}
}
if
(
null
!=
this
.
lastPar
)
}
{
if
(
null
!=
this
.
lastPar
)
oNewTable
.
Set_DocumentPrev
(
this
.
lastPar
);
{
this
.
lastPar
.
Set_DocumentNext
(
oNewTable
);
oNewTable
.
Set_DocumentPrev
(
this
.
lastPar
);
this
.
lastPar
.
Set_DocumentNext
(
oNewTable
);
}
this
.
lastPar
=
oNewTable
;
oParStruct
.
DocContent
.
push
(
oNewTable
);
}
}
this
.
lastPar
=
oNewTable
;
oParStruct
.
DocContent
.
push
(
oNewTable
);
}
}
else
if
(
c_oSerRunType
.
fldstart
===
type
)
else
if
(
c_oSerRunType
.
fldstart
===
type
)
{
{
...
...
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