Class TSVGCustomElement

Unit

Declaration

type TSVGCustomElement = class(TObject)

Description

Abstract SVG element

Hierarchy

Overview

Fields

Protected FDomElem: TDOMElement;
Protected FUnits: TCSSUnitConverter;

Methods

Public function EnterFontSize(AIsRoot: boolean = false): TFloatWithCSSUnit; virtual;
Public function HasAttribute(AName: string): boolean;
Public function HasInlineStyle(AName: string): boolean;
Public function MatrixToTransform(m: TAffineMatrix; AFromUnit: TCSSUnit): string;
Public function NeedNamespace(APrefix: string): boolean;
Public function TransformToMatrix(ATransform: string; AToUnit: TCSSUnit): TAffineMatrix;
Protected function GetArrayOfAttributeNumber(AName: string; ACanInherit: boolean): ArrayOfTSVGNumber;
Protected function GetArrayOfAttributeNumber(AName: string): ArrayOfTSVGNumber;
Protected function GetArrayOfAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfHorizAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfHorizAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfHorizAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfOrthoAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfOrthoAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfOrthoAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfVerticalAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfVerticalAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;
Protected function GetArrayOfVerticalAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;
Protected function GetAttribute(AName: string; ADefault: string; ACanInherit: boolean): string; overload;
Protected function GetAttribute(AName: string): string; overload;
Protected function GetAttribute(AName: string; ADefault: string): string; overload;
Protected function GetAttributeFromElement(ANode: TDOMElement; AName: string; ACanInherit: boolean): string;
Protected function GetAttributeNumber(AName: string; ADefault: TSVGNumber): TSVGNumber; overload;
Protected function GetAttributeOrStyle(AName,ADefault: string; ACanInherit: boolean): string; overload;
Protected function GetAttributeOrStyle(AName: string): string; overload;
Protected function GetAttributeOrStyle(AName,ADefault: string): string; overload;
Protected function GetAttributeOrStyleWithUnit(AName: string): TFloatWithCSSUnit; overload;
Protected function GetAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;
Protected function GetAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit; ACanInherit: boolean): TFloatWithCSSUnit; overload;
Protected function GetAttributeWithUnit(AName: string): TFloatWithCSSUnit; overload;
Protected function GetAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;
Protected function GetDOMElement: TDOMElement; virtual;
Protected function GetHorizAttribute(AName: string): TSVGNumber;
Protected function GetHorizAttribute(AName: string; ADefault: TSVGNumber): TSVGNumber;
Protected function GetHorizAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;
Protected function GetHorizAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;
Protected function GetHorizAttributeWithUnit(AName: string): TFloatWithCSSUnit;
Protected function GetInlineStyle(const AName,ADefault: string): string;
Protected function GetInlineStyleWithUnit(const AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;
Protected function GetInlineStyleWithUnit(const AName: string): TFloatWithCSSUnit; overload;
Protected function GetNamespaceCount: integer;
Protected function GetNamespacePrefix(AIndex: integer): string;
Protected function GetNamespaceURI(APrefix: string): string;
Protected function GetOrthoAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;
Protected function GetOrthoAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;
Protected function GetOrthoAttributeWithUnit(AName: string): TFloatWithCSSUnit;
Protected class function GetPropertyFromStyleDeclarationBlock(ABlock: string; AProperty: string; ADefault: string): string;
Protected function GetStyle(const AName,ADefault: string): string; overload;
Protected function GetStyle(const AName: string): string; overload;
Protected function GetStyleFromStyleSheet(const AName,ADefault: string): string; virtual;
Protected function GetVerticalAttribute(AName: string; ADefault: TSVGNumber): TSVGNumber;
Protected function GetVerticalAttribute(AName: string): TSVGNumber;
Protected function GetVerticalAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit; ACanInherit: boolean): TFloatWithCSSUnit; overload;
Protected function GetVerticalAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;
Protected function GetVerticalAttributeWithUnit(AName: string): TFloatWithCSSUnit;
Protected function GetVerticalAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;
Protected class function RemovePropertyFromDeclarationBlock(var ABlock: string; AProperty: string): boolean;
Public procedure ConvertToUnit(AUnit: TCSSUnit); virtual;
Public procedure ExitFontSize(APrevFontSize: TFloatWithCSSUnit); virtual;
Public procedure IterateElements(ACallback: TIterateElementCallback; AData: pointer; ARecursive: boolean); virtual;
Public procedure RemoveNamespace(APrefix: string);
Public procedure RemoveStyle(const AName: string);
Protected class procedure LocateStyleDeclaration(AText: string; AProperty: string; out AStartPos, AColonPos, AValueLength: integer);
Protected procedure SetArrayOfAttributeNumber(AName: string; AValue: ArrayOfTSVGNumber);
Protected procedure SetArrayOfAttributeWithUnit(AName: string; const AValue: ArrayOfTFloatWithCSSUnit);
Protected procedure SetArrayOfHorizAttributeWithUnit(AName: string; AValue: ArrayOfTFloatWithCSSUnit);
Protected procedure SetArrayOfOrthoAttributeWithUnit(AName: string; AValue: ArrayOfTFloatWithCSSUnit);
Protected procedure SetArrayOfVerticalAttributeWithUnit(AName: string; AValue: ArrayOfTFloatWithCSSUnit);
Protected procedure SetAttribute(AName: string; AValue: TSVGNumber); virtual; overload;
Protected procedure SetAttribute(AName: string; AValue: string); virtual; overload;
Protected procedure SetAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);
Protected procedure SetHorizAttribute(AName: string; AValue: TSVGNumber);
Protected procedure SetHorizAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);
Protected procedure SetInlineStyle(AName: string; AValue: TFloatWithCSSUnit); overload;
Protected procedure SetInlineStyle(AName: string; AValue: string); overload;
Protected procedure SetNamespaceURI(APrefix: string; AValue: string);
Protected procedure SetOrthoAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);
Protected procedure SetVerticalAttribute(AName: string; AValue: TSVGNumber);
Protected procedure SetVerticalAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);
Protected class procedure UpdateStyleDeclarationBlock(var ABlock: string; AProperty: string; AValue: string);

