Code

handle request for not-compiled-in internal scripting; execute didn't check return...
[inkscape.git] / src / ui / previewholder.h
index 53ffd5f054dc7ea3899e6480a57b2e5ac330b004..046cdf7c7dfbef03c5707dc5c286796d80238530 100644 (file)
@@ -17,6 +17,7 @@
 #include <gtkmm/bin.h>
 #include <gtkmm/table.h>
 #include "previewfillable.h"
+#include "../icon-size.h"
 
 namespace Inkscape {
 namespace UI {
@@ -31,12 +32,14 @@ public:
     virtual void addPreview( Previewable* preview );
     virtual void freezeUpdates();
     virtual void thawUpdates();
-    virtual void setStyle(Gtk::BuiltinIconSize size, ViewType view);
+    virtual void setStyle( Inkscape::IconSize size, ViewType view );
     virtual void setOrientation( Gtk::AnchorType how );
     virtual int getColumnPref() const { return _prefCols; }
     virtual void setColumnPref( int cols );
-    virtual Gtk::BuiltinIconSize getPreviewSize() const { return _baseSize; }
+    virtual Inkscape::IconSize getPreviewSize() const { return _baseSize; }
     virtual ViewType getPreviewType() const { return _view; }
+    virtual void setWrap( bool b );
+    virtual bool getWrap() const { return _wrap; }
 
 protected:
     virtual void on_size_allocate( Gtk::Allocation& allocation );
@@ -53,8 +56,9 @@ private:
     int _prefCols;
     bool _updatesFrozen;
     Gtk::AnchorType _anchor;
-    Gtk::BuiltinIconSize _baseSize;
+    Inkscape::IconSize _baseSize;
     ViewType _view;
+    bool _wrap;
 };
 
 } //namespace UI