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
Show 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
...
@@ -323,6 +323,7 @@ function (window, undefined) {
...
@@ -323,6 +323,7 @@ function (window, undefined) {
case
AscDFH
.
historydescription_Document_ApplyPrToMath
:
sString
=
"
Document_ApplyPrToMath
"
;
break
;
case
AscDFH
.
historydescription_Document_ApplyPrToMath
:
sString
=
"
Document_ApplyPrToMath
"
;
break
;
case
AscDFH
.
historydescription_Document_SetMathProps
:
sString
=
"
Document_SetMathProps
"
;
break
;
case
AscDFH
.
historydescription_Document_SetMathProps
:
sString
=
"
Document_SetMathProps
"
;
break
;
case
AscDFH
.
historydescription_Document_SetSectionProps
:
sString
=
"
Document_SetColumnsProps
"
;
break
;
case
AscDFH
.
historydescription_Document_SetSectionProps
:
sString
=
"
Document_SetColumnsProps
"
;
break
;
case
AscDFH
.
historydescription_Document_ApiBuilder
:
sString
=
"
Document_ApiBuilder
"
;
break
}
}
return
sString
;
return
sString
;
}
}
...
@@ -1626,6 +1627,64 @@ window['AscDFH'].historyitem_type_deg = 53;
...
@@ -1626,6 +1627,64 @@ window['AscDFH'].historyitem_type_deg = 53;
window
[
'
AscDFH
'
].
historyitem_type_ParaComment
=
54
;
window
[
'
AscDFH
'
].
historyitem_type_ParaComment
=
54
;
window
[
'
AscDFH
'
].
historyitem_type_Field
=
55
;
window
[
'
AscDFH
'
].
historyitem_type_Field
=
55
;
window
[
'
AscDFH
'
].
historyitem_Math_AddItem
=
1
;
// Добавляем элемент
window
[
'
AscDFH
'
].
historyitem_Math_RemoveItem
=
2
;
// Удаляем элемент
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpFSize
=
3
;
// CtrPrp
window
[
'
AscDFH
'
].
historyitem_Math_ParaJc
=
4
;
// ParaMath.Jc
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpShd
=
5
;
window
[
'
AscDFH
'
].
historyitem_Math_AddItems_ToMathBase
=
6
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpColor
=
7
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpUnifill
=
8
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpUnderline
=
9
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpStrikeout
=
10
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpDoubleStrikeout
=
11
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpItalic
=
12
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpBold
=
13
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsAscii
=
14
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsHAnsi
=
15
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsCS
=
16
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsEastAsia
=
17
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsHint
=
18
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpHighLight
=
19
;
window
[
'
AscDFH
'
].
historyitem_Math_ArgSize
=
20
;
window
[
'
AscDFH
'
].
historyitem_Math_ReviewType
=
21
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpTextFill
=
22
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpTextOutline
=
23
;
window
[
'
AscDFH
'
].
historyitem_Math_BoxAlnAt
=
24
;
window
[
'
AscDFH
'
].
historyitem_Math_FractionType
=
25
;
window
[
'
AscDFH
'
].
historyitem_Math_RadicalHideDegree
=
26
;
window
[
'
AscDFH
'
].
historyitem_Math_NaryLimLoc
=
27
;
window
[
'
AscDFH
'
].
historyitem_Math_NaryUpperLimit
=
28
;
window
[
'
AscDFH
'
].
historyitem_Math_NaryLowerLimit
=
29
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimBegOper
=
30
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimEndOper
=
31
;
window
[
'
AscDFH
'
].
historyitem_Math_BaseSetColumn
=
32
;
window
[
'
AscDFH
'
].
historyitem_Math_BaseRemoveItems
=
33
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimiterGrow
=
34
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimiterShape
=
35
;
window
[
'
AscDFH
'
].
historyitem_Math_GroupCharPr
=
36
;
window
[
'
AscDFH
'
].
historyitem_Math_LimitType
=
37
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxTop
=
38
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxBot
=
39
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxLeft
=
40
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxRight
=
41
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxHor
=
42
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxVer
=
43
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxTopLTR
=
44
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxTopRTL
=
45
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixAddRow
=
46
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixRemoveRow
=
47
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixAddColumn
=
48
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixRemoveColumn
=
49
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixBaseJc
=
50
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixColumnJc
=
51
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixInterval
=
52
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixPlh
=
53
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixMinColumnWidth
=
54
;
window
[
'
AscDFH
'
].
historyitem_Math_BarLinePos
=
55
;
window
[
'
AscDFH
'
].
historyitem_Math_BoxForcedBreak
=
56
;
window
[
'
AscDFH
'
].
historyitem_Math_DegreeSubSupType
=
57
;
window
[
'
AscDFH
'
].
historydescription_Cut
=
0x0001
;
window
[
'
AscDFH
'
].
historydescription_Cut
=
0x0001
;
window
[
'
AscDFH
'
].
historydescription_PasteButtonIE
=
0x0002
;
window
[
'
AscDFH
'
].
historydescription_PasteButtonIE
=
0x0002
;
window
[
'
AscDFH
'
].
historydescription_PasteButtonNotIE
=
0x0003
;
window
[
'
AscDFH
'
].
historydescription_PasteButtonNotIE
=
0x0003
;
...
@@ -1939,62 +1998,6 @@ window['AscDFH'].historydescription_Document_SetSectionProps
...
@@ -1939,62 +1998,6 @@ window['AscDFH'].historydescription_Document_SetSectionProps
window
[
'
AscDFH
'
].
historydescription_Document_AddTabToMath
=
0x0133
;
window
[
'
AscDFH
'
].
historydescription_Document_AddTabToMath
=
0x0133
;
window
[
'
AscDFH
'
].
historydescription_Document_SetMathProps
=
0x0134
;
window
[
'
AscDFH
'
].
historydescription_Document_SetMathProps
=
0x0134
;
window
[
'
AscDFH
'
].
historydescription_Document_ApplyPrToMath
=
0x0135
;
window
[
'
AscDFH
'
].
historydescription_Document_ApplyPrToMath
=
0x0135
;
window
[
'
AscDFH
'
].
historydescription_Document_ApiBuilder
=
0x0136
;
window
[
'
AscDFH
'
].
historyitem_Math_AddItem
=
1
;
// Добавляем элемент
window
[
'
AscDFH
'
].
historyitem_Math_RemoveItem
=
2
;
// Удаляем элемент
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpFSize
=
3
;
// CtrPrp
window
[
'
AscDFH
'
].
historyitem_Math_ParaJc
=
4
;
// ParaMath.Jc
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpShd
=
5
;
window
[
'
AscDFH
'
].
historyitem_Math_AddItems_ToMathBase
=
6
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpColor
=
7
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpUnifill
=
8
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpUnderline
=
9
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpStrikeout
=
10
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpDoubleStrikeout
=
11
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpItalic
=
12
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpBold
=
13
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsAscii
=
14
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsHAnsi
=
15
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsCS
=
16
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsEastAsia
=
17
;
window
[
'
AscDFH
'
].
historyitem_Math_RFontsHint
=
18
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpHighLight
=
19
;
window
[
'
AscDFH
'
].
historyitem_Math_ArgSize
=
20
;
window
[
'
AscDFH
'
].
historyitem_Math_ReviewType
=
21
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpTextFill
=
22
;
window
[
'
AscDFH
'
].
historyitem_Math_CtrPrpTextOutline
=
23
;
window
[
'
AscDFH
'
].
historyitem_Math_BoxAlnAt
=
24
;
window
[
'
AscDFH
'
].
historyitem_Math_FractionType
=
25
;
window
[
'
AscDFH
'
].
historyitem_Math_RadicalHideDegree
=
26
;
window
[
'
AscDFH
'
].
historyitem_Math_NaryLimLoc
=
27
;
window
[
'
AscDFH
'
].
historyitem_Math_NaryUpperLimit
=
28
;
window
[
'
AscDFH
'
].
historyitem_Math_NaryLowerLimit
=
29
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimBegOper
=
30
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimEndOper
=
31
;
window
[
'
AscDFH
'
].
historyitem_Math_BaseSetColumn
=
32
;
window
[
'
AscDFH
'
].
historyitem_Math_BaseRemoveItems
=
33
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimiterGrow
=
34
;
window
[
'
AscDFH
'
].
historyitem_Math_DelimiterShape
=
35
;
window
[
'
AscDFH
'
].
historyitem_Math_GroupCharPr
=
36
;
window
[
'
AscDFH
'
].
historyitem_Math_LimitType
=
37
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxTop
=
38
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxBot
=
39
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxLeft
=
40
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxRight
=
41
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxHor
=
42
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxVer
=
43
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxTopLTR
=
44
;
window
[
'
AscDFH
'
].
historyitem_Math_BorderBoxTopRTL
=
45
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixAddRow
=
46
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixRemoveRow
=
47
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixAddColumn
=
48
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixRemoveColumn
=
49
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixBaseJc
=
50
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixColumnJc
=
51
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixInterval
=
52
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixPlh
=
53
;
window
[
'
AscDFH
'
].
historyitem_Math_MatrixMinColumnWidth
=
54
;
window
[
'
AscDFH
'
].
historyitem_Math_BarLinePos
=
55
;
window
[
'
AscDFH
'
].
historyitem_Math_BoxForcedBreak
=
56
;
window
[
'
AscDFH
'
].
historyitem_Math_DegreeSubSupType
=
57
;
})(
window
);
})(
window
);
word/apiBuilder.js
View file @
bdb13b23
...
@@ -280,11 +280,11 @@
...
@@ -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.
* Get the number of elements.
...
@@ -1035,6 +1035,40 @@
...
@@ -1035,6 +1035,40 @@
{
{
return
new
ApiParaPr
(
this
,
this
.
Style
.
ParaPr
.
Copy
());
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 @@
...
@@ -2246,6 +2280,10 @@
ApiStyle
.
prototype
[
"
GetType
"
]
=
ApiStyle
.
prototype
.
GetType
;
ApiStyle
.
prototype
[
"
GetType
"
]
=
ApiStyle
.
prototype
.
GetType
;
ApiStyle
.
prototype
[
"
GetTextPr
"
]
=
ApiStyle
.
prototype
.
GetTextPr
;
ApiStyle
.
prototype
[
"
GetTextPr
"
]
=
ApiStyle
.
prototype
.
GetTextPr
;
ApiStyle
.
prototype
[
"
GetParaPr
"
]
=
ApiStyle
.
prototype
.
GetParaPr
;
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
;
ApiNumbering
.
prototype
[
"
GetLevel
"
]
=
ApiNumbering
.
prototype
.
GetLevel
;
...
@@ -2546,6 +2584,21 @@
...
@@ -2546,6 +2584,21 @@
this
.
Style
.
Set_ParaPr
(
oApiParaPr
.
ParaPr
);
this
.
Style
.
Set_ParaPr
(
oApiParaPr
.
ParaPr
);
oApiParaPr
.
ParaPr
=
this
.
Style
.
ParaPr
.
Copy
();
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
)
ApiNumberingLevel
.
prototype
.
OnChangeTextPr
=
function
(
oApiTextPr
)
{
{
this
.
Num
.
Set_TextPr
(
this
.
Lvl
,
oApiTextPr
.
TextPr
);
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