[SSE] Move
Move asc_getLockText to cell info
This commit is contained in:
parent
4a282e307a
commit
f50d32b597
|
@ -545,7 +545,7 @@ define([
|
|||
currentSheet: me.api.asc_getWorksheetName(me.api.asc_getActiveWorksheetIndex()),
|
||||
props : props,
|
||||
text : cell.asc_getText(),
|
||||
isLock : cell.asc_getFlags().asc_getLockText(),
|
||||
isLock : cell.asc_getLockText(),
|
||||
allowInternal: item.options.inCell
|
||||
});
|
||||
}
|
||||
|
|
|
@ -923,7 +923,7 @@ define([
|
|||
currentSheet: me.api.asc_getWorksheetName(me.api.asc_getActiveWorksheetIndex()),
|
||||
props : props,
|
||||
text : cell.asc_getText(),
|
||||
isLock : cell.asc_getFlags().asc_getLockText(),
|
||||
isLock : cell.asc_getLockText(),
|
||||
allowInternal: (seltype!==Asc.c_oAscSelectionType.RangeImage && seltype!==Asc.c_oAscSelectionType.RangeShape &&
|
||||
seltype!==Asc.c_oAscSelectionType.RangeShapeText && seltype!==Asc.c_oAscSelectionType.RangeChart &&
|
||||
seltype!==Asc.c_oAscSelectionType.RangeChartText)
|
||||
|
|
|
@ -436,7 +436,7 @@ define([
|
|||
event: 'openlink'
|
||||
});
|
||||
} else if (!cellinfo.asc_getHyperlink() && !cellinfo.asc_getMultiselect() &&
|
||||
!cellinfo.asc_getFlags().asc_getLockText() && !!cellinfo.asc_getText()) {
|
||||
!cellinfo.asc_getLockText() && !!cellinfo.asc_getText()) {
|
||||
arrItems.push({
|
||||
caption: me.menuAddLink,
|
||||
event: 'addlink'
|
||||
|
|
|
@ -76,7 +76,7 @@ define([
|
|||
celltype!==Asc.c_oAscSelectionType.RangeShapeText && celltype!==Asc.c_oAscSelectionType.RangeChart &&
|
||||
celltype!==Asc.c_oAscSelectionType.RangeChartText);
|
||||
|
||||
_view.optionDisplayText(cell.asc_getFlags().asc_getLockText() ? 'locked' : cell.asc_getText());
|
||||
_view.optionDisplayText(cell.asc_getLockText() ? 'locked' : cell.asc_getText());
|
||||
_view.optionAllowInternal(allowinternal);
|
||||
allowinternal && _view.optionLinkType( cfgLink.type );
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ define([
|
|||
celltype!==Asc.c_oAscSelectionType.RangeShapeText && celltype!==Asc.c_oAscSelectionType.RangeChart &&
|
||||
celltype!==Asc.c_oAscSelectionType.RangeChartText);
|
||||
|
||||
view.optionDisplayText(cell.asc_getFlags().asc_getLockText() ? 'locked' : cell.asc_getText());
|
||||
view.optionDisplayText(cell.asc_getLockText() ? 'locked' : cell.asc_getText());
|
||||
view.optionAllowInternal(allowinternal);
|
||||
allowinternal && view.optionLinkType( cfgLink.type );
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ define([
|
|||
|
||||
var cellInfo = me.api.asc_getCellInfo(),
|
||||
linkInfo = cellInfo.asc_getHyperlink(),
|
||||
isLock = cellInfo.asc_getFlags().asc_getLockText();
|
||||
isLock = cellInfo.asc_getLockText();
|
||||
|
||||
me.linkType = linkInfo.asc_getType();
|
||||
$('#edit-link-type .item-after').text((me.linkType == Asc.c_oAscHyperlinkType.RangeLink) ? me.textInternalLink : me.textExternalLink);
|
||||
|
|
Loading…
Reference in a new issue