OfficeXml/autoclass/docx/EffectExtent@DOCX.tsf

141 lines
3.7 KiB
Plaintext

type EffectExtent = 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 Copy(_obj: EffectExtent);override;
public
// attributes property
property L read ReadXmlAttrL write WriteXmlAttrL;
property T read ReadXmlAttrT write WriteXmlAttrT;
property R read ReadXmlAttrR write WriteXmlAttrR;
property B read ReadXmlAttrB write WriteXmlAttrB;
function ReadXmlAttrL();
function WriteXmlAttrL(_value);
function ReadXmlAttrT();
function WriteXmlAttrT(_value);
function ReadXmlAttrR();
function WriteXmlAttrR(_value);
function ReadXmlAttrB();
function WriteXmlAttrB(_value);
public
// Attributes
XmlAttrL: OpenXmlAttribute;
XmlAttrT: OpenXmlAttribute;
XmlAttrR: OpenXmlAttribute;
XmlAttrB: OpenXmlAttribute;
end;
function EffectExtent.Create();overload;
begin
{self.}Create(nil, "wp", "effectExtent");
end;
function EffectExtent.Create(_node: XmlNode);overload;
begin
class(OpenXmlElement).Create(_node: XmlNode);
end;
function EffectExtent.Create(_parent: tslobj; _prefix: string; _local_name: string);overload;
begin
setsysparam(pn_calcctrlword(), getsysparam(pn_calcctrlword()) .| 0x200);
class(OpenXmlElement).Create(_parent, _prefix, _local_name);
end;
function EffectExtent.Init();override;
begin
pre := {self.}Prefix ? {self.}Prefix + ":" : "";
attributes_ := array();
attributes_pf_ := array(
"l": makeweakref(thisFunction(WriteXmlAttrL)),
"t": makeweakref(thisFunction(WriteXmlAttrT)),
"r": makeweakref(thisFunction(WriteXmlAttrR)),
"b": makeweakref(thisFunction(WriteXmlAttrB)),
);
sorted_child_ := array(
);
container_ := new TSOfficeContainer(sorted_child_);
end;
function EffectExtent.Copy(_obj: EffectExtent);override;
begin
tslassigning_backup := tslassigning;
tslassigning := 1;
class(OpenXmlElement).Copy(_obj);
if not ifnil(_obj.L) then
{self.}L := _obj.L;
if not ifnil(_obj.T) then
{self.}T := _obj.T;
if not ifnil(_obj.R) then
{self.}R := _obj.R;
if not ifnil(_obj.B) then
{self.}B := _obj.B;
tslassigning := tslassigning_backup;
end;
function EffectExtent.ReadXmlAttrL();
begin
return {self.}XmlAttrL.Value;
end;
function EffectExtent.WriteXmlAttrL(_value);
begin
if ifnil({self.}XmlAttrL) then
begin
{self.}XmlAttrL := new OpenXmlAttribute("", "l", nil);
attributes_[length(attributes_)] := {self.}XmlAttrL;
end
{self.}XmlAttrL.Value := _value;
end;
function EffectExtent.ReadXmlAttrT();
begin
return {self.}XmlAttrT.Value;
end;
function EffectExtent.WriteXmlAttrT(_value);
begin
if ifnil({self.}XmlAttrT) then
begin
{self.}XmlAttrT := new OpenXmlAttribute("", "t", nil);
attributes_[length(attributes_)] := {self.}XmlAttrT;
end
{self.}XmlAttrT.Value := _value;
end;
function EffectExtent.ReadXmlAttrR();
begin
return {self.}XmlAttrR.Value;
end;
function EffectExtent.WriteXmlAttrR(_value);
begin
if ifnil({self.}XmlAttrR) then
begin
{self.}XmlAttrR := new OpenXmlAttribute("", "r", nil);
attributes_[length(attributes_)] := {self.}XmlAttrR;
end
{self.}XmlAttrR.Value := _value;
end;
function EffectExtent.ReadXmlAttrB();
begin
return {self.}XmlAttrB.Value;
end;
function EffectExtent.WriteXmlAttrB(_value);
begin
if ifnil({self.}XmlAttrB) then
begin
{self.}XmlAttrB := new OpenXmlAttribute("", "b", nil);
attributes_[length(attributes_)] := {self.}XmlAttrB;
end
{self.}XmlAttrB.Value := _value;
end;