GNOME::Editor



Hi,
forgot to send my new try to the list:



module GNOME {
   interface FileBufferFactory {
      exception NotFound {};

      Object open (in string path) raises (NotFound);
   };

   interface FileBuffer : GNOME::object {
      exception SaveError {};

      readonly attribute string path;

      void save () raises (SaveError);
      void save_as (in string path) raises (SaveError);
      void close ();
   };

   interface EditorFactory : GNOME::FileBufferFactory {
      Object new ();
   };

   interface Editor : GNOME::FileBuffer {
      exception OutOfRange {};
      exception NotFound {};

      enum SEEKFROM {
         SEEK_START,
         SEEK_CURRENT,
         SEEK_END
      };
      readonly attribute unsigned long currentline;

      void scroll (in long offset, in SEEKFROM whence) raises (OutOfRange);
      unsigned long search (in string        regexp,
                            in unsigned long flags) raises (NotFound);
      void replace (in string        regexp,
                    in string        newstring,
                    in unsigned long flags) raises (NotFound);
   };
};

-- 
Martijn van Beers
martijn@earthling.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]