Commit Graph

245 Commits

Author SHA1 Message Date
13964ddb61 sc/qa/unit/data/xls/border.xls was removed
..in commit a96b6f4708d587ddddd93101e51e52dec4e87b7e

Change-Id: I94ea246df8fabee9b0bda579be7698c964958e16
2014-01-18 17:04:26 +01:00
4be366de58 native code generator: Do not use single_component_map anymore.
Put cui and spl into extended_code and ignore the rest.

Also change DocumentLoader and LibreOffice4Android to use only
extended_core and writer as all the ios apps do, without knowing what is
really needed there.

Change-Id: Ic6a256ea47cc96132c0e7658d6ef2838b295ca71
2014-01-02 14:40:07 +01:00
8d414697d5 android: Further reduce size of LibreOfficeExperimentalDesktop.apk.
It still seems to work for me.
Probably we do not need more components, but it's small enough for now.

Also add uui into 'core' group.

Change-Id: Ifadea8aa819ed17bbd021a0fa2373e6287e06446
2014-01-01 20:13:41 +01:00
38f23632c8 android: 'core' and 'writer' components should be enough
Change-Id: I97a4989ed29db5f777895fee13940cbd6910068e
2013-12-31 13:28:59 +01:00
3f47635b86 Improve native-code generator for (not only) Android.
Group logic from include/osl/detail/component-mapping.h has been
duplicated here for now.
The plan is to reuse this for iOS too if possible.

We don't need component-declarations.h now, which is good because
the list of implementation constructors is going to grow a lot over time.
Also, something needs to be done to avoid component-defines.h.

--constructor parameter was removed because it was not used
and also does not make sense.

__attribute__ ((visibility("default"))) is removed too.

Change-Id: I5e3f988800303d31e1d78220cbd25339bcbc482a
2013-12-23 21:10:35 +01:00
a17c0950c0 Add tool to generate native-code.cxx for Android.
Should be extended to be helpfull for iOS too.

Change-Id: I862731b6386d5f9cbb508e0c138f45fbe1cb3f46
2013-12-20 13:00:24 +01:00
645dac2f94 Deduplicate more components.
No one says this is the only good classification.
Quite possibly it's not even a good one, but at least something.

Change-Id: I81178314222f9f63708a83b262ff8ef73a1d9467
2013-12-19 15:34:33 +01:00
43e2cf590a Deduplicate calc components.
Hopefully it makes sense, I don't know.
Inspired by Debian packages.

Change-Id: I8caf2d4aa75b8f6de3cc7da9eb293955a4ed58d8
2013-12-19 15:34:32 +01:00
e05e58948c Deduplicate writer component factories.
Change-Id: I0b82e8a284f871829b7c22a654d61534b5c5a3cc
2013-12-19 15:34:30 +01:00
ad4e451070 Deduplicate a lot of common components.
Change-Id: Ic3eb95119eed7a691c9cd0c677f28c87395b9415
2013-12-19 09:41:45 +01:00
ae3a0c8da5 Add .component <implementation constructor="..." feature
...to directly call constructor functions of ComponentContext-based C++
implementations of (non-single-instance) UNO services.  The case where these
calls would need to be bridged across different environments (e.g., from gcc3
to gcc3:affine) is not yet implemented.

bootstrap.component and expwrap.component are adapted accordingly as a proof-of-
concept (which had previously been adapted to use the prefix="direct" feature,
which may become unnecessary again in the end, depending on how to handle
single-instance services/singletons).  More to follow.

Change-Id: I18682d75bcd29d3d427e31331b4ce8161dbb846d
2013-12-19 08:48:56 +01:00
d8bbae2fd6 Get more --disable-dynamic-loading code out of shlib.cxx.
It's not terribly nice, but, hopefully, better.
The hope is that one day, lo_get_library_map will be no more.
In lo_get_implementation_map we can specify more precisely what to link
into the binary.

Change-Id: I99a1854fbae05be2f70302cc56bea88e522ec129
2013-12-18 07:15:49 +01:00
562b21949f Deduplicate some foo_component_getFactory declarations.
Change-Id: I9304b62134bab375b721399ae078bf66e01191d8
2013-12-18 07:15:47 +01:00
b6cebf4a3e Allow UNO component libraries to have each implementation in its own function.
Demonstrating on expwrap library.

There is hope, this will bring code size savings for mobile
platforms, where we don't need every implementation.

