00001 /* AbiWord 00002 * Copyright (C) 2013 Hubert Figuiere 00003 * This program is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU General Public License 00005 * as published by the Free Software Foundation; either version 2 00006 * of the License, or (at your option) any later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00016 * 02110-1301 USA. 00017 */ 00018 00019 #ifndef __XAP_UNIXDLG_COLORCHOOSER_H__ 00020 #define __XAP_UNIXDLG_COLORCHOOSER_H__ 00021 00022 #include "ut_compiler.h" 00023 00024 #include <memory> 00025 ABI_W_NO_CONST_QUAL 00026 #include <gtk/gtk.h> 00027 ABI_W_POP 00028 00029 #include "ut_color.h" 00030 00031 00032 // TODO I'm sure we can make this XP. currently only Gtk 00033 // The use of unique_ptr<> is only meant to ensure the deletion 00034 // out of scope when returning. 00035 std::unique_ptr<UT_RGBColor> XAP_UnixDlg_RunColorChooser(GtkWindow* parent, 00036 GtkColorButton* colorBtn); 00037 00038 #endif