lib Library API Documentation

elementvisitor.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Ulrich Kuettler <ulrich.kuettler@gmx.de>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef ELEMENTVISITOR_H
00021 #define ELEMENTVISITOR_H
00022 
00023 #include "kformuladefs.h"
00024 
00025 KFORMULA_NAMESPACE_BEGIN
00026 
00027 class BasicElement;
00028 class BracketElement;
00029 class EmptyElement;
00030 class FractionElement;
00031 class IndexElement;
00032 class MatrixElement;
00033 class MultilineElement;
00034 class NameSequence;
00035 class OverlineElement;
00036 class RootElement;
00037 class SequenceElement;
00038 class SpaceElement;
00039 class SymbolElement;
00040 class TextElement;
00041 class UnderlineElement;
00042 
00043 
00047 class ElementVisitor {
00048 public:
00049 
00050     virtual ~ElementVisitor() {}
00051 
00052     virtual bool visit( BracketElement* ) { return true; }
00053     virtual bool visit( EmptyElement* ) { return true; }
00054     virtual bool visit( FractionElement* ) { return true; }
00055     virtual bool visit( IndexElement* ) { return true; }
00056     virtual bool visit( MatrixElement* ) { return true; }
00057     virtual bool visit( MultilineElement* ) { return true; }
00058     virtual bool visit( NameSequence* ) { return true; }
00059     virtual bool visit( OverlineElement* ) { return true; }
00060     virtual bool visit( RootElement* ) { return true; }
00061     virtual bool visit( SequenceElement* ) { return true; }
00062     virtual bool visit( SpaceElement* ) { return true; }
00063     virtual bool visit( SymbolElement* ) { return true; }
00064     virtual bool visit( TextElement* ) { return true; }
00065     virtual bool visit( UnderlineElement* ) { return true; }
00066 };
00067 
00068 KFORMULA_NAMESPACE_END
00069 
00070 #endif // ELEMENTVISITOR_H
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Nov 17 13:19:21 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2003