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
d91d3ac3
Commit
d91d3ac3
authored
Feb 09, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change constant name into c_oSpecialPasteProps
parent
0d21b82b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
14 deletions
+21
-14
cell/apiDefines.js
cell/apiDefines.js
+18
-12
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+3
-2
No files found.
cell/apiDefines.js
View file @
d91d3ac3
...
...
@@ -368,18 +368,24 @@ var c_oAscPopUpSelectorType = {
};
var
c_oSpecialPasteProps
=
{
formulas
:
0
,
formulasNumberFormating
:
1
,
keepSourceFormating
:
2
,
noBorders
:
3
,
keepSourceColumnWidths
:
4
,
transpose
:
5
,
values
:
6
,
valuesNumberFormating
:
7
,
formating
:
8
,
pasteLink
:
9
,
picture
:
10
,
linkedPicture
:
11
paste
:
0
,
pasteOnlyFormula
:
1
,
formulaNumberFormat
:
2
,
formulaAllFormatting
:
3
,
formulaWithoutBorders
:
4
,
formulaColumnWidth
:
5
,
mergeConditionalFormating
:
6
,
pasteOnlyValues
:
7
,
valueNumberFormat
:
8
,
valueAllFormating
:
9
,
pasteOnlyFormating
:
10
,
transpose
:
11
,
link
:
12
,
picture
:
13
,
linkedPicture
:
14
,
sourceformatting
:
15
,
destinationFormatting
:
16
};
var
c_kMaxPrintPages
=
1500
;
...
...
cell/view/WorksheetView.js
View file @
d91d3ac3
...
...
@@ -8939,13 +8939,14 @@
var
sProps
=
Asc
.
c_oSpecialPasteProps
;
if
(
fromBinary
)
{
allowedSpecialPasteProps
=
[
sProps
.
formulas
,
sProps
.
formulasNumberFormating
,
sProps
.
keepSourceFormating
,
sProps
.
noBorders
,
sProps
.
keepSourceColumnWidths
,
sProps
.
transpose
,
sProps
.
values
,
sProps
.
valuesNumberFormating
,
sProps
.
keepSourceFormating
,
sProps
.
formating
,
sProps
.
pasteLink
,
sProps
.
picture
,
sProps
.
linkedPicture
];
allowedSpecialPasteProps
=
[
sProps
.
paste
,
sProps
.
pasteOnlyFormula
,
sProps
.
formulaNumberFormat
,
sProps
.
formulaAllFormatting
,
sProps
.
formulaWithoutBorders
,
sProps
.
formulaColumnWidth
,
sProps
.
mergeConditionalFormating
,
sProps
.
pasteOnlyValues
,
sProps
.
valueNumberFormat
,
sProps
.
valueAllFormating
,
sProps
.
pasteOnlyFormating
,
sProps
.
link
];
}
else
{
//matchDestinationFormatting - пока не добавляю, так как работает как и values
allowedSpecialPasteProps
=
[
sProps
.
keepSourceFormating
,
sProps
.
values
];
allowedSpecialPasteProps
=
[
sProps
.
sourceformatting
,
sProps
.
destinationFormatting
];
}
specialPasteShowOptions
.
asc_setOptions
(
allowedSpecialPasteProps
);
var
cellCoord
=
this
.
getCellCoord
(
selectData
[
0
].
c2
,
selectData
[
0
].
r2
);
specialPasteShowOptions
.
asc_setCellCoord
(
cellCoord
);
...
...
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