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
986faa4b
Commit
986faa4b
authored
8 years ago
by
konovalovsergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pageCount from field.Get_SelectedText()
parent
a8897a64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
word/Editor/Serialize2.js
word/Editor/Serialize2.js
+8
-5
No files found.
word/Editor/Serialize2.js
View file @
986faa4b
...
...
@@ -4359,10 +4359,10 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa
}
if
(
null
!=
elem
.
pageNum
)
{
var
Instr
;
if
(
elem
.
pageNum
.
Type
==
para_PageNum
)
{
Instr
=
"
PAGE
\\
* MERGEFORMAT
"
;
}
else
{
if
(
elem
.
pageNum
.
Type
==
para_PageCount
)
{
Instr
=
"
NUMPAGES
\\
* MERGEFORMAT
"
;
}
else
{
Instr
=
"
PAGE
\\
* MERGEFORMAT
"
;
}
this
.
bs
.
WriteItem
(
c_oSerParType
.
FldSimple
,
function
(){
oThis
.
WriteFldSimple
(
Instr
,
function
(){
oThis
.
WriteRun2
(
function
()
{
...
...
@@ -4371,7 +4371,9 @@ function BinaryDocumentTableWriter(memory, doc, oMapCommentId, oNumIdMap, copyPa
var
numText
=
'
1
'
;
if
(
null
!=
elem
.
pageNum
.
String
&&
"
string
"
==
typeof
(
elem
.
pageNum
.
String
))
{
numText
=
elem
.
pageNum
.
String
;
}
}
else
if
(
elem
.
pageNum
.
Type
==
para_PageCount
&&
null
!=
elem
.
pageNum
.
PageCount
)
{
numText
=
elem
.
pageNum
.
PageCount
.
toString
();
}
oThis
.
WriteText
(
numText
,
delText
);
},
oRun
);
});});
...
...
@@ -13294,7 +13296,8 @@ OpenParStruct.prototype = {
if
(
fieldtype_PAGENUM
==
elem
.
Get_FieldType
())
{
oNewRun
.
Add_ToContent
(
0
,
new
ParaPageNum
());
}
else
{
oNewRun
.
Add_ToContent
(
0
,
new
ParaPageCount
());
var
pageCount
=
parseInt
(
elem
.
Get_SelectedText
(
true
));
oNewRun
.
Add_ToContent
(
0
,
new
ParaPageCount
(
isNaN
(
pageCount
)
?
undefined
:
pageCount
));
}
this
.
addToContent
(
oNewRun
);
}
else
if
(
elem
.
Content
.
length
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
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