1717
1818with VSS.XML.Event_Vectors ;
1919with VSS.XML.Templates.Proxies.Strings ;
20+ with VSS.XML.Templates.Values ;
2021
2122with GNATdoc.Backend.HTML_Markup ;
2223
@@ -65,19 +66,14 @@ package body GNATdoc.Comments.Proxies is
6566 Name : VSS.Strings.Virtual_String)
6667 return VSS.XML.Templates.Proxies.Abstract_Proxy'Class;
6768
68- type Text_Markup_Proxy is
69- limited new VSS.XML.Templates.Proxies.Abstract_Text_Content_Proxy
70- and VSS.XML.Templates.Proxies.Abstract_Structure_Content_Proxy with
69+ type Markup_Proxy is
70+ limited new VSS.XML.Templates.Proxies.Abstract_Value_Proxy with
7171 record
72- Text : VSS.String_Vectors.Virtual_String_Vector;
7372 Markup : VSS.XML.Event_Vectors.Vector;
7473 end record ;
7574
76- overriding function Content
77- (Self : Text_Markup_Proxy) return VSS.Strings.Virtual_String;
78-
79- overriding function Content
80- (Self : in out Text_Markup_Proxy) return VSS.XML.Event_Vectors.Vector;
75+ overriding function Value
76+ (Self : Markup_Proxy) return VSS.XML.Templates.Values.Value;
8177
8278 -- -------------
8379 -- Component --
@@ -126,9 +122,8 @@ package body GNATdoc.Comments.Proxies is
126122 end loop ;
127123
128124 return
129- Text_Markup_Proxy'
130- (Text => Text,
131- Markup => GNATdoc.Backend.HTML_Markup.Build_Markup (Text));
125+ Markup_Proxy'
126+ (Markup => GNATdoc.Backend.HTML_Markup.Build_Markup (Text));
132127 end ;
133128
134129 elsif Name = " enumeration_literals" then
@@ -176,9 +171,8 @@ package body GNATdoc.Comments.Proxies is
176171
177172 elsif Name = " description" then
178173 return
179- Text_Markup_Proxy'
180- (Text => Self.Section.Text,
181- Markup =>
174+ Markup_Proxy'
175+ (Markup =>
182176 GNATdoc.Backend.HTML_Markup.Build_Markup (Self.Section.Text));
183177
184178 else
@@ -188,26 +182,6 @@ package body GNATdoc.Comments.Proxies is
188182 end if ;
189183 end Component ;
190184
191- -- -----------
192- -- Content --
193- -- -----------
194-
195- overriding function Content
196- (Self : Text_Markup_Proxy) return VSS.Strings.Virtual_String is
197- begin
198- return Self.Text.Join_Lines (VSS.Strings.LF);
199- end Content ;
200-
201- -- -----------
202- -- Content --
203- -- -----------
204-
205- overriding function Content
206- (Self : in out Text_Markup_Proxy) return VSS.XML.Event_Vectors.Vector is
207- begin
208- return Self.Markup;
209- end Content ;
210-
211185 -- -----------
212186 -- Element --
213187 -- -----------
@@ -261,4 +235,14 @@ package body GNATdoc.Comments.Proxies is
261235 return Section_Vectors.Has_Element (Self.Position);
262236 end Next ;
263237
238+ -- ---------
239+ -- Value --
240+ -- ---------
241+
242+ overriding function Value
243+ (Self : Markup_Proxy) return VSS.XML.Templates.Values.Value is
244+ begin
245+ return (VSS.XML.Templates.Values.Content, Self.Markup);
246+ end Value ;
247+
264248end GNATdoc.Comments.Proxies ;
0 commit comments