Commit Graph

94 Commits

Author SHA1 Message Date
Noel Grandin
d4917e9970 convert basebmp::Format to scoped enum
Change-Id: I6eb213d6dcf387936967271fba9e2de3879ef479
2015-06-04 08:30:24 +02:00
Caolán McNamara
acad8441cc cppcheck: noExplicitConstructor
Change-Id: I62076450ab77472bfd09b3fb9824f54b6ea1e0f7
2015-05-25 12:32:54 +01:00
Tor Lillqvist
ff2c4ee8a5 Bin unused code 2015-05-21 16:43:58 +01:00
Tor Lillqvist
f7d886ca03 WaE: macro "LOGW" is not used 2015-05-21 14:54:58 +01:00
Tor Lillqvist
72a688db73 Remove more obsolete Android code: The 'AppSupport' stuff 2015-05-21 14:51:59 +01:00
Caolán McNamara
9a9dd94c56 allow a different notebook tab font than the rest of the ui
Change-Id: Ia41276033c1f656217bc3ae929faab001db36ca4
2015-04-28 09:14:06 +01: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
Noel Grandin
8aa3cb98ad fdo#84938: convert VCL_INPUT_ #defines to 'enum class'
Change-Id: I155e45f58974a2b946c4a7703b350bcbfbad342e
2015-01-07 11:20:43 +02:00
Tor Lillqvist
dcc7a9f54f Call DetachCurrentThread() in the AndroidSalInstance destructor
As we call AttachCurrentThread() in the constructor, it seems logical to call
DetachCurrentThread() in the destructor. Some warning messages in the logcat
indicated that DetachCurrentThread() hadn't been called for a thread that
died.

Actually I would prefer to call both AttachCurrentThread() and
DetachCurrentThread() in the actual thread function, instead of somewhat
haphazardly and imlicitly in the AndroidSalInstance constructor and
destructor. Do we know for sure that the lifetime of the AndroidSalInstance
singleton (is is a singleton, right?) is 1:1 coupled to that of the LO "main
thread"?

Change-Id: Ifcc0e0b9af88b19389c416c5646499d44ad0e941
2014-12-04 23:04:21 +01:00
Tor Lillqvist
46a47217de These constants are now in the MouseEventModifiers class enum
Change-Id: Ie6a0c86b18a7a01c8b020c37dcbcadc529deb80b
2014-11-08 00:29:47 +02:00
Tor Lillqvist
ac24f3fdbb Use vcl::Font
Change-Id: I25b1ce4396a8e125b23e088310b970ef746cbaf0
2014-09-18 11:54:21 +03:00
Caolán McNamara
a107bdfdfc ErrorBox->MessageDialog
Change-Id: I57d4e43460e40d3aff54873280eddbb18c12446b
2014-08-18 10:57:21 +01:00
Julien Nabet
2ed32f7afa cppcheck: Prefer prefix ++/-- operators
Change-Id: I290ccba1487e59ea6f86bfb0382671ca4ed50831
2014-05-24 11:32:43 +02:00
Tor Lillqvist
50bf123ddb Kill superfluous vertical whitespace
Change-Id: I81ce8fd7022bf283db668705efdfb0666f87bde9
2014-04-02 16:54:18 +03:00
Michael Stahl
f538522a3b vcl: try to make android tinderbox happy too
Change-Id: If83b12578ce1e5dcae688589e92a54b96040abdd
2014-02-20 21:58:28 +01:00
Noel Grandin
610b2b94b3 remove unnecessary use of OUString constructor when assigning
change code like
   aStr = OUString("xxxx");
to
   aStr = "xxxx";

Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
Tor Lillqvist
12b1ca3236 Hacking on iOS keyboard handling
Change-Id: I0d842cc951cb5a3e7e990f835f541ccf1bd89df6
2013-10-13 23:17:39 +03:00
Stephan Bergmann
d8dbf1b5db Turn basebmp::Format into a proper enum
Change-Id: I4067c5039c7b5c74a1c144721dd7260de54dd2bf
2013-07-12 14:41:35 +02:00
Thomas Arnhold
318f2b64cc remove some createFromAscii usage
there are a lot more of them:

git grep 'createFromAscii[^)]*"'

Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
2013-06-29 16:23:23 +02:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Tor Lillqvist
07c1b61933 Small refactoring of the Android "desktop app" code, no functional change
Move the native methods out to a separate AppSupport class so that they aren't
in our "experimenal" Desktop app's namespace. Don't hardcode the name of that
class in the native code, but have the app register the class to which the
damage callbacks should be done.