Change-Id: I3519fb6148fd7a47ed9df092c73779ea6add552f
2013-12-18 07:15:46 +01:00
eebc1e9a8a fdo#60698: Merge fastsax and sax_shared into expwrap
Change-Id: I6f8c6827c00db50184a46f39968f882b944d18d4
Reviewed-on: https://gerrit.libreoffice.org/6967
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2013-12-11 20:45:30 +00:00
0b9d8c678c Those AFM files are not used anymore
They were used to build metrics for printer built in fonts, which was
dropped in the previous commit.

Change-Id: Id9fb3108facec61eb6de0a2d16546f1187465e50
Reviewed-on: https://gerrit.libreoffice.org/6861
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 05:05:06 -06:00
ea6f3c09cf outter -> outer (also when "outter" is inside another word)
Change-Id: I0290d57f1c27a82a34a7dba56d88d51ec6d0bd9e
2013-11-23 22:40:38 +01:00
9b629f2967 Add (dummy) touch_ui_dialog_modal() implementations
Change-Id: I12fde9cc7180118ade39b7a037d05e8793bd1c12
2013-11-01 08:59:09 +02:00
555168bd6b android: fix/remove last uses of $(OUTDIR) here
Change-Id: Iba4db538fea3ab494af737c91f5fd754de0c044c
2013-10-26 08:46:23 +02:00
6db1f5f4c6 Fix fallout from 30fc3d6cff15ceabea6e1f9c4683cd383c322d72
Change-Id: If97dc13e63986a7c9534f46673cfa8541893269a
2013-10-25 14:21:39 +03:00
01a13519e2 Fix bit-rot
Change-Id: Iae6aa3c1326456dde7261f471ba7d963058f20a7
2013-10-25 10:50:54 +03:00
c95393cbf3 Add dummy implementations of the UI layer callbacks now required
Change-Id: I2caaac66758863b0f384df13ab30526f21be1e8d
2013-10-23 10:49:21 +03:00
9b966d0dc8 fileacc is not a separate component any more
Change-Id: I59eac660accfc362766bc3744655e2ba2d66ddd6
2013-10-19 11:19:06 +03:00
e13af24d2b fileacc is not a separate component any more
Change-Id: I47f3dd29aba16aa2d8a5e3746c447288d2066b23
2013-10-19 11:03:23 +03:00
e30a34f7d7 Fix up Android app makefiles
Change-Id: I885c2bf3dd04b18850d983ab34199074bd41c175
2013-10-03 10:13:39 +03:00
ca99561170 More files are no longer in OUTDIR, only in INSTDIR
Change-Id: Ide6654cbc378621a41a4a207978a4f42bc44d3e3
2013-09-11 11:25:51 +03:00
be4b57b6da Copy some stuff from INSTDIR, not OUTDIR
Some of it is not in OUTDIR at all any more.

Change-Id: I1afbaafa0fe5a355158b44fcafd3d3e190fce79c
2013-09-10 11:38:01 +03:00
2477353014 LibreOffice4Android: render in a bit better quality
Change-Id: I65984af5e28c8a0250105b34c4bc7b1abf9ce3c7
2013-07-22 10:14:13 +02:00
847fa44810 LibreOffice4Android: support pinch zoom and dragging around while in zoom
Change-Id: Ic8e4cb30acff734e6860dfc9bb31e836d2ecd32d
2013-07-22 10:14:03 +02:00
015e1b8444 android: prefer external storage in DocumentLoader / LibreOffice4Android
With this, these apps can be used even if /data is something like 128MB,
e.g. on normal phones, not tablets / emulators.

Change-Id: I7c8f2787b6395e98e8065e2e207aa09d9a2f39b3
Acked-by: Tor Lillqvist <tml@iki.fi>
2013-06-28 09:51:10 +02:00
19efe68b1e Imrove scrolling in the Android "Desktop" app
I got scrolling to respond to the JNI scroll method call.  (This is not yet
the gesture I want to implement (scroll by pixels), but at least it’s a
start.)

At first I tried to do some hacking in the C++ part, then found the problem
was in the Java parameters, which set the mouse whell delta too big.  When
passed the value 1 or -1 to the Y value of AppSupport.scroll(int x, int y),
the scrolling is reasonable.

Change-Id: Id8fa0ada1a035760b7b05bf21325d0e51ef28fdc
2013-06-27 13:28:35 +03:00
7d528592ac android: Keep the images_tango.zip name as is
Not sure why I used to store it as images.zip. Probably just a mistake. The
code uses the images_tango.name.zip when trying to open it.

Sure, no toolbar with images is displayed currently anyway, so having this
file in the .apk is pointless, but there has been talk of reverting the
disabling of toolbars, sigh.

