~ubuntu-branches/ubuntu/vivid/libmspub/vivid-proposed

« back to all changes in this revision

Viewing changes to src/lib/MSPUBParser97.h

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2014-07-01 19:27:01 UTC
  • mfrom: (3.2.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140701192701-2gim3435sk0u7mld
Tags: 0.1.1-1
* New upstream release

* fix description (closes: #712168) 
* fix copyright after relicensing (closes: #750802)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
 
/* libmspub
3
 
 * Version: MPL 1.1 / GPLv2+ / LGPLv2+
4
 
 *
5
 
 * The contents of this file are subject to the Mozilla Public License Version
6
 
 * 1.1 (the "License"); you may not use this file except in compliance with
7
 
 * the License or as specified alternatively below. You may obtain a copy of
8
 
 * the License at http://www.mozilla.org/MPL/
9
 
 *
10
 
 * Software distributed under the License is distributed on an "AS IS" basis,
11
 
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12
 
 * for the specific language governing rights and limitations under the
13
 
 * License.
14
 
 *
15
 
 * Major Contributor(s):
16
 
 * Copyright (C) 2012 Brennan Vincent <brennanv@email.arizona.edu>
17
 
 *
18
 
 * All Rights Reserved.
19
 
 *
20
 
 * For minor contributions see the git repository.
21
 
 *
22
 
 * Alternatively, the contents of this file may be used under the terms of
23
 
 * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
24
 
 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
25
 
 * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
26
 
 * instead of those above.
 
2
/*
 
3
 * This file is part of the libmspub 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/.
27
8
 */
28
9
 
29
10
#ifndef __MSPUBPARSER97_H__
61
42
 
62
43
  bool m_isBanner;
63
44
 
64
 
  bool parseDocument(WPXInputStream *input);
 
45
  bool parseDocument(librevenge::RVNGInputStream *input);
65
46
  int translateCoordinateIfNecessary(int coordinate) const;
66
47
  unsigned getFirstLineOffset() const;
67
48
  unsigned getSecondLineOffset() const;
69
50
  unsigned getShapeFillColorOffset() const;
70
51
  unsigned short getTextMarker() const;
71
52
  unsigned getTextIdOffset() const;
72
 
  CharacterStyle readCharacterStyle(WPXInputStream *input,
 
53
  CharacterStyle readCharacterStyle(librevenge::RVNGInputStream *input,
73
54
                                    unsigned length);
74
 
  void parseContentsTextIfNecessary(WPXInputStream *input);
75
 
  std::vector<SpanInfo97> getSpansInfo(WPXInputStream *input,
 
55
  void parseContentsTextIfNecessary(librevenge::RVNGInputStream *input);
 
56
  std::vector<SpanInfo97> getSpansInfo(librevenge::RVNGInputStream *input,
76
57
                                       unsigned prop1Index, unsigned prop2Index, unsigned prop3Index,
77
58
                                       unsigned prop3End);
78
 
  TextInfo97 getTextInfo(WPXInputStream *input, unsigned length);
 
59
  TextInfo97 getTextInfo(librevenge::RVNGInputStream *input, unsigned length);
79
60
public:
80
 
  MSPUBParser97(WPXInputStream *input, MSPUBCollector *collector);
 
61
  MSPUBParser97(librevenge::RVNGInputStream *input, MSPUBCollector *collector);
81
62
  bool parse();
82
63
};
83
64
}