// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGNOMEPRINTMM_CONFIG_H
#define _LIBGNOMEPRINTMM_CONFIG_H

#include <glibmm.h>

/* $Id: config.hg,v 1.1 2003/08/24 16:10:03 murrayc Exp $ */
// -*- C++ -*- // this is for the .hg, I realize gensig puts one in

/* Copyright 2003 gnome-vfsmm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <glibmm/object.h>
#include <libgnomeprintmm/context.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GnomePrintConfig GnomePrintConfig;
typedef struct _GnomePrintConfigClass GnomePrintConfigClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gnome
{

namespace Print
{ class Config_Class; } // namespace Print

} // namespace Gnome
namespace Gnome
{

namespace Print
{


class Config : public Glib::Object
{
  
#ifndef DOXYGEN_SHOULD_SKIP_THIS

public:
  typedef Config CppObjectType;
  typedef Config_Class CppClassType;
  typedef GnomePrintConfig BaseObjectType;
  typedef GnomePrintConfigClass BaseClassType;

private:  friend class Config_Class;
  static CppClassType config_class_;

private:
  // noncopyable
  Config(const Config&);
  Config& operator=(const Config&);

protected:
  explicit Config(const Glib::ConstructParams& construct_params);
  explicit Config(GnomePrintConfig* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
  virtual ~Config();

#ifndef DOXYGEN_SHOULD_SKIP_THIS
  static GType get_type()      G_GNUC_CONST;
  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GObject.
  GnomePrintConfig*       gobj()       { return reinterpret_cast<GnomePrintConfig*>(gobject_); }

  ///Provides access to the underlying C GObject.
  const GnomePrintConfig* gobj() const { return reinterpret_cast<GnomePrintConfig*>(gobject_); }

  ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
  GnomePrintConfig* gobj_copy();

private:

protected:
  Config();

public:

  
  static Glib::RefPtr<Config> get_default();
  
  static Glib::RefPtr<Config> create(const Glib::ustring& str, guint flags);

  
  Glib::RefPtr<Config> duplicate() const;

  
  Glib::ustring to_string(guint flags) const;


  Glib::ustring get(const Glib::ustring& key) const;
  
  bool set(const Glib::ustring& key, const Glib::ustring& value);

  /*
  _WRAP_METHOD(gboolean gnome_print_config_get_boolean (GnomePrintConfig *config, const guchar *key, gboolean *val);
  _WRAP_METHOD(gboolean gnome_print_config_get_int     (GnomePrintConfig *config, const guchar *key, gint *val);
  _WRAP_METHOD(gboolean gnome_print_config_get_double  (GnomePrintConfig *config, const guchar *key, gdouble *val);
  _WRAP_METHOD(gboolean gnome_print_config_get_length  (GnomePrintConfig *config, const guchar *key, gdouble *val, const GnomePrintUnit **unit);

  _WRAP_METHOD(gboolean gnome_print_config_set_boolean (GnomePrintConfig *config, const guchar *key, gboolean val);
  _WRAP_METHOD(gboolean gnome_print_config_set_int     (GnomePrintConfig *config, const guchar *key, gint val);
  _WRAP_METHOD(gboolean gnome_print_config_set_double  (GnomePrintConfig *config, const guchar *key, gdouble val);
  _WRAP_METHOD(gboolean gnome_print_config_set_length  (GnomePrintConfig *config, const guchar *key, gdouble val, const GnomePrintUnit *unit);
*/

  
  bool get_page_size(double& width, double& height) const;

  
  void dump();;

/*
  _WRAP_METHOD(gboolean gnome_print_config_insert_boolean (GnomePrintConfig *config, const guchar *key,
					    gboolean def);
  _WRAP_METHOD(gboolean gnome_print_config_insert_options (GnomePrintConfig *config, const guchar *key,
					    GnomePrintConfigOption *options, const Glib::ustringdef);

  _WRAP_METHOD(gboolean gnome_print_config_get_option (GnomePrintConfig *config, const guchar *key,
					GnomePrintConfigOption *options, gint *);
*/

 
public:

public:
  //C++ methods used to invoke GTK+ virtual functions:

protected:
  //GTK+ Virtual Functions (override these to change behaviour):

  //Default Signal Handlers::


};


} // namespace Print
} // namespace Gnome


namespace Glib
{
  /** @relates Gnome::Print::Config
   * @param object The C instance
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   */
  Glib::RefPtr<Gnome::Print::Config> wrap(GnomePrintConfig* object, bool take_copy = false);
}


#endif /* _LIBGNOMEPRINTMM_CONFIG_H */

