Commit Graph

1522 Commits

Author SHA1 Message Date
Tomaž Vajngerl
1e4f6eeba4 android: show soft keyboard on single touch event
Change-Id: I9612b0d5258bbdef81903b3a67307fe54319e9c1
2015-01-16 13:18:31 +01:00
Tomaž Vajngerl
cb85026c12 android: send touch events in JavaPanZoomController
Change-Id: Icc0c749a0c8687f247c4e42d74b5c839d5723503
2015-01-16 13:18:30 +01:00
Tomaž Vajngerl
ef73f53c85 android: show software keyboard on main view in main thread
Change-Id: I2df86c2837fc6469384df5626a2d54856e96f8e7
2015-01-16 13:18:30 +01:00
Tomaž Vajngerl
a3efafeda5 android: add support for touch event to LOEvent
Change-Id: Ie4b3e48d3f06545ebfd8638cdb8e4664ad85f493
2015-01-16 13:18:30 +01:00
Tomaž Vajngerl
da39c5fd71 android: fennec import - double tap zoom in JavaPanZoomController
Change-Id: I0fedb5bb353e4d6f9926a8c0f0b80a81b7257d0e
2015-01-16 13:18:30 +01:00
Tomaž Vajngerl
0f291b37ca android: remove CheckerboardImage class as it is not needed
Change-Id: I937eac9e613695490c8617aac85575f5e6fe290b
2015-01-16 13:18:30 +01:00
Tomaž Vajngerl
f260218636 android: Inflate viewport even more to render more tiles offscreen
Change-Id: I6a1f8bb8fd04e40ecd60eec87043e507ca6350e7
2015-01-16 13:18:29 +01:00
Miklos Vajna
9624077144 android: avoid setMessageCallback() for now
This has to be only called when the user taps, not before. Don't do it
at all till we figure out how to detect a tap.

Change-Id: I184442d3f06fcbf56f0789bb85693dd7273daf28
2015-01-16 13:18:28 +01:00
Miklos Vajna
f1a2759c29 android: if we don't have a document, then that can't be text
Change-Id: I2b9e37aec2705ab723c11a0d1eb795aa5a63105e
2015-01-16 13:18:28 +01:00
Tomaž Vajngerl
5291c6372d android: add method to force showing of soft keyboard
Change-Id: Iadf2ed580b75b2b1fcb0067617a2d79ca707d54a
2015-01-16 13:18:27 +01:00
Tomaž Vajngerl
6dabfea740 android: remove unneeded comment & clean whitespace
Change-Id: I55514bf47683bb0e7823892a3afd3dd23dc13e2f
2015-01-16 13:18:27 +01:00
Tomaž Vajngerl
1b75735c5f android: remove logging null in DirectBufferAllocator
Change-Id: Iad6b90782f4f750eeab420653ed6701fbba9a777
2015-01-16 13:18:27 +01:00
Tomaž Vajngerl
08d711171b android: comments for new interfaces and methods
Change-Id: I742e232b3a9994f82423bc4bdfa1a5b656f8af87
2015-01-16 13:18:26 +01:00
Miklos Vajna
4f1eef278c android: show version / buildid in about dialog
Note that getPackageName() also throws NameNotFoundException, so in the
unlikely situations in case:

- package info (class containing the package version) is not found or
- the package version is not in an "a/b" form

We still just don't show anything.

Also, mark the new TextView as android:textIsSelectable, so it's
possible to copy&paste the version for bugreport purposes.

Change-Id: I63b53cca4126da17bfbda0293d7c98e8524ef41a
2015-01-12 11:06:46 +01:00
Tomaž Vajngerl
723b6a07e4 jni: add postKeyEvent to Office and redirect the call to LOK
Change-Id: I922ce1f735df236d2bdad33820ed98f18fc85963
2015-01-12 11:06:46 +01:00
Tomaž Vajngerl
9f77740d8b android: force screen to render - add access to LayerClient
Change-Id: Ia65eebd153251985fe736e8f278d46b22a06ec83
2015-01-12 11:06:45 +01:00
Tomaž Vajngerl
0ecf41b4b1 android: remove checkerboard color property - fix set to white
Change-Id: I7a11b0eea71e96f8bd2b307539f1964acb240216
2015-01-12 11:06:45 +01:00
Tomaž Vajngerl
e9c6949435 android: reuse rerenderTile in createTile
Change-Id: Ibafdcf5dd54804b4c50dd51d9a5a89dc7088052d
2015-01-12 11:06:44 +01:00
Tomaž Vajngerl
8da64996c9 android: bypass Bitmap creation and copying when creating tiles
Copying tile buffer just because we can is not really a good idea
when just using the buffer in CairoImage works perfectly well. This
should speed things up a bit but probably won't be noticable.

