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
b1db95b5
Commit
b1db95b5
authored
Apr 19, 2016
by
Ilya Kirillov
Committed by
Alexander.Trofimov
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исправлен баг с работой текстовых настроек и настроек параграфа у нумерации.
parent
da9f4316
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
word/apiBuilder.js
word/apiBuilder.js
+7
-5
No files found.
word/apiBuilder.js
View file @
b1db95b5
...
...
@@ -121,9 +121,8 @@
*/
function
ApiNumberingLevel
(
Num
,
Lvl
)
{
this
.
Num
=
Num
;
this
.
Lvl
=
Math
.
max
(
0
,
Math
.
min
(
8
,
Lvl
));
this
.
NumLvl
=
this
.
Num
.
Lvl
[
this
.
Lvl
];
this
.
Num
=
Num
;
this
.
Lvl
=
Math
.
max
(
0
,
Math
.
min
(
8
,
Lvl
));
}
/**
...
...
@@ -2086,7 +2085,7 @@
*/
ApiNumberingLevel
.
prototype
.
GetTextPr
=
function
()
{
return
new
ApiTextPr
(
this
.
NumLvl
.
TextPr
.
Copy
());
return
new
ApiTextPr
(
this
,
this
.
Num
.
Lvl
[
this
.
Lvl
]
.
TextPr
.
Copy
());
};
/**
* This paragraph properties are applied to any numbered paragraph that references the given numbering definition
...
...
@@ -2095,7 +2094,7 @@
*/
ApiNumberingLevel
.
prototype
.
GetParaPr
=
function
()
{
return
new
ApiParaPr
(
this
.
NumPr
.
ParaPr
.
Copy
());
return
new
ApiParaPr
(
this
,
this
.
Num
.
Lvl
[
this
.
Lvl
]
.
ParaPr
.
Copy
());
};
/**
* Set one of the predefined numbering templates.
...
...
@@ -3260,6 +3259,8 @@ function TEST_BUILDER2()
var
sSymbolCharCode
=
'
a
'
.
charCodeAt
(
0
)
+
nLvl
;
oNumLvl
.
SetTemplateType
(
"
bullet
"
,
String
.
fromCharCode
(
sSymbolCharCode
));
oNumLvl
.
SetSuff
(
"
none
"
);
oNumLvl
.
GetTextPr
().
SetBold
(
true
);
oNumLvl
.
GetParaPr
().
SetJc
(
"
center
"
);
oParagraph
=
Api
.
CreateParagraph
();
oParagraph
.
AddText
(
"
Template bullet lvl
"
+
(
nLvl
+
1
));
...
...
@@ -3271,6 +3272,7 @@ function TEST_BUILDER2()
oParagraph
.
AddText
(
"
Template bullet lvl
"
+
(
nLvl
+
1
));
oParagraph
.
SetNumbering
(
oNumLvl
);
oParagraph
.
SetContextualSpacing
(
true
);
oDocument
.
Push
(
oParagraph
);
}
...
...
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