OfficeXml/autoclass/docx/Stroke@DOCX.tsf

82 lines
1.9 KiB
Plaintext

type Stroke = class(OpenXmlElement)
public
function Create();overload;
function Create(_node: XmlNode);overload;
function Create(_parent: tslobj; _prefix: string; _local_name: string);overload;
function Init();override;
function InitAttributes();override;
function InitChildren();override;
function InitNode(_node: XmlNode);override;
function Copy(_obj: Stroke);override;
property Joinstyle read ReadXmlAttrJoinstyle write WriteXmlAttrJoinstyle;
function ReadXmlAttrJoinstyle();
function WriteXmlAttrJoinstyle(_value);
public
// Attributes
XmlAttrJoinstyle: OpenXmlAttribute;
// Children
end;
function Stroke.Create();overload;
begin
{self.}Create(nil, "v", "stroke");
end;
function Stroke.Create(_node: XmlNode);overload;
begin
class(OpenXmlElement).Create(_node: XmlNode);
end;
function Stroke.Create(_parent: tslobj; _prefix: string; _local_name: string);overload;
begin
class(OpenXmlElement).Create(_parent, _prefix, _local_name);
end;
function Stroke.Init();override;
begin
{self.}XmlAttrJoinstyle := new OpenXmlAttribute(nil, "joinstyle", nil);
end;
function Stroke.InitAttributes();override;
begin
attributes_ := array(
{self.}XmlAttrJoinstyle,
);
end;
function Stroke.InitChildren();override;
begin
child_elements_ := array(
);
sorted_child_ := array(
"": -1,
);
end;
function Stroke.InitNode(_node: XmlNode);override;
begin
if ifObj({self.}XmlNode) then
for k,v in child_elements_ do v.InitNode(nil);
{self.}XmlNode := ifObj(_node) ? _node : nil;
end;
function Stroke.Copy(_obj: Stroke);override;
begin
if not ifnil(_obj.XmlAttrJoinstyle.Value) then
{self.}XmlAttrJoinstyle.Value := _obj.XmlAttrJoinstyle.Value;
end;
function Stroke.ReadXmlAttrJoinstyle();
begin
return {self.}XmlAttrJoinstyle.Value;
end;
function Stroke.WriteXmlAttrJoinstyle(_value);
begin
{self.}XmlAttrJoinstyle.Value := _value;
end;