LibreOffice Module libreofficekit (master) 1
Classes | Macros | Enumerations | Functions | Variables
lokdocview.cxx File Reference
#include <sal/types.h>
#include <math.h>
#include <string.h>
#include <memory>
#include <utility>
#include <vector>
#include <string>
#include <sstream>
#include <mutex>
#include <boost/property_tree/json_parser.hpp>
#include <com/sun/star/awt/Key.hpp>
#include <LibreOfficeKit/LibreOfficeKit.h>
#include <LibreOfficeKit/LibreOfficeKitInit.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <LibreOfficeKit/LibreOfficeKitGtk.h>
#include <vcl/event.hxx>
#include "tilebuffer.hxx"
Include dependency graph for lokdocview.cxx:

Go to the source code of this file.

Classes

struct  _LOKDocViewPrivate
 Wrapper around LOKDocViewPrivateImpl, managed by malloc/memset/free. More...
 

Macros

#define G_SOURCE_REMOVE   FALSE
 
#define G_SOURCE_CONTINUE   TRUE
 
#define g_info(...)   g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__)
 
#define CURSOR_HANDLE_DIR   "/../share/libreofficekit/"
 
#define GRAPHIC_HANDLE_COUNT   8
 
#define MAX_ZOOM   5.0f
 
#define MIN_ZOOM   0.25f
 

Enumerations

enum  {
  LOAD_CHANGED ,
  EDIT_CHANGED ,
  COMMAND_CHANGED ,
  SEARCH_NOT_FOUND ,
  PART_CHANGED ,
  SIZE_CHANGED ,
  HYPERLINK_CLICKED ,
  CURSOR_CHANGED ,
  SEARCH_RESULT_COUNT ,
  COMMAND_RESULT ,
  ADDRESS_CHANGED ,
  FORMULA_CHANGED ,
  TEXT_SELECTION ,
  CONTENT_CONTROL ,
  PASSWORD_REQUIRED ,
  COMMENT ,
  RULER ,
  WINDOW ,
  INVALIDATE_HEADER ,
  LAST_SIGNAL
}
 
enum  {
  PROP_0 ,
  PROP_LO_PATH ,
  PROP_LO_UNIPOLL ,
  PROP_LO_POINTER ,
  PROP_USER_PROFILE_URL ,
  PROP_DOC_PATH ,
  PROP_DOC_POINTER ,
  PROP_EDITABLE ,
  PROP_LOAD_PROGRESS ,
  PROP_ZOOM ,
  PROP_IS_LOADING ,
  PROP_IS_INITIALIZED ,
  PROP_DOC_WIDTH ,
  PROP_DOC_HEIGHT ,
  PROP_CAN_ZOOM_IN ,
  PROP_CAN_ZOOM_OUT ,
  PROP_DOC_PASSWORD ,
  PROP_DOC_PASSWORD_TO_MODIFY ,
  PROP_TILED_ANNOTATIONS ,
  PROP_LAST
}
 

Functions

static void lok_doc_view_initable_iface_init (GInitableIface *iface)
 
static void callbackWorker (int nType, const char *pPayload, void *pData)
 
static void updateClientZoom (LOKDocView *pDocView)
 
 G_DEFINE_TYPE_WITH_CODE (LOKDocView, lok_doc_view, GTK_TYPE_DRAWING_AREA, G_IMPLEMENT_INTERFACE(G_TYPE_INITABLE, lok_doc_view_initable_iface_init))
 
static LOKDocViewPrivate & getPrivate (LOKDocView *pDocView)
 
static void LOKPostCommand (LOKDocView *pDocView, const gchar *pCommand, const gchar *pArguments, bool bNotifyWhenFinished)
 
static void doSearch (LOKDocView *pDocView, const char *pText, bool bBackwards, bool highlightAll)
 
static bool isEmptyRectangle (const GdkRectangle &rRectangle)
 
static bool handleTextSelectionOnButtonPress (GdkRectangle &aClick, LOKDocView *pDocView)
 if handled, returns TRUE else FALSE More...
 
static bool handleGraphicSelectionOnButtonPress (GdkRectangle &aClick, LOKDocView *pDocView)
 if handled, returns TRUE else FALSE More...
 
static bool handleTextSelectionOnButtonRelease (LOKDocView *pDocView)
 if handled, returns TRUE else FALSE More...
 
static bool handleGraphicSelectionOnButtonRelease (LOKDocView *pDocView, GdkEventButton *pEvent)
 if handled, returns TRUE else FALSE More...
 
static void postKeyEventInThread (gpointer data)
 
static gboolean signalKey (GtkWidget *pWidget, GdkEventKey *pEvent)
 
static gboolean handleTimeout (gpointer pData)
 
static void commandChanged (LOKDocView *pDocView, const std::string &rString)
 
static void searchNotFound (LOKDocView *pDocView, const std::string &rString)
 
static void searchResultCount (LOKDocView *pDocView, const std::string &rString)
 
static void commandResult (LOKDocView *pDocView, const std::string &rString)
 
static void addressChanged (LOKDocView *pDocView, const std::string &rString)
 
static void formulaChanged (LOKDocView *pDocView, const std::string &rString)
 
static void reportError (LOKDocView *, const std::string &rString)
 
static void setPart (LOKDocView *pDocView, const std::string &rString)
 
static void hyperlinkClicked (LOKDocView *pDocView, const std::string &rString)
 
static gboolean queueDraw (gpointer pData)
 Trigger a redraw, invoked on the main thread by other functions running in a thread. More...
 
static std::string getAuthorRenderingArgument (LOKDocViewPrivate &priv)
 Looks up the author string from initializeForRendering()'s rendering arguments. More...
 
static void refreshSize (LOKDocView *pDocView)
 
static gboolean postDocumentLoad (gpointer pData)
 Set up LOKDocView after the document is loaded, invoked on the main thread by openDocumentInThread() running in a thread. More...
 
static gboolean globalCallback (gpointer pData)
 Implementation of the global callback handler, invoked by globalCallback();. More...
 
