Logo Search packages:      
Sourcecode: inkscape version File versions

export.cpp File Reference


Detailed Description

PNG export dialog.

Definition in file export.cpp.

#include <config.h>
#include <iostream>
#include <math.h>
#include <string.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "xml/repr.h"
#include <glibmm/i18n.h>
#include "helper/unit-menu.h"
#include "helper/units.h"
#include "unit-constants.h"
#include "helper/window.h"
#include "widgets/spw-utilities.h"
#include "inkscape.h"
#include "inkscape-private.h"
#include "dir-util.h"
#include "document.h"
#include "desktop-handles.h"
#include "sp-item.h"
#include "selection.h"
#include "file.h"
#include "macros.h"
#include "desktop.h"
#include "sp-namedview.h"
#include "dialog-events.h"
#include "../prefs-utils.h"
#include "../verbs.h"
#include "../interface.h"
#include "extension/extension.h"
#include "extension/output.h"
#include "extension/db.h"
#include "io/sys.h"
#include "export.h"

Go to the source code of this file.

Defines

#define __SP_EXPORT_C__
#define DPI_BASE   PX_PER_IN
#define SP_EXPORT_MIN_SIZE   1.0

Enumerations

enum  selection_type {
  SELECTION_PAGE = 0, SELECTION_DRAWING, SELECTION_SELECTION, SELECTION_CUSTOM,
  SELECTION_NUMBER_OF
}

Functions

static void sp_export_area_height_value_changed (GtkAdjustment *adj, GtkObject *base)
static void sp_export_area_toggled (GtkToggleButton *tb, GtkObject *base)
static void sp_export_area_width_value_changed (GtkAdjustment *adj, GtkObject *base)
static void sp_export_area_x_value_changed (GtkAdjustment *adj, GtkObject *base)
static void sp_export_area_y_value_changed (GtkAdjustment *adj, GtkObject *base)
static bool sp_export_bbox_equal (NR::Rect &one, NR::Rect &two)
static void sp_export_bitmap_width_value_changed (GtkAdjustment *adj, GtkObject *base)
static void sp_export_browse_clicked (GtkButton *button, gpointer userdata)
static void sp_export_browse_store (GtkButton *button, gpointer userdata)
static void sp_export_detect_size (GtkObject *base)
 This function is used to detect the current selection setting based on the values in the x0, y0, x1 and y0 fields.
void sp_export_dialog (void)
 text-edit
GtkWidget * sp_export_dialog_area_frame (GtkWidget *dlg)
static gboolean sp_export_dialog_delete (GtkObject *object, GdkEvent *event, gpointer data)
static void sp_export_dialog_destroy (GtkObject *object, gpointer data)
static void sp_export_export_clicked (GtkButton *button, GtkObject *base)
static void sp_export_filename_modified (GtkObject *object, gpointer data)
 This function is called when the filename is changed by anyone. It resets the virgin bit.
static void sp_export_find_default_selection (GtkWidget *dlg)
static unsigned int sp_export_progress_callback (float value, void *data)
static void sp_export_progress_cancel (GtkWidget *widget, GObject *base)
static gint sp_export_progress_delete (GtkWidget *widget, GdkEvent *event, GObject *base)
static void sp_export_selection_changed (Inkscape::Application *inkscape, SPDesktop *desktop, GtkObject *base)
 If selection changed or a different document activated, we must recalculate any chosen areas.
static void sp_export_selection_modified (Inkscape::Application *inkscape, SPDesktop *desktop, guint flags, GtkObject *base)
static void sp_export_set_area (GtkObject *base, float x0, float y0, float x1, float y1)
 A function to change the area that is used for the exported bitmap.
static void sp_export_set_image_y (GtkObject *base)
 A function to set the ydpi.
static void sp_export_spinbutton_new (gchar *key, float val, float min, float max, float step, float page, GtkWidget *us, GtkWidget *t, int x, int y, const gchar *ll, const gchar *lr, int digits, unsigned int sensitive, GCallback cb, GtkWidget *dlg)
 Creates a new spin button for the export dialog.
static float sp_export_value_get (GtkObject *base, const gchar *key)
 Get the value of an adjustment in the export dialog.
static float sp_export_value_get_px (GtkObject *base, const gchar *key)
 Grabs a value in the export dialog and converts the unit to points.
static void sp_export_value_set (GtkObject *base, const gchar *key, float val)
 Sets the value of an adjustment.
static void sp_export_value_set_px (GtkObject *base, const gchar *key, float val)
 A function to set a value using the units points.
static void sp_export_xdpi_value_changed (GtkAdjustment *adj, GtkObject *base)
 A function to adjust the bitmap width when the xdpi value changes.

Variables

static GtkWidget * dlg = NULL
static gchar * doc_export_name = NULL
static gint h = 0
static gchar * original_name = NULL
static const gchar * prefs_path = "dialogs.export"
static const char * selection_labels [SELECTION_NUMBER_OF]
static const char * selection_names [SELECTION_NUMBER_OF]
static gint w = 0
static bool was_empty = TRUE
static win_data wd
static gint x = -1000
static gint y = -1000


Generated by  Doxygen 1.6.0   Back to index