EPUBCSSSink.h Source File documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

EPUBCSSSink.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 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_EPUBCSSSINK_H
11 #define INCLUDED_EPUBCSSSINK_H
12
13 #include <utility>
14 #include <vector>
15
16 #include <librevenge/librevenge.h>
17
18 #include <libepubgen/libepubgen.h>
19
20 namespace libepubgen
21 {
22
23 class EPUBCSSSink
24 {
25 typedef std::vector<std::pair<librevenge::RVNGString, librevenge::RVNGPropertyList> > Rules_t;
26
27 public:
28 EPUBCSSSink();
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_EPUBCSSSINK_H
41
42 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libepubgen::EPUBCSSSink
Definition: EPUBCSSSink.h:23
libepubgen
Definition: EPUBBinarySink.cpp:12
libepubgen::EPUBCSSSink::EPUBCSSSink
EPUBCSSSink()
Definition: EPUBCSSSink.cpp:15
libepubgen::EPUBCSSSink::insertRule
void insertRule(const librevenge::RVNGString &selector, const librevenge::RVNGPropertyList &properties)
Definition: EPUBCSSSink.cpp:20
libepubgen::EPUBCSSSink::m_rules
Rules_t m_rules
Definition: EPUBCSSSink.h:35
libepubgen::EPUBCSSSink::writeTo
void writeTo(EPUBPackage &package, const char *name)
Definition: EPUBCSSSink.cpp:25
libepubgen::EPUBCSSSink::Rules_t
std::vector< std::pair< librevenge::RVNGString, librevenge::RVNGPropertyList > > Rules_t
Definition: EPUBCSSSink.h:25