1 // Copyright 2009 The Archiveopteryx Developers <info@aox.org> 2 3 #ifndef WEBPAGE_H 4 #define WEBPAGE_H 5 6 #include "estringlist.h" 7 8 #include "output.h" 9 10 11 class Function; 12 class Class; 13 14 15 class WebPage 16 : public Garbage 17 { 18 public: 19 WebPage( const char * ); 20 ~WebPage(); 21 22 static WebPage * current(); 23 24 void startHeadline( Intro * ); 25 void startHeadline( Class * ); 26 void startHeadline( Function * ); 27 void endParagraph(); 28 void addText( const EString & ); 29 void addLink( const EString &, const EString & ); 30 void addArgument( const EString & ); 31 void addFunction( const EString &, Function * ); 32 void addClass( const EString &, Class * ); 33 34 private: 35 void output( const EString & ); 36 EString anchor( Function * ); 37 void endPage(); 38 void startPage( const EString &, const EString & ); 39 40 private: 41 EString para; 42 int fd; 43 EString directory; 44 EString fn; 45 EStringList names; 46 bool pstart; 47 }; 48 49 50 #endif 51