OfficeXml/autoclass/docx/ThemeFontLang@DOCX.tsf

100 lines
2.6 KiB
Plaintext

type ThemeFontLang = 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: ThemeFontLang);override;
property Val read ReadXmlAttrVal write WriteXmlAttrVal;
property EastAsia read ReadXmlAttrEastAsia write WriteXmlAttrEastAsia;
function ReadXmlAttrVal();
function WriteXmlAttrVal(_value);
function ReadXmlAttrEastAsia();
function WriteXmlAttrEastAsia(_value);
public
// Attributes
XmlAttrVal: OpenXmlAttribute;
XmlAttrEastAsia: OpenXmlAttribute;
// Children
end;
function ThemeFontLang.Create();overload;
begin
{self.}Create(nil, "w", "themeFontLang");
end;
function ThemeFontLang.Create(_node: XmlNode);overload;
begin
class(OpenXmlElement).Create(_node: XmlNode);
end;
function ThemeFontLang.Create(_parent: tslobj; _prefix: string; _local_name: string);overload;
begin
class(OpenXmlElement).Create(_parent, _prefix, _local_name);
end;
function ThemeFontLang.Init();override;
begin
{self.}XmlAttrVal := new OpenXmlAttribute({self.}Prefix, "val", nil);
{self.}XmlAttrEastAsia := new OpenXmlAttribute({self.}Prefix, "eastAsia", nil);
end;
function ThemeFontLang.InitAttributes();override;
begin
attributes_ := array(
{self.}XmlAttrVal,
{self.}XmlAttrEastAsia,
);
end;
function ThemeFontLang.InitChildren();override;
begin
child_elements_ := array(
);
sorted_child_ := array(
"": -1,
);
end;
function ThemeFontLang.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 ThemeFontLang.Copy(_obj: ThemeFontLang);override;
begin
if not ifnil(_obj.XmlAttrVal.Value) then
{self.}XmlAttrVal.Value := _obj.XmlAttrVal.Value;
if not ifnil(_obj.XmlAttrEastAsia.Value) then
{self.}XmlAttrEastAsia.Value := _obj.XmlAttrEastAsia.Value;
end;
function ThemeFontLang.ReadXmlAttrVal();
begin
return {self.}XmlAttrVal.Value;
end;
function ThemeFontLang.WriteXmlAttrVal(_value);
begin
{self.}XmlAttrVal.Value := _value;
end;
function ThemeFontLang.ReadXmlAttrEastAsia();
begin
return {self.}XmlAttrEastAsia.Value;
end;
function ThemeFontLang.WriteXmlAttrEastAsia(_value);
begin
{self.}XmlAttrEastAsia.Value := _value;
end;