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 = {
...
@@ -368,18 +368,24 @@ var c_oAscPopUpSelectorType = {
};
};
var
c_oSpecialPasteProps
=
{
var
c_oSpecialPasteProps
=
{
formulas
:
0
,
paste
:
0
,
formulasNumberFormating
:
1
,
pasteOnlyFormula
:
1
,
keepSourceFormating
:
2
,
formulaNumberFormat
:
2
,
noBorders
:
3
,
formulaAllFormatting
:
3
,
keepSourceColumnWidths
:
4
,
formulaWithoutBorders
:
4
,
transpose
:
5
,
formulaColumnWidth
:
5
,
values
:
6
,
mergeConditionalFormating
:
6
,
valuesNumberFormating
:
7
,
pasteOnlyValues
:
7
,
formating
:
8
,
valueNumberFormat
:
8
,
pasteLink
:
9
,
valueAllFormating
:
9
,
picture
:
10
,
pasteOnlyFormating
:
10
,
linkedPicture
:
11
transpose
:
11
,
link
:
12
,
picture
:
13
,
linkedPicture
:
14
,
sourceformatting
:
15
,
destinationFormatting
:
16
};
};
var
c_kMaxPrintPages
=
1500
;
var
c_kMaxPrintPages
=
1500
;
...
...
cell/view/WorksheetView.js
View file @
d91d3ac3
...
@@ -8939,13 +8939,14 @@
...
@@ -8939,13 +8939,14 @@
var
sProps
=
Asc
.
c_oSpecialPasteProps
;
var
sProps
=
Asc
.
c_oSpecialPasteProps
;
if
(
fromBinary
)
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
else
{
{
//matchDestinationFormatting - пока не добавляю, так как работает как и values
//matchDestinationFormatting - пока не добавляю, так как работает как и values
allowedSpecialPasteProps
=
[
sProps
.
keepSourceFormating
,
sProps
.
values
];
allowedSpecialPasteProps
=
[
sProps
.
sourceformatting
,
sProps
.
destinationFormatting
];
}
}
specialPasteShowOptions
.
asc_setOptions
(
allowedSpecialPasteProps
);
specialPasteShowOptions
.
asc_setOptions
(
allowedSpecialPasteProps
);
var
cellCoord
=
this
.
getCellCoord
(
selectData
[
0
].
c2
,
selectData
[
0
].
r2
);
var
cellCoord
=
this
.
getCellCoord
(
selectData
[
0
].
c2
,
selectData
[
0
].
r2
);
specialPasteShowOptions
.
asc_setCellCoord
(
cellCoord
);
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