Change-Id: I8d191d3e3870b20b15db56841ed72da22546aefc
2015-01-12 11:06:44 +01:00
Tomaž Vajngerl
2cd20fa87b android: support to rerender tile buffer directly
Add new event TILE_RERENDER to the LOEvent and handle rerender
so that the tile's image buffer is rerendered and the tile
invalidated (instead of creating a new tile and deleting the old
one).

Change-Id: Id0fec307cb82c44a8584425dc7f877f39955844b
2015-01-12 11:06:44 +01:00
Tomaž Vajngerl
2755cc0f4a android: allow TileLayer to expose the image
Change-Id: Id8968f4c71ca71d089e74314977cd406050dbd0f
2015-01-12 11:06:43 +01:00
Tomaž Vajngerl
b6a12074bc android: Fix what invalidate rect numbers should mean
Assumption was that the invalidate rectangle numbers from LOK
mean (left, top, right, bottom) but they mean (width, height, x, y)
so we need to adapt to that for now.

Change-Id: Icc9c2c8aef63a8e292ff299969f2cbaf45ad0eab
2015-01-12 11:06:43 +01:00
Tomaž Vajngerl
b214b0bd52 android: Add inverseScale to RectUtils
Change-Id: Id0e9a02614d3d6a23a8111622ae9ea49bef26f7d
2015-01-12 11:06:43 +01:00
Tomaž Vajngerl
57ffd85cbd android: react to tile invalidation request and invalidate tiles
Implement tile invalidation request in LOKitThread and pass the
request to ComposedTileLayer where it handles the invalidation
request by searching for the tiles that need to be invalidated
(intersect the invlidation rectangle).

Change-Id: I84e752486ff79e98cac1e74c6463b6748660cbed
2015-01-12 11:06:42 +01:00
Tomaž Vajngerl
156411e1aa android: Support force redraw in "tile request" event
Change-Id: I554200f67a529e2b2c352e956372811f35f8238c
2015-01-12 11:06:42 +01:00
Tomaž Vajngerl
616a0ac18f android: add toString to TileIdentifier
Change-Id: Id5bfa1652a8b33757d4604e0fcf89766b50c4344
2015-01-12 11:06:42 +01:00
Tomaž Vajngerl
a04e325587 android: Process messages in TileProvider + invalidation interface
Process the LOK messages in TileProvider and add an interface to
register and communicate invalidation requests.

Change-Id: I798dc5591dbc60ee6b055a95464cd3406ecd8b0d
2015-01-12 11:06:42 +01:00
Tomaž Vajngerl
e905d3b3e9 android: interface for processing of LOK messages
Added a message callback interface to Document where the provided
implementation processes the messages from LOK (for now
only the regions that were invalidated)

Change-Id: Ic7fcb0250f87f6c4c28925bf809c4cf3f353d2bb
2015-01-12 11:06:41 +01:00
Tomaž Vajngerl
3b77cd3bbd android: Add support for callbacks from LO to JNI and Java LOK
This adds support to retrieve callbacks from LibreOffice (like
for example that a part of document has been invalidated) to
LibreOfficeKit JNI and Java wrappers.

Change-Id: Ib70187194d002c72b64d58032aab216adc591565
2015-01-12 11:06:40 +01:00
Jacobo Aragunde Pérez
04df164860 Android: add share feature in the context menu
Known issues: the mimetype returned for .odp files is null and share
does not work on these files.

Change-Id: I61e752763a6934657c30fff3cefc57ac0144ec71
2015-01-09 10:51:24 +00:00
Jacobo Aragunde Pérez
60dd2161bb Android: add context menu in document browser
Change-Id: I234f7ddb99570498f86449cf61ceb72696995b0d
2015-01-09 10:51:24 +00:00
Tomaž Vajngerl
2005e34177 android: set single page mode in writer when init for tiled render
Change-Id: Id01b373fe7ec6620ca036b1ee7bc5debf64a92b4
2015-01-07 00:02:47 +09:00
Tomaž Vajngerl
6123d6a9fb android: Add initializeForRendering to LOK
Change-Id: Ibf4721bf4358ef215efde09ef688b2551604bfa2
2015-01-07 00:02:47 +09:00
Tomaž Vajngerl
f69f3bfd9d android: Tweak initial zoom of documents in different situations
- In case of Writer document always show document by full width.
- Otherwise show the whole document on the screen even when the
 orientation is portrait or landscape.

