FB2Style.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 FB2STYLE_H_INCLUDED
11 #define FB2STYLE_H_INCLUDED
12 
13 #include "libebook_utils.h"
14 
15 
16 namespace libebook
17 {
18 
20 {
21  FB2TextFormat();
22 
23  uint8_t a;
24  uint8_t code;
25  uint8_t emphasis;
26  uint8_t strikethrough;
27  uint8_t strong;
28  uint8_t sub;
29  uint8_t sup;
30 };
31 
33 {
35 
36  uint8_t annotation;
37  uint8_t cite;
38  uint8_t epigraph;
39  bool headerRow;
40  bool p;
41  uint8_t poem;
42  bool stanza;
43  bool subtitle;
44  bool table;
45  bool textAuthor;
46  bool title;
47  bool v;
48 };
49 
50 class FB2Style
51 {
52 public:
53  explicit FB2Style(const FB2BlockFormat &blockFormat);
54 
56  const FB2TextFormat &getTextFormat() const;
57  const FB2BlockFormat &getBlockFormat() const;
58 
59 private:
62 };
63 
64 librevenge::RVNGPropertyList makePropertyList(const FB2Style &style);
65 librevenge::RVNGPropertyList makePropertyList(const FB2TextFormat &format, const FB2BlockFormat &blockFormat);
66 librevenge::RVNGPropertyList makePropertyList(const FB2BlockFormat &format);
67 
68 }
69 
70 #endif // FB2STYLE_H_INCLUDED
71 
72 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
FB2BlockFormat()
Definition: FB2Style.cpp:28
bool headerRow
Definition: FB2Style.h:39
optional< Style > style
Definition: TDParser.cpp:106
uint8_t epigraph
Definition: FB2Style.h:38
uint8_t sub
Definition: FB2Style.h:28
bool p
Definition: FB2Style.h:40
FB2TextFormat & getTextFormat()
Definition: FB2Style.cpp:50
uint8_t cite
Definition: FB2Style.h:37
uint8_t sup
Definition: FB2Style.h:29
uint8_t emphasis
Definition: FB2Style.h:25
bool stanza
Definition: FB2Style.h:42
FB2TextFormat m_textFormat
Definition: FB2Style.h:60
bool v
Definition: FB2Style.h:47
Definition: FB2Style.h:50
const FB2BlockFormat & getBlockFormat() const
Definition: FB2Style.cpp:60
uint8_t strong
Definition: FB2Style.h:27
uint8_t annotation
Definition: FB2Style.h:36
bool subtitle
Definition: FB2Style.h:43
uint8_t code
Definition: FB2Style.h:24
Definition: FB2Style.h:19
bool table
Definition: FB2Style.h:44
uint8_t strikethrough
Definition: FB2Style.h:26
bool title
Definition: FB2Style.h:46
uint8_t poem
Definition: FB2Style.h:41
FB2Style(const FB2BlockFormat &blockFormat)
Definition: FB2Style.cpp:44
uint8_t a
Definition: FB2Style.h:23
const FB2BlockFormat m_blockFormat
Definition: FB2Style.h:61
Definition: EBOOKOPFToken.h:56
bool textAuthor
Definition: FB2Style.h:45
Definition: FB2Style.h:32
FB2TextFormat()
Definition: FB2Style.cpp:17
librevenge::RVNGPropertyList makePropertyList(const FB2Style &style)
Definition: FB2Style.cpp:65

Generated for libe-book by doxygen 1.8.7