9package org.libreoffice;
12import android.graphics.Bitmap;
13import android.graphics.PointF;
14import android.view.KeyEvent;
34 boolean saveDocumentAs(String filePath, String format,
boolean takeOwnership);
122 void mouseButtonDown(PointF documentCoordinate,
int numberOfClicks,
float zoomFactor);
141 void mouseButtonUp(PointF documentCoordinate,
int numberOfClicks,
float zoomFactor);
156 void postUnoCommand(String command, String arguments,
boolean notifyWhenFinished);
182 boolean paste(String mimeType, String data);
Provides the tiles and other document information.
void mouseButtonDown(PointF documentCoordinate, int numberOfClicks, float zoomFactor)
Trigger a mouse button down event.
boolean isTextDocument()
Returns true if the current open document is a text document.
void mouseButtonUp(PointF documentCoordinate, int numberOfClicks, float zoomFactor)
Trigger a mouse button up event.
String getTextSelection(String mimeType)
get selected text
CairoImage createTile(float x, float y, IntSize tileSize, float zoom)
boolean isPresentation()
Returns true if the current open document is a presentation.
void changePart(int partIndex)
Change the document part to the one specified by the partIndex input parameter.
boolean paste(String mimeType, String data)
copy
void setGraphicSelectionStart(PointF documentCoordinate)
Send a request to change start the change of graphic selection.
int getPageHeight()
Returns the page height in pixels.
int getCurrentPartNumber()
Get the current document part number.
void postUnoCommand(String command, String arguments)
Post a UNO command to LOK.
void close()
Closes the document.
void onSwipeLeft()
Trigger a swipe left event.
void rerenderTile(CairoImage image, float x, float y, IntSize tileSize, float zoom)
Rerender and overwrite tile's image buffer directly.
void postUnoCommand(String command, String arguments, boolean notifyWhenFinished)
This is the actual reference to the function in LOK, used for getting notified when uno:save event fi...
void sendKeyEvent(KeyEvent keyEvent)
Trigger a key event.
int getPageWidth()
Returns the page width in pixels.
void setTextSelectionEnd(PointF documentCoordinate)
Send text selection end coordinate.
boolean saveDocumentAs(String filePath, boolean takeOwnership)
Saves the current document under the given path, using the default file format.
boolean saveDocumentAs(String filePath, String format, boolean takeOwnership)
Save the current document under the given path.
void onSwipeRight()
Trigger a swipe left event.
int getPartsCount()
Get the total number of parts.
Bitmap thumbnail(int size)
boolean isSpreadsheet()
Returns true if the current open document is a spreadsheet.
void setTextSelectionStart(PointF documentCoordinate)
Send text selection start coordinate.
void setDocumentSize(int pageWidth, int pageHeight)
Set the new page size of the document when changed.
void setTextSelectionReset(PointF documentCoordinate)
Send text selection reset coordinate.
void setGraphicSelectionEnd(PointF documentCoordinate)
Send a request to change end the change of graphic selection...
boolean isDrawing()
Returns true if the current open document is a drawing.