Possibly the AppSupport and Bootstrap classes should be combined. Later.

Also, the "android" part of the package name is superfluous; it is
Android-specific code, no information gained by having an "android" part in
the package name.

Change-Id: Iddf55c8034ead7693887ace8438deb002c5eea9f
2013-04-19 18:50:36 +03:00
Tor Lillqvist
a6e1f214c9 Start implementing on-demand keyboard display for non-DESKTOP
Change-Id: I9321dcf9d863cb59eee9b2a012d887a17cb1b454
2013-04-12 15:22:10 +03:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Tor Lillqvist
bd9c914047 Bin redundant logging
Change-Id: If7245ceea45a517084fdb5df09818e4e6e8c8be5
2013-03-30 07:53:38 +02:00
Tor Lillqvist
a7b932ddfe AndroidSalInstance::RedrawWindows() is called from only one place
No need to take a parameter for which NULL is always passed, and related
simplifications.

Change-Id: I89bab2904fdae3520987d0f67e55b2649bf225d3
2013-03-17 17:34:15 +02:00
Tor Lillqvist
54e458f691 AndroidSalInstance::Wakeup() is unused
The Wakeup() in the base class, SvpSalInstance, is not virtual. So this
Wakeup() does not override the Wakeup() in the base class, as the author maybe
thought. I don't see in git history that it would have ever been called
explicitly on any AndroidSalInstance objects either. Or am I missing
something?

Change-Id: I932398e7c0a37a3048c5d372996fe6ac6f209887
2013-03-08 21:12:24 +02:00
Tor Lillqvist
78e217bcd0 Don't crash the other experimental apps
Don't try to find the class org.libreoffice.experimental.desktop.Desktop in
the AndroidSalInstance constructor. It won't exist anyway except in that
specific app. Look up the class in the damaged() method where it is needed.

And actually, of course we should not hardcode the name of the app class like
that, but the app should pass its class down to the native code.

Change-Id: Ic15d5cc2c8d53be558711ca7a145d5489e34d298
2013-03-08 20:51:59 +02:00
Tor Lillqvist
e669502dcf Start hacking on scrolling
Change-Id: I74f1d7feb935be65629bdbd7464f9882229948e5
2013-03-07 10:15:58 +02:00
Tor Lillqvist
bcbe5fe885 Use view size for "work area" size
Don't know what this affects, though. Things seem to have worked as expected
even with the hardcoded bogus value?

Change-Id: I945bdcd53260fc5f43cf0031dfd96637168475f0
2013-03-07 10:15:57 +02:00
Tor Lillqvist
1192381595 Now get rid of the #if 0 blocks
Change-Id: I815cc4a703b7ca6d2894807396a06a3394b40676
2013-03-07 10:15:57 +02:00
Tor Lillqvist
0ce2d740a2 Handle damage tracking and redrawing properly in the "desktop" Android app
In the damaged() method do a callback up to Java code in Desktop that
invalidates the view. For now store the view in a static field, but need to do
that in a cleaner way eventually. There might in some circumstancest be
several instances of the Desktop activity present. Obviously should also run
just one LO thread.

Get rid of the temporary self-invalidattion in onDraw() silliness.

Start the LO thread that runs soffice_main() from Java, not from native
code. Apparently only threads created from Java have proper class loaders in
Android.

No need for an own DoReleaseYield() in AndroidSalInstance, the one in the
SvpSalInstance base class does what needs to be done.

Change-Id: I4cb85b352fca1f1375f726620ec8c93d2047f113
2013-03-07 02:33:42 +02:00
Tor Lillqvist
4ceb66d86f Drop unused timestamp parameters
Change-Id: I1d825c39cde67c204110b4a787b3ffb290331fe5
2013-03-06 09:27:10 +02:00
Tor Lillqvist
185b625143 Add SvpSalInstance::PostedEventsInQueue()
Used by AndroidSalInstance::AnyInput(). Unfortunately there is no way to check
for a specific type of input being queued as the AnyInput() API would
want. That information is too hidden, sigh. Should fix that.

