|
LibreOffice Module android (master) 1
|
Provides the tiles and other document information. More...
Public Member Functions | |
| boolean | saveDocumentAs (String filePath, String format, boolean takeOwnership) |
| Save the current document under the given path. More... | |
| boolean | saveDocumentAs (String filePath, boolean takeOwnership) |
| Saves the current document under the given path, using the default file format. More... | |
| int | getPageWidth () |
| Returns the page width in pixels. More... | |
| int | getPageHeight () |
| Returns the page height in pixels. More... | |
| boolean | isReady () |
| CairoImage | createTile (float x, float y, IntSize tileSize, float zoom) |
| void | rerenderTile (CairoImage image, float x, float y, IntSize tileSize, float zoom) |
| Rerender and overwrite tile's image buffer directly. More... | |
| void | changePart (int partIndex) |
| Change the document part to the one specified by the partIndex input parameter. More... | |
| int | getCurrentPartNumber () |
| Get the current document part number. More... | |
| int | getPartsCount () |
| Get the total number of parts. More... | |
| Bitmap | thumbnail (int size) |
| void | close () |
| Closes the document. More... | |
| boolean | isDrawing () |
| Returns true if the current open document is a drawing. More... | |
| boolean | isTextDocument () |
| Returns true if the current open document is a text document. More... | |
| boolean | isSpreadsheet () |
| Returns true if the current open document is a spreadsheet. More... | |
| boolean | isPresentation () |
| Returns true if the current open document is a presentation. More... | |
| void | sendKeyEvent (KeyEvent keyEvent) |
| Trigger a key event. More... | |
| void | mouseButtonDown (PointF documentCoordinate, int numberOfClicks, float zoomFactor) |
| Trigger a mouse button down event. More... | |
| void | onSwipeLeft () |
| Trigger a swipe left event. More... | |
| void | onSwipeRight () |
| Trigger a swipe left event. More... | |
| void | mouseButtonUp (PointF documentCoordinate, int numberOfClicks, float zoomFactor) |
| Trigger a mouse button up event. More... | |
| void | postUnoCommand (String command, String arguments) |
| Post a UNO command to LOK. More... | |
| 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 finishes. More... | |
| void | setTextSelectionStart (PointF documentCoordinate) |
| Send text selection start coordinate. More... | |
| void | setTextSelectionEnd (PointF documentCoordinate) |
| Send text selection end coordinate. More... | |
| String | getTextSelection (String mimeType) |
| get selected text More... | |
| boolean | paste (String mimeType, String data) |
| copy More... | |
| void | setTextSelectionReset (PointF documentCoordinate) |
| Send text selection reset coordinate. More... | |
| void | setGraphicSelectionStart (PointF documentCoordinate) |
| Send a request to change start the change of graphic selection. More... | |
| void | setGraphicSelectionEnd (PointF documentCoordinate) |
| Send a request to change end the change of graphic selection... More... | |
| void | setDocumentSize (int pageWidth, int pageHeight) |
| Set the new page size of the document when changed. More... | |
Provides the tiles and other document information.
Definition at line 22 of file TileProvider.java.
| void org.libreoffice.TileProvider.changePart | ( | int | partIndex | ) |
Change the document part to the one specified by the partIndex input parameter.
| partIndex | - part index to change to |
| void org.libreoffice.TileProvider.close | ( | ) |
Closes the document.
| CairoImage org.libreoffice.TileProvider.createTile | ( | float | x, |
| float | y, | ||
| IntSize | tileSize, | ||
| float | zoom | ||
| ) |
| int org.libreoffice.TileProvider.getCurrentPartNumber | ( | ) |
Get the current document part number.
| int org.libreoffice.TileProvider.getPageHeight | ( | ) |
Returns the page height in pixels.
| int org.libreoffice.TileProvider.getPageWidth | ( | ) |
Returns the page width in pixels.
| int org.libreoffice.TileProvider.getPartsCount | ( | ) |
Get the total number of parts.
| String org.libreoffice.TileProvider.getTextSelection | ( | String | mimeType | ) |
| boolean org.libreoffice.TileProvider.isDrawing | ( | ) |
Returns true if the current open document is a drawing.
| boolean org.libreoffice.TileProvider.isPresentation | ( | ) |
Returns true if the current open document is a presentation.
| boolean org.libreoffice.TileProvider.isReady | ( | ) |
| boolean org.libreoffice.TileProvider.isSpreadsheet | ( | ) |
Returns true if the current open document is a spreadsheet.
| boolean org.libreoffice.TileProvider.isTextDocument | ( | ) |
Returns true if the current open document is a text document.
| void org.libreoffice.TileProvider.mouseButtonDown | ( | PointF | documentCoordinate, |
| int | numberOfClicks, | ||
| float | zoomFactor | ||
| ) |
Trigger a mouse button down event.
| documentCoordinate | - coordinate relative to the document where the mouse button should be triggered |
| numberOfClicks | - number of clicks (1 - single click, 2 - double click) |
| void org.libreoffice.TileProvider.mouseButtonUp | ( | PointF | documentCoordinate, |
| int | numberOfClicks, | ||
| float | zoomFactor | ||
| ) |
Trigger a mouse button up event.
| documentCoordinate | - coordinate relative to the document where the mouse button should be triggered |
| numberOfClicks | - number of clicks (1 - single click, 2 - double click) |
| void org.libreoffice.TileProvider.onSwipeLeft | ( | ) |
Trigger a swipe left event.
| void org.libreoffice.TileProvider.onSwipeRight | ( | ) |
Trigger a swipe left event.
| boolean org.libreoffice.TileProvider.paste | ( | String | mimeType, |
| String | data | ||
| ) |
copy
| mimeType | |
| data |
| void org.libreoffice.TileProvider.postUnoCommand | ( | String | command, |
| String | arguments | ||
| ) |
Post a UNO command to LOK.
| command | - the .uno: command, like ".uno:Bold" |
| void org.libreoffice.TileProvider.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 finishes.
| command | |
| arguments | |
| notifyWhenFinished |
| void org.libreoffice.TileProvider.rerenderTile | ( | CairoImage | image, |
| float | x, | ||
| float | y, | ||
| IntSize | tileSize, | ||
| float | zoom | ||
| ) |
Rerender and overwrite tile's image buffer directly.
| boolean org.libreoffice.TileProvider.saveDocumentAs | ( | String | filePath, |
| boolean | takeOwnership | ||
| ) |
Saves the current document under the given path, using the default file format.
| takeOwnership | (s. documentation for 'saveDocumentAs(String filePath, String format, boolean takeOwnership)') |
| boolean org.libreoffice.TileProvider.saveDocumentAs | ( | String | filePath, |
| String | format, | ||
| boolean | takeOwnership | ||
| ) |
Save the current document under the given path.
| takeOwnership | Whether to take ownership of the new file, i.e. whether the current document is changed to the newly saved document (takeOwnership = true), as compared to just saving a copy of the current document or exporting to a different file format. Must be 'false' when using this method for export to e.g. PNG or PDF. |
| void org.libreoffice.TileProvider.sendKeyEvent | ( | KeyEvent | keyEvent | ) |
Trigger a key event.
| keyEvent | - contains information about key event |
Set the new page size of the document when changed.
| void org.libreoffice.TileProvider.setGraphicSelectionEnd | ( | PointF | documentCoordinate | ) |
Send a request to change end the change of graphic selection...
| void org.libreoffice.TileProvider.setGraphicSelectionStart | ( | PointF | documentCoordinate | ) |
Send a request to change start the change of graphic selection.
| void org.libreoffice.TileProvider.setTextSelectionEnd | ( | PointF | documentCoordinate | ) |
Send text selection end coordinate.
| documentCoordinate |
| void org.libreoffice.TileProvider.setTextSelectionReset | ( | PointF | documentCoordinate | ) |
Send text selection reset coordinate.
| documentCoordinate |
| void org.libreoffice.TileProvider.setTextSelectionStart | ( | PointF | documentCoordinate | ) |
Send text selection start coordinate.
| documentCoordinate |