2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1999-12-15 03:38:39 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2004-09-22 23:12:24 +08:00
|
|
|
* file-open.h
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1999-12-15 03:38:39 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1999-12-15 03:38:39 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1999-12-15 03:38:39 +08:00
|
|
|
*/
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2001-03-30 21:31:41 +08:00
|
|
|
#ifndef __FILE_OPEN_H__
|
|
|
|
#define __FILE_OPEN_H__
|
1999-12-15 03:38:39 +08:00
|
|
|
|
|
|
|
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpImage * file_open_image (Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const gchar *uri,
|
|
|
|
const gchar *entered_filename,
|
2007-04-17 23:54:01 +08:00
|
|
|
gboolean as_new,
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpPlugInProcedure *file_proc,
|
|
|
|
GimpRunMode run_mode,
|
|
|
|
GimpPDBStatusType *status,
|
|
|
|
const gchar **mime_type,
|
|
|
|
GError **error);
|
2001-11-11 03:35:21 +08:00
|
|
|
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpImage * file_open_thumbnail (Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const gchar *uri,
|
|
|
|
gint size,
|
|
|
|
const gchar **mime_type,
|
|
|
|
gint *image_width,
|
2007-12-03 02:05:54 +08:00
|
|
|
gint *image_height,
|
2012-04-12 03:54:23 +08:00
|
|
|
const Babl **format,
|
2008-11-10 16:21:36 +08:00
|
|
|
gint *num_layers,
|
2007-12-03 02:05:54 +08:00
|
|
|
GError **error);
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpImage * file_open_with_display (Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const gchar *uri,
|
2007-04-17 23:54:01 +08:00
|
|
|
gboolean as_new,
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpPDBStatusType *status,
|
|
|
|
GError **error);
|
2001-11-11 03:35:21 +08:00
|
|
|
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpImage * file_open_with_proc_and_display (Gimp *gimp,
|
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
const gchar *uri,
|
|
|
|
const gchar *entered_filename,
|
2007-04-17 23:54:01 +08:00
|
|
|
gboolean as_new,
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpPlugInProcedure *file_proc,
|
|
|
|
GimpPDBStatusType *status,
|
|
|
|
GError **error);
|
2001-11-11 03:35:21 +08:00
|
|
|
|
2006-11-04 01:12:27 +08:00
|
|
|
GList * file_open_layers (Gimp *gimp,
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpContext *context,
|
|
|
|
GimpProgress *progress,
|
|
|
|
GimpImage *dest_image,
|
2006-11-04 01:12:27 +08:00
|
|
|
gboolean merge_visible,
|
2006-04-05 16:38:33 +08:00
|
|
|
const gchar *uri,
|
|
|
|
GimpRunMode run_mode,
|
|
|
|
GimpPlugInProcedure *file_proc,
|
|
|
|
GimpPDBStatusType *status,
|
|
|
|
GError **error);
|
2004-06-29 05:42:19 +08:00
|
|
|
|
2007-03-28 03:40:31 +08:00
|
|
|
gboolean file_open_from_command_line (Gimp *gimp,
|
2007-04-17 23:54:01 +08:00
|
|
|
const gchar *filename,
|
|
|
|
gboolean as_new);
|
2007-01-23 05:39:57 +08:00
|
|
|
|
2001-03-30 21:31:41 +08:00
|
|
|
|
|
|
|
#endif /* __FILE_OPEN_H__ */
|