Properties

Public property NamespaceCount: integer read GetNamespaceCount;
Public property NamespacePrefix[AIndex: integer]: string read GetNamespacePrefix;
Public property NamespaceURI[APrefix: string]: string read GetNamespaceURI write SetNamespaceURI;
Public property Style[AName: string]: string read GetStyle write SetInlineStyle;
Public property StyleDef[AName,ADefault: string]: string read GetStyle;

Description

Fields

Protected FDomElem: TDOMElement;

This item has no description.

Protected FUnits: TCSSUnitConverter;

This item has no description.

Methods

Public function EnterFontSize(AIsRoot: boolean = false): TFloatWithCSSUnit; virtual;

This item has no description.

Public function HasAttribute(AName: string): boolean;

This item has no description.

Public function HasInlineStyle(AName: string): boolean;

This item has no description.

Public function MatrixToTransform(m: TAffineMatrix; AFromUnit: TCSSUnit): string;

This item has no description.

Public function NeedNamespace(APrefix: string): boolean;

This item has no description.

Public function TransformToMatrix(ATransform: string; AToUnit: TCSSUnit): TAffineMatrix;

This item has no description.

Protected function GetArrayOfAttributeNumber(AName: string; ACanInherit: boolean): ArrayOfTSVGNumber;

This item has no description.

Protected function GetArrayOfAttributeNumber(AName: string): ArrayOfTSVGNumber;

This item has no description.

Protected function GetArrayOfAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfHorizAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfHorizAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfHorizAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfOrthoAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfOrthoAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfOrthoAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfVerticalAttributeOrStyleWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfVerticalAttributeWithUnit(AName: string): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetArrayOfVerticalAttributeWithUnit(AName: string; ACanInherit: boolean): ArrayOfTFloatWithCSSUnit;

This item has no description.

Protected function GetAttribute(AName: string; ADefault: string; ACanInherit: boolean): string; overload;

This item has no description.

Protected function GetAttribute(AName: string): string; overload;

This item has no description.

Protected function GetAttribute(AName: string; ADefault: string): string; overload;

This item has no description.

Protected function GetAttributeFromElement(ANode: TDOMElement; AName: string; ACanInherit: boolean): string;

This item has no description.

Protected function GetAttributeNumber(AName: string; ADefault: TSVGNumber): TSVGNumber; overload;

This item has no description.

Protected function GetAttributeOrStyle(AName,ADefault: string; ACanInherit: boolean): string; overload;

This item has no description.

Protected function GetAttributeOrStyle(AName: string): string; overload;

This item has no description.

Protected function GetAttributeOrStyle(AName,ADefault: string): string; overload;

This item has no description.

Protected function GetAttributeOrStyleWithUnit(AName: string): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit; ACanInherit: boolean): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetAttributeWithUnit(AName: string): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetDOMElement: TDOMElement; virtual;

This item has no description.

Protected function GetHorizAttribute(AName: string): TSVGNumber;

This item has no description.

Protected function GetHorizAttribute(AName: string; ADefault: TSVGNumber): TSVGNumber;

This item has no description.

Protected function GetHorizAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;

This item has no description.

Protected function GetHorizAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;

This item has no description.

Protected function GetHorizAttributeWithUnit(AName: string): TFloatWithCSSUnit;

This item has no description.

