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
c2b97ef4
Commit
c2b97ef4
authored
Mar 29, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ previous
parent
6e76045e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
common/wordcopypaste.js
common/wordcopypaste.js
+12
-0
No files found.
common/wordcopypaste.js
View file @
c2b97ef4
...
...
@@ -4185,6 +4185,7 @@ PasteProcessor.prototype =
}
else
if
(
cStyle
&&
presentation
.
globalTableStyles
&&
presentation
.
globalTableStyles
.
Style
)
{
var
isFoundStyle
=
false
;
for
(
var
j
in
presentation
.
globalTableStyles
.
Style
)
{
//TODO isEqual - сравнивает ещё и имя стиля. для случая, когда одинаковый контент, но имя стиля разное, не подойдет это сравнение
...
...
@@ -4192,9 +4193,20 @@ PasteProcessor.prototype =
{
arr_shapes
[
i
].
Drawing
.
graphicObject
.
Set_TableStyle
(
j
,
true
);
foundTableStylesIdMap
[
style_index
]
=
j
;
isFoundStyle
=
true
;
break
;
}
}
//в данном случае добавляем новый стиль
if
(
!
isFoundStyle
)
{
//TODO при добавлении нового стиля - падение. пересмотреть!
/*var newIndexStyle = presentation.globalTableStyles.Add(cStyle);
presentation.TableStylesIdMap[newIndexStyle] = true;
arr_shapes[i].Drawing.graphicObject.Set_TableStyle(newIndexStyle, true);
foundTableStylesIdMap[style_index] = newIndexStyle;*/
}
}
else
if
(
presentation
.
TableStylesIdMap
[
style_index
])
{
...
...
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