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
d92f705a
Commit
d92f705a
authored
Feb 06, 2017
by
Sergey Luzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
description and caption for tables
parent
49c7b54b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
cell/view/DrawingObjectsController.js
cell/view/DrawingObjectsController.js
+8
-0
common/Drawings/CommonController.js
common/Drawings/CommonController.js
+2
-1
No files found.
cell/view/DrawingObjectsController.js
View file @
d92f705a
...
...
@@ -109,6 +109,12 @@ DrawingObjectsController.prototype.setTableProps = function(props)
var
by_type
=
this
.
getSelectedObjectsByTypes
();
if
(
by_type
.
tables
.
length
===
1
)
{
var
sCaption
=
props
.
TableCaption
;
var
sDescription
=
props
.
TableDescription
;
by_type
.
tables
[
0
].
setTitle
(
sCaption
);
by_type
.
tables
[
0
].
setDescription
(
sDescription
);
props
.
TableCaption
=
undefined
;
props
.
TableDescription
=
undefined
;
var
target_text_object
=
AscFormat
.
getTargetTextObject
(
this
);
if
(
target_text_object
===
by_type
.
tables
[
0
])
{
...
...
@@ -120,6 +126,8 @@ DrawingObjectsController.prototype.setTableProps = function(props)
by_type
.
tables
[
0
].
graphicObject
.
Set_Props
(
props
);
by_type
.
tables
[
0
].
graphicObject
.
Selection_Remove
();
}
props
.
TableCaption
=
sCaption
;
props
.
TableDescription
=
sDescription
;
editor
.
WordControl
.
m_oLogicDocument
.
Check_GraphicFrameRowHeight
(
by_type
.
tables
[
0
]);
}
};
...
...
common/Drawings/CommonController.js
View file @
d92f705a
...
...
@@ -7123,7 +7123,8 @@ DrawingObjectsController.prototype =
checkBorder
(
new_table_props
.
CellBorders
.
Right
);
checkBorder
(
new_table_props
.
CellBorders
.
Left
);
}
new_table_props
.
TableDescription
=
drawing
.
getDescription
();
new_table_props
.
TableCaption
=
drawing
.
getTitle
();
}
else
{
...
...
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