static void globalCallbackWorker (int nType, const char *pPayload, void *pData)
 
static GdkRectangle payloadToRectangle (LOKDocView *pDocView, const char *pPayload)
 
static std::vector< GdkRectangle > payloadToRectangles (LOKDocView *pDocView, const char *pPayload)
 
static void setTilesInvalid (LOKDocView *pDocView, const GdkRectangle &rRectangle)
 
static gboolean callback (gpointer pData)
 
static void renderHandle (LOKDocView *pDocView, cairo_t *pCairo, const GdkRectangle &rCursor, cairo_surface_t *pHandle, GdkRectangle &rRectangle)
 
static void renderGraphicHandle (LOKDocView *pDocView, cairo_t *pCairo, const GdkRectangle &rSelection, const GdkRGBA &rColor)
 Renders handles around an rSelection rectangle on pCairo. More...
 
static gpointer paintTileFinish (LOKDocView *pDocView, GAsyncResult *res, GError **error)
 Finishes the paint tile operation and returns the result, if any. More...
 
static void paintTileCallback (GObject *sourceObject, GAsyncResult *res, gpointer userData)
 Callback called in the main UI thread when paintTileInThread in LOK thread has finished. More...
 
static bool renderDocument (LOKDocView *pDocView, cairo_t *pCairo)
 
static const GdkRGBA & getDarkColor (int nViewId, LOKDocViewPrivate &priv)
 
static bool renderOverlay (LOKDocView *pDocView, cairo_t *pCairo)
 
static gboolean lok_doc_view_signal_button (GtkWidget *pWidget, GdkEventButton *pEvent)
 
static void getDragPoint (GdkRectangle *pHandle, GdkEventMotion *pEvent, GdkPoint *pPoint)
 
static gboolean lok_doc_view_signal_motion (GtkWidget *pWidget, GdkEventMotion *pEvent)
 
static void setGraphicSelectionInThread (gpointer data)
 
static void setClientZoomInThread (gpointer data)
 
static void postMouseEventInThread (gpointer data)
 
static void openDocumentInThread (gpointer data)
 
static void setPartInThread (gpointer data)
 
static void setPartmodeInThread (gpointer data)
 
static void setEditInThread (gpointer data)
 
static void postCommandInThread (gpointer data)
 
static void paintTileInThread (gpointer data)
 
static void lokThreadFunc (gpointer data, gpointer)
 
static void onStyleContextChanged (LOKDocView *pDocView)
 
static void lok_doc_view_init (LOKDocView *pDocView)
 
static void lok_doc_view_set_property (GObject *object, guint propId, const GValue *value, GParamSpec *pspec)
 
static void lok_doc_view_get_property (GObject *object, guint propId, GValue *value, GParamSpec *pspec)
 
static gboolean lok_doc_view_draw (GtkWidget *pWidget, cairo_t *pCairo)
 
static void lok_doc_view_destroy (GtkWidget *widget)
 
static void lok_doc_view_finalize (GObject *object)
 
static gboolean timeout_wakeup (void *)
 
static int lok_poll_callback (void *, int timeoutUs)
 
static void lok_wake_callback (void *)
 
static gboolean spin_lok_loop (void *pData)
 
static gboolean lok_doc_view_initable_init (GInitable *initable, GCancellable *, GError **error)
 
static void lok_doc_view_class_init (LOKDocViewClass *pClass)
 
SAL_DLLPUBLIC_EXPORT GtkWidgetlok_doc_view_new (const gchar *pPath, GCancellable *cancellable, GError **error)
 
SAL_DLLPUBLIC_EXPORT GtkWidgetlok_doc_view_new_from_user_profile (const gchar *pPath, const gchar *pUserProfile, GCancellable *cancellable, GError **error)
 
SAL_DLLPUBLIC_EXPORT GtkWidgetlok_doc_view_new_from_widget (LOKDocView *pOldLOKDocView, const gchar *pRenderingArguments)
 
SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_open_document_finish (LOKDocView *pDocView, GAsyncResult *res, GError **error)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_open_document (LOKDocView *pDocView, const gchar *pPath, const gchar *pRenderingArguments, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer userdata)
 
SAL_DLLPUBLIC_EXPORT LibreOfficeKitDocument * lok_doc_view_get_document (LOKDocView *pDocView)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_visible_area (LOKDocView *pDocView, GdkRectangle *pVisibleArea)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_zoom (LOKDocView *pDocView, float fZoom)
 
SAL_DLLPUBLIC_EXPORT gfloat lok_doc_view_get_zoom (LOKDocView *pDocView)
 
SAL_DLLPUBLIC_EXPORT gint lok_doc_view_get_parts (LOKDocView *pDocView)
 
SAL_DLLPUBLIC_EXPORT gint lok_doc_view_get_part (LOKDocView *pDocView)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_part (LOKDocView *pDocView, int nPart)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_send_content_control_event (LOKDocView *pDocView, const gchar *pArguments)
 
SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_get_part_name (LOKDocView *pDocView, int nPart)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_partmode (LOKDocView *pDocView, int nPartMode)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_reset_view (LOKDocView *pDocView)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_edit (LOKDocView *pDocView, gboolean bEdit)
 
SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_get_edit (LOKDocView *pDocView)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_post_command (LOKDocView *pDocView, const gchar *pCommand, const gchar *pArguments, gboolean bNotifyWhenFinished)
 
SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_get_command_values (LOKDocView *pDocView, const gchar *pCommand)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_find_prev (LOKDocView *pDocView, const gchar *pText, gboolean bHighlightAll)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_find_next (LOKDocView *pDocView, const gchar *pText, gboolean bHighlightAll)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_highlight_all (LOKDocView *pDocView, const gchar *pText)
 
SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_copy_selection (LOKDocView *pDocView, const gchar *pMimeType, gchar **pUsedMimeType)
 
SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_paste (LOKDocView *pDocView, const gchar *pMimeType, const gchar *pData, gsize nSize)
 
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_document_password (LOKDocView *pDocView, const gchar *pURL, const gchar *pPassword)
 
SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_get_version_info (LOKDocView *pDocView)
 
SAL_DLLPUBLIC_EXPORT gfloat lok_doc_view_pixel_to_twip (LOKDocView *pDocView, float fInput)
 
SAL_DLLPUBLIC_EXPORT gfloat lok_doc_view_twip_to_pixel (LOKDocView *pDocView, float fInput)
 

Variables

static std::mutex g_aLOKMutex
 This is expected to be locked during setView(), doSomethingElse() LOK calls. More...
 
static guint doc_view_signals [LAST_SIGNAL] = { 0 }
 
static GParamSpec * properties [PROP_LAST] = { nullptr }
 
static std::map< std::string, intg_aAuthorViews
 Author string <-> View ID map. More...
 

Macro Definition Documentation

◆ CURSOR_HANDLE_DIR

#define CURSOR_HANDLE_DIR   "/../share/libreofficekit/"

Definition at line 39 of file lokdocview.cxx.

◆ g_info

#define g_info (   ...)    g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__)

Definition at line 35 of file lokdocview.cxx.

◆ G_SOURCE_CONTINUE

#define G_SOURCE_CONTINUE   TRUE

Definition at line 32 of file lokdocview.cxx.

◆ G_SOURCE_REMOVE

#define G_SOURCE_REMOVE   FALSE

Definition at line 31 of file lokdocview.cxx.

◆ GRAPHIC_HANDLE_COUNT

#define GRAPHIC_HANDLE_COUNT   8

Definition at line 41 of file lokdocview.cxx.

◆ MAX_ZOOM

#define MAX_ZOOM   5.0f

Definition at line 43 of file lokdocview.cxx.

◆ MIN_ZOOM

#define MIN_ZOOM   0.25f

Definition at line 45 of file lokdocview.cxx.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LOAD_CHANGED 
EDIT_CHANGED 
COMMAND_CHANGED 
SEARCH_NOT_FOUND 
PART_CHANGED 
SIZE_CHANGED 
HYPERLINK_CLICKED 
CURSOR_CHANGED 
SEARCH_RESULT_COUNT 
COMMAND_RESULT 
ADDRESS_CHANGED 
FORMULA_CHANGED 
TEXT_SELECTION 
CONTENT_CONTROL 
PASSWORD_REQUIRED 
COMMENT 
RULER 
WINDOW 
INVALIDATE_HEADER 
LAST_SIGNAL 

Definition at line 283 of file lokdocview.cxx.

◆ anonymous enum

anonymous enum
Enumerator
PROP_0 
PROP_LO_PATH 
PROP_LO_UNIPOLL 
PROP_LO_POINTER 
PROP_USER_PROFILE_URL 
PROP_DOC_PATH 
PROP_DOC_POINTER 
PROP_EDITABLE 
PROP_LOAD_PROGRESS 
PROP_ZOOM 
PROP_IS_LOADING 
PROP_IS_INITIALIZED 
PROP_DOC_WIDTH 
PROP_DOC_HEIGHT 
PROP_CAN_ZOOM_IN 
PROP_CAN_ZOOM_OUT 
PROP_DOC_PASSWORD 
PROP_DOC_PASSWORD_TO_MODIFY 
PROP_TILED_ANNOTATIONS 
PROP_LAST 

Definition at line 308 of file lokdocview.cxx.

Function Documentation

◆ addressChanged()

static void addressChanged ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 806 of file lokdocview.cxx.

References ADDRESS_CHANGED, and doc_view_signals.

Referenced by callback().

◆ callback()

static gboolean callback ( gpointer  pData)
static

◆ callbackWorker()

static void callbackWorker ( int  nType,
const char *  pPayload,
void *  pData 
)
static

Definition at line 1506 of file lokdocview.cxx.

References callback(), g_info, getPrivate(), nType, and pData.

Referenced by postDocumentLoad().

◆ commandChanged()

static void commandChanged ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 785 of file lokdocview.cxx.

References COMMAND_CHANGED, and doc_view_signals.

Referenced by callback().

◆ commandResult()

static void commandResult ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 801 of file lokdocview.cxx.

References COMMAND_RESULT, and doc_view_signals.

Referenced by callback().

◆ doSearch()

static void doSearch ( LOKDocView *  pDocView,
const char *  pText,
bool  bBackwards,
bool  highlightAll 
)
static

◆ formulaChanged()

static void formulaChanged ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 811 of file lokdocview.cxx.

References doc_view_signals, and FORMULA_CHANGED.

Referenced by callback().

◆ G_DEFINE_TYPE_WITH_CODE()

