X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-window.h;h=f624fe5f49a84d856b03b32956f0ea36c88f7cde;hb=d47bc2205d248b34dbfcdd349473f54d45d5ec70;hp=2551073e33490b9bf66cbb7e04e2b655e8350f54;hpb=67297a0108ba18a69972c98ee1771c3dad41d55b;p=evince.git diff --git a/shell/ev-window.h b/shell/ev-window.h index 2551073e..f624fe5f 100644 --- a/shell/ev-window.h +++ b/shell/ev-window.h @@ -31,6 +31,24 @@ G_BEGIN_DECLS +typedef enum { + EV_WINDOW_MODE_NORMAL, + EV_WINDOW_MODE_FULLSCREEN, + EV_WINDOW_MODE_PRESENTATION, + EV_WINDOW_MODE_PREVIEW +} EvWindowRunMode; + +typedef struct { + gint start; + gint end; +} EvPrintRange; + +typedef enum { + EV_PRINT_PAGE_SET_ALL, + EV_PRINT_PAGE_SET_EVEN, + EV_PRINT_PAGE_SET_ODD +} EvPrintPageSet; + typedef struct _EvWindow EvWindow; typedef struct _EvWindowClass EvWindowClass; typedef struct _EvWindowPrivate EvWindowPrivate; @@ -42,6 +60,7 @@ typedef struct _EvWindowPrivate EvWindowPrivate; #define EV_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_WINDOW)) #define EV_WINDOW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_WINDOW, EvWindowClass)) + struct _EvWindow { GtkWindow base_instance; EvWindowPrivate *priv; @@ -56,13 +75,12 @@ GtkWidget *ev_window_new (void); const char *ev_window_get_uri (EvWindow *ev_window); void ev_window_open_uri (EvWindow *ev_window, const char *uri, - EvLinkDest *dest); + EvLinkDest *dest, + EvWindowRunMode mode); void ev_window_goto_dest (EvWindow *ev_window, EvLinkDest *dest); -void ev_window_open_page_label (EvWindow *ev_window, - const char *label); gboolean ev_window_is_empty (const EvWindow *ev_window); -#ifdef WITH_GNOME_PRINT +#ifdef WITH_PRINT void ev_window_print_range (EvWindow *ev_window, int first_page, int last_page);