XMLStylesheet.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libe-book project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef XMLSTYLESHEET_H_INCLUDED
11 #define XMLSTYLESHEET_H_INCLUDED
12 
13 #include <deque>
14 #include <string>
15 
16 #include <librevenge-stream/librevenge-stream.h>
17 
18 #include "libebook_libcss.h"
19 
20 namespace libebook
21 {
22 
24 {
25 public:
26  enum Source
27  {
31  };
32 
33 public:
34  explicit XMLStylesheet(Source source, bool quirks = false, librevenge::RVNGInputStream *input = 0);
35 
36  void append(const std::string &selector, const std::string &rule);
37 
38  bool isQuirks() const;
39  Source getSource() const;
40 
41  CSSStylesheetPtr_t get() const;
42 
43 private:
44  std::deque<std::string> m_data;
46  const bool m_quirks;
47  mutable bool m_changed;
49 };
50 
51 typedef std::deque<XMLStylesheet> XMLStylesheets_t;
52 
53 }
54 
55 #endif // XMLSTYLESHEET_H_INCLUDED
56 
57 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
XMLStylesheet(Source source, bool quirks=false, librevenge::RVNGInputStream *input=0)
Definition: XMLStylesheet.cpp:21
Definition: EBOOKHTMLToken.h:89
Source getSource() const
Definition: XMLStylesheet.cpp:46
std::deque< XMLStylesheet > XMLStylesheets_t
Definition: XMLStylesheet.h:51
Definition: XMLStylesheet.h:23
std::shared_ptr< css_stylesheet > CSSStylesheetPtr_t
Definition: libebook_libcss.h:23
Definition: XMLStylesheet.h:30
const Source m_source
Definition: XMLStylesheet.h:45
std::deque< std::string > m_data
Definition: XMLStylesheet.h:44
Definition: XMLStylesheet.h:29
Definition: XMLStylesheet.h:28
CSSStylesheetPtr_t m_compiled
Definition: XMLStylesheet.h:48
Definition: EBOOKHTMLToken.h:131
Definition: BBeBCollector.cpp:18
bool m_changed
Definition: XMLStylesheet.h:47
bool isQuirks() const
Definition: XMLStylesheet.cpp:41
const bool m_quirks
Definition: XMLStylesheet.h:46
void append(const std::string &selector, const std::string &rule)
Definition: XMLStylesheet.cpp:33
Source
Definition: XMLStylesheet.h:26

Generated for libe-book by doxygen 1.8.14