84 lines
2.3 KiB
Plaintext
84 lines
2.3 KiB
Plaintext
type NvPicPr = 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: NvPicPr);override;
|
|
|
|
public
|
|
|
|
// normal property
|
|
property CNvPr read ReadXmlChildCNvPr;
|
|
property CNvPicPr read ReadXmlChildCNvPicPr;
|
|
function ReadXmlChildCNvPr();
|
|
function ReadXmlChildCNvPicPr();
|
|
|
|
public
|
|
// Children
|
|
XmlChildCNvPr: CNvPr;
|
|
XmlChildCNvPicPr: CNvPicPr;
|
|
|
|
end;
|
|
|
|
function NvPicPr.Create();overload;
|
|
begin
|
|
{self.}Create(nil, "pic", "nvPicPr");
|
|
end;
|
|
|
|
function NvPicPr.Create(_node: XmlNode);overload;
|
|
begin
|
|
class(OpenXmlElement).Create(_node: XmlNode);
|
|
end;
|
|
|
|
function NvPicPr.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 NvPicPr.Init();override;
|
|
begin
|
|
pre := {self.}Prefix ? {self.}Prefix + ":" : "";
|
|
attributes_ := array();
|
|
attributes_pf_ := array(
|
|
);
|
|
sorted_child_ := array(
|
|
"pic:cNvPr": array(0, makeweakref(thisFunction(ReadXmlChildCNvPr))),
|
|
"pic:cNvPicPr": array(1, makeweakref(thisFunction(ReadXmlChildCNvPicPr))),
|
|
);
|
|
container_ := new TSOfficeContainer(sorted_child_);
|
|
end;
|
|
|
|
function NvPicPr.Copy(_obj: NvPicPr);override;
|
|
begin
|
|
tslassigning_backup := tslassigning;
|
|
tslassigning := 1;
|
|
class(OpenXmlElement).Copy(_obj);
|
|
if not ifnil(_obj.XmlChildCNvPr) then
|
|
{self.}CNvPr.Copy(_obj.XmlChildCNvPr);
|
|
if not ifnil(_obj.XmlChildCNvPicPr) then
|
|
{self.}CNvPicPr.Copy(_obj.XmlChildCNvPicPr);
|
|
tslassigning := tslassigning_backup;
|
|
end;
|
|
|
|
function NvPicPr.ReadXmlChildCNvPr();
|
|
begin
|
|
if tslassigning and ifnil({self.}XmlChildCNvPr) then
|
|
begin
|
|
{self.}XmlChildCNvPr := new CNvPr(self, "pic", "cNvPr");
|
|
container_.Set({self.}XmlChildCNvPr);
|
|
end
|
|
return {self.}XmlChildCNvPr;
|
|
end;
|
|
|
|
function NvPicPr.ReadXmlChildCNvPicPr();
|
|
begin
|
|
if tslassigning and ifnil({self.}XmlChildCNvPicPr) then
|
|
begin
|
|
{self.}XmlChildCNvPicPr := new CNvPicPr(self, "pic", "cNvPicPr");
|
|
container_.Set({self.}XmlChildCNvPicPr);
|
|
end
|
|
return {self.}XmlChildCNvPicPr;
|
|
end;
|