This commit is contained in:
csh
2024-12-13 17:18:59 +08:00
parent 6385b6300f
commit e687379248
59 changed files with 639 additions and 45 deletions
+16 -12
View File
@@ -15,18 +15,13 @@ public
function Attributes(): array of OpenXmlAttribute;
// 增删改查接口 -- 暂不实现
// public
// function Append(_obj: tslobj): boolean; // OpenXmlElement or OpenXmlPcdata
// function InsertAfter(_pos_obj: tslobj; _obj: tslobj): boolean;
// function InsertBefore(_pos_obj: tslobj; _obj: tslobj): boolean;
// function Prepend(var _obj: tslobj): boolean;
// function Remove(_obj: tslobj): boolean;
// function AddAttribute(_obj: OpenXmlAttribute): boolean;
// protected
// function IsValidChild(_obj: tslobj);
// function FindChild(_obj: tslobj);
// function InsertChild(_obj: tslobj; _pos: integer);
public
function AppendChild(_obj: tslobj); // OpenXmlElement or OpenXmlPcdata
function InsertAfter(_obj: tslobj; _pos_obj: tslobj);
// function InsertBefore(_pos_obj: tslobj; _obj: tslobj);
// function PrependChild(_obj: tslobj);
// function RemoveChild(_obj: tslobj);
// function SetAttribute(_obj: OpenXmlAttribute);
public
LocalName: string; // 本地名称
@@ -172,3 +167,12 @@ begin
return container_.Get();
end;
function OpenXmlElement.InsertAfter(_obj: tslobj; _pos_obj: tslobj);
begin
container_.InsertAfter(_obj, _pos_obj);
end;
function OpenXmlElement.AppendChild(_obj: tslobj);
begin
container_.Append(_obj);
end;