Change-Id: I2d971a7da531bb00a80fd39311fb70ab29359b08
2013-03-06 00:29:02 +02:00
Tor Lillqvist
6cd8e92402 Add a SAL_INFO
Change-Id: I57702d2d848181f2df4af3fc0d1ce8cbed1455f9
2013-03-05 00:04:20 +02:00
Tor Lillqvist
c859cc21cd Start hacking on zoom and scroll events at the VCL "public" level
On the internal ("Sal") VCL level they will correspond to wheel mouse events,
I guess.

Change-Id: Ia422f892d73afe501f529020c2aed9ff8fca99f9
2013-03-02 21:00:01 +02:00
Tor Lillqvist
bcfd6ac251 RTL_CONSTASCII_USTRINGPARAM removal
Change-Id: I0c50dea9d86d3ec15ec327883867a384cbf2a6e8
2013-03-02 21:00:01 +02:00
Tor Lillqvist
a8ee2fd020 Start hacking on zooming
Change-Id: Ibc9aad490c4616d339e95352a0b8a7f7bed93070
2013-03-02 21:00:01 +02:00
Tor Lillqvist
18df08f974 Bin two lines of logging that are too repetitive to be useful
Change-Id: I460614dba8f162a8bedcf0bf847614fae9b05910
2013-03-01 00:37:20 +02:00
Tor Lillqvist
1e254b3a50 The RGBA bytes are already in the order we want
Change-Id: Ib4434400b110f8056b3291c0d48fe6548a7a9e8e
2013-03-01 00:37:20 +02:00
Tor Lillqvist
0109a5b04e Drop unuse maRedrawRegion
I saw crashes or getting stuck in a loop in the Region code for some unknown
reason. Below in the backtrace was the call to Region::Union() in
AndroidSalInstance::damaged(). As the maRedrawRegion wasn't actually used for
anything, let's bin it then for now... No crashes now, knock on wood.

I still don't know whether the switch from SalFooEvents and CallCallback() to
FooEvents and PostFooEvent() helped anything or not.

Change-Id: Iba867daa37a206953cdb765905fa5eb3fca4d08e
2013-02-28 22:34:23 +02:00
Tor Lillqvist
82e7c71e76 Try uncommenting these now, I don't think the FIXME holds any more
Change-Id: Idded90eaa68481dbb9b4045ff62a54e13c7baa31
2013-02-28 22:34:23 +02:00
Tor Lillqvist
32da3c3a6b Try to use another kind of events
I see randomish crashes that likely are caused by parallelism problems. Try to
see if using Application::PostKeyEventg() and PostMouseEvent() instead of
SalFrame::CallCallback() helps.

Change-Id: Ia97259a378fe40ff0dab3fbb538599e9d2e69c1f
2013-02-28 22:34:23 +02:00
Tor Lillqvist
1b05f86868 Bin one more too repetitive log line
Change-Id: I0ab4ecc4791cd319c8c25583e5207dcfc66b0fac
2013-02-28 22:34:22 +02:00
Tor Lillqvist
04893b7c90 WaE: 'eventKind' may be used uninitialized in this function
Change-Id: I55b2a2bd4cffface671727f88a3da9b132d7637a
2013-02-28 09:16:52 +02:00
Tor Lillqvist
7bce0a1d9b The "pre-cleaning" is fairly pointless now when we fill the whole screen
Change-Id: I85a2ee8af9615222c33b36e3d7d08e5821a66a43
2013-02-28 09:01:07 +02:00
Tor Lillqvist
c167f05fdc Bin some repetitive verbose logging
Change-Id: I5c2ee005094ec3fdf1ebc766b0760a1f73b2682f
2013-02-28 09:01:07 +02:00
Tor Lillqvist
3cf4f1a13b Handle touch events
Change-Id: I9c9d200731df9ba48ee61f7c97692ed9b9f06648
2013-02-28 00:25:01 +02:00
Tor Lillqvist
7cf5fea499 Send text input to the LO code
Change-Id: I28070fb1a8b85c9737d2a78a8a713243ce47dde9
2013-02-27 21:00:53 +02:00
Tor Lillqvist
8eb12301e8 Remove a too verbose and frequent log write
Change-Id: Ie6ecf61d9acabb87a24f95f878b874a04532131d
2013-02-27 08:36:04 +02:00
Tor Lillqvist
b917d352d9 The source buffer (virtual device) has 4 bytes per pixel, too
Now the desktop-style Writer window looks fine on my device. (The app still
crashes quickly, though.)

Change-Id: I2542fba653cfef651f207388f1fd98d186485d3b
2013-02-25 22:15:57 +02:00