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