Classes | Enumerations | Functions | Variables

xap_UnixFrameImpl.cpp File Reference

#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <string.h>
#include <vector>
#include "ap_Features.h"
#include "ut_string.h"
#include "ut_types.h"
#include "ut_assert.h"
#include "ut_files.h"
#include "ut_misc.h"
#include "ut_sleep.h"
#include "xap_Gtk2Compat.h"
#include "xap_ViewListener.h"
#include "xap_UnixApp.h"
#include "xap_UnixFrameImpl.h"
#include "xap_Frame.h"
#include "ev_UnixKeyboard.h"
#include "ev_UnixMouse.h"
#include "ev_UnixMenuBar.h"
#include "ev_UnixMenuPopup.h"
#include "ev_UnixToolbar.h"
#include "ev_EditMethod.h"
#include "xav_View.h"
#include "fv_View.h"
#include "fv_FrameEdit.h"
#include "fl_DocLayout.h"
#include "xad_Document.h"
#include "gr_CairoGraphics.h"
#include "xap_UnixDialogHelper.h"
#include "xap_UnixClipboard.h"
#include "xap_Strings.h"
#include "xap_Prefs.h"
#include "ap_FrameData.h"
#include "ap_UnixFrame.h"
#include "ev_Mouse.h"
#include "ie_types.h"
#include "ie_imp.h"
#include "ie_impGraphic.h"
#include "fg_Graphic.h"

Classes

struct  DragInfo
class  _ViewScroll

Enumerations

enum  {
  TARGET_DOCUMENT, TARGET_IMAGE, TARGET_URI_LIST, TARGET_URL,
  TARGET_UNKNOWN
}

Functions

static DragInfos_getDragInfo ()
static int s_mapMimeToUriType (const char *uri)
static void s_loadImage (const UT_UTF8String &file, FV_View *pView, XAP_Frame *pF, gint x, gint y)
static void s_loadImage (const UT_ByteBuf &bytes, FV_View *pView, XAP_Frame *pF, gint x, gint y)
static void s_loadDocument (const UT_UTF8String &file, XAP_Frame *pFrame)
static void s_pasteFile (const UT_UTF8String &file, XAP_Frame *pFrame)
static void s_loadUri (XAP_Frame *pFrame, const char *uri, gint x, gint y)
static void s_loadUriList (XAP_Frame *pFrame, const char *uriList, gint x, gint y)
static void s_pasteText (XAP_Frame *pFrame, const char *target_name, const unsigned char *data, UT_uint32 data_length)
static void s_drag_data_get_cb (GtkWidget *, GdkDragContext *, GtkSelectionData *selection, guint, guint, gpointer)
static void s_dndDropEvent (GtkWidget *widget, GdkDragContext *, gint x, gint y, GtkSelectionData *selection_data, guint info, guint, XAP_UnixFrameImpl *pFrameImpl)
static void s_dndRealDropEvent (GtkWidget *widget, GdkDragContext *context, gint, gint, guint time, gpointer)
static void s_dndDragEnd (GtkWidget *, GdkDragContext *, gpointer)
static void s_dndDragBegin (GtkWidget *, GdkDragContext *, gpointer)
static gboolean _actualScroll (gpointer data)

Variables

static const GtkTargetEntry XAP_UnixFrameImpl__knownDragTypes []
static bool bScrollWait = false

Enumeration Type Documentation

anonymous enum
Enumerator:
TARGET_DOCUMENT 
TARGET_IMAGE 
TARGET_URI_LIST 
TARGET_URL 
TARGET_UNKNOWN 

Function Documentation

static gboolean _actualScroll ( gpointer  data  )  [static]
static void s_dndDragBegin ( GtkWidget *  ,
GdkDragContext *  ,
gpointer   
) [static]
static void s_dndDragEnd ( GtkWidget *  ,
GdkDragContext *  ,
gpointer   
) [static]
static void s_dndDropEvent ( GtkWidget *  widget,
GdkDragContext *  ,
gint  x,
gint  y,
GtkSelectionData *  selection_data,
guint  info,
guint  ,
XAP_UnixFrameImpl pFrameImpl 
) [static]
static void s_dndRealDropEvent ( GtkWidget *  widget,
GdkDragContext *  context,
gint  ,
gint  ,
guint  time,
gpointer   
) [static]
static void s_drag_data_get_cb ( GtkWidget *  ,
GdkDragContext *  ,
GtkSelectionData *  selection,
guint  ,
guint  ,
gpointer   
) [static]
static DragInfo* s_getDragInfo (  )  [static]
static void s_loadDocument ( const UT_UTF8String file,
XAP_Frame pFrame 
) [static]
static void s_loadImage ( const UT_ByteBuf bytes,
FV_View pView,
XAP_Frame pF,
gint  x,
gint  y 
) [static]
static void s_loadImage ( const UT_UTF8String file,
FV_View pView,
XAP_Frame pF,
gint  x,
gint  y 
) [static]
static void s_loadUri ( XAP_Frame pFrame,
const char *  uri,
gint  x,
gint  y 
) [static]
static void s_loadUriList ( XAP_Frame pFrame,
const char *  uriList,
gint  x,
gint  y 
) [static]

References gchar, and s_loadUri().

Referenced by s_dndDropEvent().

static int s_mapMimeToUriType ( const char *  uri  )  [static]
static void s_pasteFile ( const UT_UTF8String file,
XAP_Frame pFrame 
) [static]
static void s_pasteText ( XAP_Frame pFrame,
const char *  target_name,
const unsigned char *  data,
UT_uint32  data_length 
) [static]

Variable Documentation

bool bScrollWait = false [static]
const GtkTargetEntry XAP_UnixFrameImpl__knownDragTypes[] [static]
Initial value:
 {
    {(gchar *)"text/uri-list",  0, TARGET_URI_LIST},
    {(gchar *)"_NETSCAPE_URL",  0, TARGET_URL},
    {(gchar *)"image/gif",  0, TARGET_IMAGE},
    {(gchar *)"image/jpeg",     0, TARGET_IMAGE},
    {(gchar *)"image/png",  0, TARGET_IMAGE},
    {(gchar *)"image/tiff",     0, TARGET_IMAGE},
    {(gchar *)"image/vnd",  0, TARGET_IMAGE},
    {(gchar *)"image/bmp",  0, TARGET_IMAGE},
    {(gchar *)"image/x-xpixmap",    0, TARGET_IMAGE},

    
    {(gchar *)"text/x-vcard", 0, TARGET_DOCUMENT}
}

Referenced by s_getDragInfo().