* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_PAGE_SETUP_H__
#define __GTK_PAGE_SETUP_H__
-#include <glib-object.h>
-#include "gtkenums.h"
-#include "gtkpapersize.h"
+
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gtk/gtkpapersize.h>
+
G_BEGIN_DECLS
gdouble gtk_page_setup_get_page_height (GtkPageSetup *setup,
GtkUnit unit);
+/* Saving and restoring page setup */
+GtkPageSetup *gtk_page_setup_new_from_file (const gchar *file_name,
+ GError **error);
+gboolean gtk_page_setup_load_file (GtkPageSetup *setup,
+ const char *file_name,
+ GError **error);
+gboolean gtk_page_setup_to_file (GtkPageSetup *setup,
+ const char *file_name,
+ GError **error);
+GtkPageSetup *gtk_page_setup_new_from_key_file (GKeyFile *key_file,
+ const gchar *group_name,
+ GError **error);
+gboolean gtk_page_setup_load_key_file (GtkPageSetup *setup,
+ GKeyFile *key_file,
+ const gchar *group_name,
+ GError **error);
+void gtk_page_setup_to_key_file (GtkPageSetup *setup,
+ GKeyFile *key_file,
+ const gchar *group_name);
G_END_DECLS