Add possibility to specify the color when turning on the highlight of the content control

This commit is contained in:
Ilya Kirillov
2019-01-31 15:02:57 +03:00
parent 111450d6f9
commit 909e06d36b

View File

@ -8109,7 +8109,7 @@ background-repeat: no-repeat;\
var oColor = oLogicDocument.GetSdtGlobalColor();
return new Asc.asc_CColor(oColor.r, oColor.g, oColor.b);
};
asc_docs_api.prototype.asc_SetGlobalContentControlShowHighlight = function(isShow)
asc_docs_api.prototype.asc_SetGlobalContentControlShowHighlight = function(isShow, r, g, b)
{
var oLogicDocument = this.private_GetLogicDocument();
if (!oLogicDocument)
@ -8119,6 +8119,9 @@ background-repeat: no-repeat;\
oLogicDocument.Create_NewHistoryPoint(AscDFH.historydescription_Document_SetGlobalSdtShowHighlight);
oLogicDocument.SetSdtGlobalShowHighlight(isShow);
if (undefined !== r && undefined !== g && undefined !== b)
oLogicDocument.SetSdtGlobalColor(r, g, b);
oLogicDocument.GetDrawingDocument().ClearCachePages();
oLogicDocument.GetDrawingDocument().FirePaint();
};