Changeset 284 for trunk/lib/css.h


Ignore:
Timestamp:
May 6, 2007, 7:54:09 PM (14 years ago)
Author:
Peter Johansson
Message:

moved css generation to separate file

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/lib/css.h

    r278 r284  
    1 #ifndef _theplu_svndigest_html_utility_
    2 #define _theplu_svndigest_html_utility_
     1#ifndef _theplu_svndigest_css_
     2#define _theplu_svndigest_css_
    33
    44// $Id$
     
    2525*/
    2626
    27 #include <iostream>
    28 #include <fstream>
    29 #include <iosfwd>
    30 #include <set>
    3127#include <string>
    32 #include <vector>
    3328
    3429namespace theplu{
    3530namespace svndigest{
    36 
    37   class Commitment;
    38   class Date;
    39   class Stats;
    40   class SVNlog;
    41 
    42   ///
    43   /// @brief create anchor
    44   ///
    45   /// @param href address to link to
    46   /// @param name text visible on page
    47   /// @param level '../' is added @a level times before @a href
    48   /// @param title title of anchor
    49   ///
    50   std::string anchor(const std::string& href,
    51                      const std::string& name, u_int level=0,
    52                      const std::string& title="");
    5331
    5432  ///
     
    5735  void print_css(const std::string& str);
    5836
    59   void print_authors(std::ostream& os,
    60                      const std::vector<Commitment>& latest_commit,
    61                      const Stats& stats);
    62 
    63   ///
    64   /// called by print_main_page
    65   ///
    66   void print_general_information(std::ostream&, const SVNlog&, size_t);
    67 
    68   ///
    69   /// @brief print main page
    70   ///
    71   void print_main_page(const std::string&, const SVNlog&, const Stats&);
    72    
    73   void print_recent_logs(std::ostream&, const SVNlog& log);
    74    
    75   ///
    76   /// @brief print html footer of page
    77   ///
    78   void print_footer(std::ostream&);
    79    
    80   ///
    81   /// @brief print html header of page
    82   ///
    83   /// \param os stream to print to
    84   /// \param name
    85   /// \param level
    86   /// \param
    87   void print_header(std::ostream& os, std::string name, u_int level,
    88                     std::string user, std::string item, std::string path);
    89 
    90 
    91   ///
    92   /// @return if trac-revision is set in config file anchor to trac is
    93   /// given otherwise just a string corresponding to passed parameter.
    94   ///
    95   std::string trac_revision(size_t);
    96 
    9737}} // end of namespace svndigest end of namespace theplu
    9838
Note: See TracChangeset for help on using the changeset viewer.