G_DEFINE_TYPE_WITH_CODE ( LOKDocView  ,
lok_doc_view  ,
GTK_TYPE_DRAWING_AREA  ,
G_IMPLEMENT_INTERFACE(G_TYPE_INITABLE, lok_doc_view_initable_iface_init  
)

◆ getAuthorRenderingArgument()

static std::string getAuthorRenderingArgument ( LOKDocViewPrivate &  priv)
static

Looks up the author string from initializeForRendering()'s rendering arguments.

Definition at line 853 of file lokdocview.cxx.

Referenced by postDocumentLoad().

◆ getDarkColor()

static const GdkRGBA & getDarkColor ( int  nViewId,
LOKDocViewPrivate &  priv 
)
static

Definition at line 1737 of file lokdocview.cxx.

References g_aAuthorViews, g_info, and pValues.

Referenced by renderOverlay().

◆ getDragPoint()

static void getDragPoint ( GdkRectangle *  pHandle,
GdkEventMotion *  pEvent,
GdkPoint *  pPoint 
)
static

Definition at line 2164 of file lokdocview.cxx.

Referenced by lok_doc_view_signal_motion().

◆ getPrivate()

static LOKDocViewPrivate & getPrivate ( LOKDocView *  pDocView)
static

Definition at line 357 of file lokdocview.cxx.

Referenced by callback(), callbackWorker(), doSearch(), globalCallback(), handleGraphicSelectionOnButtonPress(), handleGraphicSelectionOnButtonRelease(), handleTextSelectionOnButtonPress(), handleTextSelectionOnButtonRelease(), handleTimeout(), lok_doc_view_destroy(), lok_doc_view_finalize(), lok_doc_view_get_document(), lok_doc_view_get_edit(), lok_doc_view_get_part(), lok_doc_view_get_part_name(), lok_doc_view_get_parts(), lok_doc_view_get_property(), lok_doc_view_get_version_info(), lok_doc_view_get_zoom(), lok_doc_view_init(), lok_doc_view_initable_init(), lok_doc_view_new_from_widget(), lok_doc_view_open_document(), lok_doc_view_paste(), lok_doc_view_pixel_to_twip(), lok_doc_view_post_command(), lok_doc_view_reset_view(), lok_doc_view_send_content_control_event(), lok_doc_view_set_document_password(), lok_doc_view_set_edit(), lok_doc_view_set_part(), lok_doc_view_set_partmode(), lok_doc_view_set_property(), lok_doc_view_set_visible_area(), lok_doc_view_set_zoom(), lok_doc_view_signal_button(), lok_doc_view_signal_motion(), lok_doc_view_twip_to_pixel(), LOKPostCommand(), lokThreadFunc(), openDocumentInThread(), paintTileCallback(), paintTileInThread(), payloadToRectangle(), postCommandInThread(), postDocumentLoad(), postKeyEventInThread(), postMouseEventInThread(), refreshSize(), renderDocument(), renderGraphicHandle(), renderHandle(), renderOverlay(), setClientZoomInThread(), setEditInThread(), setGraphicSelectionInThread(), setPart(), setPartInThread(), setPartmodeInThread(), setTilesInvalid(), signalKey(), spin_lok_loop(), and updateClientZoom().

◆ globalCallback()

static gboolean globalCallback ( gpointer  pData)
static

Implementation of the global callback handler, invoked by globalCallback();.

Definition at line 928 of file lokdocview.cxx.

References doc_view_signals, G_SOURCE_REMOVE, getPrivate(), LOAD_CHANGED, PASSWORD_REQUIRED, pData, and reportError().

Referenced by globalCallbackWorker().

◆ globalCallbackWorker()

static void globalCallbackWorker ( int  nType,
const char *  pPayload,
void *  pData 
)
static

Definition at line 983 of file lokdocview.cxx.

References g_info, globalCallback(), nType, and pData.

Referenced by openDocumentInThread().

◆ handleGraphicSelectionOnButtonPress()

static bool handleGraphicSelectionOnButtonPress ( GdkRectangle &  aClick,
LOKDocView *  pDocView 
)
static

◆ handleGraphicSelectionOnButtonRelease()

static bool handleGraphicSelectionOnButtonRelease ( LOKDocView *  pDocView,
GdkEventButton *  pEvent 
)
static

◆ handleTextSelectionOnButtonPress()

static bool handleTextSelectionOnButtonPress ( GdkRectangle &  aClick,
LOKDocView *  pDocView 
)
static

if handled, returns TRUE else FALSE

Definition at line 453 of file lokdocview.cxx.

References g_info, and getPrivate().

Referenced by lok_doc_view_signal_button().

◆ handleTextSelectionOnButtonRelease()

static bool handleTextSelectionOnButtonRelease ( LOKDocView *  pDocView)
static

if handled, returns TRUE else FALSE

Definition at line 515 of file lokdocview.cxx.

References g_info, and getPrivate().

Referenced by lok_doc_view_signal_button().

◆ handleTimeout()

static gboolean handleTimeout ( gpointer  pData)
static

Definition at line 767 of file lokdocview.cxx.

References G_SOURCE_CONTINUE, getPrivate(), and pData.

Referenced by postDocumentLoad().

◆ hyperlinkClicked()

static void hyperlinkClicked ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 837 of file lokdocview.cxx.

References doc_view_signals, and HYPERLINK_CLICKED.

Referenced by callback().

◆ isEmptyRectangle()

static bool isEmptyRectangle ( const GdkRectangle &  rRectangle)
static

Definition at line 446 of file lokdocview.cxx.

Referenced by renderOverlay().

◆ lok_doc_view_class_init()

static void lok_doc_view_class_init ( LOKDocViewClass *  pClass)
static

LOKDocView:lopath:

The absolute path of the LibreOffice install.

LOKDocView:unipoll:

Whether we use our own unified polling mainloop in place of glib's

LOKDocView:lopointer:

A LibreOfficeKit* in case lok_init() is already called previously.

LOKDocView:userprofileurl:

The absolute path of the LibreOffice user profile.

LOKDocView:docpath:

The path of the document that is currently being viewed.

LOKDocView:docpointer:

A LibreOfficeKitDocument* in case documentLoad() is already called previously.

LOKDocView:editable:

Whether the document loaded inside of #LOKDocView is editable or not.

LOKDocView:load-progress:

The percent completion of the current loading operation of the document. This can be used for progress bars. Note that this is not a very accurate progress indicator, and its value might reset it couple of times to 0 and start again. You should not rely on its numbers.

LOKDocView:zoom-level:

The current zoom level of the document loaded inside #LOKDocView. The default value is 1.0.

LOKDocView:is-loading:

Whether the requested document is being loaded or not. TRUE if it is being loaded, otherwise FALSE.

LOKDocView:is-initialized:

Whether the requested document has completely loaded or not.

LOKDocView:doc-width:

The width of the currently loaded document in #LOKDocView in twips.

LOKDocView:doc-height:

The height of the currently loaded document in #LOKDocView in twips.

LOKDocView:can-zoom-in:

It tells whether the view can further be zoomed in or not.

LOKDocView:can-zoom-out:

It tells whether the view can further be zoomed out or not.

LOKDocView:doc-password:

Set it to true if client supports providing password for viewing password protected documents

LOKDocView:doc-password-to-modify:

Set it to true if client supports providing password for edit-protected documents

LOKDocView:tiled-annotations-rendering:

Set it to false if client does not want LO to render comments in tiles and instead interested in using comments API to access comments

LOKDocView::load-changed: @pDocView: the #LOKDocView on which the signal is emitted @fLoadProgress: the new progress value

LOKDocView::edit-changed: @pDocView: the #LOKDocView on which the signal is emitted @bEdit: the new edit value of the view

LOKDocView::command-changed: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: the command that was changed

LOKDocView::search-not-found: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: the string for which the search was not found.

LOKDocView::part-changed: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: the part number which the view changed to

LOKDocView::size-changed: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: NULL, we just notify that want to notify the UI elements that are interested.

LOKDocView::hyperlinked-clicked: @pDocView: the #LOKDocView on which the signal is emitted @aHyperlink: the URI which the application should handle

LOKDocView::cursor-changed: @pDocView: the #LOKDocView on which the signal is emitted @nX: The new cursor position (X coordinate) in pixels @nY: The new cursor position (Y coordinate) in pixels @nWidth: The width of new cursor @nHeight: The height of new cursor

LOKDocView::search-result-count: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: number of matches.

LOKDocView::command-result: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: JSON containing the info about the command that finished, and its success status.

LOKDocView::address-changed: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: formula text content

LOKDocView::formula-changed: @pDocView: the #LOKDocView on which the signal is emitted @aCommand: formula text content

LOKDocView::text-selection: @pDocView: the #LOKDocView on which the signal is emitted @bIsTextSelected: whether text selected is non-null

LOKDocView::content-control: @pDocView: the #LOKDocView on which the signal is emitted @pPayload: the JSON string containing the information about ruler properties

LOKDocView::password-required: @pDocView: the #LOKDocView on which the signal is emitted @pUrl: URL of the document for which password is required @bModify: whether password id required to modify the document This is true when password is required to edit the document, while it can still be viewed without password. In such cases, provide a NULL password for read-only access to the document. If false, password is required for opening the document, and document cannot be opened without providing a valid password.

Password must be provided by calling lok_doc_view_set_document_password function with pUrl as provided by the callback.

Upon entering an invalid password, another password-required signal is emitted. Upon entering a valid password, document starts to load. Upon entering a NULL password: if bModify is TRUE, document starts to open in view-only mode, else loading of document is aborted.

LOKDocView::comment: @pDocView: the #LOKDocView on which the signal is emitted @pComment: the JSON string containing comment notification The has following structure containing the information telling whether the comment has been added, deleted or modified. The example: { "comment": { "action": "Add", "id": "11", "parent": "4", "author": "Unknown Author", "text": "This is a comment", "dateTime": "2016-08-18T13:13:00", "anchorPos": "4529, 3906", "textRange": "1418, 3906, 3111, 919" } } 'action' can be 'Add', 'Remove' or 'Modify' depending on whether comment has been added, removed or modified. 'parent' is a non-zero comment id if this comment is a reply comment, otherwise it's a root comment.

LOKDocView::ruler: @pDocView: the #LOKDocView on which the signal is emitted @pPayload: the JSON string containing the information about ruler properties

The payload format is:

{ "margin1": "...", "margin2": "...", "leftOffset": "...", "pageOffset": "...", "pageWidth": "...", "unit": "..." }

LOKDocView::window:: @pDocView: the #LOKDocView on which the signal is emitted @pPayload: the JSON string containing the information about the window

This signal emits information about external windows like dialogs, autopopups for now.

The payload format of pPayload is:

{ "id": "unique integer id of the dialog", "action": "<see below>", "type": "<see below>" "rectangle": "x, y, width, height" }

"type" tells the type of the window the action is associated with

  • "dialog" - window is a dialog
  • "child" - window is a floating window (combo boxes, etc.)

"action" can take following values:

  • "created" - window is created in the backend, client can render it now
  • "title_changed" - window's title is changed
  • "size_changed" - window's size is changed
  • "invalidate" - the area as described by "rectangle" is invalidated Clients must request the new area
  • "cursor_invalidate" - cursor is invalidated. New position is in "rectangle"
  • "cursor_visible" - cursor visible status is changed. Status is available in "visible" field
  • "close" - window is closed

LOKDocView::invalidate-header:: @pDocView: the #LOKDocView on which the signal is emitted @pPayload: can be either "row", "column", or "all".

The column/row header is no more valid because of a column/row insertion or a similar event. Clients must query a new column/row header set.

The payload says if we are invalidating a row or column header

Definition at line 2915 of file lokdocview.cxx.

References ADDRESS_CHANGED, COMMAND_CHANGED, COMMAND_RESULT, COMMENT, CONTENT_CONTROL, CURSOR_CHANGED, doc_view_signals, EDIT_CHANGED, FALSE, FORMULA_CHANGED, HYPERLINK_CLICKED, INVALIDATE_HEADER, LOAD_CHANGED, lok_doc_view_destroy(), lok_doc_view_draw(), lok_doc_view_finalize(), lok_doc_view_get_property(), lok_doc_view_set_property(), lok_doc_view_signal_button(), lok_doc_view_signal_motion(), PART_CHANGED, PASSWORD_REQUIRED, PROP_CAN_ZOOM_IN, PROP_CAN_ZOOM_OUT, PROP_DOC_HEIGHT, PROP_DOC_PASSWORD, PROP_DOC_PASSWORD_TO_MODIFY, PROP_DOC_PATH, PROP_DOC_POINTER, PROP_DOC_WIDTH, PROP_EDITABLE, PROP_IS_INITIALIZED, PROP_IS_LOADING, PROP_LAST, PROP_LO_PATH, PROP_LO_POINTER, PROP_LO_UNIPOLL, PROP_LOAD_PROGRESS, PROP_TILED_ANNOTATIONS, PROP_USER_PROFILE_URL, PROP_ZOOM, RULER, SEARCH_NOT_FOUND, SEARCH_RESULT_COUNT, signalKey(), SIZE_CHANGED, TEXT_SELECTION, and WINDOW.

◆ lok_doc_view_copy_selection()

SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_copy_selection ( LOKDocView *  pDocView,
const gchar *  pMimeType,
gchar **  pUsedMimeType 
)

Definition at line 3956 of file lokdocview.cxx.

References g_info, and lok_doc_view_get_document().

◆ lok_doc_view_destroy()

static void lok_doc_view_destroy ( GtkWidget widget)
static

Definition at line 2759 of file lokdocview.cxx.

References g_aLOKMutex, and getPrivate().

Referenced by lok_doc_view_class_init().

◆ lok_doc_view_draw()

static gboolean lok_doc_view_draw ( GtkWidget pWidget,
cairo_t pCairo 
)
static

Definition at line 2746 of file lokdocview.cxx.

References FALSE, renderDocument(), and renderOverlay().

Referenced by lok_doc_view_class_init().

◆ lok_doc_view_finalize()

static void lok_doc_view_finalize ( GObject *  object)
static

Definition at line 2800 of file lokdocview.cxx.

References getPrivate().

Referenced by lok_doc_view_class_init().

◆ lok_doc_view_find_next()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_find_next ( LOKDocView *  pDocView,
const gchar *  pText,
gboolean  bHighlightAll 
)

Definition at line 3941 of file lokdocview.cxx.

References doSearch().

◆ lok_doc_view_find_prev()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_find_prev ( LOKDocView *  pDocView,
const gchar *  pText,
gboolean  bHighlightAll 
)

Definition at line 3933 of file lokdocview.cxx.

References doSearch().

◆ lok_doc_view_get_command_values()

SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_get_command_values ( LOKDocView *  pDocView,
const gchar *  pCommand 
)

Definition at line 3919 of file lokdocview.cxx.

References lok_doc_view_get_document().

◆ lok_doc_view_get_document()

SAL_DLLPUBLIC_EXPORT LibreOfficeKitDocument * lok_doc_view_get_document ( LOKDocView *  pDocView)

◆ lok_doc_view_get_edit()

SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_get_edit ( LOKDocView *  pDocView)

Definition at line 3896 of file lokdocview.cxx.

References getPrivate().

◆ lok_doc_view_get_part()

SAL_DLLPUBLIC_EXPORT gint lok_doc_view_get_part ( LOKDocView *  pDocView)

Definition at line 3735 of file lokdocview.cxx.

References g_aLOKMutex, and getPrivate().

◆ lok_doc_view_get_part_name()

SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_get_part_name ( LOKDocView *  pDocView,
int  nPart 
)

Definition at line 3791 of file lokdocview.cxx.

References g_aLOKMutex, and getPrivate().

◆ lok_doc_view_get_parts()

SAL_DLLPUBLIC_EXPORT gint lok_doc_view_get_parts ( LOKDocView *  pDocView)

Definition at line 3723 of file lokdocview.cxx.

References g_aLOKMutex, and getPrivate().

◆ lok_doc_view_get_property()

static void lok_doc_view_get_property ( GObject *  object,
guint  propId,
GValue *  value,
GParamSpec *  pspec 
)
static

◆ lok_doc_view_get_version_info()

SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_get_version_info ( LOKDocView *  pDocView)

Definition at line 4011 of file lokdocview.cxx.

References getPrivate().

◆ lok_doc_view_get_zoom()

SAL_DLLPUBLIC_EXPORT gfloat lok_doc_view_get_zoom ( LOKDocView *  pDocView)

Definition at line 3716 of file lokdocview.cxx.

References getPrivate().

◆ lok_doc_view_highlight_all()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_highlight_all ( LOKDocView *  pDocView,
const gchar *  pText 
)

Definition at line 3949 of file lokdocview.cxx.

References doSearch().

◆ lok_doc_view_init()

static void lok_doc_view_init ( LOKDocView *  pDocView)
static

Definition at line 2591 of file lokdocview.cxx.

References FALSE, getPrivate(), lokThreadFunc(), and onStyleContextChanged().

◆ lok_doc_view_initable_iface_init()

static void lok_doc_view_initable_iface_init ( GInitableIface *  iface)
static

Definition at line 2910 of file lokdocview.cxx.

References lok_doc_view_initable_init().

◆ lok_doc_view_initable_init()

static gboolean lok_doc_view_initable_init ( GInitable *  initable,
GCancellable ,
GError **  error 
)
static

Definition at line 2876 of file lokdocview.cxx.

References FALSE, getPrivate(), and spin_lok_loop().

Referenced by lok_doc_view_initable_iface_init().

◆ lok_doc_view_new()

SAL_DLLPUBLIC_EXPORT GtkWidget * lok_doc_view_new ( const gchar *  pPath,
GCancellable cancellable,
GError **  error 
)

Definition at line 3547 of file lokdocview.cxx.

◆ lok_doc_view_new_from_user_profile()

SAL_DLLPUBLIC_EXPORT GtkWidget * lok_doc_view_new_from_user_profile ( const gchar *  pPath,
const gchar *  pUserProfile,
GCancellable cancellable,
GError **  error 
)

Definition at line 3557 of file lokdocview.cxx.

◆ lok_doc_view_new_from_widget()

SAL_DLLPUBLIC_EXPORT GtkWidget * lok_doc_view_new_from_widget ( LOKDocView *  pOldLOKDocView,
const gchar *  pRenderingArguments 
)

Definition at line 3567 of file lokdocview.cxx.

References getPrivate(), lok_doc_view_get_document(), and postDocumentLoad().

◆ lok_doc_view_open_document()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_open_document ( LOKDocView *  pDocView,
const gchar *  pPath,
const gchar *  pRenderingArguments,
GCancellable cancellable,
GAsyncReadyCallback  callback,
gpointer  userdata 
)

◆ lok_doc_view_open_document_finish()

SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_open_document_finish ( LOKDocView *  pDocView,
GAsyncResult *  res,
GError **  error 
)

Definition at line 3593 of file lokdocview.cxx.

References lok_doc_view_open_document().

◆ lok_doc_view_paste()

SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_paste ( LOKDocView *  pDocView,
const gchar *  pMimeType,
const gchar *  pData,
gsize  nSize 
)

Definition at line 3971 of file lokdocview.cxx.

References g_info, getPrivate(), and pData.

◆ lok_doc_view_pixel_to_twip()

SAL_DLLPUBLIC_EXPORT gfloat lok_doc_view_pixel_to_twip ( LOKDocView *  pDocView,
float  fInput 
)

Definition at line 4020 of file lokdocview.cxx.

References getPrivate(), and pixelToTwip().

◆ lok_doc_view_post_command()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_post_command ( LOKDocView *  pDocView,
const gchar *  pCommand,
const gchar *  pArguments,
gboolean  bNotifyWhenFinished 
)

Definition at line 3903 of file lokdocview.cxx.

References g_info, getPrivate(), and LOKPostCommand().

◆ lok_doc_view_reset_view()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_reset_view ( LOKDocView *  pDocView)

Definition at line 3827 of file lokdocview.cxx.

References getPrivate().

Referenced by setPartInThread().

◆ lok_doc_view_send_content_control_event()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_send_content_control_event ( LOKDocView *  pDocView,
const gchar *  pArguments 
)

Definition at line 3776 of file lokdocview.cxx.

References g_aLOKMutex, and getPrivate().

Referenced by callback().

◆ lok_doc_view_set_document_password()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_document_password ( LOKDocView *  pDocView,
const gchar *  pURL,
const gchar *  pPassword 
)

Definition at line 4001 of file lokdocview.cxx.

References getPrivate().

◆ lok_doc_view_set_edit()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_edit ( LOKDocView *  pDocView,
gboolean  bEdit 
)

Definition at line 3872 of file lokdocview.cxx.

References LOEvent::destroy(), getPrivate(), LOK_SET_EDIT, and LOEvent::m_bEdit.

Referenced by lok_doc_view_set_property().

◆ lok_doc_view_set_part()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_part ( LOKDocView *  pDocView,
int  nPart 
)

Definition at line 3747 of file lokdocview.cxx.

References LOEvent::destroy(), getPrivate(), LOK_SET_PART, and LOEvent::m_nPart.

◆ lok_doc_view_set_partmode()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_partmode ( LOKDocView *  pDocView,
int  nPartMode 
)

◆ lok_doc_view_set_property()

static void lok_doc_view_set_property ( GObject *  object,
guint  propId,
const GValue *  value,
GParamSpec *  pspec 
)
static

◆ lok_doc_view_set_visible_area()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_visible_area ( LOKDocView *  pDocView,
GdkRectangle *  pVisibleArea 
)

Definition at line 3641 of file lokdocview.cxx.

References getPrivate().

◆ lok_doc_view_set_zoom()

SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_zoom ( LOKDocView *  pDocView,
float  fZoom 
)

◆ lok_doc_view_signal_button()

static gboolean lok_doc_view_signal_button ( GtkWidget pWidget,
GdkEventButton *  pEvent 
)
static

◆ lok_doc_view_signal_motion()

static gboolean lok_doc_view_signal_motion ( GtkWidget pWidget,
GdkEventMotion *  pEvent 
)
static

◆ lok_doc_view_twip_to_pixel()

SAL_DLLPUBLIC_EXPORT gfloat lok_doc_view_twip_to_pixel ( LOKDocView *  pDocView,
float  fInput 
)

Definition at line 4027 of file lokdocview.cxx.

References getPrivate(), and twipToPixel().

◆ lok_poll_callback()

static int lok_poll_callback ( void *  ,
int  timeoutUs 
)
static

Definition at line 2818 of file lokdocview.cxx.

References timeout_wakeup().

Referenced by spin_lok_loop().

◆ lok_wake_callback()

static void lok_wake_callback ( void *  )
static

Definition at line 2834 of file lokdocview.cxx.

Referenced by spin_lok_loop().

◆ LOKPostCommand()

static void LOKPostCommand ( LOKDocView *  pDocView,
const gchar *  pCommand,
const gchar *  pArguments,
bool  bNotifyWhenFinished 
)
static

◆ lokThreadFunc()

static void lokThreadFunc ( gpointer  data,
gpointer   
)
static

◆ onStyleContextChanged()

static void onStyleContextChanged ( LOKDocView *  pDocView)
static

Definition at line 2584 of file lokdocview.cxx.

References updateClientZoom().

Referenced by lok_doc_view_init().

◆ openDocumentInThread()

static void openDocumentInThread ( gpointer  data)
static

Definition at line 2345 of file lokdocview.cxx.

References g_aLOKMutex, getPrivate(), globalCallbackWorker(), and postDocumentLoad().

Referenced by lokThreadFunc().

◆ paintTileCallback()

static void paintTileCallback ( GObject *  sourceObject,
GAsyncResult *  res,
gpointer  userData 
)
static

Callback called in the main UI thread when paintTileInThread in LOK thread has finished.

Definition at line 1633 of file lokdocview.cxx.

References g_info, getPrivate(), LOK_TILEBUFFER_CHANGED, LOK_TILEBUFFER_ERROR, LOEvent::m_nPaintTileX, LOEvent::m_nPaintTileY, LOEvent::m_pTileBuffer, paintTileFinish(), and queueDraw().

Referenced by renderDocument().

◆ paintTileFinish()

static gpointer paintTileFinish ( LOKDocView *  pDocView,
GAsyncResult *  res,
GError **  error 
)
static

Finishes the paint tile operation and returns the result, if any.

Definition at line 1620 of file lokdocview.cxx.

Referenced by paintTileCallback().

◆ paintTileInThread()

static void paintTileInThread ( gpointer  data)
static

◆ payloadToRectangle()

static GdkRectangle payloadToRectangle ( LOKDocView *  pDocView,
const char *  pPayload 
)
static

Definition at line 993 of file lokdocview.cxx.

References getPrivate().

Referenced by callback(), and payloadToRectangles().

◆ payloadToRectangles()

static std::vector< GdkRectangle > payloadToRectangles ( LOKDocView *  pDocView,
const char *  pPayload 
)
static

Definition at line 1052 of file lokdocview.cxx.

References payloadToRectangle().

Referenced by callback().

◆ postCommandInThread()

static void postCommandInThread ( gpointer  data)
static

◆ postDocumentLoad()

static gboolean postDocumentLoad ( gpointer  pData)
static

Set up LOKDocView after the document is loaded, invoked on the main thread by openDocumentInThread() running in a thread.

Definition at line 896 of file lokdocview.cxx.

References callbackWorker(), g_aAuthorViews, g_aLOKMutex, G_SOURCE_REMOVE, getAuthorRenderingArgument(), getPrivate(), handleTimeout(), lok_doc_view_set_zoom(), pData, PROP_IS_INITIALIZED, and refreshSize().

Referenced by lok_doc_view_new_from_widget(), and openDocumentInThread().

◆ postKeyEventInThread()

static void postKeyEventInThread ( gpointer  data)
static

◆ postMouseEventInThread()

static void postMouseEventInThread ( gpointer  data)
static

◆ queueDraw()

static gboolean queueDraw ( gpointer  pData)
static

Trigger a redraw, invoked on the main thread by other functions running in a thread.

Definition at line 843 of file lokdocview.cxx.

References G_SOURCE_REMOVE, and pData.

Referenced by paintTileCallback(), and setEditInThread().

◆ refreshSize()

static void refreshSize ( LOKDocView *  pDocView)
static

Definition at line 874 of file lokdocview.cxx.

References getPrivate(), nTileSizePixels, and twipToPixel().

Referenced by callback(), and postDocumentLoad().

◆ renderDocument()

static bool renderDocument ( LOKDocView *  pDocView,
cairo_t pCairo 
)
static

◆ renderGraphicHandle()

static void renderGraphicHandle ( LOKDocView *  pDocView,
cairo_t pCairo,
const GdkRectangle &  rSelection,
const GdkRGBA &  rColor 
)
static

Renders handles around an rSelection rectangle on pCairo.

Definition at line 1555 of file lokdocview.cxx.

References getPrivate(), GRAPHIC_HANDLE_COUNT, i, twipToPixel(), x, and y.

Referenced by renderOverlay().

◆ renderHandle()

static void renderHandle ( LOKDocView *  pDocView,
cairo_t pCairo,
const GdkRectangle &  rCursor,
cairo_surface_t pHandle,
GdkRectangle &  rRectangle 
)
static

Definition at line 1519 of file lokdocview.cxx.

References getPrivate(), and twipToPixel().

Referenced by renderOverlay().

◆ renderOverlay()

static bool renderOverlay ( LOKDocView *  pDocView,
cairo_t pCairo 
)
static

◆ reportError()

static void reportError ( LOKDocView *  ,
const std::string &  rString 
)
static

Definition at line 816 of file lokdocview.cxx.

Referenced by callback(), and globalCallback().

◆ searchNotFound()

static void searchNotFound ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 791 of file lokdocview.cxx.

References doc_view_signals, and SEARCH_NOT_FOUND.

Referenced by callback().

◆ searchResultCount()

static void searchResultCount ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 796 of file lokdocview.cxx.

References doc_view_signals, and SEARCH_RESULT_COUNT.

Referenced by callback().

◆ setClientZoomInThread()

static void setClientZoomInThread ( gpointer  data)
static

◆ setEditInThread()

static void setEditInThread ( gpointer  data)
static

◆ setGraphicSelectionInThread()

static void setGraphicSelectionInThread ( gpointer  data)
static

◆ setPart()

static void setPart ( LOKDocView *  pDocView,
const std::string &  rString 
)
static

Definition at line 829 of file lokdocview.cxx.

References doc_view_signals, getPrivate(), and PART_CHANGED.

Referenced by callback().

◆ setPartInThread()

static void setPartInThread ( gpointer  data)
static

Definition at line 2380 of file lokdocview.cxx.

References g_aLOKMutex, getPrivate(), lok_doc_view_reset_view(), and LOEvent::m_nPart.

Referenced by lokThreadFunc().

◆ setPartmodeInThread()

static void setPartmodeInThread ( gpointer  data)
static

Definition at line 2397 of file lokdocview.cxx.

References g_aLOKMutex, getPrivate(), and LOEvent::m_nPartMode.

Referenced by lokThreadFunc().

◆ setTilesInvalid()

static void setTilesInvalid ( LOKDocView *  pDocView,
const GdkRectangle &  rRectangle 
)
static

Definition at line 1069 of file lokdocview.cxx.

References getPrivate(), i, nTileSizePixels, and twipToPixel().

Referenced by callback().

◆ signalKey()

static gboolean signalKey ( GtkWidget pWidget,
GdkEventKey *  pEvent 
)
static

◆ spin_lok_loop()

static gboolean spin_lok_loop ( void *  pData)
static

Definition at line 2839 of file lokdocview.cxx.

References FALSE, getPrivate(), lok_poll_callback(), lok_wake_callback(), and pData.

Referenced by lok_doc_view_initable_init().

◆ timeout_wakeup()

static gboolean timeout_wakeup ( void *  )
static

Definition at line 2812 of file lokdocview.cxx.

References FALSE.

Referenced by lok_poll_callback().

◆ updateClientZoom()

static void updateClientZoom ( LOKDocView *  pDocView)
static

Variable Documentation

◆ doc_view_signals

guint doc_view_signals[LAST_SIGNAL] = { 0 }
static

◆ g_aAuthorViews

std::map<std::string, int> g_aAuthorViews
static

Author string <-> View ID map.

Definition at line 872 of file lokdocview.cxx.

Referenced by getDarkColor(), and postDocumentLoad().

◆ g_aLOKMutex

std::mutex g_aLOKMutex
static

◆ properties

GParamSpec* properties[PROP_LAST] = { nullptr }
static

Definition at line 335 of file lokdocview.cxx.