/* $Id: xmleditor.h,v 1.2 2010/10/26 00:25:49 khorben Exp $ */ /* Copyright (c) 2010 Pierre Pronchery */ /* This file is part of DeforaOS Desktop XMLEditor */ /* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef XMLEDITOR_XMLEDITOR_H # define XMLEDITOR_XMLEDITOR_H # include /* Editor */ /* types */ typedef struct _XMLEditor XMLEditor; /* functions */ XMLEditor * xmleditor_new(void); void xmleditor_delete(XMLEditor * xmleditor); /* useful */ void xmleditor_about(XMLEditor * xmleditor); int xmleditor_error(XMLEditor * xmleditor, char const * message, int ret); gboolean xmleditor_close(XMLEditor * xmleditor); void xmleditor_open(XMLEditor * xmleditor, char const * filename); void xmleditor_open_dialog(XMLEditor * xmleditor); gboolean xmleditor_save(XMLEditor * xmleditor); gboolean xmleditor_save_as(XMLEditor * xmleditor, char const * filename); gboolean xmleditor_save_as_dialog(XMLEditor * xmleditor); void xmleditor_find(XMLEditor * xmleditor, char const * text); #endif /* !XMLEDITOR_XMLEDITOR_H */