]> 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 1d09cb372f00d977509689363775c37082e12b84..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;
 
@@ -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 {
@@ -129,7 +147,7 @@ struct _EvViewClass {
                                           gboolean        horizontal);
        void    (*zoom_invalid)           (EvView         *view);
        void    (*external_link)          (EvView         *view,
-                                          EvLink         *link);
+                                          EvLinkAction   *action);
        void    (*popup_menu)             (EvView         *view,
                                           EvLink         *link);
 };