1
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3
* Version: MPL 2.0 / LGPLv2.1+
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/.
9
* Major Contributor(s):
3
10
* Copyright (C) 2004 Marc Maurer (uwog@uwog.net)
4
11
* Copyright (C) 2005-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Library General Public License for more details.
16
* You should have received a copy of the GNU Library General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
13
* For minor contributions see the git repository.
15
* Alternatively, the contents of this file may be used under the terms
16
* of the GNU Lesser General Public License Version 2.1 or later
17
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18
* applicable instead of those above.
20
20
* For further information visit http://libwpd.sourceforge.net
57
57
void startDocument()
59
59
WPXContentListener::startDocument();
61
61
void startSubDocument()
63
63
WPXContentListener::startSubDocument();
65
65
void insertCharacter(uint32_t character);
67
67
void insertTab(uint8_t tabType, double tabPosition);
68
68
void insertBreak(uint8_t breakType)
70
70
WPXContentListener::insertBreak(breakType);
73
73
void attributeChange(bool isOn, uint8_t attribute);
74
74
void lineSpacingChange(double lineSpacing)
76
76
WPXContentListener::lineSpacingChange(lineSpacing);
78
void pageMarginChange(uint8_t /* side */, uint16_t /* margin */) {};
79
void pageFormChange(uint16_t /* length */, uint16_t /* width */, WPXFormOrientation /* orientation */) {};
78
void pageMarginChange(uint8_t /* side */, uint16_t /* margin */) {}
79
void pageFormChange(uint16_t /* length */, uint16_t /* width */, WPXFormOrientation /* orientation */) {}
80
80
void marginChange(uint8_t side, uint16_t margin);
81
void indentFirstLineChange(int16_t offset);
81
void indentFirstLineChange(double offset);
82
82
void setTabs(bool isRelative, const std::vector<WPXTabStop> tabStops);
83
83
void columnChange(WPXTextColumnType columnType, uint8_t numColumns, const std::vector<double> &columnWidth,
84
84
const std::vector<bool> &isFixedWidth);
87
87
WPXContentListener::endDocument();
89
89
void endSubDocument()
91
91
WPXContentListener::endSubDocument();
94
94
void defineTable(uint8_t position, uint16_t leftOffset);
95
95
void addTableColumnDefinition(uint32_t width, uint32_t leftGutter, uint32_t rightGutter,
111
111
void insertNoteReference(const WPXString ¬eReference);
112
112
void insertNote(WPXNoteType noteType, const WP3SubDocument *subDocument);
113
113
void headerFooterGroup(uint8_t headerFooterType, uint8_t occurenceBits, WP3SubDocument *subDocument);
114
void suppressPage(uint16_t /* suppressCode */) {};
114
void suppressPage(uint16_t /* suppressCode */) {}
116
116
void leftIndent();
117
117
void leftIndent(double offset);
125
125
uint16_t figureFlags, const WP3SubDocument *subDocument, const WP3SubDocument *caption);
128
void _handleSubDocument(const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, int nextTableIndice = 0);
128
void _handleSubDocument(const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice = 0);
129
129
void _openParagraph();
131
131
void _flushText();
132
void _changeList() {};
132
void _changeList() {}
134
134
void _handleFrameParameters( WPXPropertyList &propList, double height, double width, double verticalOffset, double horizontalOffset, uint8_t leftColumn, uint8_t rightColumn,
135
135
uint16_t figureFlags );