2006-04-28 18:22:03 -07:00
|
|
|
/*
|
2005-09-02 16:27:25 -07:00
|
|
|
* mooeditfileops.h
|
|
|
|
*
|
2007-06-24 10:56:20 -07:00
|
|
|
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-09-02 16:27:25 -07:00
|
|
|
*
|
2007-06-24 10:56:20 -07:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
2007-09-23 09:47:28 -07:00
|
|
|
* License version 2.1 as published by the Free Software Foundation.
|
2005-09-02 16:27:25 -07:00
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
2006-04-28 18:22:03 -07:00
|
|
|
#ifndef MOOEDIT_COMPILATION
|
|
|
|
#error "This file may not be included"
|
|
|
|
#endif
|
|
|
|
|
2007-06-10 02:06:03 -07:00
|
|
|
#ifndef MOO_EDIT_FILE_OPS_H
|
|
|
|
#define MOO_EDIT_FILE_OPS_H
|
2005-09-02 16:27:25 -07:00
|
|
|
|
|
|
|
#include "mooedit/mooedit.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2007-04-10 00:20:06 -07:00
|
|
|
const char *_moo_get_default_encodings (void);
|
|
|
|
|
2005-11-09 23:15:16 -08:00
|
|
|
typedef enum {
|
|
|
|
MOO_EDIT_SAVE_BACKUP = 1 << 0
|
|
|
|
} MooEditSaveFlags;
|
|
|
|
|
2006-12-17 08:58:17 -08:00
|
|
|
#define MOO_EDIT_FILE_ERROR (_moo_edit_file_error_quark ())
|
|
|
|
#define MOO_EDIT_FILE_ERROR_ENCODING 0
|
2005-09-02 16:27:25 -07:00
|
|
|
|
2006-12-17 08:58:17 -08:00
|
|
|
GQuark _moo_edit_file_error_quark (void) G_GNUC_CONST;
|
2005-09-02 16:27:25 -07:00
|
|
|
|
2006-12-17 08:58:17 -08:00
|
|
|
gboolean _moo_edit_load_file (MooEdit *edit,
|
2005-09-02 16:27:25 -07:00
|
|
|
const char *file,
|
|
|
|
const char *encoding,
|
|
|
|
GError **error);
|
2006-12-17 08:58:17 -08:00
|
|
|
gboolean _moo_edit_reload_file (MooEdit *edit,
|
2007-11-25 10:22:34 -08:00
|
|
|
const char *encoding,
|
2005-09-02 16:27:25 -07:00
|
|
|
GError **error);
|
2006-12-17 08:58:17 -08:00
|
|
|
gboolean _moo_edit_save_file (MooEdit *edit,
|
2005-09-02 16:27:25 -07:00
|
|
|
const char *file,
|
|
|
|
const char *encoding,
|
2005-11-09 23:15:16 -08:00
|
|
|
MooEditSaveFlags flags,
|
2005-09-02 16:27:25 -07:00
|
|
|
GError **error);
|
2006-12-17 08:58:17 -08:00
|
|
|
gboolean _moo_edit_save_file_copy (MooEdit *edit,
|
2005-11-01 20:41:09 -08:00
|
|
|
const char *file,
|
|
|
|
const char *encoding,
|
|
|
|
GError **error);
|
2005-09-02 16:27:25 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 02:06:03 -07:00
|
|
|
#endif /* MOO_EDIT_FILE_OPS_H */
|