Change-Id: Ia6704432c850a5487aee1693ed12e039ae6ef0cb
2014-12-25 18:13:12 +09:00
Tomaž Vajngerl
6d6da4c94b android: Put document into center when it's smaller than viewport
Change-Id: I0d0cd421e366bf34b71d9d82dd21476ecfa90b18
2014-12-25 18:13:11 +09:00
Tomaž Vajngerl
c6fd07e0e4 fdo#85849 on-demand create thumbnails of tiles in the sidebar
Change-Id: I0bef7bff0553c24b9d699845e70fbb128301a0fe
2014-12-22 21:21:19 +09:00
Tomaž Vajngerl
6f5eb643ea fdo#87098 invalidate zoom change by triggering animatedZoomTo
Change-Id: Ie5734d8999a214a1df544579a7bfb32cc9f035eb
2014-12-22 17:09:26 +09:00
Tomaž Vajngerl
3860bff101 android: never use TextureView for now (for performance reasons)
Get align with latest Fennec code which also has this disabled.

Change-Id: Ie4c27935bacd29218207e47593f073bdce0cf7e3
2014-12-19 17:52:59 +09:00
Tomaž Vajngerl
96a498b44c android: remove screenshot layer
Change-Id: Ic2f0344bab4280fd3c55923707d100f87585199a
2014-12-19 17:52:59 +09:00
Miklos Vajna
0897aae2c7 android doc browser: hide Calc filter, add Draw filter
Hide Calc filter, as ATM Calc documents are not supported. Draw filter
was just missing, add it.

Change-Id: I88b9e48319e584f1c86de1b970badcdd695f30ed
2014-12-19 09:40:18 +01:00
Tomaž Vajngerl
bcb4f01de2 android: support building with SDK tools 24
Change-Id: I424e81b849d7e0ec5c61eddcc70279e3559885d1
2014-12-18 18:52:19 +09:00
Miklos Vajna
3b490bda1e android doc browser: sync file type list with the intent filter
Change-Id: I81746860198864bb5917a6c1e898b742b65d77e1
2014-12-17 18:26:34 +01:00
Miklos Vajna
87928d31b1 android doc browser: let's list file extensions only at a single place
There is still some duplication, as the file type -> resource mapping is
there two times.

Change-Id: I50cd58f1cc62e872fb925556dd151f6392eeeb87
2014-12-17 18:26:33 +01:00
Miklos Vajna
3646640458 android: turn off text and table boundaries in the viewer
Change-Id: I9923332372c1a09a734f3c6fd1bbd5989c6dc5d3
2014-12-17 13:01:41 +01:00
Miklos Vajna
7bb1c73970 android: fix unreadable text in doc browser's about dialog
There were two inconsistencies here:

- The doc browser activity had an explicit android:theme, but the viewer
  does not, so remove it to be consistent, this fixes the about dialog's
  "black text on black background" problem.
- Now the doc browser had white text on white background: the about
  dialog explicitly uses android:textColor for the strings which should
  be readable on a bright background, do the same in
  file_explorer_folder_icon and file_explorer_grid_item, that makes doc
  browser text readable as well.

Change-Id: Iae9103556ca7c32c9ac8ea02d9e5d5fa6dfb72b5
2014-12-17 11:49:27 +01:00
Tomaž Vajngerl
bd219e3cba android: tweak low-res tiles
Change-Id: I2806f35ee112b9ea7ccf323e01372f7e2f68ffa2
2014-12-17 19:03:22 +09:00
Tomaž Vajngerl
3df95150c1 android: support to handle events with prioritization
Low-res tiles should be handleded before normal tiles so for this
add priority to tiles and store in a with priority queue.

Change-Id: I8d36c14503d9b684816d99f577198ac34b729d15
2014-12-17 19:03:21 +09:00
Tomaž Vajngerl
33e53de6ca android: remove old and unused LOAndroid and LOAndroid2
Change-Id: Ib25c4bb29081ae51a3b06a6fe2af76749ec8ea46
2014-12-17 19:03:21 +09:00
Tor Lillqvist
8ecf956d79 Remove the ThumbnailGenerator class
The only use of it is commented out. ThumbnailGenerator used the UNO-based
XToolkitExperimental stuff that I want to get rid of. If/when we want
thumbnails, we should use the existing thumbnails from document formats that
have them, or generate them using LOKit.

Also remove stuff from the Bootstrap class that was only used by
ThumbnailGenerator.

Conflicts:
	android/experimental/LOAndroid3/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
Reviewed on:
	https://gerrit.libreoffice.org/13503

Change-Id: Ia3a1a7f372a814359c5b496cdb17c35246e34817
2014-12-17 10:53:29 +01:00
Miklos Vajna
4588558789 android: fix loading documents from doc browser's about dialog
- LibreOfficeUIActivity needs to start a new activity
- LibreOfficeMainActivity is enough to send a new event

Change-Id: I3a7532a07b37a16bdb49f81072132aa57c2c52e8
2014-12-17 10:45:00 +01:00