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
e48a66f2
Commit
e48a66f2
authored
Aug 20, 2016
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugs in builder
parent
8a95a871
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
slide/apiBuilder.js
slide/apiBuilder.js
+2
-2
word/apiBuilder.js
word/apiBuilder.js
+19
-3
No files found.
slide/apiBuilder.js
View file @
e48a66f2
...
...
@@ -304,7 +304,7 @@
else
{
oDrawingDocument
=
private_GetDrawingDocument
();
}
return
this
.
private_CreateApiParagraph
(
new
Paragraph
(
oDrawingDocument
,
null
));
return
this
.
private_CreateApiParagraph
(
new
Paragraph
(
oDrawingDocument
,
null
,
0
,
0
,
0
,
0
,
0
,
true
));
};
...
...
@@ -722,7 +722,7 @@
function
private_GetDrawingDocument
(){
if
(
editor
.
WordControl
){
return
editor
.
m_oDrawingDocument
;
return
editor
.
WordControl
.
m_oDrawingDocument
;
}
return
null
;
}
...
...
word/apiBuilder.js
View file @
e48a66f2
...
...
@@ -950,7 +950,7 @@
* @memberof Api
* @returns {ApiBullet}
* */
Api
.
CreateBullet
=
function
(
sSymbol
){
Api
.
prototype
.
CreateBullet
=
function
(
sSymbol
){
var
oBullet
=
new
AscFormat
.
CBullet
();
oBullet
.
bulletType
=
new
AscFormat
.
CBulletType
();
if
(
typeof
sSymbol
===
"
string
"
&&
sSymbol
.
length
>
0
){
...
...
@@ -960,6 +960,7 @@
else
{
oBullet
.
bulletType
.
type
=
AscFormat
.
BULLET_TYPE_BULLET_NONE
;
}
return
new
ApiBullet
(
oBullet
);
};
/**
...
...
@@ -970,7 +971,7 @@
* @returns {ApiBullet}
* */
Api
.
CreateNumbering
=
function
(
sType
,
nStartAt
){
Api
.
prototype
.
CreateNumbering
=
function
(
sType
,
nStartAt
){
var
oBullet
=
new
AscFormat
.
CBullet
();
oBullet
.
bulletType
=
new
AscFormat
.
CBulletType
();
oBullet
.
bulletType
.
type
=
AscFormat
.
BULLET_TYPE_BULLET_AUTONUM
;
...
...
@@ -2806,7 +2807,19 @@
};
/**
* Specifies paragraph bullet
* @param {?ApiBullet} oBullet
* */
ApiParaPr
.
prototype
.
SetBullet
=
function
(
oBullet
){
if
(
oBullet
){
this
.
ParaPr
.
Bullet
=
oBullet
.
Bullet
;
}
else
{
this
.
ParaPr
.
Bullet
=
null
;
}
this
.
private_OnChange
();
};
//------------------------------------------------------------------------------------------------------------------
...
...
@@ -4097,6 +4110,8 @@
Api
.
prototype
[
"
CreateNoFill
"
]
=
Api
.
prototype
.
CreateNoFill
;
Api
.
prototype
[
"
CreateStroke
"
]
=
Api
.
prototype
.
CreateStroke
;
Api
.
prototype
[
"
CreateGradientStop
"
]
=
Api
.
prototype
.
CreateGradientStop
;
Api
.
prototype
[
"
CreateBullet
"
]
=
Api
.
prototype
.
CreateBullet
;
Api
.
prototype
[
"
CreateNumbering
"
]
=
Api
.
prototype
.
CreateNumbering
;
ApiUnsupported
.
prototype
[
"
GetClassType
"
]
=
ApiUnsupported
.
prototype
.
GetClassType
;
...
...
@@ -4249,6 +4264,7 @@
ApiParaPr
.
prototype
[
"
SetWidowControl
"
]
=
ApiParaPr
.
prototype
.
SetWidowControl
;
ApiParaPr
.
prototype
[
"
SetTabs
"
]
=
ApiParaPr
.
prototype
.
SetTabs
;
ApiParaPr
.
prototype
[
"
SetNumPr
"
]
=
ApiParaPr
.
prototype
.
SetNumPr
;
ApiParaPr
.
prototype
[
"
SetBullet
"
]
=
ApiParaPr
.
prototype
.
SetBullet
;
ApiTablePr
.
prototype
[
"
GetClassType
"
]
=
ApiTablePr
.
prototype
.
GetClassType
;
ApiTablePr
.
prototype
[
"
SetStyleColBandSize
"
]
=
ApiTablePr
.
prototype
.
SetStyleColBandSize
;
...
...
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