Change-Id: I12dfd3abe8f329d660b518f6b37904aa00423bc2
2013-05-02 15:26:25 +03:00
802a87e181 Adapt to library name changes for Android, too
Change-Id: I6da1f38c5a9693c13ef841442cbef017d388416a
2013-05-02 11:58:41 +03:00
abacc389db android: remove lotus word pro filter - bit optimistic.
Change-Id: I08bbec95db2ae9bc7226cd5ca1cc7b81c235a26f
2013-04-30 13:19:51 +01:00
5a15474709 Adapt to changes in type rdb file locations and names
The old bin/ure/types.rdb was just a duplicate of bin/udkapi.rdb. There is no
bin/types.rdb any more either. We have just udkapi.rdb, offapi.rdb and
oovbaapi.rdb now.

Change-Id: Idd0911f1d4d48f172af159b852918d429f17cc92
2013-04-24 12:45:47 +03:00
b5fea2f46a The file names of many UNO components have changed
Change-Id: I18f90b058e40ca15164fd3e8c33bc904b930981d
2013-04-23 19:33:04 +03:00
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
41d6003e87 Make the use of SAL_LOG=+WARN+INFO optional
Change-Id: I6af17a7745f4de88b4933e93b77eda1050760794
2013-04-19 11:03:43 +03:00
9e7c73d54c Minor comment change
Change-Id: I14e9b86c23ff000df2339a37ba78a11cc319f27c
2013-04-19 11:03:43 +03:00
bf2a1812a4 Attempt to avoid popping up keyboard after panning
Change-Id: Ie5639ea5a2c50e54ab880ac850287de07ff69959
2013-04-19 11:03:42 +03:00
1c0e3ea7a0 fix android build
Change-Id: I97903559e1f6ef48476a74a674c0832d9cb44640
2013-04-14 15:00:05 +02:00
f3c4b5606d Add more components
Change-Id: I3ea18b4a075516f3c098fad5d63466f20bf0b494
2013-04-12 19:03:49 +03:00
f204dc1f8f Get soffice.cfg from its new location for Android, too
Change-Id: I2d65b51ec9a223994d39dc9433d1290b44422e1d
2013-04-11 13:44:14 +03:00
7640fa315e Typo: string.xml->strings.xml
To make available for localization

Change-Id: I5469549422c7a2d2618ed9e836895f6698328b17
2013-04-02 21:29:42 +02:00
de8d12acf1 Use proper version numbers
Change-Id: Ib0284c3fe63636e42b2e72ab76b02a8197c837e0
2013-03-27 14:36:27 +02:00
783d3928b7 Try to make the scrolling and zooming actions snappier
Now it does work nicely during the gesture when all the action is on the Java
side (translating and scaling the pre-rendered bitmap). Looks a bit sad, of
course, that nothing scrolls in to replace the parts of page(s) scrolled out
during the gesture, and correspondingly for zooming.

To then get the stuff down in the murky depths of the LO code to do what I
want still is beyond me.

Change-Id: I9ce33ed482013d18a877d1798de3bce5ac608e5e
2013-03-07 21:51:26 +02:00
e669502dcf Start hacking on scrolling
Change-Id: I74f1d7feb935be65629bdbd7464f9882229948e5
2013-03-07 10:15:58 +02:00
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
4ceb66d86f Drop unused timestamp parameters
Change-Id: I1d825c39cde67c204110b4a787b3ffb290331fe5
2013-03-06 09:27:10 +02:00
0b10d7cf50 Rework scaling once more
Don't ask the LO code to zoom while scaling in progress. That is way too
slow. Return to the idea of just scaling the already rendered bitmap
containing the "top-level window" from LO's perspective, UI elements and
all. (Obviously if we continue to work on thie demo app, the desktop style UI
elements need to disappear from the sides of the LO "window", so that the only
thing LO renders is the actual viewport of the document contents.)

This time, instead of scaling the View, which for some reason causes horrible
flickering glitches at least on my device, draw the bitmap scaled in
onDraw. Much smoother for some reason.

Of course when we then in onScaleEnd() ask LO to do the actual zoom, what
eventually results (remember that the LO code runs asynchronously in a
separate thread, and the zoom request only gets posted to that thread) is not
at all the same as what just drawing the bitmap at scale produced. (Especially
not as there is no way yet to have LO zoom centred on a specific pivot point.)

Change-Id: Id80576c99a03f5f8bf0d8039c6c7406322581956
2013-03-05 21:36:31 +02:00