@@ -31,7 +31,7 @@ interface
3131 IPrintDocument = interface (IInterface)
3232 [' {56E4CA97-7F04-427A-A95F-03CE55910DC0}' ]
3333 // / <summary>Generates and returns print document.</summary>
34- function Generate : TRTF ;
34+ function Generate : TRTFMarkup ;
3535 end ;
3636
3737type
@@ -53,7 +53,7 @@ TSnippetPrintDocument = class(TInterfacedObject,
5353 constructor Create(const Snippet: TSnippet);
5454 // / <summary>Generates and returns print document.</summary>
5555 // / <remarks>Method of IPrintDocument.</remarks>
56- function Generate : TRTF ;
56+ function Generate : TRTFMarkup ;
5757 end ;
5858
5959type
@@ -72,7 +72,7 @@ TCategoryPrintDocument = class(TInterfacedObject,
7272 constructor Create(const Category: TCategory);
7373 // / <summary>Generates and returns print document.</summary>
7474 // / <remarks>Method of IPrintDocument.</remarks>
75- function Generate : TRTF ;
75+ function Generate : TRTFMarkup ;
7676 end ;
7777
7878implementation
@@ -91,15 +91,15 @@ constructor TSnippetPrintDocument.Create(const Snippet: TSnippet);
9191 fSnippet := Snippet;
9292end ;
9393
94- function TSnippetPrintDocument.Generate : TRTF ;
94+ function TSnippetPrintDocument.Generate : TRTFMarkup ;
9595var
9696 Doc: TRTFSnippetDoc; // object that renders snippet document in RTF
9797begin
9898 Doc := TRTFSnippetDoc.Create(
9999 GetHiliteAttrs, poUseColor in PrintInfo.PrintOptions
100100 );
101101 try
102- Result := TRTF .Create(Doc.Generate(fSnippet));
102+ Result := TRTFMarkup .Create(Doc.Generate(fSnippet));
103103 finally
104104 Doc.Free;
105105 end ;
@@ -127,13 +127,13 @@ constructor TCategoryPrintDocument.Create(const Category: TCategory);
127127 fCategory := Category;
128128end ;
129129
130- function TCategoryPrintDocument.Generate : TRTF ;
130+ function TCategoryPrintDocument.Generate : TRTFMarkup ;
131131var
132132 Doc: TRTFCategoryDoc; // object that renders category document in RTF
133133begin
134134 Doc := TRTFCategoryDoc.Create(poUseColor in PrintInfo.PrintOptions);
135135 try
136- Result := TRTF .Create(Doc.Generate(fCategory));
136+ Result := TRTFMarkup .Create(Doc.Generate(fCategory));
137137 finally
138138 Doc.Free;
139139 end ;
0 commit comments