procedure CountElements;
procedure CountCharacterType(const Str: String; out SB, DB,
SPNum, SPWait: integer);
+ procedure Notification(AComponent: TComponent;
+ Operation: TOperation); override;
public
function PlayTime(const Script: String): integer;
property Counts: TSsPlayTimeCount read FCounts;
end;
end;
+procedure TSsPlayTime.Notification(AComponent: TComponent;
+ Operation: TOperation);
+begin
+ inherited;
+ if Operation = opRemove then
+ begin
+ if AComponent = FPlayTimeParams then
+ FPlayTimeParams := nil;
+ if AComponent = FSsParser then
+ FSsParser := nil;
+ end;
+end;
+
function TSsPlayTime.PlayTime(const Script: String): integer;
begin
Result := 0;
procedure TSsPlayTime.SetPlayTimeParams(const Value: TSsPlayTimeParams);
begin
FPlayTimeParams := Value;
+ if Value <> nil then
+ Value.FreeNotification(self);
end;
procedure TSsPlayTime.SetSsParser(const Value: TSsParser);
begin
FSsParser := Value;
+ if Value <> nil then
+ Value.FreeNotification(self);
end;
{ TSsPlayTimeSpecialChar }
end;
end.
-
\ No newline at end of file