Debian Codegraph @

src/lib/EPUBCSSContent.h

raw
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libepubgen 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 INCLUDED_EPUBCSSCONTENT_H
11 #define INCLUDED_EPUBCSSCONTENT_H
12
13 #include <utility>
14 #include <vector>
15
16 #include <librevenge/librevenge.h>
17
18 namespace libepubgen
19 {
20
21 class EPUBPackage;
22
23 class EPUBCSSContent
24 {
25 typedef std::vector<std::pair<librevenge::RVNGString, librevenge::RVNGPropertyList> > Rules_t;
26
27 public:
28 EPUBCSSContent();
29
30 void insertRule(const librevenge::RVNGString &selector, const librevenge::RVNGPropertyList &properties);
31
32 void writeTo(EPUBPackage &package, const char *name);
33
34 private:
35 Rules_t m_rules;
36 };
37
38 }
39
40 #endif // INCLUDED_EPUBCSSCONTENT_H
41
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */