PeanutPressTypes.h Source File documentation

PeanutPressTypes.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 PEANUTPRESSTYPES_H_INCLUDED
11#define PEANUTPRESSTYPES_H_INCLUDED
12
13namespace libebook
14{
15
16 enum PeanutPressFontType
17{
18 PEANUTPRESS_FONT_TYPE_NORMAL,
19 PEANUTPRESS_FONT_TYPE_STD,
20 PEANUTPRESS_FONT_TYPE_BOLD,
21 PEANUTPRESS_FONT_TYPE_LARGE
22};
23
24 struct PeanutPressAttributes
25{
26 PeanutPressAttributes();
27
28 bool pageBreak;
29 bool chapter;
30 bool center;
31 bool right;
32 bool italic;
33 bool underline;
34 bool overstrike;
35 bool indent;
36 unsigned indentPercent;
37 PeanutPressFontType font;
38 bool bold;
39 bool superscript;
40 bool subscript;
41 bool smallcaps;
42};
43
44} // namespace libebook
45
46#endif // PEANUTPRESSTYPES_H_INCLUDED
47
48/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libebook
Definition BBeBCollector.cpp:20
libebook::PeanutPressFontType
PeanutPressFontType
Definition PeanutPressTypes.h:17
libebook::PEANUTPRESS_FONT_TYPE_NORMAL
@ PEANUTPRESS_FONT_TYPE_NORMAL
Definition PeanutPressTypes.h:18
libebook::PEANUTPRESS_FONT_TYPE_LARGE
@ PEANUTPRESS_FONT_TYPE_LARGE
Definition PeanutPressTypes.h:21
libebook::PEANUTPRESS_FONT_TYPE_BOLD
@ PEANUTPRESS_FONT_TYPE_BOLD
Definition PeanutPressTypes.h:20
libebook::PEANUTPRESS_FONT_TYPE_STD
@ PEANUTPRESS_FONT_TYPE_STD
Definition PeanutPressTypes.h:19
libebook::PeanutPressAttributes::right
bool right
Definition PeanutPressTypes.h:31
libebook::PeanutPressAttributes::indent
bool indent
Definition PeanutPressTypes.h:35
libebook::PeanutPressAttributes::chapter
bool chapter
Definition PeanutPressTypes.h:29
libebook::PeanutPressAttributes::overstrike
bool overstrike
Definition PeanutPressTypes.h:34
libebook::PeanutPressAttributes::underline
bool underline
Definition PeanutPressTypes.h:33
libebook::PeanutPressAttributes::font
PeanutPressFontType font
Definition PeanutPressTypes.h:37
libebook::PeanutPressAttributes::superscript
bool superscript
Definition PeanutPressTypes.h:39
libebook::PeanutPressAttributes::bold
bool bold
Definition PeanutPressTypes.h:38
libebook::PeanutPressAttributes::center
bool center
Definition PeanutPressTypes.h:30
libebook::PeanutPressAttributes::subscript
bool subscript
Definition PeanutPressTypes.h:40
libebook::PeanutPressAttributes::smallcaps
bool smallcaps
Definition PeanutPressTypes.h:41
libebook::PeanutPressAttributes::italic
bool italic
Definition PeanutPressTypes.h:32
libebook::PeanutPressAttributes::PeanutPressAttributes
PeanutPressAttributes()
Definition PeanutPressTypes.cpp:15
libebook::PeanutPressAttributes::pageBreak
bool pageBreak
Definition PeanutPressTypes.h:28
libebook::PeanutPressAttributes::indentPercent
unsigned indentPercent
Definition PeanutPressTypes.h:36