- 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
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
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
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
- LibreOfficeUIActivity needs to start a new activity
- LibreOfficeMainActivity is enough to send a new event
Change-Id: I3a7532a07b37a16bdb49f81072132aa57c2c52e8
Now that the default activity is not the viewer, but the document
browser, there is no way to show the introduction document. Add a button
to the about dialog to still show it.
Change-Id: I9252064aaaf4c49da519e17b651e0d290bc17c04
E.g. on my device the foreground color was white, the explicit light
background color made the filenames almost unreadable.
Change-Id: I64e361447ef9af4f3998afeb4a938907b6ca7eb3
Related with commit c7c2b4b54d8ab81150e9b71433970c2f338ed063.
There is nothing wrong with having several activities; in fact Android
development encourages using one activity per use case. After this
patch we have:
* One menu item that opens LibreOffice document browser. It covers the
use case "open LibreOffice without documents".
* The viewer activity does not have a menu item but it responds to
open intents triggered by any applications like file explorers,
including the document browser.
Change-Id: Ie08b96e52d3a6a79aed3354620302705d7689381
Reviewed-on: https://gerrit.libreoffice.org/12108
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Writer documents currently always have one part, so it's not possible to
switch to an other part anyway. Also hide the matching menu item
accordingly.
Change-Id: Ic634d46c4ff307416b2878e5bc8a590b22a827a0
This patch sets the zoom level to a value that shows the whole
document width on the tile layer however it does not resize the
view until next zoom. This still needs to be tracked down.
Change-Id: I16940a2951e1be4b46cbd1870fda45f296aff70a
Split DynamicTileLayer and move most of the implementation into
ComposedTileLayer except viewport zoom value.
Reevaluate tiles directly in UI thread instead a special call to
LO thread.
Change-Id: I9a4ce499cf35315cd386956484c2df6d5a5f20cc
For the WW8 bugdoc, the speedup is 435 -> 98 ms, and the end result is
the same from a viewer perspective.
Change-Id: I9b6ed3b77748cdc71f373daf07548c6cd0dc732e
Make it O(N) instead of O(N^2), where N is the number of children of the
root note.
3.596s -> 0.960s for main.xcd
Change-Id: I1b9904a377603cd57f84636c873ed2b752abd101