LibreOffice Module libreofficekit (master) 1
|
#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"
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 GtkWidget * | lok_doc_view_new (const gchar *pPath, GCancellable *cancellable, GError **error) |
SAL_DLLPUBLIC_EXPORT GtkWidget * | lok_doc_view_new_from_user_profile (const gchar *pPath, const gchar *pUserProfile, GCancellable *cancellable, GError **error) |
SAL_DLLPUBLIC_EXPORT GtkWidget * | lok_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, int > | g_aAuthorViews |
Author string <-> View ID map. More... | |
#define CURSOR_HANDLE_DIR "/../share/libreofficekit/" |
Definition at line 39 of file lokdocview.cxx.
#define g_info | ( | ... | ) | g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, __VA_ARGS__) |
Definition at line 35 of file lokdocview.cxx.
#define G_SOURCE_CONTINUE TRUE |
Definition at line 32 of file lokdocview.cxx.
#define G_SOURCE_REMOVE FALSE |
Definition at line 31 of file lokdocview.cxx.
#define GRAPHIC_HANDLE_COUNT 8 |
Definition at line 41 of file lokdocview.cxx.
#define MAX_ZOOM 5.0f |
Definition at line 43 of file lokdocview.cxx.
#define MIN_ZOOM 0.25f |
Definition at line 45 of file lokdocview.cxx.
anonymous enum |
Definition at line 283 of file lokdocview.cxx.
anonymous enum |
Definition at line 308 of file lokdocview.cxx.
|
static |
Definition at line 806 of file lokdocview.cxx.
References ADDRESS_CHANGED, and doc_view_signals.
Referenced by callback().
|
static |
Definition at line 1098 of file lokdocview.cxx.
References addressChanged(), commandChanged(), commandResult(), COMMENT, CONTENT_CONTROL, CURSOR_CHANGED, doc_view_signals, formulaChanged(), G_SOURCE_REMOVE, getPrivate(), hyperlinkClicked(), INVALIDATE_HEADER, lok_doc_view_send_content_control_event(), nCount, payloadToRectangle(), payloadToRectangles(), pData, refreshSize(), reportError(), RULER, searchNotFound(), searchResultCount(), setPart(), setTilesInvalid(), SIZE_CHANGED, TEXT_SELECTION, and WINDOW.
Referenced by callbackWorker(), and lok_doc_view_open_document().
|
static |
Definition at line 1506 of file lokdocview.cxx.
References callback(), g_info, getPrivate(), nType, and pData.
Referenced by postDocumentLoad().
|
static |
Definition at line 785 of file lokdocview.cxx.
References COMMAND_CHANGED, and doc_view_signals.
Referenced by callback().
|
static |
Definition at line 801 of file lokdocview.cxx.
References COMMAND_RESULT, and doc_view_signals.
Referenced by callback().
|
static |
Definition at line 405 of file lokdocview.cxx.
References getPrivate(), LOKPostCommand(), pixelToTwip(), x, and y.
Referenced by lok_doc_view_find_next(), lok_doc_view_find_prev(), and lok_doc_view_highlight_all().
|
static |
Definition at line 811 of file lokdocview.cxx.
References doc_view_signals, and FORMULA_CHANGED.
Referenced by callback().
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 |
Looks up the author string from initializeForRendering()'s rendering arguments.
Definition at line 853 of file lokdocview.cxx.
Referenced by postDocumentLoad().
|
static |
Definition at line 1737 of file lokdocview.cxx.
References g_aAuthorViews, g_info, and pValues.
Referenced by renderOverlay().
|
static |
Definition at line 2164 of file lokdocview.cxx.
Referenced by lok_doc_view_signal_motion().
|
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().
|
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().
|
static |
Definition at line 983 of file lokdocview.cxx.
References g_info, globalCallback(), nType, and pData.
Referenced by openDocumentInThread().
|
static |
if handled, returns TRUE else FALSE
Definition at line 480 of file lokdocview.cxx.
References LOEvent::destroy(), g_info, getPrivate(), GRAPHIC_HANDLE_COUNT, i, LOK_SET_GRAPHIC_SELECTION, LOEvent::m_nSetGraphicSelectionType, LOEvent::m_nSetGraphicSelectionX, LOEvent::m_nSetGraphicSelectionY, and pixelToTwip().
Referenced by lok_doc_view_signal_button().
|
static |
if handled, returns TRUE else FALSE
Definition at line 542 of file lokdocview.cxx.
References LOEvent::destroy(), g_info, getPrivate(), GRAPHIC_HANDLE_COUNT, i, LOK_SET_GRAPHIC_SELECTION, LOEvent::m_nSetGraphicSelectionType, LOEvent::m_nSetGraphicSelectionX, LOEvent::m_nSetGraphicSelectionY, and pixelToTwip().
Referenced by lok_doc_view_signal_button().
|
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().
|
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().
|
static |
Definition at line 767 of file lokdocview.cxx.
References G_SOURCE_CONTINUE, getPrivate(), and pData.
Referenced by postDocumentLoad().
|
static |
Definition at line 837 of file lokdocview.cxx.
References doc_view_signals, and HYPERLINK_CLICKED.
Referenced by callback().
|
static |
Definition at line 446 of file lokdocview.cxx.
Referenced by renderOverlay().
|
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
"action" can take following values:
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.
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().
|
static |
Definition at line 2759 of file lokdocview.cxx.
References g_aLOKMutex, and getPrivate().
Referenced by lok_doc_view_class_init().
Definition at line 2746 of file lokdocview.cxx.
References FALSE, renderDocument(), and renderOverlay().
Referenced by lok_doc_view_class_init().
|
static |
Definition at line 2800 of file lokdocview.cxx.
References getPrivate().
Referenced by lok_doc_view_class_init().
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().
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().
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().
SAL_DLLPUBLIC_EXPORT LibreOfficeKitDocument * lok_doc_view_get_document | ( | LOKDocView * | pDocView | ) |
Definition at line 3634 of file lokdocview.cxx.
References getPrivate().
Referenced by lok_doc_view_copy_selection(), lok_doc_view_get_command_values(), and lok_doc_view_new_from_widget().
SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_get_edit | ( | LOKDocView * | pDocView | ) |
Definition at line 3896 of file lokdocview.cxx.
References getPrivate().
SAL_DLLPUBLIC_EXPORT gint lok_doc_view_get_part | ( | LOKDocView * | pDocView | ) |
Definition at line 3735 of file lokdocview.cxx.
References g_aLOKMutex, and getPrivate().
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().
SAL_DLLPUBLIC_EXPORT gint lok_doc_view_get_parts | ( | LOKDocView * | pDocView | ) |
Definition at line 3723 of file lokdocview.cxx.
References g_aLOKMutex, and getPrivate().
|
static |
Definition at line 2680 of file lokdocview.cxx.
References getPrivate(), 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_LO_PATH, PROP_LO_POINTER, PROP_LO_UNIPOLL, PROP_LOAD_PROGRESS, PROP_TILED_ANNOTATIONS, PROP_USER_PROFILE_URL, PROP_ZOOM, and value.
Referenced by lok_doc_view_class_init().
SAL_DLLPUBLIC_EXPORT gchar * lok_doc_view_get_version_info | ( | LOKDocView * | pDocView | ) |
Definition at line 4011 of file lokdocview.cxx.
References getPrivate().
SAL_DLLPUBLIC_EXPORT gfloat lok_doc_view_get_zoom | ( | LOKDocView * | pDocView | ) |
Definition at line 3716 of file lokdocview.cxx.
References getPrivate().
SAL_DLLPUBLIC_EXPORT void lok_doc_view_highlight_all | ( | LOKDocView * | pDocView, |
const gchar * | pText | ||
) |
Definition at line 3949 of file lokdocview.cxx.
References doSearch().
|
static |
Definition at line 2591 of file lokdocview.cxx.
References FALSE, getPrivate(), lokThreadFunc(), and onStyleContextChanged().
|
static |
Definition at line 2910 of file lokdocview.cxx.
References lok_doc_view_initable_init().
|
static |
Definition at line 2876 of file lokdocview.cxx.
References FALSE, getPrivate(), and spin_lok_loop().
Referenced by lok_doc_view_initable_iface_init().
SAL_DLLPUBLIC_EXPORT GtkWidget * lok_doc_view_new | ( | const gchar * | pPath, |
GCancellable * | cancellable, | ||
GError ** | error | ||
) |
Definition at line 3547 of file lokdocview.cxx.
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.
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().
SAL_DLLPUBLIC_EXPORT void lok_doc_view_open_document | ( | LOKDocView * | pDocView, |
const gchar * | pPath, | ||
const gchar * | pRenderingArguments, | ||
GCancellable * | cancellable, | ||
GAsyncReadyCallback | callback, | ||
gpointer | userdata | ||
) |
Definition at line 3605 of file lokdocview.cxx.
References callback(), LOEvent::destroy(), getPrivate(), lok_doc_view_open_document(), and LOK_LOAD_DOC.
Referenced by lok_doc_view_open_document(), and 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().
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.
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().
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().
SAL_DLLPUBLIC_EXPORT void lok_doc_view_reset_view | ( | LOKDocView * | pDocView | ) |
Definition at line 3827 of file lokdocview.cxx.
References getPrivate().
Referenced by setPartInThread().
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().
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().
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().
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.
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_partmode | ( | LOKDocView * | pDocView, |
int | nPartMode | ||
) |
Definition at line 3803 of file lokdocview.cxx.
References LOEvent::destroy(), getPrivate(), LOK_SET_PARTMODE, and LOEvent::m_nPartMode.
|
static |
Definition at line 2612 of file lokdocview.cxx.
References getPrivate(), lok_doc_view_set_edit(), lok_doc_view_set_zoom(), PROP_DOC_HEIGHT, PROP_DOC_PASSWORD, PROP_DOC_PASSWORD_TO_MODIFY, PROP_DOC_PATH, PROP_DOC_POINTER, PROP_DOC_WIDTH, PROP_EDITABLE, PROP_LO_PATH, PROP_LO_POINTER, PROP_LO_UNIPOLL, PROP_TILED_ANNOTATIONS, PROP_USER_PROFILE_URL, PROP_ZOOM, and value.
Referenced by lok_doc_view_class_init().
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_visible_area | ( | LOKDocView * | pDocView, |
GdkRectangle * | pVisibleArea | ||
) |
Definition at line 3641 of file lokdocview.cxx.
References getPrivate().
SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_zoom | ( | LOKDocView * | pDocView, |
float | fZoom | ||
) |
Definition at line 3670 of file lokdocview.cxx.
References getPrivate(), MAX_ZOOM, MIN_ZOOM, nTileSizePixels, PROP_CAN_ZOOM_IN, PROP_CAN_ZOOM_OUT, PROP_ZOOM, twipToPixel(), and updateClientZoom().
Referenced by lok_doc_view_set_property(), and postDocumentLoad().
|
static |
Definition at line 2053 of file lokdocview.cxx.
References LOEvent::destroy(), FALSE, g_info, getPrivate(), handleGraphicSelectionOnButtonPress(), handleGraphicSelectionOnButtonRelease(), handleTextSelectionOnButtonPress(), handleTextSelectionOnButtonRelease(), LOK_POST_MOUSE_EVENT, LOEvent::m_nPostMouseEventButton, LOEvent::m_nPostMouseEventCount, LOEvent::m_nPostMouseEventModifier, LOEvent::m_nPostMouseEventType, LOEvent::m_nPostMouseEventX, LOEvent::m_nPostMouseEventY, MOUSE_LEFT, MOUSE_MIDDLE, MOUSE_RIGHT, nCount, and pixelToTwip().
Referenced by lok_doc_view_class_init().
|
static |
Definition at line 2182 of file lokdocview.cxx.
References LOEvent::destroy(), FALSE, g_aLOKMutex, g_info, getDragPoint(), getPrivate(), GRAPHIC_HANDLE_COUNT, i, LOK_POST_MOUSE_EVENT, LOK_SET_GRAPHIC_SELECTION, LOEvent::m_nPostMouseEventButton, LOEvent::m_nPostMouseEventCount, LOEvent::m_nPostMouseEventModifier, LOEvent::m_nPostMouseEventType, LOEvent::m_nPostMouseEventX, LOEvent::m_nPostMouseEventY, LOEvent::m_nSetGraphicSelectionType, LOEvent::m_nSetGraphicSelectionX, LOEvent::m_nSetGraphicSelectionY, and pixelToTwip().
Referenced by lok_doc_view_class_init().
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().
Definition at line 2818 of file lokdocview.cxx.
References timeout_wakeup().
Referenced by spin_lok_loop().
|
static |
Definition at line 2834 of file lokdocview.cxx.
Referenced by spin_lok_loop().
|
static |
Definition at line 381 of file lokdocview.cxx.
References LOEvent::destroy(), getPrivate(), LOK_POST_COMMAND, LOEvent::m_bNotifyWhenFinished, LOEvent::m_pArguments, and LOEvent::m_pCommand.
Referenced by doSearch(), and lok_doc_view_post_command().
|
static |
Definition at line 2535 of file lokdocview.cxx.
References g_info, getPrivate(), LOK_LOAD_DOC, LOK_PAINT_TILE, LOK_POST_COMMAND, LOK_POST_KEY, LOK_POST_MOUSE_EVENT, LOK_SET_CLIENT_ZOOM, LOK_SET_EDIT, LOK_SET_GRAPHIC_SELECTION, LOK_SET_PART, LOK_SET_PARTMODE, LOEvent::m_nType, openDocumentInThread(), paintTileInThread(), postCommandInThread(), postKeyEventInThread(), postMouseEventInThread(), setClientZoomInThread(), setEditInThread(), setGraphicSelectionInThread(), setPartInThread(), and setPartmodeInThread().
Referenced by lok_doc_view_init().
|
static |
Definition at line 2584 of file lokdocview.cxx.
References updateClientZoom().
Referenced by lok_doc_view_init().
|
static |
Definition at line 2345 of file lokdocview.cxx.
References g_aLOKMutex, getPrivate(), globalCallbackWorker(), and postDocumentLoad().
Referenced by lokThreadFunc().
|
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().
|
static |
Finishes the paint tile operation and returns the result, if any.
Definition at line 1620 of file lokdocview.cxx.
Referenced by paintTileCallback().
|
static |
Definition at line 2451 of file lokdocview.cxx.
References g_aLOKMutex, g_info, getPrivate(), LOK_TILEBUFFER_CHANGED, LOK_TILEBUFFER_ERROR, LOK_TILEBUFFER_MEMORY, LOEvent::m_fPaintTileZoom, LOEvent::m_nPaintTileX, LOEvent::m_nPaintTileY, LOEvent::m_pTileBuffer, nTileSizePixels, and pixelToTwip().
Referenced by lokThreadFunc().
|
static |
Definition at line 993 of file lokdocview.cxx.
References getPrivate().
Referenced by callback(), and payloadToRectangles().
|
static |
Definition at line 1052 of file lokdocview.cxx.
References payloadToRectangle().
Referenced by callback().
|
static |
Definition at line 2435 of file lokdocview.cxx.
References g_aLOKMutex, g_info, getPrivate(), LOEvent::m_bNotifyWhenFinished, LOEvent::m_pArguments, and LOEvent::m_pCommand.
Referenced by lokThreadFunc().
|
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().
|
static |
Definition at line 597 of file lokdocview.cxx.
References g_aLOKMutex, g_info, getPrivate(), LOEvent::m_nCharCode, LOEvent::m_nKeyCode, LOEvent::m_nKeyEvent, and nTileSizePixels.
Referenced by lokThreadFunc().
|
static |
Definition at line 2318 of file lokdocview.cxx.
References g_aLOKMutex, g_info, getPrivate(), LOEvent::m_nPostMouseEventButton, LOEvent::m_nPostMouseEventCount, LOEvent::m_nPostMouseEventModifier, LOEvent::m_nPostMouseEventType, LOEvent::m_nPostMouseEventX, and LOEvent::m_nPostMouseEventY.
Referenced by lokThreadFunc().
|
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().
|
static |
Definition at line 874 of file lokdocview.cxx.
References getPrivate(), nTileSizePixels, and twipToPixel().
Referenced by callback(), and postDocumentLoad().
|
static |
Definition at line 1663 of file lokdocview.cxx.
References LOEvent::destroy(), Tile::getBuffer(), getPrivate(), LOK_PAINT_TILE, LOEvent::m_fPaintTileZoom, LOEvent::m_nPaintTileX, LOEvent::m_nPaintTileY, LOEvent::m_pTileBuffer, nTileSizePixels, paintTileCallback(), pixelToTwip(), and twipToPixel().
Referenced by lok_doc_view_draw().
|
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().
|
static |
Definition at line 1519 of file lokdocview.cxx.
References getPrivate(), and twipToPixel().
Referenced by renderOverlay().
|
static |
Definition at line 1788 of file lokdocview.cxx.
References CURSOR_HANDLE_DIR, getDarkColor(), getPrivate(), isEmptyRectangle(), renderGraphicHandle(), renderHandle(), and twipToPixel().
Referenced by lok_doc_view_draw().
|
static |
Definition at line 816 of file lokdocview.cxx.
Referenced by callback(), and globalCallback().
|
static |
Definition at line 791 of file lokdocview.cxx.
References doc_view_signals, and SEARCH_NOT_FOUND.
Referenced by callback().
|
static |
Definition at line 796 of file lokdocview.cxx.
References doc_view_signals, and SEARCH_RESULT_COUNT.
Referenced by callback().
|
static |
Definition at line 2301 of file lokdocview.cxx.
References g_aLOKMutex, getPrivate(), LOEvent::m_nTilePixelHeight, LOEvent::m_nTilePixelWidth, LOEvent::m_nTileTwipHeight, and LOEvent::m_nTileTwipWidth.
Referenced by lokThreadFunc().
|
static |
Definition at line 2411 of file lokdocview.cxx.
References doc_view_signals, EDIT_CHANGED, g_aLOKMutex, g_info, getPrivate(), LOEvent::m_bEdit, and queueDraw().
Referenced by lokThreadFunc().
|
static |
Definition at line 2280 of file lokdocview.cxx.
References g_aLOKMutex, g_info, getPrivate(), LOEvent::m_nSetGraphicSelectionType, LOEvent::m_nSetGraphicSelectionX, and LOEvent::m_nSetGraphicSelectionY.
Referenced by lokThreadFunc().
|
static |
Definition at line 829 of file lokdocview.cxx.
References doc_view_signals, getPrivate(), and PART_CHANGED.
Referenced by callback().
|
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().
|
static |
Definition at line 2397 of file lokdocview.cxx.
References g_aLOKMutex, getPrivate(), and LOEvent::m_nPartMode.
Referenced by lokThreadFunc().
|
static |
Definition at line 1069 of file lokdocview.cxx.
References getPrivate(), i, nTileSizePixels, and twipToPixel().
Referenced by callback().
|
static |
Definition at line 646 of file lokdocview.cxx.
References LOEvent::destroy(), FALSE, g_info, getPrivate(), KEY_MOD1, KEY_MOD2, KEY_SHIFT, LOK_POST_KEY, LOEvent::m_nCharCode, LOEvent::m_nKeyCode, and LOEvent::m_nKeyEvent.
Referenced by lok_doc_view_class_init().
|
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().
|
static |
Definition at line 2812 of file lokdocview.cxx.
References FALSE.
Referenced by lok_poll_callback().
|
static |
Definition at line 2848 of file lokdocview.cxx.
References LOEvent::destroy(), getPrivate(), LOK_SET_CLIENT_ZOOM, LOEvent::m_nTilePixelHeight, LOEvent::m_nTilePixelWidth, LOEvent::m_nTileTwipHeight, LOEvent::m_nTileTwipWidth, nTileSizePixels, and pixelToTwip().
Referenced by lok_doc_view_set_zoom(), and onStyleContextChanged().
|
static |
Definition at line 334 of file lokdocview.cxx.
Referenced by addressChanged(), callback(), commandChanged(), commandResult(), formulaChanged(), globalCallback(), hyperlinkClicked(), lok_doc_view_class_init(), searchNotFound(), searchResultCount(), setEditInThread(), and setPart().
Author string <-> View ID map.
Definition at line 872 of file lokdocview.cxx.
Referenced by getDarkColor(), and postDocumentLoad().
|
static |
This is expected to be locked during setView(), doSomethingElse() LOK calls.
Definition at line 48 of file lokdocview.cxx.
Referenced by lok_doc_view_destroy(), lok_doc_view_get_part(), lok_doc_view_get_part_name(), lok_doc_view_get_parts(), lok_doc_view_send_content_control_event(), lok_doc_view_signal_motion(), openDocumentInThread(), paintTileInThread(), postCommandInThread(), postDocumentLoad(), postKeyEventInThread(), postMouseEventInThread(), setClientZoomInThread(), setEditInThread(), setGraphicSelectionInThread(), setPartInThread(), and setPartmodeInThread().
|
static |
Definition at line 335 of file lokdocview.cxx.