diff --git a/src/sp-namedview.h b/src/sp-namedview.h
index 54291413e078d05a561a99a31dd01992880e53f7..048096d8c0096e569761f332afb9f0d51be03425 100644 (file)
--- a/src/sp-namedview.h
+++ b/src/sp-namedview.h
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
*
+ * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
* Copyright (C) Lauris Kaplinski 2000-2002
*
* Released under GNU GPL, read the file 'COPYING' for more information
#include "helper/helper-forward.h"
#include "sp-object-group.h"
-#include "libnr/nr-point.h"
#include "sp-metric.h"
#include "snap.h"
+namespace Inkscape {
+class CanvasGrid;
+}
+
enum {
SP_BORDER_LAYER_BOTTOM,
SP_BORDER_LAYER_TOP
struct SPNamedView : public SPObjectGroup {
unsigned int editable : 1;
- unsigned int showgrid : 1;
unsigned int showguides : 1;
unsigned int showborder : 1;
unsigned int showpageshadow : 1;
gint window_height;
gint window_x;
gint window_y;
+ gint window_maximized;
SnapManager snap_manager;
-
- SPUnit const *gridunit;
- /* Grid data is in points regardless of unit */
- NR::Point gridorigin;
- gdouble gridspacing[2];
- gint gridempspacing;
+ GSList * grids;
+ bool grids_visible;
SPUnit const *doc_units;
- SPUnit const *gridtoleranceunit;
- gdouble gridtolerance;
-
- SPUnit const *guidetoleranceunit;
- gdouble guidetolerance;
-
- SPUnit const *objecttoleranceunit;
- gdouble objecttolerance;
-
- bool has_abs_tolerance;
-
GQuark default_layer_id;
-
+
double connector_spacing;
- guint32 gridcolor;
- guint32 gridempcolor;
guint32 guidecolor;
guint32 guidehicolor;
guint32 bordercolor;
GSList *guides;
GSList *views;
- GSList *gridviews;
+
gint viewcount;
void show(SPDesktop *desktop);
guint getViewCount();
GSList const *getViewList() const;
SPMetric getDefaultMetric() const;
+
+ void translateGuides(Geom::Translate const &translation);
+ void scrollAllDesktops(double dx, double dy, bool is_scrolling);
};
struct SPNamedViewClass {
void sp_namedview_window_from_document(SPDesktop *desktop);
void sp_namedview_document_from_window(SPDesktop *desktop);
+void sp_namedview_update_layers_from_document (SPDesktop *desktop);
void sp_namedview_toggle_guides(SPDocument *doc, Inkscape::XML::Node *repr);
-void sp_namedview_toggle_grid(SPDocument *doc, Inkscape::XML::Node *repr);
+void sp_namedview_show_grids(SPNamedView *namedview, bool show, bool dirty_document);
+Inkscape::CanvasGrid * sp_namedview_get_first_enabled_grid(SPNamedView *namedview);
#endif /* !INKSCAPE_SP_NAMEDVIEW_H */