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
cafe4823
Commit
cafe4823
authored
Apr 19, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исправлен баг с работой текстовых настроек и настроек параграфа у нумерации.
parent
7c068b38
Changes
1
Show 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 @
cafe4823
...
...
@@ -148,7 +148,6 @@
{
this
.
Num
=
Num
;
this
.
Lvl
=
Math
.
max
(
0
,
Math
.
min
(
8
,
Lvl
));
this
.
NumLvl
=
this
.
Num
.
Lvl
[
this
.
Lvl
];
}
/**
...
...
@@ -2111,7 +2110,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
...
...
@@ -2120,7 +2119,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.
...
...
@@ -3286,6 +3285,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
));
...
...
@@ -3297,6 +3298,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