Tomaž Vajngerl
bf995db739
android: add onHitTest for implementations, add impl. interface
...
CanvasElementImplRequirement is a interface to define which methods
can/should a CanvasElement subclass implement.
Change-Id: I61ea6d56bbdd8bd4402b821675a0206ce43b25ce
2015-04-07 09:18:07 +02:00
Tomaž Vajngerl
492e52c1df
android: add assign which copies rect coordinates from source
...
Change-Id: I235ce3cb60da96df3d960206523442e887b5cee6
2015-04-07 09:18:07 +02:00
Tomaž Vajngerl
2e84d5ed53
android: Don't show canvas elements by default
...
Change-Id: I32372660c78a0fa253fdfaf94b15ae823c4eb5ac
2015-04-07 09:18:07 +02:00
Tomaž Vajngerl
8f6b3d6421
android: use onDraw for element drawing in CanvasElement interface
...
Use onDraw to override the drawing to canvas. CommonCanvasElement
uses the draw method to call onDraw depending on visibility.
Change-Id: Id98991935168caab9d39665e72f33cfb3a91d8dc
2015-04-07 09:18:06 +02:00
Tomaž Vajngerl
7a53938342
android: use isVisible setVisible for GraphicSelection
...
Change-Id: Ide9ad4b0e40482e5936e76ed0560b79769fc047d
2015-04-07 09:18:05 +02:00
Tomaž Vajngerl
d009630c94
android: isVisible, setVisible for CanvasElement + common impl.
...
Change-Id: I10382cf00e4e5953d1ebae1b25f72d04a644cff1
2015-04-07 09:18:05 +02:00
Tomaž Vajngerl
41b3ed6070
android: convertPosition -> convertToScreen
...
Change-Id: I2c167173b0b7fb4debfef4455d3336e861a52f20
2015-04-07 09:18:05 +02:00
Tomaž Vajngerl
6d50c72cba
android: single press on a selected shape triggers text edit
...
Change-Id: If095bbaf5e4a0efec19f0170fd7c912c66b93669
2015-04-07 09:18:05 +02:00
Tomaž Vajngerl
626e1a2d6d
android: set layerView to TextCursorView{Layer} when available
...
Change-Id: I3dbb7747ad6d5ce44ca286023e6c8fbc5a19a6b7
2015-04-07 09:18:04 +02:00
Tomaž Vajngerl
656d3f9ee4
android: register TextSelection & TextCursorLayer once at creation
...
Change-Id: I33471dbcdd82b50919b6c6af741101b3d4ff71cf
2015-04-07 09:18:04 +02:00
Miklos Vajna
f15a6a065e
android: fix 'make install' in LOAndroid3
...
The error was:
$ make install verbose=t
../../../config_host.mk:655: /git/config__lang.mk: No such file or directory
make: *** No rule to make target '/git/config__lang.mk'. Stop.
Change-Id: I4f976c27217cb1827ce2a7b39c1bc301e45f149b
2015-04-07 09:18:03 +02:00
Tomaž Vajngerl
9dfaffabf1
android: minor comments change
...
Change-Id: Ib6522079f95fcf3f00212f848646c5cecfdfc296
2015-04-07 09:18:03 +02:00
Tomaž Vajngerl
d7716c9927
android: enable AA for selections and handles, tune colors & alpha
...
Change-Id: Ieea5b084ce1b9550d202bff795d89929632cb724
2015-04-07 09:18:02 +02:00
Tomaž Vajngerl
812970c785
android: fix sending graphic selection type to LOKitThread
...
Change-Id: I42a23f3867acb9632cc94d84e2a4267415e908bc
2015-04-07 09:18:02 +02:00
Tor Lillqvist
3d177c7b6d
Bootstrap.initVCL is not used by our Android app any more
...
Change-Id: Id1e58547cf2b0786d7a2ca29eae8bbcdd644fdd5
2015-03-30 16:01:38 +03:00
Tomaž Vajngerl
eba73d9ef6
android: comment selection related code, rearrange and clean-up
...
Change-Id: I18c8c4864d074662f85fc5b0e43eb84cc0638fd8
2015-03-30 09:23:54 +02:00
Miklos Vajna
a518d5a4a7
android: open csv files in Calc
...
Change-Id: I17b9c4f9d40db46fe6f1be8f1a3ecaee4946454c
2015-03-30 09:23:54 +02:00
Tomaž Vajngerl
4415ecbfc6
android: properly merge README with new content
...
Change-Id: I740c654f5844ef4cb7cbc5387c7b8a56e326e532
2015-03-30 09:23:52 +02:00
Tomaž Vajngerl
498f578f97
Revert "android: add README"
...
This reverts commit 9ebd22c353ca2e2b3d37b0c6d266b6c582538edc.
2015-03-30 09:23:52 +02:00
Tomaž Vajngerl
2675d681df
android: add README
...
Change-Id: I7a2b3cb487b4dfe290bff36e3766357fbbc84fba
2015-03-30 09:23:52 +02:00
Tomaž Vajngerl
25f0d5772b
android: add contains (hit test) to CanvasElement interface
...
Change-Id: Ic0022790c9ee1a5be1352eba0815e0d63ae17025
2015-03-30 09:23:52 +02:00
Tomaž Vajngerl
16d8839c24
android: rename graphic selection and handle
...
Change-Id: I7bf89b92190ba37535fa89118269d706d6bf05d9
2015-03-30 09:23:51 +02:00
Tomaž Vajngerl
b1def00ac3
android: introduce CanvasElement interface
...
Change-Id: Ic3cb636e397c110af54974159892b32b6c4c33c1
2015-03-30 09:23:50 +02:00
Tomaž Vajngerl
ba93e70c9f
android: fix handle and selection behaviour, clean-up
...
Change-Id: I1f4404b1beb8dc3d5f64c21443c8e50cefe6fc63
2015-03-30 09:23:50 +02:00
Tomaž Vajngerl
2f6c4d9937
android: increase handle hit area
...
Change-Id: I0148815d9152c0bcd7e3d724ebdd0bc50a4c4c9a
2015-03-30 09:23:50 +02:00
Tomaž Vajngerl
aa5a78cf8b
android: move handles into GraphicSelectionCanvasElement
...
Change-Id: Ib372b4fac35ae77bf06c65913b142ae3e80b0eb5
2015-03-30 09:23:50 +02:00
Jack Leigh
e41e571072
android: Bump to android-21
...
Change-Id: Ifbe9a316795fc0519119aa9420152118f3926653
Reviewed-on: https://gerrit.libreoffice.org/14946
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:46 +02:00
Jack Leigh
f8a0d0e62a
android: Get search button to show again
...
Even though it doesn't work...
Change-Id: Ia84da613fd1e5cb3b2c9c5fa3d0458056b9cb728
Reviewed-on: https://gerrit.libreoffice.org/14950
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:46 +02:00
Jack Leigh
f23e1cb51c
android: Migrate to Toolbar in file browser
...
Change-Id: Ib5e3d0d39268437c179973ba4e785a719cdc351a
Reviewed-on: https://gerrit.libreoffice.org/14949
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:45 +02:00
Jack Leigh
ce6b4d5ed3
android: Change to v7 support ActionBar and new theme
...
Change-Id: I39d273e397a3bcbfc1d7140dca4af89858f2c06a
Reviewed-on: https://gerrit.libreoffice.org/14948
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:45 +02:00
Jack Leigh
3bab59b406
android: Remove striping on ActionBar
...
Change-Id: I7b675e7cf5b28558be57e293547531a9369c3462
Reviewed-on: https://gerrit.libreoffice.org/14947
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2015-03-30 09:23:45 +02:00
Tomaž Vajngerl
befa877c27
android: fix wrong TextCursorView class name, format xml
...
Change-Id: I54d68cd5ba17bae675c8da421f2e661ac20abe77
2015-03-30 09:23:45 +02:00
Miklos Vajna
79dac94c5d
android: add doc on how to set up jdb
...
Change-Id: I15427518bc82e3da147b74c01bb2e0480fc32f25
2015-03-30 09:23:37 +02:00
Tor Lillqvist
4cc1bcbaed
Kill dead <touch/touch.h> API
...
Has all been obsoleted by LibreOfficeKit.
Only some MOBILE_* constant #defines are now left in touch.h, but probably
those are used only by dead code.
Change-Id: I646945c4408b4e6cd5510da535cfc12088dd391c
2015-03-24 15:30:27 +02:00
Tomaž Vajngerl
a9fd1afd3b
android: reorganize (overlay, canvas packages), move classes
...
Added new packages:
* overlay - overlay elements like TextCursor*
* canvas - classes that its only purpose is to draw to canvas
Change-Id: I0dec06e76819231dacae26d24e43bb6315bba6e4
2015-03-23 09:19:08 +01:00
Tomaž Vajngerl
205b69526c
android: extract drawing of selection into its own class
...
Change-Id: I8e94edeafbf5b7fd5f02a1429893c4b803c71afa
2015-03-23 09:19:08 +01:00
Tomaž Vajngerl
19c59a34eb
android: remove import android.util.Log from InvalidationHandler
...
Change-Id: Ie944ca77abf13c4ac2c3b9c492d56878bfffba55
2015-03-23 09:19:08 +01:00
Miklos Vajna
a20167ba50
fold README.Android into android/README
...
Change-Id: Ifaeb87427d6e2e0c2bb0fcd19e0d39bf15c76973
2015-03-23 09:19:05 +01:00
Miklos Vajna
2b5cf23910
android: when in selection, avoid showing the middle handle
...
editeng sends LOK_CALLBACK_CURSOR_VISIBLE after the text selection is
already created. The effect of this is that after a long push on a word
you get not only the selection overlay + the start/end handles, but also
the middle one, which is not expected. Just check if we're in a
selection already, and if so, don't react to
LOK_CALLBACK_CURSOR_VISIBLE=true.
Change-Id: I939c957feb7889dfb1997fac1051cb4eaa77004c
2015-03-23 09:19:05 +01:00
Miklos Vajna
b0cb454f4a
android: add debugrun Makefile target
...
Also, if we are at it:
- clean up 'run' as well: since the doc browser is the default activity,
no need to pass the test doc path anymore
- make 'install' not depend on build: a full build would need a toplevel
'make' anyway
Change-Id: Ia55d52f767ab3e0be02a753a95b2aac02f8491cc
2015-03-23 09:19:05 +01:00
Tomaž Vajngerl
6d9610c694
android: a bit smaller hit area for selection handles
...
Change-Id: I985b7b22c4794862a421ad797b907e33266c2c27
2015-03-23 09:19:04 +01:00
Tomaž Vajngerl
892d6813ad
android: Hit test for handles, show resize rect
...
Change-Id: Ibf9f98968fd9007be6dc5481d1652923ecb98b89
2015-03-23 09:19:03 +01:00
Tomaž Vajngerl
7f4ac90254
android: move handle code to DrawElementHandle
...
Change-Id: Ica316ed9660e235e756ef380da8f441c976de07f
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
e48d983d55
android: draw also the center handles for graphic selection
...
Change-Id: Ic466e9efc0cb97fb39e94624f018ab5b98a54929
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
907583d10c
android: change cursor blink time to a constant static field
...
Change-Id: I49947cccfd2662533da3087cb1f04dc91014cfb0
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
86548b6bfe
android: move graphic selection, use a touch event to transmit
...
Initiali implementation moving of graphic selection in
TextCursorView. Transmit start and end coordinates of the move
using a touch event with a special type "GraphicSelectionStart"
and "GraphicSelectionEnd" set.
In LOKitThread process the event and delegate the request to the
TileProvider (setGraphicSelectionStart/setGraphicSelectionEnd).
Change-Id: Iccceeb3d4de2fc1761b23fc5ede99d00d5e803aa
2015-03-23 09:19:02 +01:00
Tomaž Vajngerl
b053778685
android: set graphic selection via TileProvider
...
Change-Id: I26c3eb03ad3bcc23bed380e873d353bc2941de9a
2015-03-23 09:19:01 +01:00
Tomaž Vajngerl
93fbb7369d
android: TileProvider is unused in InvalidationHandler
...
Change-Id: I455e58f4395cb463efa888fe69ee7ea48b4681fb
2015-03-23 09:19:01 +01:00
Miklos Vajna
7ba960e1c5
android: clean up no longer needed com.polites library in LOAndroi3
...
That was something from the other LibreOffice4Android that got merged
with LOAndroid3. The document browser doesn't use it, so we don't need
it anymore.
Change-Id: I5446eb7a0fe6e0de81532e981a0853da16910f54
2015-03-23 09:18:59 +01:00
Tomaž Vajngerl
f0f0ce28b0
android: add comment to many classes and methods
...
Change-Id: I49d9bd7c702c260ea66ef211edbaf5e106264bb6
2015-03-23 09:18:59 +01:00