Commit d91d3ac3 authored by GoshaZotov's avatar GoshaZotov

change constant name into c_oSpecialPasteProps

parent 0d21b82b
...@@ -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;
......
...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment