rllib  1
rlhtmldir.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlhtmldir.h - description
3  -------------------
4  begin : Thu Jul 30 2015
5  copyright : (C) Lehrig Software Enigineering
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
16 #ifndef _RL_HTMLDIR_H_
17 #define _RL_HTMLDIR_H_
18 
19 #include "rlhtml.h"
20 #include "rlspreadsheet.h"
21 
25 class rlHtmlDir : public rlHtml
26 {
27 public:
28  enum
29  {
33  }WHAT_TO_LIST;
34 
35  rlHtmlDir();
36  virtual ~rlHtmlDir();
37 
41  int cd(const char *dir, int is_initial_dir=0);
42 
46  const char *getHtml(int generate_html_header_and_trailer=1);
47 
53 
54  rlString initialPath; // initial path
55  rlString currentPath; // current path
56  rlString pattern; // search pattern for rlfind, default *
57  int recursive; // 0|1
58  int list_what; // enum WHAT_TO_LIST
59  int hide_hidden_files; // 0|1
60  rlString textHome; // default Home:
61  rlString textPath; // default Path:
62  rlString textrlHtmlDirCSS; // default rlhtml.css
63 
64  rlString startHtml; // default html is empty
65  rlString endHtml; // default html is empty
66 private:
67  rlString html; // header + startHtml + rlfind_results + endHtml + trailer
68 };
69 
70 #endif
rlString textHome
Definition: rlhtmldir.h:60
enum rlHtmlDir::@3 WHAT_TO_LIST
int hide_hidden_files
Definition: rlhtmldir.h:59
rlString pattern
Definition: rlhtmldir.h:56
rlString endHtml
Definition: rlhtmldir.h:65
int cd(const char *dir, int is_initial_dir=0)
Definition: rlhtmldir.cpp:37
rlString startHtml
Definition: rlhtmldir.h:64
int getFilenames(rlSpreadsheetRow *row)
Definition: rlhtmldir.cpp:177
rlString textPath
Definition: rlhtmldir.h:61
int list_what
Definition: rlhtmldir.h:58
const char * getHtml(int generate_html_header_and_trailer=1)
Definition: rlhtmldir.cpp:75
Definition: rlhtml.h:25
rlString initialPath
Definition: rlhtmldir.h:54
int recursive
Definition: rlhtmldir.h:57
virtual ~rlHtmlDir()
Definition: rlhtmldir.cpp:33
rlString currentPath
Definition: rlhtmldir.h:55
rlString html
Definition: rlhtmldir.h:67
rlString textrlHtmlDirCSS
Definition: rlhtmldir.h:62