Protected function GetInlineStyle(const AName,ADefault: string): string;

This item has no description.

Protected function GetInlineStyleWithUnit(const AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetInlineStyleWithUnit(const AName: string): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetNamespaceCount: integer;

This item has no description.

Protected function GetNamespacePrefix(AIndex: integer): string;

This item has no description.

Protected function GetNamespaceURI(APrefix: string): string;

This item has no description.

Protected function GetOrthoAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;

This item has no description.

Protected function GetOrthoAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;

This item has no description.

Protected function GetOrthoAttributeWithUnit(AName: string): TFloatWithCSSUnit;

This item has no description.

Protected class function GetPropertyFromStyleDeclarationBlock(ABlock: string; AProperty: string; ADefault: string): string;

This item has no description.

Protected function GetStyle(const AName,ADefault: string): string; overload;

This item has no description.

Protected function GetStyle(const AName: string): string; overload;

This item has no description.

Protected function GetStyleFromStyleSheet(const AName,ADefault: string): string; virtual;

This item has no description.

Protected function GetVerticalAttribute(AName: string; ADefault: TSVGNumber): TSVGNumber;

This item has no description.

Protected function GetVerticalAttribute(AName: string): TSVGNumber;

This item has no description.

Protected function GetVerticalAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit; ACanInherit: boolean): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetVerticalAttributeOrStyleWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload;

This item has no description.

Protected function GetVerticalAttributeWithUnit(AName: string): TFloatWithCSSUnit;

This item has no description.

Protected function GetVerticalAttributeWithUnit(AName: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit;

This item has no description.

Protected class function RemovePropertyFromDeclarationBlock(var ABlock: string; AProperty: string): boolean;

This item has no description.

Public procedure ConvertToUnit(AUnit: TCSSUnit); virtual;

This item has no description.

Public procedure ExitFontSize(APrevFontSize: TFloatWithCSSUnit); virtual;

This item has no description.

Public procedure IterateElements(ACallback: TIterateElementCallback; AData: pointer; ARecursive: boolean); virtual;

This item has no description.

Public procedure RemoveNamespace(APrefix: string);

This item has no description.

Public procedure RemoveStyle(const AName: string);

This item has no description.

Protected class procedure LocateStyleDeclaration(AText: string; AProperty: string; out AStartPos, AColonPos, AValueLength: integer);

This item has no description.

Protected procedure SetArrayOfAttributeNumber(AName: string; AValue: ArrayOfTSVGNumber);

This item has no description.

Protected procedure SetArrayOfAttributeWithUnit(AName: string; const AValue: ArrayOfTFloatWithCSSUnit);

This item has no description.

Protected procedure SetArrayOfHorizAttributeWithUnit(AName: string; AValue: ArrayOfTFloatWithCSSUnit);

This item has no description.

Protected procedure SetArrayOfOrthoAttributeWithUnit(AName: string; AValue: ArrayOfTFloatWithCSSUnit);

This item has no description.

Protected procedure SetArrayOfVerticalAttributeWithUnit(AName: string; AValue: ArrayOfTFloatWithCSSUnit);

This item has no description.

Protected procedure SetAttribute(AName: string; AValue: TSVGNumber); virtual; overload;

This item has no description.

Protected procedure SetAttribute(AName: string; AValue: string); virtual; overload;

This item has no description.

Protected procedure SetAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);

This item has no description.

Protected procedure SetHorizAttribute(AName: string; AValue: TSVGNumber);

This item has no description.

Protected procedure SetHorizAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);

This item has no description.

Protected procedure SetInlineStyle(AName: string; AValue: TFloatWithCSSUnit); overload;

This item has no description.

Protected procedure SetInlineStyle(AName: string; AValue: string); overload;

This item has no description.

Protected procedure SetNamespaceURI(APrefix: string; AValue: string);

This item has no description.

Protected procedure SetOrthoAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);

This item has no description.

Protected procedure SetVerticalAttribute(AName: string; AValue: TSVGNumber);

This item has no description.

Protected procedure SetVerticalAttributeWithUnit(AName: string; AValue: TFloatWithCSSUnit);

This item has no description.

Protected class procedure UpdateStyleDeclarationBlock(var ABlock: string; AProperty: string; AValue: string);

This item has no description.

Properties

Public property NamespaceCount: integer read GetNamespaceCount;

This item has no description.

Public property NamespacePrefix[AIndex: integer]: string read GetNamespacePrefix;

This item has no description.

Public property NamespaceURI[APrefix: string]: string read GetNamespaceURI write SetNamespaceURI;

This item has no description.

Public property Style[AName: string]: string read GetStyle write SetInlineStyle;

This item has no description.

Public property StyleDef[AName,ADefault: string]: string read GetStyle;

This item has no description.