~ubuntu-branches/debian/sid/adabrowse/sid

« back to all changes in this revision

Viewing changes to ad-format.ads

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Brenta
  • Date: 2004-02-14 13:22:40 UTC
  • Revision ID: james.westby@ubuntu.com-20040214132240-cqumhiq1677pkvzo
Tags: upstream-4.0.2
ImportĀ upstreamĀ versionĀ 4.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-------------------------------------------------------------------------------
 
2
--
 
3
--  This file is part of AdaBrowse.
 
4
--
 
5
-- <STRONG>Copyright (c) 2002 by Thomas Wolf.</STRONG>
 
6
-- <BLOCKQUOTE>
 
7
--    AdaBrowse is free software; you can redistribute it and/or modify it
 
8
--    under the terms of the  GNU General Public License as published by the
 
9
--    Free Software  Foundation; either version 2, or (at your option) any
 
10
--    later version. AdaBrowse is distributed in the hope that it will be
 
11
--    useful, but <EM>without any warranty</EM>; without even the implied
 
12
--    warranty of <EM>merchantability or fitness for a particular purpose.</EM>
 
13
--    See the GNU General Public License for  more details. You should have
 
14
--    received a copy of the GNU General Public License with this distribution,
 
15
--    see file "<A HREF="GPL.txt">GPL.txt</A>". If not, write to the Free
 
16
--    Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
17
--    USA.
 
18
-- </BLOCKQUOTE>
 
19
--
 
20
-- <DL><DT><STRONG>
 
21
-- Author:</STRONG><DD>
 
22
--   Thomas Wolf  (TW)
 
23
--   <ADDRESS><A HREF="mailto:twolf@acm.org">twolf@acm.org</A></ADDRESS></DL>
 
24
--
 
25
-- <DL><DT><STRONG>
 
26
-- Purpose:</STRONG><DD>
 
27
--   Formatted output of comments.</DL>
 
28
--
 
29
-- <!--
 
30
-- Revision History
 
31
--
 
32
--   29-APR-2002   TW  Initial version.
 
33
--   09-JUL-2003   TW  Added the 'Format' function for formatting inline
 
34
--                     comments (i.e. comments within code snippets).
 
35
-- -->
 
36
-------------------------------------------------------------------------------
 
37
 
 
38
pragma License (GPL);
 
39
 
 
40
with Asis.Text;
 
41
 
 
42
with AD.Filters;
 
43
with AD.Printers;
 
44
 
 
45
package AD.Format is
 
46
 
 
47
   pragma Elaborate_Body;
 
48
 
 
49
   procedure Enter
 
50
     (Key    : in String;
 
51
      Filter : in AD.Filters.Filter_Ref);
 
52
 
 
53
   procedure Format
 
54
     (Lines       : in     Asis.Text.Line_List;
 
55
      The_Printer : access AD.Printers.Printer'Class);
 
56
 
 
57
   function Format
 
58
     (Inline_Comment : in String)
 
59
     return String;
 
60
   --  Run the string through the filter "shortcut | plain".
 
61
 
 
62
end AD.Format;