]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-view-private.h
Move view drag and drop stuff to ev-view.
[evince.git] / shell / ev-view-private.h
index 9619b6d7e6d9d25ef505149e43e7c5ef7d5089f5..f1f5ad57300e4eb0ec02eadff25f9608d2e1b03f 100644 (file)
@@ -45,6 +45,7 @@ typedef enum {
        SCROLL_TO_KEEP_POSITION,
        SCROLL_TO_PAGE_POSITION,
        SCROLL_TO_CENTER,
+       SCROLL_TO_FIND_LOCATION,
 } PendingScroll;
 
 typedef enum {
@@ -56,6 +57,13 @@ typedef enum {
        EV_VIEW_CURSOR_DRAG
 } EvViewCursor;
 
+typedef enum {
+       EV_PRESENTATION_NORMAL,
+       EV_PRESENTATION_BLACK,
+       EV_PRESENTATION_WHITE,
+       EV_PRESENTATION_END
+} EvPresentationState;
+
 struct _EvView {
        GtkWidget parent_instance;
 
@@ -64,6 +72,7 @@ struct _EvView {
        char *status;
        char *find_status;
        int find_result;
+       gboolean jump_to_find_result;
        
        EvPageCache *page_cache;
        EvPixbufCache *pixbuf_cache;
@@ -86,7 +95,6 @@ struct _EvView {
        gint start_page;
        gint end_page;
        gint current_page;
-       gint find_page;
 
        int rotation;
        double scale;
@@ -99,6 +107,12 @@ struct _EvView {
        gboolean presentation;
        EvSizingMode sizing_mode;
 
+       /* Presentation */
+       EvPresentationState presentation_state;
+       EvSizingMode sizing_mode_saved;
+       double scale_saved;
+       guint  trans_timeout_id;
+
        /* Common for button press handling */
        int pressed_button;
 
@@ -116,6 +130,10 @@ struct _EvView {
        /* Links */
        GtkWidget *link_tooltip;
        EvLink *hovered_link;
+
+       /* Goto Popup */
+       GtkWidget *goto_window;
+       GtkWidget *goto_entry;
 };
 
 struct _EvViewClass {
@@ -125,11 +143,11 @@ struct _EvViewClass {
                                           GtkAdjustment  *hadjustment,
                                           GtkAdjustment  *vadjustment);
        void    (*binding_activated)      (EvView         *view,
-                                          GtkScrollType   scroll,
+                                          EvScrollType   scroll,
                                           gboolean        horizontal);
        void    (*zoom_invalid)           (EvView         *view);
        void    (*external_link)          (EvView         *view,
-                                          EvLink         *link);
+                                          EvLinkAction   *action);
        void    (*popup_menu)             (EvView         *view,
                                           EvLink         *link);
 };