68 lines
1.8 KiB
Plaintext
68 lines
1.8 KiB
Plaintext
type Stretch = 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: Stretch);override;
|
|
|
|
public
|
|
|
|
// normal property
|
|
property FillRect read ReadXmlChildFillRect;
|
|
function ReadXmlChildFillRect();
|
|
|
|
public
|
|
// Children
|
|
XmlChildFillRect: PureVal;
|
|
|
|
end;
|
|
|
|
function Stretch.Create();overload;
|
|
begin
|
|
{self.}Create(nil, "a", "stretch");
|
|
end;
|
|
|
|
function Stretch.Create(_node: XmlNode);overload;
|
|
begin
|
|
class(OpenXmlElement).Create(_node: XmlNode);
|
|
end;
|
|
|
|
function Stretch.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 Stretch.Init();override;
|
|
begin
|
|
pre := {self.}Prefix ? {self.}Prefix + ":" : "";
|
|
attributes_ := array();
|
|
attributes_pf_ := array(
|
|
);
|
|
sorted_child_ := array(
|
|
"a:fillRect": array(0, makeweakref(thisFunction(ReadXmlChildFillRect))),
|
|
);
|
|
container_ := new TSOfficeContainer(sorted_child_);
|
|
end;
|
|
|
|
function Stretch.Copy(_obj: Stretch);override;
|
|
begin
|
|
tslassigning_backup := tslassigning;
|
|
tslassigning := 1;
|
|
class(OpenXmlElement).Copy(_obj);
|
|
if not ifnil(_obj.XmlChildFillRect) then
|
|
{self.}FillRect.Copy(_obj.XmlChildFillRect);
|
|
tslassigning := tslassigning_backup;
|
|
end;
|
|
|
|
function Stretch.ReadXmlChildFillRect();
|
|
begin
|
|
if tslassigning and ifnil({self.}XmlChildFillRect) then
|
|
begin
|
|
{self.}XmlChildFillRect := new PureVal(self, "a", "fillRect");
|
|
container_.Set({self.}XmlChildFillRect);
|
|
end
|
|
return {self.}XmlChildFillRect;
|
|
end;
|