update
This commit is contained in:
parent
e2e68efc30
commit
3643be6231
|
|
@ -13558,14 +13558,9 @@ Type TDocumentBody = Class(DocObject)
|
|||
TOfficeApi().Set('CurrentPosition', tslBegParagraphNode);
|
||||
TOfficeApi().Set('CurrentRun', curRunNode);
|
||||
TOfficeApi().Set('CodePage', 'gbk');
|
||||
try
|
||||
tslFuncCount ++;
|
||||
if code <> '' then
|
||||
str := eval(&code);
|
||||
except
|
||||
println('run code={},err={}', code, ExceptObject.ErrInfo);
|
||||
errArr[ length(errArr) ] := array('code':code, 'err':ExceptObject.ErrInfo);
|
||||
str := '';
|
||||
if not RunTslCode(code, err) then Begin
|
||||
echo 'run code=',code,',err=', err, '\n';
|
||||
errArr[ length(errArr) ] := array('code':code, 'err':err);
|
||||
End;
|
||||
tslFuncCount ++;
|
||||
tNode := curRun.node_.FirstChildElement('w:t');
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
Function _WordSetCurrentRange(range);
|
||||
Begin
|
||||
TOfficeApi().Set('CurrentPosition', range);
|
||||
End;
|
||||
|
|
@ -1147,14 +1147,6 @@ Type xlsxWorkBook = Class
|
|||
|
||||
Function ProtectSheet(sheet, protect);
|
||||
Begin
|
||||
if protect.AlgorithmName and protect.Password then
|
||||
begin
|
||||
protect.SaltValue := nil;//protect.Password;
|
||||
protect.HashValue := nil;//GetMsgDigest(protect.SaltValue, 6);
|
||||
protect.SpinCount := nil;
|
||||
protect.Password := nil;
|
||||
protect.AlgorithmName := nil;
|
||||
end
|
||||
sheet_obj := GetSheetXmlfile(sheet);
|
||||
work_node := sheet_obj.FirstChildElement('worksheet');
|
||||
sheet_protection_node := work_node.FirstChildElement('sheetProtection');
|
||||
|
|
|
|||
Loading…
Reference in New Issue