/* This file is part of the wvWare 2 project Copyright (C) 2002-2003 Werner Trobin This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "handlers.h" #include "parser9x.h" #include "paragraphproperties.h" #include "functor.h" using namespace wvWare; InlineReplacementHandler::~InlineReplacementHandler() { } U8 InlineReplacementHandler::tab() { return TAB; } U8 InlineReplacementHandler::hardLineBreak() { return HARD_LINE_BREAK; } U8 InlineReplacementHandler::columnBreak() { return COLUMN_BREAK; } U8 InlineReplacementHandler::nonBreakingHyphen() { return NON_BREAKING_HYPHEN; } U8 InlineReplacementHandler::nonRequiredHyphen() { return NON_REQUIRED_HYPHEN; } U8 InlineReplacementHandler::nonBreakingSpace() { return NON_BREAKING_SPACE; } SubDocumentHandler::~SubDocumentHandler() { } void SubDocumentHandler::bodyStart() { } void SubDocumentHandler::bodyEnd() { } void SubDocumentHandler::footnoteStart() { } void SubDocumentHandler::footnoteEnd() { } void SubDocumentHandler::headersStart() { } void SubDocumentHandler::headersEnd() { } void SubDocumentHandler::headerStart( HeaderData::Type /*type*/ ) { } void SubDocumentHandler::headerEnd() { } TableHandler::~TableHandler() { } void TableHandler::tableRowStart( SharedPtr /*tap*/ ) { } void TableHandler::tableRowEnd() { } void TableHandler::tableCellStart() { } void TableHandler::tableCellEnd() { } TextHandler::~TextHandler() { } void TextHandler::sectionStart( SharedPtr /*sep*/ ) { } void TextHandler::sectionEnd() { } void TextHandler::pageBreak() { } void TextHandler::headersFound( const HeaderFunctor& parseHeaders ) { parseHeaders(); } void TextHandler::paragraphStart( SharedPtr /*paragraphProperties*/ ) { } void TextHandler::paragraphEnd() { } void TextHandler::runOfText( const UString& /*text*/, SharedPtr /*chp*/ ) { } void TextHandler::specialCharacter( SpecialCharacter /*character*/, SharedPtr /*chp*/ ) { } void TextHandler::footnoteFound( FootnoteData::Type /*type*/, UChar character, SharedPtr chp, const FootnoteFunctor& parseFootnote ) { if ( character.unicode() != 2 ) runOfText( UString( character ), chp ); // The character shouldn't get lost unless it's the auto-number parseFootnote(); } void TextHandler::footnoteAutoNumber( SharedPtr /*chp*/ ) { } void TextHandler::fieldStart( const FLD* /*fld*/, SharedPtr /*chp*/ ) { } void TextHandler::fieldSeparator( const FLD* /*fld*/, SharedPtr /*chp*/ ) { } void TextHandler::fieldEnd( const FLD* /*fld*/, SharedPtr /*chp*/ ) { } void TextHandler::tableRowFound( const TableRowFunctor& tableRow, SharedPtr /*tap*/ ) { tableRow(); }