summaryrefslogtreecommitdiff
path: root/src/lib/T602Header.h
blob: bd6ccd04dba58f16d808d67fef2e75fc5a1cef86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
 * This file is part of the libsw602 project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef INCLUDED_T602HEADER_H
#define INCLUDED_T602HEADER_H

#include <string>

#include <librevenge-stream/librevenge-stream.h>

#include <libsw602/libsw602.h>

namespace libsw602
{

class T602Header
{
public:
  T602Header();

  void construct(librevenge::RVNGInputStream &input);

  bool isValid() const;

  SW602Document::Encoding encoding() const;
  const std::string &header() const;
  const std::string &footer() const;
  double lineHeight() const;
  unsigned leftMargin() const;
  unsigned rightMargin() const;
  unsigned topMargin() const;
  unsigned bottomMargin() const;
  unsigned pageLength() const;
  const std::string &tabs() const;

private:
  bool m_valid;
  SW602Document::Encoding m_encoding;
  std::string m_header;
  std::string m_footer;
  double m_lineHeight;
  unsigned m_leftMargin;
  unsigned m_rightMargin;
  unsigned m_topMargin;
  unsigned m_bottomMargin;
  unsigned m_pageLength;
  std::string m_tabStr;
};

} // namespace libsw602

#endif // INCLUDED_T602HEADER_H

/* vim:set shiftwidth=2 softtabstop=2 expandtab: */