Commit graph

159 commits

Author SHA1 Message Date
Tor Lillqvist
daaa550121 Pass also scale and offset to createScreenCompatibleDeviceUsingBuffer()
Pass on to VirtualDevice where used to set the MapMode of the device
appropriately. Adapt DocumentLoader, use to scale the page rendering
to exactly fit the virtual device.

Change-Id: I4b0bc67e12114d3d9d493ff1aca2ef5d2cc78912
2012-06-18 22:38:41 +03:00
Iain Billett
907ad314fb Some UI tweeks - trying to get long filenames to display nicely. 2012-06-15 23:18:39 +01:00
Iain Billett
889ff81df6 Fixed folder navigation in list view. 2012-06-15 21:59:50 +01:00
Iain Billett
d848fac2d7 Fixed view type persistence problem. 2012-06-15 21:59:50 +01:00
Iain Billett
2b8b434325 Fix view toggle menu item label. 2012-06-15 21:59:50 +01:00
Iain Billett
4310384030 Added a list view to the Android UI. 2012-06-15 16:12:05 +01:00
Tor Lillqvist
28cdc43f2d Make sure homeDirectory exists
Change-Id: I3a89bcac3bf46405e8e474f7765d74c643b7ab43
2012-06-15 13:53:07 +03:00
Tor Lillqvist
00320c71c1 Bin two unneeded (and not found!?) imports
Change-Id: I4b2f716f4a40fe4be91e204d8c78dc8c5e6a439e
2012-06-15 13:52:59 +03:00
Tor Lillqvist
61c6c7f8f7 Experiment with ViewFlipper
Change-Id: I0b1523b5c898375b5cf23294b0a9462a6a651e32
2012-06-14 22:03:48 +03:00
Iain Billett
06a5ea8385 More work on the file explorer. Added file type filtering. Maintains state if user switches to viewer and back. 2012-06-14 17:33:16 +01:00
Iain Billett
246ba71f56 some eclipse projects with pure Android UI stuff. LO code not yet integrated. 2012-06-14 12:49:16 +01:00
Tor Lillqvist
3ea3c6afa2 Use XToolkit2::createScreenCompatibleDeviceUsingBuffer
Render directly to a direct ByteBuffer allocated on the Java side.

Change-Id: I2d66e4146df77e92260918a78ef22cd9b8c95384
2012-06-12 13:50:50 +03:00
Tor Lillqvist
e243a5b462 Verify that we do get the RGBX format DIB we expect
Change-Id: I9f44547fbc5e13daa297720dfd814d2192114125
2012-06-07 21:54:20 +03:00
Tor Lillqvist
8ae077379e Use 32bpp bitmaps on Android (and iOS)
Modify DocumentLoader correspondingly. Take Android bug 32588 into
account.

Ideal would be to extend the XDevice stuff, or something, so that one
could hand it a pre-allocated RGBA buffer into which the
drawing/rendering would go. Then one could get rid of the silly
convert-to-BMP phase, which prefixes the bitmap data with BMP and DIB
headers (and thus, I guess, has to copy and allocate another
copy). Will see.

Change-Id: I4597cd933db8faa8105dc8f19638d712d5d2238a
2012-06-05 17:17:41 +03:00
Tor Lillqvist
5dc2b43e46 Use Jason Polites's GestureImageView, and some cleanup
Change-Id: I916c36b3b55681cdf8f0d1ffd0236e54f3b67b86
2012-05-31 22:32:40 +03:00
Tor Lillqvist
8c803ef232 Display the rendered document
Change-Id: Ie0735d4eb903b38a44bef8110bf520cfde54cb09
2012-05-31 16:20:54 +03:00
Tor Lillqvist
9776138e97 Add a BGR to RGBA twiddling JNI function
Change-Id: Iafa2c1805eea2f521479dc97d5668d82b1c91bef
2012-05-31 16:20:53 +03:00
Tor Lillqvist
82f6505456 Progress finally
Now I get (a page of) the document rendered into a
bitmap. Unfortunately css.awt.XBitmap::getDIB() provides an in-core
24-bit (BGR) BMP file. (Yes, despite the name, it's not just the DIB,
but is prefixed with a BMP file header.) Android's Image class wants
RGBA. Hmm.

