LibreOffice Module android (master) 1
Static Public Member Functions | List of all members
org.libreoffice.LOKitShell Class Reference

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...
 

Detailed Description

Common static LOKit functions, functions to send events.

Definition at line 26 of file LOKitShell.java.

Member Function Documentation

◆ getDpi()

static float org.libreoffice.LOKitShell.getDpi ( Context  context)
inlinestatic

◆ getMainHandler()

static Handler org.libreoffice.LOKitShell.getMainHandler ( )
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().

◆ getMemoryClass()

static int org.libreoffice.LOKitShell.getMemoryClass ( Context  context)
inlinestatic

Definition at line 58 of file LOKitShell.java.

◆ hideProgressSpinner()

static void org.libreoffice.LOKitShell.hideProgressSpinner ( final LibreOfficeMainActivity  context)
inlinestatic

◆ isEditingEnabled()

static boolean org.libreoffice.LOKitShell.isEditingEnabled ( )
inlinestatic

◆ moveViewportTo()

static void org.libreoffice.LOKitShell.moveViewportTo ( final LibreOfficeMainActivity  context,
final PointF  position,
final Float  zoom 
)
inlinestatic

◆ sendChangeHandlePositionEvent()

static void org.libreoffice.LOKitShell.sendChangeHandlePositionEvent ( SelectionHandle.HandleType  handleType,
PointF  documentCoordinate 
)
inlinestatic

◆ sendChangePartEvent()

static void org.libreoffice.LOKitShell.sendChangePartEvent ( int  part)
inlinestatic

◆ sendCloseEvent()

static void org.libreoffice.LOKitShell.sendCloseEvent ( )
inlinestatic

◆ sendEvent()

static void org.libreoffice.LOKitShell.sendEvent ( LOEvent  event)
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().

◆ sendKeyEvent()

static void org.libreoffice.LOKitShell.sendKeyEvent ( KeyEvent  event)
inlinestatic

◆ sendLoadEvent()

static void org.libreoffice.LOKitShell.sendLoadEvent ( String  inputFilePath)
inlinestatic

◆ sendNavigationClickEvent()

static void org.libreoffice.LOKitShell.sendNavigationClickEvent ( )
inlinestatic

◆ sendNewDocumentLoadEvent()

static void org.libreoffice.LOKitShell.sendNewDocumentLoadEvent ( String  newDocumentPath,
String  newDocumentType 
)
inlinestatic

◆ sendSaveAsEvent()

static void org.libreoffice.LOKitShell.sendSaveAsEvent ( String  filePath,
String  fileFormat 
)
inlinestatic

◆ sendSaveCopyAsEvent()

static void org.libreoffice.LOKitShell.sendSaveCopyAsEvent ( String  filePath,
String  fileFormat 
)
inlinestatic

◆ sendSizeChangedEvent()

static void org.libreoffice.LOKitShell.sendSizeChangedEvent ( int  width,
int  height 
)
inlinestatic

◆ sendSwipeLeftEvent()

static void org.libreoffice.LOKitShell.sendSwipeLeftEvent ( )
inlinestatic

◆ sendSwipeRightEvent()

static void org.libreoffice.LOKitShell.sendSwipeRightEvent ( )
inlinestatic

◆ sendThumbnailEvent()

static void org.libreoffice.LOKitShell.sendThumbnailEvent ( ThumbnailCreator.ThumbnailCreationTask  task)
inlinestatic

◆ sendTileInvalidationRequest()

static void org.libreoffice.LOKitShell.sendTileInvalidationRequest ( RectF  rect)
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().

◆ sendTileReevaluationRequest()

static void org.libreoffice.LOKitShell.sendTileReevaluationRequest ( ComposedTileLayer  composedTileLayer)
inlinestatic

◆ sendTouchEvent()

static void org.libreoffice.LOKitShell.sendTouchEvent ( String  touchType,
PointF  documentTouchCoordinate 
)
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().

◆ showProgressSpinner()

static void org.libreoffice.LOKitShell.showProgressSpinner ( final LibreOfficeMainActivity  context)
inlinestatic

The documentation for this class was generated from the following file: