filters

latex.h

00001 /* Copyright (C) 2003 Robert JACOLIN <rjacolin@ifrance.com>
00002  *
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Library General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2 of the License, or (at your option) any later version.
00007  *
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Library General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU Library General Public License
00014  * along with this library; see the file COPYING.LIB.  If not, write to
00015  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016  * Boston, MA 02110-1301, USA.
00017  */
00018 
00019 #ifndef __LATEX_IMPORT_LATEXUTILS__
00020 #define __LATEX_IMPORT_LATEXUTILS__
00021 
00022 #include <qptrlist.h>
00023 
00024 class Element;
00025 
00026 class Latex
00027 {
00028 
00029     public:
00030         static Latex* instance()
00031         {
00032             if(_instance == 0)
00033                 _instance = new Latex();
00034             return _instance;
00035         }
00036 
00037         Element* getEnv(QPtrList<Element>* root, const char* name);
00038         Element* getCommand(QPtrList<Element>* root, const char* name);
00039 
00040     private:
00041         static Latex* _instance;
00042         Latex()
00043         {
00044         }
00045 };
00046 
00047 #endif /* __LATEX_IMPORT_LATEXUTILS__ */
KDE Home | KDE Accessibility Home | Description of Access Keys