sourceiter.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GTKSOURCEVIEWMM_SOURCEITER_H
00004 #define _GTKSOURCEVIEWMM_SOURCEITER_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* sourceiter.hg
00010  * 
00011  * Copyright (C) 2004-2005 Jae Jang
00012  * Copyright (C) 2005-2006 Rob Page
00013  * Copyright (C) 2005-2006 Dodji Seketeli
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00032 
00033 #include <gtkmm/textiter.h>
00034 
00035 
00036 namespace gtksourceview
00037 {
00038     enum SearchFlags {
00039         SEARCH_VISIBLE_ONLY           = 1 << 0,
00040         SEARCH_TEXT_ONLY              = 1 << 1,
00041         SEARCH_CASE_INSENSITIVE       = 1 << 2
00042     };//end enum searchFlags
00043 
00044 
00045     SearchFlags operator| (SearchFlags lhs, SearchFlags rhs) ;
00046 
00047     SearchFlags operator& (SearchFlags lhs, SearchFlags rhs) ;
00048 
00049     SearchFlags operator^ (SearchFlags lhs, SearchFlags rhs) ;
00050 
00051     SearchFlags operator- (SearchFlags lhs) ;
00052 
00053     SearchFlags operator|= (SearchFlags &lhs, SearchFlags rhs) ;
00054 
00055     SearchFlags operator&= (SearchFlags &lhs, SearchFlags rhs) ;
00056 
00057     SearchFlags operator^= (SearchFlags &lhs, SearchFlags rhs) ;
00058 
00062 class SourceIter : public Gtk::TextIter
00063 {
00064     public:
00065 
00068         SourceIter () ;
00069         SourceIter (const Gtk::TextIter &iter) ;
00070         SourceIter (const GtkTextIter* gobject) ;
00071         SourceIter (const SourceIter &a_iter) ;
00073 
00074         ~SourceIter () ;
00075 
00076 
00088         bool forward_search (const Glib::ustring &a_str,
00089                              SearchFlags a_flags,
00090                              Gtk::TextIter &a_match_start,
00091                              Gtk::TextIter &a_match_end,
00092                              const Gtk::TextIter &a_limit) const ;
00093 
00105         bool backward_search (const Glib::ustring &a_str,
00106                               SearchFlags a_flags,
00107                               Gtk::TextIter &a_match_start,
00108                               Gtk::TextIter &a_match_end,
00109                               const Gtk::TextIter &a_limit) const ;
00110 
00111 };//end class SourceIter
00112 
00113 
00114 }//end namespace gtksourceview
00115 
00116 
00117 #endif /* _GTKSOURCEVIEWMM_SOURCEITER_H */
00118 

Generated on Tue Sep 25 18:39:18 2007 for libgtksourceviewmm by  doxygen 1.5.1