1
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3
* Version: MPL 1.1 / GPLv2+ / LGPLv2+
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/
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
15
* Major Contributor(s):
16
* Copyright (C) 2012 Brennan Vincent <brennanv@email.arizona.edu>
18
* All Rights Reserved.
20
* For minor contributions see the git repository.
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.
3
* This file is part of the libmspub project.
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/.
29
10
#ifndef __MSPUBPARSER97_H__
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,
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);
80
MSPUBParser97(WPXInputStream *input, MSPUBCollector *collector);
61
MSPUBParser97(librevenge::RVNGInputStream *input, MSPUBCollector *collector);