LibreOffice Module android (master) 1
|
Common static LOKit functions, functions to send events. More...
Static Public Member Functions | |
static float | getDpi (Context context) |
static Handler | getMainHandler () |
static void | showProgressSpinner (final LibreOfficeMainActivity context) |
static void | hideProgressSpinner (final LibreOfficeMainActivity context) |
static int | getMemoryClass (Context context) |
static boolean | isEditingEnabled () |
static void | sendEvent (LOEvent event) |
Make sure LOKitThread is running and send event to it. More... | |
static void | sendThumbnailEvent (ThumbnailCreator.ThumbnailCreationTask task) |
static void | sendTouchEvent (String touchType, PointF documentTouchCoordinate) |
Send touch event to LOKitThread. More... | |
static void | sendKeyEvent (KeyEvent event) |
Send key event to LOKitThread. More... | |
static void | sendSizeChangedEvent (int width, int height) |
static void | sendSwipeRightEvent () |
static void | sendSwipeLeftEvent () |
static void | sendChangePartEvent (int part) |
static void | sendLoadEvent (String inputFilePath) |
static void | sendNewDocumentLoadEvent (String newDocumentPath, String newDocumentType) |
static void | sendSaveAsEvent (String filePath, String fileFormat) |
static void | sendSaveCopyAsEvent (String filePath, String fileFormat) |
static void | sendCloseEvent () |
static void | sendTileReevaluationRequest (ComposedTileLayer composedTileLayer) |
Send tile reevaluation to LOKitThread. More... | |
static void | sendTileInvalidationRequest (RectF rect) |
Send tile invalidation to LOKitThread. More... | |
static void | sendChangeHandlePositionEvent (SelectionHandle.HandleType handleType, PointF documentCoordinate) |
Send change handle position event to LOKitThread. More... | |
static void | sendNavigationClickEvent () |
static void | moveViewportTo (final LibreOfficeMainActivity context, final PointF position, final Float zoom) |
Move the viewport to the desired point (top-left), and change the zoom level. More... | |
Common static LOKit functions, functions to send events.
Definition at line 26 of file LOKitShell.java.
|
inlinestatic |
Definition at line 27 of file LOKitShell.java.
Referenced by org.libreoffice.InvalidationHandler.convertPayloadToRectangle(), org.libreoffice.canvas.AdjustLengthLine.dragEnd(), and org.libreoffice.SearchController.search().
|
inlinestatic |
Definition at line 36 of file LOKitShell.java.
References org.libreoffice.LibreOfficeApplication.getMainHandler().
Referenced by org.libreoffice.InvalidationHandler.cellAddress(), org.libreoffice.InvalidationHandler.cellFormula(), org.libreoffice.FontController.changeFontBackColorBoxColor(), org.libreoffice.FontController.changeFontColorBoxColor(), org.libreoffice.overlay.DocumentOverlay.changeGraphicSelection(), org.libreoffice.overlay.DocumentOverlay.changeSelections(), org.libreoffice.LibreOfficeMainActivity.disableNavigationDrawer(), org.libreoffice.overlay.DocumentOverlay.DocumentOverlayLayer.draw(), org.libreoffice.ToolbarController.enableMenuItem(), org.libreoffice.LibreOfficeMainActivity.exportToPDF(), org.libreoffice.LibreOfficeMainActivity.hideBottomToolbar(), org.libreoffice.overlay.DocumentOverlay.hideCursor(), org.libreoffice.LibreOfficeMainActivity.hideFormattingToolbar(), org.libreoffice.overlay.DocumentOverlay.hideGraphicSelection(), org.libreoffice.overlay.DocumentOverlay.hideHandle(), org.libreoffice.ToolbarController.hideItem(), org.libreoffice.overlay.DocumentOverlay.hidePageNumberRect(), org.libreoffice.LOKitShell.hideProgressSpinner(), org.libreoffice.LibreOfficeMainActivity.hideSearchToolbar(), org.libreoffice.overlay.DocumentOverlay.hideSelections(), org.libreoffice.LibreOfficeMainActivity.hideSoftKeyboard(), org.libreoffice.LibreOfficeMainActivity.hideUNOCommandsToolbar(), org.libreoffice.overlay.CalcHeadersView.initialize(), org.libreoffice.LibreOfficeMainActivity.initializeCalcHeaders(), org.libreoffice.overlay.DocumentOverlay.positionCursor(), org.libreoffice.overlay.DocumentOverlay.positionHandle(), org.libreoffice.FontController.selectFont(), org.libreoffice.FontController.selectFontSize(), org.libreoffice.FontController.setupFontViews(), org.libreoffice.overlay.DocumentOverlay.showAdjustLengthLine(), org.libreoffice.LibreOfficeMainActivity.showBottomToolbar(), org.libreoffice.overlay.DocumentOverlay.showCellSelection(), org.libreoffice.overlay.DocumentOverlay.showCursor(), org.libreoffice.LibreOfficeMainActivity.showFormattingToolbar(), org.libreoffice.overlay.DocumentOverlay.showGraphicSelection(), org.libreoffice.overlay.DocumentOverlay.showHandle(), org.libreoffice.overlay.CalcHeadersController.showHeaders(), org.libreoffice.overlay.DocumentOverlay.showHeaderSelection(), org.libreoffice.ToolbarController.showItem(), org.libreoffice.overlay.DocumentOverlay.showPageNumberRect(), org.libreoffice.LOKitShell.showProgressSpinner(), org.libreoffice.LibreOfficeMainActivity.showSearchToolbar(), org.libreoffice.overlay.DocumentOverlay.showSelections(), org.libreoffice.LibreOfficeMainActivity.showSoftKeyboard(), org.libreoffice.LibreOfficeMainActivity.showSoftKeyboardOrFormattingToolbar(), org.libreoffice.LibreOfficeMainActivity.showUNOCommandsToolbar(), org.libreoffice.InvalidationHandler.unoCommandResult(), org.libreoffice.ColorPaletteAdapter.updateAdapter(), and org.libreoffice.ColorPickerAdapter.updateAdapter().
|
inlinestatic |
Definition at line 58 of file LOKitShell.java.
|
inlinestatic |
Definition at line 49 of file LOKitShell.java.
References org.libreoffice.LOKitShell.getMainHandler(), org.libreoffice.LibreOfficeMainActivity.hideProgressSpinner(), and run().
|
inlinestatic |
Definition at line 63 of file LOKitShell.java.
References org.libreoffice.LibreOfficeMainActivity.isReadOnlyMode().
Referenced by org.libreoffice.InvalidationHandler.messageRetrieved().
|
inlinestatic |
Move the viewport to the desired point (top-left), and change the zoom level.
Ensure this runs on the UI thread.
Definition at line 159 of file LOKitShell.java.
References org.libreoffice.LibreOfficeMainActivity.getLayerClient(), org.mozilla.gecko.gfx.GeckoLayerClient.moveTo(), position(), org.mozilla.gecko.gfx.GeckoLayerClient.post(), and run().
Referenced by org.libreoffice.InvalidationHandler.moveViewportToMakeCursorVisible(), and org.libreoffice.InvalidationHandler.moveViewportToMakeSelectionVisible().
|
inlinestatic |
Send change handle position event to LOKitThread.
Definition at line 147 of file LOKitShell.java.
References org.libreoffice.LOEvent.CHANGE_HANDLE_POSITION, and org.libreoffice.LOKitShell.sendEvent().
Referenced by org.libreoffice.canvas.CalcSelectionBox.signalHandleMove(), and org.libreoffice.canvas.SelectionHandle.signalHandleMove().
|
inlinestatic |
Definition at line 106 of file LOKitShell.java.
References org.libreoffice.LOEvent.CHANGE_PART, and org.libreoffice.LOKitShell.sendEvent().
Referenced by org.libreoffice.LibreOfficeMainActivity.DocumentPartClickListener.onItemClick().
|
inlinestatic |
Definition at line 126 of file LOKitShell.java.
References org.libreoffice.LOEvent.CLOSE, and org.libreoffice.LOKitShell.sendEvent().
Referenced by org.libreoffice.LibreOfficeMainActivity.onDestroy().
|
inlinestatic |
Make sure LOKitThread is running and send event to it.
Definition at line 72 of file LOKitShell.java.
References org.libreoffice.LibreOfficeMainActivity.loKitThread.
Referenced by org.libreoffice.overlay.CalcHeadersController.CalcHeadersController(), org.libreoffice.canvas.AdjustLengthLine.dragEnd(), org.libreoffice.overlay.CalcHeadersView.highlightRowOrColumn(), org.libreoffice.InvalidationHandler.invalidateHeader(), org.libreoffice.overlay.CalcHeadersView.HeaderGestureListener.onDoubleTap(), org.libreoffice.ToolbarController.onMenuItemClick(), org.mozilla.gecko.gfx.LayerView.onSizeChanged(), org.libreoffice.LibreOfficeMainActivity.onStart(), org.libreoffice.InvalidationHandler.pageSizeChanged(), org.libreoffice.LibreOfficeMainActivity.saveDocument(), org.libreoffice.SearchController.search(), org.libreoffice.LOKitShell.sendChangeHandlePositionEvent(), org.libreoffice.LOKitShell.sendChangePartEvent(), org.libreoffice.LOKitShell.sendCloseEvent(), org.libreoffice.FontController.sendFontBackColorChange(), org.libreoffice.FontController.sendFontChange(), org.libreoffice.FontController.sendFontColorChange(), org.libreoffice.FontController.sendFontSizeChange(), org.libreoffice.LOKitShell.sendKeyEvent(), org.libreoffice.LOKitShell.sendLoadEvent(), org.libreoffice.LOKitShell.sendNavigationClickEvent(), org.libreoffice.LOKitShell.sendNewDocumentLoadEvent(), org.libreoffice.overlay.CalcHeadersView.sendOptimalLengthRequest(), org.libreoffice.LOKitShell.sendSaveAsEvent(), org.libreoffice.LOKitShell.sendSaveCopyAsEvent(), org.libreoffice.LOKitShell.sendSizeChangedEvent(), org.libreoffice.LOKitShell.sendSwipeLeftEvent(), org.libreoffice.LOKitShell.sendSwipeRightEvent(), org.libreoffice.LOKitShell.sendThumbnailEvent(), org.libreoffice.LOKitShell.sendTileInvalidationRequest(), org.libreoffice.LOKitShell.sendTileReevaluationRequest(), org.libreoffice.LOKitShell.sendTouchEvent(), and org.libreoffice.InvalidationHandler.stateChanged().
|
inlinestatic |
Send key event to LOKitThread.
Definition at line 90 of file LOKitShell.java.
References org.libreoffice.LOEvent.KEY_EVENT, and org.libreoffice.LOKitShell.sendEvent().
Referenced by org.libreoffice.LOKitInputConnectionHandler.onKeyDown(), org.libreoffice.LOKitInputConnectionHandler.onKeyMultiple(), org.libreoffice.LOKitInputConnectionHandler.onKeyUp(), and org.libreoffice.ToolbarController.onMenuItemClick().
|
inlinestatic |
Definition at line 110 of file LOKitShell.java.
References org.libreoffice.LOEvent.LOAD, and org.libreoffice.LOKitShell.sendEvent().
|
inlinestatic |
Definition at line 151 of file LOKitShell.java.
References org.libreoffice.LOEvent.NAVIGATION_CLICK, and org.libreoffice.LOKitShell.sendEvent().
|
inlinestatic |
Definition at line 114 of file LOKitShell.java.
References org.libreoffice.LOEvent.LOAD_NEW, and org.libreoffice.LOKitShell.sendEvent().
Referenced by org.libreoffice.LibreOfficeMainActivity.loadNewDocument().
|
inlinestatic |
Definition at line 118 of file LOKitShell.java.
References filePath, org.libreoffice.LOEvent.SAVE_AS, and org.libreoffice.LOKitShell.sendEvent().
|
inlinestatic |
Definition at line 122 of file LOKitShell.java.
References filePath, org.libreoffice.LOEvent.SAVE_COPY_AS, and org.libreoffice.LOKitShell.sendEvent().
Referenced by org.libreoffice.LibreOfficeMainActivity.preparePresentation().
Definition at line 94 of file LOKitShell.java.
References org.libreoffice.LOKitShell.sendEvent(), and org.libreoffice.LOEvent.SIZE_CHANGED.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.sendResizeEventIfNecessary().
|
inlinestatic |
Definition at line 102 of file LOKitShell.java.
References org.libreoffice.LOKitShell.sendEvent(), and org.libreoffice.LOEvent.SWIPE_LEFT.
Referenced by org.mozilla.gecko.OnSlideSwipeListener.onSwipeLeft().
|
inlinestatic |
Definition at line 98 of file LOKitShell.java.
References org.libreoffice.LOKitShell.sendEvent(), and org.libreoffice.LOEvent.SWIPE_RIGHT.
Referenced by org.mozilla.gecko.OnSlideSwipeListener.onSwipeRight().
|
inlinestatic |
Definition at line 76 of file LOKitShell.java.
References org.libreoffice.LOKitShell.sendEvent(), and org.libreoffice.LOEvent.THUMBNAIL.
Referenced by org.libreoffice.ThumbnailCreator.createThumbnail().
|
inlinestatic |
Send tile invalidation to LOKitThread.
Definition at line 140 of file LOKitShell.java.
References org.libreoffice.LOKitShell.sendEvent(), and org.libreoffice.LOEvent.TILE_INVALIDATION.
Referenced by org.libreoffice.InvalidationHandler.invalidateTiles().
|
inlinestatic |
Send tile reevaluation to LOKitThread.
Definition at line 133 of file LOKitShell.java.
References org.libreoffice.LOKitShell.sendEvent(), and org.libreoffice.LOEvent.TILE_REEVALUATION_REQUEST.
Referenced by org.mozilla.gecko.gfx.ComposedTileLayer.reevaluateTiles().
|
inlinestatic |
Send touch event to LOKitThread.
Definition at line 83 of file LOKitShell.java.
References org.libreoffice.LOKitShell.sendEvent(), and org.libreoffice.LOEvent.TOUCH.
Referenced by org.libreoffice.canvas.GraphicSelection.sendGraphicSelection().
|
inlinestatic |
Definition at line 40 of file LOKitShell.java.
References org.libreoffice.LOKitShell.getMainHandler(), run(), and org.libreoffice.LibreOfficeMainActivity.showProgressSpinner().