Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

sourceiter.h

Go to the documentation of this file.
00001 /*  Inti-SourceView: Integrated Foundation Classes
00002  *  Copyright (C) 2003 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program 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
00012  *  GNU 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 program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00023 
00024 #ifndef INTI_GTK_SOURCE_ITER_H
00025 #define INTI_GTK_SOURCE_ITER_H
00026 
00027 #ifndef INTI_GTK_TEXT_ITER_H
00028 #include <inti/gtk/textiter.h>
00029 #endif
00030 
00031 #ifndef __GTK_SOURCE_ITER_H__
00032 #include <gtksourceview/gtksourceiter.h>
00033 #endif
00034 
00035 namespace Inti {
00036 
00037 namespace G {
00038 class Object;
00039 }
00040 
00041 namespace Gtk {
00042 
00045 
00046 enum SourceSearchFlags
00047 {
00048         SOURCE_SEARCH_VISIBLE_ONLY = GTK_SOURCE_SEARCH_VISIBLE_ONLY,
00051 
00052         SOURCE_SEARCH_TEXT_ONLY = GTK_SOURCE_SEARCH_TEXT_ONLY,
00054 
00055         SOURCE_SEARCH_CASE_INSENSITIVE = GTK_SOURCE_SEARCH_CASE_INSENSITIVE
00057 };
00058 
00060 
00061 typedef unsigned int SourceSearchFlagsField;
00062 
00067 
00068 class SourceIter : public TextIter
00069 {
00070 public:
00073 
00074         SourceIter();
00076 
00077         explicit SourceIter(GtkTextIter *iter);
00085 
00086         SourceIter(GtkTextIter *iter, bool copy);
00096 
00097         SourceIter(const SourceIter& src);
00100 
00101         ~SourceIter();
00103 
00104         SourceIter& operator=(const SourceIter& src);
00107 
00111 
00112         bool forward_search(const char *str, const SourceIter *limit = 0);
00113         bool forward_search(const String& str, const SourceIter *limit = 0);
00124 
00125 
00126         bool forward_search(const char *str, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00127         bool forward_search(const String& str, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00141 
00142         bool forward_search(const char *str, SourceSearchFlagsField flags, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00143         bool forward_search(const String& str, SourceSearchFlagsField flags, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00163 
00164         bool backward_search(const char *str, const SourceIter *limit = 0);
00165         bool backward_search(const String& str, const SourceIter *limit = 0);
00174 
00175         bool backward_search(const char * str, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00176         bool backward_search(const String& str, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00187 
00188         bool backward_search(const char *str, SourceSearchFlagsField flags, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00189         bool backward_search(const String& str, SourceSearchFlagsField flags, SourceIter *match_start, SourceIter *match_end, const SourceIter *limit = 0);
00197 
00198         bool find_matching_bracket();
00206 
00208 };
00209 
00210 } // namespace Gtk
00211 
00212 } // namespace Inti
00213 
00214 #endif // INTI_GTK_SOURCE_ITER_H
00215 
Main Page - Footer


Generated on Wed Aug 27 21:17:27 2003 for Inti-SourceView by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002