Change-Id: Ie0effef20751e1959644861af358d81538b6d6ea
2012-05-31 00:00:51 +03:00
Tor Lillqvist
d69bcc9979 Getting closer, maybe
Change-Id: Ifcfdd33631c257d2cf6f54fe0d00444200f48335
2012-05-31 00:00:51 +03:00
Tor Lillqvist
0453a1244a Better comment for how to use lo-strace
Change-Id: I29afe81866229bd29fcd997624264fb337c74d95
2012-05-30 00:02:20 +03:00
Tor Lillqvist
9faf21d484 No cmdline file is created so don't use lo-main-indirect-cmdline then
Change-Id: Ifac7e34b34fcf32fb2a0f117e8b8ad5ab1003fc9
2012-05-30 00:02:19 +03:00
Tor Lillqvist
e28ad1b5d8 More experimentation
Change-Id: I8ad45f173c4f2b37aca6506d9021e8346c17db16
2012-05-30 00:02:18 +03:00
Tor Lillqvist
c9f5b8a334 Add temporary test JNI method createWindowFoo()...
Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
2012-05-30 00:02:18 +03:00
Tor Lillqvist
7309b1c1dc Add an "extra" called lo-extra-libs for a list of libs to load early
Change-Id: I41900eca9a46acbd2f1dfac98fcfc73a62acc150
2012-05-30 00:02:16 +03:00
Michael Meeks
a59f76154a android: add possibility to add application specific fonts to fontconfig 2012-05-28 14:51:20 +01:00
Michael Meeks
7748fc7747 android: package much more: calc, chart, embedded objects, writer 2012-05-28 14:51:18 +01:00
Michael Meeks
1a9be1b62e android: disable document recovery, it doesn't demo so well. 2012-05-28 14:50:50 +01:00
Michael Meeks
e363e668c7 android: make launcher function as expected - starts writer.
Remove now redundant FONTCONFIG cmdline arguments, and add fallbacks
for not having cmdline arguments in the intent when launching.
2012-05-28 14:50:50 +01:00
Tor Lillqvist
05f786fd2e More clueless test hacking
Change-Id: I2623625380b11f3d6bf720387504b23ccce529e1
2012-05-24 17:41:52 +03:00
Tor Lillqvist
4ff08c21ce Don't bother with so many test docs
Change-Id: I725255224ae7a38d7a7843516b7ac979f79e0207
2012-05-24 17:41:51 +03:00
Michael Meeks
1bb9a60a96 android: un-break env. var parsing (sorry) 2012-05-23 15:58:49 +01:00
Michael Meeks
b36ff96d1d android: make launcher function as expected - starts writer.
Remove now redundant FONTCONFIG cmdline arguments, and add fallbacks
for not having cmdline arguments in the intent when launching.
2012-05-23 15:55:55 +01:00
Tor Lillqvist
1b4d0bdf88 adb pushing the cmdline file fails to a real device
But it isn't needed here anyway, the "command line" is so short, so
just use lo-main-cmdline instead.

Change-Id: Icca1b57228584cee5962a33cd0d18873b13b2884
2012-05-22 20:35:48 +03:00
Michael Meeks
3d9dfcca78 android: remove duplicate services.rdb from config, and static bits 2012-05-22 10:39:59 +01:00
Michael Meeks
ace21dca6a android: remove bits that are now statically linked 2012-05-22 10:39:58 +01:00
Tor Lillqvist
1543df4703 Don't mention the same rdb files in both UNO_SERVICES and URE_MORE_SERVICES
Change-Id: Ieb6aea7d3683411ffcefc6c5e1e7facdef8ed105
2012-05-22 11:58:01 +03:00
Tor Lillqvist
b93300d91e A bit more introspective debugging output...
Change-Id: Ibfafe0d6420ad59e12b9eed4847c89e57a18d679
2012-05-22 11:58:00 +03:00
Tor Lillqvist
b58498fb57 Now with in-process redirection, the adb shell setprop thing is not needed
Change-Id: Ibfda0e6e65d0834cffdd95d4c6d87d07644088f6
2012-05-17 16:32:32 +03:00
Tor Lillqvist
40fab3bd05 Don't create the local.properties files in the source tree from configure
Change-Id: Ic87be0146360c5e32f1f12f255c897e051c9a50c
2012-05-16 18:59:28 +03:00
Tor Lillqvist
62f030133d Move the sleep (for attaching debugger) earlier
Change-Id: I3183ed3da25bd0fbd2121f235f209edb51a21d2e
2012-05-16 18:37:39 +03:00
Tor Lillqvist
cf4f6a71ff Don't mention the same rdb file in both UNO_SERVICES and URE_MORE_SERVICES
Change-Id: I81b3a451b5fd4eaf83ee525aa38df32686e38cfe
2012-05-16 18:37:38 +03:00
Tor Lillqvist
d31e409ec1 Update library list
Change-Id: I9c652fc6940bd856aa8ba5f7e2daaae6a5502b3d
2012-05-16 10:12:26 +03:00
Tor Lillqvist
182c1e4f99 Call lo-bootstrap's redirect_stdio
Change-Id: I45732ac81d00837ce517ed5c527c8c767e690abf
2012-05-16 10:12:25 +03:00
Tor Lillqvist
8be33aa1df Drop libs that now are static, add a few missing ones 2012-04-20 00:57:24 +03:00
Tor Lillqvist
409f117e1c Enable loading of several documents, and do that then 2012-04-20 00:57:23 +03:00
Luboš Luňák
cf557a25da .gitignore 2012-04-19 14:50:20 +02:00
Tor Lillqvist
4b663231f6 Move DocumentLoader to the "experimental" subdirectory 2012-04-18 10:01:59 +03:00
Jonathan Aquilina
67fd00163f Initial start of an Android UI (experimental)
Started creating the menu list for the start center

Beginning of code for Start Center menu list

finished creating menu, issue getting it to display when program run

refractored package name to org.libreoffice.experimental

added the java files with renamed package

added new experimental dir and updated packages with appropriate name
2012-04-18 09:55:56 +03:00
Tor Lillqvist
34592de613 More libraries 2012-04-10 12:53:40 +03:00
Tor Lillqvist
8451dec867 dlopen() also the sw and swd libs ahead of time so that they can be debugged 2012-04-05 20:46:24 +03:00