X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsp-namedview.h;fp=src%2Fsp-namedview.h;h=86b16a5577e2bb63b6e2775340d56a25498a0fca;hb=9dc68827cbd515262ecb8d5ae8547d9e82c72e00;hp=337a67deb10fd557ff23fa9ff8c25b3071e9b2ce;hpb=072de79e6270f4137fa48a8a73491e8a0904d8f8;p=inkscape.git diff --git a/src/sp-namedview.h b/src/sp-namedview.h index 337a67deb..86b16a557 100644 --- a/src/sp-namedview.h +++ b/src/sp-namedview.h @@ -6,6 +6,7 @@ * * Authors: * Lauris Kaplinski + * Abhishek Sharma * * Copyright (C) 2006 Johan Engelen * Copyright (C) Lauris Kaplinski 2000-2002 @@ -56,7 +57,8 @@ struct SPNamedView : public SPObjectGroup { bool grids_visible; SPUnit const *doc_units; - + SPUnit const *units; + GQuark default_layer_id; double connector_spacing; @@ -82,14 +84,14 @@ struct SPNamedView : public SPObjectGroup { void translateGuides(Geom::Translate const &translation); void scrollAllDesktops(double dx, double dy, bool is_scrolling); - void writeNewGrid(SPDocument *document,int gridtype); - bool getSnapGlobal() const; - void setSnapGlobal(bool v); - void setGuides(bool v); - - private: - double getMarginLength(gchar const * const key,SPUnit const * const margin_units,SPUnit const * const return_units,double const width,double const height,bool const use_width); - friend class SPDocument; + void writeNewGrid(SPDocument *document,int gridtype); + bool getSnapGlobal() const; + void setSnapGlobal(bool v); + void setGuides(bool v); + +private: + double getMarginLength(gchar const * const key,SPUnit const * const margin_units,SPUnit const * const return_units,double const width,double const height,bool const use_width); + friend class SPDocument; }; struct SPNamedViewClass { @@ -120,4 +122,4 @@ Inkscape::CanvasGrid * sp_namedview_get_first_enabled_grid(SPNamedView *namedvie fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :