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
96ba7fb0
Commit
96ba7fb0
authored
Aug 03, 2016
by
Ilya Kirillov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new field to the properties of a table.
parent
84423d6f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
word/Editor/Table.js
word/Editor/Table.js
+19
-3
word/api.js
word/api.js
+7
-0
No files found.
word/Editor/Table.js
View file @
96ba7fb0
...
...
@@ -306,6 +306,7 @@ CTable.prototype =
var
CellShd
=
null
;
var
CellWidth
=
undefined
;
var
CellWidthStart
=
undefined
;
var
Prev_row
=
-
1
;
var
bFirstRow
=
true
;
...
...
@@ -360,6 +361,8 @@ CTable.prototype =
CellWidth
=
Cell_w
.
W
;
else
// if (tblwidth_Pct === Cell_w.Type)
CellWidth
=
-
Cell_w
.
W
;
CellWidthStart
=
CellWidth
;
}
else
{
...
...
@@ -487,7 +490,18 @@ CTable.prototype =
Pr
.
CellsVAlign
=
VAlign
;
Pr
.
CellsTextDirection
=
TextDirection
;
Pr
.
CellsNoWrap
=
NoWrap
;
Pr
.
CellsWidth
=
CellWidth
;
if
(
undefined
===
CellWidth
)
{
Pr
.
CellsWidth
=
CellWidthStart
;
Pr
.
CellsWidthNotEqual
=
true
;
}
else
{
Pr
.
CellsWidth
=
CellWidthStart
;
Pr
.
CellsWidthNotEqual
=
false
;
}
Pr
.
CellBorders
=
{
...
...
@@ -569,6 +583,8 @@ CTable.prototype =
else
// if (tblwidth_Pct === CellW.Type)
Pr
.
CellsWidth
=
-
CellW
.
W
;
Pr
.
CellsWidthNotEqual
=
false
;
var
Spacing
=
this
.
Content
[
0
].
Get_CellSpacing
();
var
Border_left
=
null
;
...
...
word/api.js
View file @
96ba7fb0
...
...
@@ -4291,6 +4291,7 @@ background-repeat: no-repeat;\
this
.
CellsTextDirection
=
tblProp
.
CellsTextDirection
;
this
.
CellsNoWrap
=
tblProp
.
CellsNoWrap
;
this
.
CellsWidth
=
tblProp
.
CellsWidth
;
this
.
CellsWidthNotEqual
=
tblProp
.
CellsWidthNotEqual
;
this
.
Locked
=
(
undefined
!=
tblProp
.
Locked
)
?
tblProp
.
Locked
:
false
;
this
.
PercentFullWidth
=
tblProp
.
PercentFullWidth
;
}
...
...
@@ -4552,6 +4553,10 @@ background-repeat: no-repeat;\
{
return
this
.
PercentFullWidth
;
};
CTableProp
.
prototype
.
get_CellsWidthNotEqual
=
function
()
{
return
this
.
CellsWidthNotEqual
;
};
function
CBorders
(
obj
)
...
...
@@ -9029,6 +9034,8 @@ background-repeat: no-repeat;\
CTableProp
.
prototype
[
'
get_CellsWidth
'
]
=
CTableProp
.
prototype
.
get_CellsWidth
;
CTableProp
.
prototype
[
'
put_CellsWidth
'
]
=
CTableProp
.
prototype
.
put_CellsWidth
;
CTableProp
.
prototype
[
'
get_PercentFullWidth
'
]
=
CTableProp
.
prototype
.
get_PercentFullWidth
;
CTableProp
.
prototype
[
'
get_CellsWidthNotEqual
'
]
=
CTableProp
.
prototype
.
get_CellsWidthNotEqual
;
window
[
'
Asc
'
][
'
CBorders
'
]
=
window
[
'
Asc
'
].
CBorders
=
CBorders
;
CBorders
.
prototype
[
'
get_Left
'
]
=
CBorders
.
prototype
.
get_Left
;
CBorders
.
prototype
[
'
put_Left
'
]
=
CBorders
.
prototype
.
put_Left
;
...
...
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