SILVERCODERS DocToText  4.0.1512
Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. Extracts metadata and annotations.
 All Classes Functions Enumerations Pages
formatting_style.h
1 #ifndef DOCTOTEXT_FORMATTING_STYLE_H
2 #define DOCTOTEXT_FORMATTING_STYLE_H
3 
4 #include <string>
5 
6 namespace doctotext
7 {
8  enum TableStyle { TABLE_STYLE_TABLE_LOOK, TABLE_STYLE_ONE_ROW, TABLE_STYLE_ONE_COL, };
9  enum UrlStyle { URL_STYLE_TEXT_ONLY, URL_STYLE_EXTENDED, URL_STYLE_UNDERSCORED, };
10 
11  class ListStyle
12  {
13  private:
14  struct Implementation;
15  Implementation* m_impl;
16 
17  public:
18  ListStyle();
19  ~ListStyle();
20  ListStyle(const ListStyle& style);
21  ListStyle& operator = (const ListStyle& style);
23  void setPrefix(const std::string& prefix);
24  void setPrefix(const char* prefix);
25  const char* getPrefix() const;
26  };
27 
29  {
30  TableStyle table_style;
31  UrlStyle url_style;
32  ListStyle list_style;
33  };
34 
35  enum XmlParseMode { PARSE_XML, FIX_XML, STRIP_XML };
36 }
37 
38 #endif
Definition: formatting_style.h:11
void setPrefix(const std::string &prefix)
Sets leading characters for each position in the list. prefix must be a value encoded in UTF8...
Definition: formatting_style.h:28