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
bdb13b23
Commit
bdb13b23
authored
Apr 21, 2016
by
Ilya Kirillov
Committed by
Alexander.Trofimov
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
В билдере в классе ApiStyle добавлены функции для получения настроек таблицы, строки и ячейки.
parent
bd94b0b8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
117 additions
and
61 deletions
+117
-61
common/Drawings/Format/Constants.js
common/Drawings/Format/Constants.js
+61
-58
word/apiBuilder.js
word/apiBuilder.js
+56
-3
No files found.
common/Drawings/Format/Constants.js
View file @
bdb13b23
This diff is collapsed.
Click to expand it.
word/apiBuilder.js
View file @
bdb13b23
...
...
@@ -280,11 +280,11 @@
//------------------------------------------------------------------------------------------------------------------
/**
* Create new history point
* Create new history point
.
*/
ApiDocument
.
prototype
.
Create
_
NewHistoryPoint
=
function
()
ApiDocument
.
prototype
.
CreateNewHistoryPoint
=
function
()
{
this
.
Document
.
Create_NewHistoryPoint
();
this
.
Document
.
Create_NewHistoryPoint
(
AscDFH
.
historydescription_Document_ApiBuilder
);
};
/**
* Get the number of elements.
...
...
@@ -1035,6 +1035,40 @@
{
return
new
ApiParaPr
(
this
,
this
.
Style
.
ParaPr
.
Copy
());
};
/**
* Get the table properties of the current style.
* @returns {?ApiTablePr} If the type of this style is not a <code>"table"</code> then it will return <code>null</code>.
*/
ApiStyle
.
prototype
.
GetTablePr
=
function
()
{
if
(
styletype_Table
!==
this
.
Style
.
Get_Type
())
return
null
;
return
new
ApiTablePr
(
this
,
this
.
Style
.
TablePr
.
Copy
());
};
/**
* Get the table row properties of the current style.
* @returns {?ApiTableRowPr} If the type of this style is not a <code>"table"</code> then it will return <code>null</code>.
*/
ApiStyle
.
prototype
.
GetTableRowPr
=
function
()
{
if
(
styletype_Table
!==
this
.
Style
.
Get_Type
())
return
null
;
return
new
ApiTableRowPr
(
this
,
this
.
Style
.
TableRowPr
.
Copy
());
};
/**
* Get the table cell properties of the current style.
* @returns {?ApiTableCellPr}
*/
ApiStyle
.
prototype
.
GetTableCellPr
=
function
()
{
if
(
styletype_Table
!==
this
.
Style
.
Get_Type
())
return
null
;
return
new
ApiTableCellPr
(
this
,
this
.
Style
.
TableCellPr
.
Copy
());
};
//------------------------------------------------------------------------------------------------------------------
//
...
...
@@ -2246,6 +2280,10 @@
ApiStyle
.
prototype
[
"
GetType
"
]
=
ApiStyle
.
prototype
.
GetType
;
ApiStyle
.
prototype
[
"
GetTextPr
"
]
=
ApiStyle
.
prototype
.
GetTextPr
;
ApiStyle
.
prototype
[
"
GetParaPr
"
]
=
ApiStyle
.
prototype
.
GetParaPr
;
ApiStyle
.
prototype
[
"
GetTablePr
"
]
=
ApiStyle
.
prototype
.
GetTablePr
;
ApiStyle
.
prototype
[
"
GetTableRowPr
"
]
=
ApiStyle
.
prototype
.
GetTableRowPr
;
ApiStyle
.
prototype
[
"
GetTableCellPr
"
]
=
ApiStyle
.
prototype
.
GetTableCellPr
;
ApiNumbering
.
prototype
[
"
GetLevel
"
]
=
ApiNumbering
.
prototype
.
GetLevel
;
...
...
@@ -2546,6 +2584,21 @@
this
.
Style
.
Set_ParaPr
(
oApiParaPr
.
ParaPr
);
oApiParaPr
.
ParaPr
=
this
.
Style
.
ParaPr
.
Copy
();
};
ApiStyle
.
prototype
.
OnChangeTablePr
=
function
(
oApiTablePr
)
{
this
.
Style
.
Set_TablePr
(
oApiTablePr
.
TablePr
);
oApiTablePr
.
TablePr
=
this
.
Style
.
TablePr
.
Copy
();
};
ApiStyle
.
prototype
.
OnChangeTableRowPr
=
function
(
oApiTableRowPr
)
{
this
.
Style
.
Set_TableRowPr
(
oApiTableRowPr
.
RowPr
);
oApiTableRowPr
.
RowPr
=
this
.
Style
.
TableRowPr
.
Copy
();
};
ApiStyle
.
prototype
.
OnChangeTableCellPr
=
function
(
oApiTableCellPr
)
{
this
.
Style
.
Set_TableCellPr
(
oApiTableCellPr
.
CellPr
);
oApiTableCellPr
.
CellPr
=
this
.
Style
.
TableCellPr
.
Copy
();
};
ApiNumberingLevel
.
prototype
.
OnChangeTextPr
=
function
(
oApiTextPr
)
{
this
.
Num
.
Set_TextPr
(
this
.
Lvl
,
oApiTextPr
.
TextPr
);
...
...
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