Skip to main content ::
::
KOffice API Docs
::
Skip to Link Menu
/
KOffice
/
API Docs
/
lib
lib
lib
kformula
elementvisitor.h
1
/* This file is part of the KDE project
2
Copyright (C) 2003 Ulrich Kuettler <ulrich.kuettler@gmx.de>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
* Boston, MA 02110-1301, USA.
18
*/
19
20
#ifndef ELEMENTVISITOR_H
21
#define ELEMENTVISITOR_H
22
23
#include "kformuladefs.h"
24
25
KFORMULA_NAMESPACE_BEGIN
26
27
class
BasicElement
;
28
class
BracketElement
;
29
class
EmptyElement
;
30
class
FractionElement
;
31
class
IndexElement
;
32
class
MatrixElement
;
33
class
MultilineElement
;
34
class
NameSequence
;
35
class
OverlineElement
;
36
class
RootElement
;
37
class
SequenceElement
;
38
class
SpaceElement
;
39
class
SymbolElement
;
40
class
TextElement
;
41
class
UnderlineElement
;
42
43
47
class
ElementVisitor
{
48
public
:
49
50
virtual
~ElementVisitor
() {}
51
52
virtual
bool
visit(
BracketElement
* ) {
return
true
; }
53
virtual
bool
visit(
EmptyElement
* ) {
return
true
; }
54
virtual
bool
visit(
FractionElement
* ) {
return
true
; }
55
virtual
bool
visit(
IndexElement
* ) {
return
true
; }
56
virtual
bool
visit(
MatrixElement
* ) {
return
true
; }
57
virtual
bool
visit(
MultilineElement
* ) {
return
true
; }
58
virtual
bool
visit(
NameSequence
* ) {
return
true
; }
59
virtual
bool
visit(
OverlineElement
* ) {
return
true
; }
60
virtual
bool
visit(
RootElement
* ) {
return
true
; }
61
virtual
bool
visit(
SequenceElement
* ) {
return
true
; }
62
virtual
bool
visit(
SpaceElement
* ) {
return
true
; }
63
virtual
bool
visit(
SymbolElement
* ) {
return
true
; }
64
virtual
bool
visit(
TextElement
* ) {
return
true
; }
65
virtual
bool
visit(
UnderlineElement
* ) {
return
true
; }
66
};
67
68
KFORMULA_NAMESPACE_END
69
70
#endif
// ELEMENTVISITOR_H
BasicElement
Basis of every formula element.
Definition
basicelement.h:76
BracketElement
A left and/or right bracket around one child.
Definition
bracketelement.h:161
ElementVisitor
Visitor.
Definition
elementvisitor.h:47
EmptyElement
An element that represents an empty box.
Definition
textelement.h:225
FractionElement
A fraction.
Definition
fractionelement.h:33
IndexElement
The element with up to four indexes in the four corners.
Definition
indexelement.h:34
MatrixElement
A matrix.
Definition
matrixelement.h:38
MultilineElement
Any number of lines.
Definition
matrixelement.h:309
NameSequence
The sequence thats a name.
Definition
sequenceelement.h:492
OverlineElement
A line above the content.
Definition
bracketelement.h:302
RootElement
A nice graphical root.
Definition
rootelement.h:35
SequenceElement
The element that contains a number of children.
Definition
sequenceelement.h:40
SpaceElement
A element that represents a space.
Definition
spaceelement.h:38
SymbolElement
A symbol is simply a piece of art.
Definition
symbolelement.h:33
TextElement
An element that represents one char.
Definition
textelement.h:37
UnderlineElement
A line below the content.
Definition
bracketelement.h:370
lib
Skip menu "lib"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
lib
Skip menu "lib"
chalk
example
filters
interfaces
karbon
kchart
kdgantt
kexi
kformula
kivio
koshell
kplato
kpresenter
kspread
kword
lib