137 Commits

Author SHA1 Message Date
Matúš Kukan
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
Tor Lillqvist
6265876ae9 iOS tiled rendering work
Possibly quite broken intermediate commit. But anyway, now it is
possible to render the tile diretly to a CGContext. Can be seen in
the MobileLibreOffice app when build in the Debug_tile_tester
configuration. See touch_lo_draw_tile() in viewsh.cxx. Unfortunately
the old plain LibreOffice test app is now broken, though, and
displays nothing at all.

This refactoring and hacking in vcl was done in a quite ugly fashion,
with ifdefs etc. But trust me, I did try, several times, for many
days, to get where I wanted in an elegant and clean fashion. But doing
it cleanly meant not being able to actually build it for days while
trying to figure ut which bits go where and which class should be
split into what base and derived class(es), and it was too much for my
limited brain capacity. I just couldn't juggle all the vcl class
structure in my head, especially as I don't have any good
understanding of the general design of it all.

Change-Id: Ia59d6a9cce15a63e63f94e8d8574bef21993fb1f
2013-12-14 01:42:02 +02:00
Marcos Paulo de Souza
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
Michael Stahl
b800216933 remove INPATH and PROEXT
- WORKDIR path is just workdir
- INSTDIR path is just instdir
- WORKDIR_FOR_BUILD is workdir_for_build
- INSTDIR_FOR_BUILD is instdir_for_build
- replace other usage of INPATH by combination of OS and CPUNAME

Change-Id: Ie398387ebd82a968ec2605f2103c55b43a231482
Reviewed-on: https://gerrit.libreoffice.org/6601
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-11-07 14:27:50 -06:00
Tor Lillqvist
0aa9ced531 It's types.rdb now, not udkapi.rdb any more
Change-Id: If6e8c4862ec628eb4c052e0fd237f5aef89db8eb
2013-11-06 00:44:28 +02:00
Tor Lillqvist
5a0aec771f Add dummy touch_ui_dialog_modal() here, too
Change-Id: I1b1e47de2eec94150a0abee4aa74994f55b9b88e
2013-11-01 00:23:16 +02:00
Tor Lillqvist
13c3ab5789 Use actual executable path
Change-Id: I75ffc83be6af34b09b4a98a5890b3585b4a76bde
2013-11-01 00:20:28 +02:00
Tor Lillqvist
f0fb30e7d0 Get rid of some crack
Change-Id: I9806eb87e8d679c3b37de9cf7b87e26c3d4b5387
2013-10-28 11:33:09 +02:00
Tor Lillqvist
c755095112 Add a couple of source files
Change-Id: I45e1a8483ff065d584d83824f9020f7d33a5257e
2013-10-28 11:33:09 +02:00
Tor Lillqvist
876111ad31 Fixup glitches in selection handle dragging and coordinate offsets
It is obvious that I don't fully understand how to handle the view
coordinates, the applicationFrame etc. Possibly I am doing something
slightly wrong... Anyway, add a hack to make the touch input actually
refer to the thing under the finger;)

Also fix the handling of the selection end dragging.

Change-Id: I27a6a978e7fc28759b70d29ebca75bfd6b5f54a1
2013-10-27 22:11:19 +02:00
Tor Lillqvist
ee1f43710f Bin some unnecessary NSLogging
Change-Id: Id4baff53735586345dd6624f3c8b996f1816149a
2013-10-27 22:11:18 +02:00
Tor Lillqvist
37056560a3 Tweak how the resize handles look and make it easier to grab them
Note that this *is* still just an experimental app, not intended to be
in any way carefully designed for end-user use. I tweaked the look and
feel a bit just for fun.

Change-Id: I98339d32a8c3ac332fc42b206ab185a61abc4cc6
2013-10-27 22:11:18 +02:00
Tor Lillqvist
a9759f706b Add a few sources from vcl
Change-Id: Iaddbfb48a071baaf84ee7bde38f40449f342dce8
2013-10-25 00:48:11 +03:00
Tor Lillqvist
54ef5bd641 More work on selection handling in iOS
Got the selection start and end handle dragging working... The trick was not
to call SwWrtShell::SetCursor(), but SwCrsrShell::SetCrsr(). Sounds easy but
took a lot of guessing and experimentation to figure out. Anyway, now it does
what I had expected it to do a few das ago already.

There are glitches, especially in corner cases like if you move the start
handle past the end handle or vice versa.

more

Change-Id: Id6c1d99a4052531789bccf0d48165cfb41b89cfe
9b94c0dd55b04a7b6b3c40654562a9c51fa9b450
2013-10-23 00:19:20 +03:00
Tor Lillqvist
025bd0fab4 Add a file
Change-Id: I0d0934d964143231b11356fc25cc3e6dad289d15
2013-10-22 23:42:35 +03:00
Tor Lillqvist
657a3a8182 Try to handle selection resizing in a more "correct" way
Faking mouse clicks is a stupid way to do it of course. Try to do it
"right". For now just worked on moving the end handle, but once that
works, similar code should be used for the start handle, too.

Does not work yet. It is hard to extract out from
SwEditWin::MouseButtonDown() exactly what all is relevant, and what
isn't, for this use case.

Change-Id: I76a226f787facbac645aaff8b4852d693bcf4ccb
2013-10-22 01:10:41 +03:00
Tor Lillqvist
36fb29338b Bin verbose logging
Change-Id: Ifd3613f7a48f966f23ea2023f922b05b5f83fcab
2013-10-22 01:10:35 +03:00
Tor Lillqvist
bdf2b506c3 Intermediate commit of experimental iOS app hacking
Change-Id: I9326c9684a9c53f1f9a3ea5603bcb44c941e8918
2013-10-22 01:10:25 +03:00
Tor Lillqvist
9b966d0dc8 fileacc is not a separate component any more
Change-Id: I59eac660accfc362766bc3744655e2ba2d66ddd6
2013-10-19 11:19:06 +03:00
Tor Lillqvist
4d8f12f57b More text selection WIP hacking
Change-Id: Ia29725295613faf875a688b3917b144a5f05bbe3
2013-10-18 18:48:03 +03:00
Tor Lillqvist
24f8446c9e Work in progress: Text selection handling for iOS
Change-Id: I31c6bcb9a4b26653d439601f78d71fd94d938eeb
2013-10-18 15:45:20 +03:00
Tor Lillqvist
12947fd00d Add outmap.cxx
Change-Id: Ied91c3edf9e4c8996a08ea722ba8dd409357d7b5
2013-10-15 15:45:14 +03:00
Tor Lillqvist
fe6e90d2b4 Require at least iOS 6.1
Change-Id: I6e75db10028143ef5926ceed8029e0404ab82d2b
2013-10-15 15:45:11 +03:00
Tor Lillqvist
12b1ca3236 Hacking on iOS keyboard handling
Change-Id: I0d842cc951cb5a3e7e990f835f541ccf1bd89df6
2013-10-13 23:17:39 +03:00
Tor Lillqvist
cbae2baa41 Reduce logging
Change-Id: I195a6a38f7cc597e6365ffd7f3e0432c73447e1a
2013-10-13 23:17:38 +03:00
Tor Lillqvist
e9f260b380 Minor refactoring of iOS code
Rename functions so that functions called by the UI layer for actions
to happen in the LO layer and functions called by the LO layer for
things to happen in the UI layer use different prefixes. Move
declarations to the generic <touch/touch.h> and avoid iOS-specific
types in the API.

Change-Id: Ieb8979065e02a87c4a415c934163265f2790d011
2013-10-13 23:17:38 +03:00
Tor Lillqvist
54be385b33 Redo the temporary hack for long touch: just simulate a double-click
This is just throwaway experimentation, not how it should *really* be
done of course.

Change-Id: If600a5d3f01f118e84079f513dfccb25f4d59622
2013-10-11 18:05:05 +03:00
Tor Lillqvist
ee0e92c9e9 Add some more source files
Change-Id: Ife2ee57878b2fad7af84f4a8b0b0a172f7a2cb7e
2013-10-11 18:05:05 +03:00
ptyl@cloudon.com
da69a3ef5c iOS experimental app support for selection marking via long press gesture
Change-Id: Ib7a71797a2dc967f9d8ddd60fdc10c78201a87c8
Reviewed-on: https://gerrit.libreoffice.org/5911
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2013-10-11 08:19:50 +00:00
ptyl@cloudon.com
4e7495ac2c Fix for iOS scroll by pixels, and pinch to zoom
Minor further changes by tml to match the coding style of surrounding
code mainly.

Change-Id: Ied6087a264f1c6b00763ea36fba9808329afede4
Reviewed-on: https://gerrit.libreoffice.org/5742
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2013-10-09 14:37:46 +00:00
Tor Lillqvist
0ef3218911 This app is called "LibreOffice", not "Viewer"
Change-Id: I19663a22cedc0ed4355fc63d28821d80520ee292
2013-10-08 20:39:10 +03:00
Tor Lillqvist
b7d7e3d7d6 WaE: NSLog format errors when compiling as 64-bit code
Use long format modifiers and insert casts to make the code happy both
as 32- and 64-bit.

(Sure, this is just in temporary debugging output NSLog() calls.)

Change-Id: I7c05c59a76e683b3401974c2b468d1aee2de4098
2013-10-02 10:00:21 +03:00
Siqi LIU
c073bc0962 move XCode specific gitignore to top level so that all XCode projects are clean 2013-08-31 12:21:44 +02:00
Ptyl Dragon
70e247733e Add more components
Change-Id: I30daf067fe9a1804a55be75c040db49dfbb18d92
2013-07-23 17:09:57 +03:00
Tor Lillqvist
04d9febcef Add sw/source/core/text/guess.cxx
A reminder: Listing some source files in this Xcode project does *not*
mean that Xcode would have any deeper knowledge about them. So Xcode
(and other IDE) fans, don't get overly excited, this is *not* a start
of making an Xcode project for all of LibreOffice or anything like
that. I just add arbitrary source files to this project when I happen
to want to set a breakpoint, and can't conveniently do it by going up
the call stack until something in that particular file.

Change-Id: Iac77dff17f56ec3f2826fd887cc065160b65936e
2013-06-05 15:05:14 +03:00
Tor Lillqvist
15e31ae2c3 Adapt to new CoreText code
Change-Id: I6e2075894fc9b1bda7c002728d7853e8ed5910f7
2013-06-04 17:23:14 +03:00
Tor Lillqvist
9b84549312 Plain "make" hopefully works fine too
Might make it a little bit easier for new contributors.

Change-Id: If4475c1ea7f55c34971beecd7573aaaf545e7106
2013-05-27 13:17:52 +03:00
Tor Lillqvist
d97cf4f14c Update names of rdb files and of the fsstorage library
Change-Id: I344d64212aa1d42171f18dae7659ab7f56fecbcb
2013-05-01 20:50:41 +03:00
Tor Lillqvist
a3892f465b Bin lotuswordpro_component_getFactory
Not suitably licensed.

Change-Id: I221cccb9d2ff5b6cb5e25161b6d5bfe504acb10e
2013-04-24 18:14:10 +03:00
Tor Lillqvist
1e7bf8de3b Add pan gesture handling
I get exactly the same kind of artefacts as in the Android app, which
I guess is good as it is at least consistent, as the implementation at
the LO layer is identical...

Change-Id: Icf0690fd2c48a133cb66de2ab7977b7088d2199e
2013-04-19 00:18:33 +03:00
Tor Lillqvist
aca9824cfd Add comment
Change-Id: I737e43d35eb2ebd6aeadeb5695cb3ecc74cc4484
2013-04-19 00:18:33 +03:00
Tor Lillqvist
ab49c55bbc More orientation experimentation and hacking
Now it re-orients and re-sizes the LO "frame" correctly upon rotation,
but it still starts wrongly if starting in landscape orientation.

Change-Id: I4c12a7e00d687391435a47400b6e8b4c7e49bdda
2013-04-16 15:51:03 +03:00
Tor Lillqvist
cfe512ac7b Start hacking on handling orientation changes
Change-Id: I94cfdc1b334539399faff29c046185bbbf698d23
2013-04-15 21:25:43 +03:00
Tor Lillqvist
c02f96f0bb Bin unneeded #includes and usings
Change-Id: I93102156c4713191c8ad49da9b9d2eda5be722e8
2013-04-15 21:25:42 +03:00
Tor Lillqvist
efef1c690f Add components needed by spreadsheet documents
Change-Id: I191bc093def5d2965b463dcff9e1289901064ce8
2013-04-15 21:25:42 +03:00
Tor Lillqvist
e3e040f671 Add text input to the iOS app
Don't have our View class implement the UIKeyInput protocol any
more. It won't work properly anyway. The docs say: "Only a small
subset of the available keyboards and languages are available to
classes that adopt this protocol".

Instead, use a transparent UITextView on top of our View to accept
keyboard input.

Seems to work as expected.

Change-Id: I3093ea7fbfa0ecab0dc5d0a38e5695723e8ed4ad
2013-04-14 01:52:28 +03:00
Tor Lillqvist
410ad97b30 Listen for keyboard show and hide notifications
Only react to hide notification for now, call lo_keyboard_did_hide()

Change-Id: I2f429039d2a84269783d103ad635ff4c407c4a15
2013-04-13 20:59:04 +03:00
Tor Lillqvist
7f93d63ae2 Add some more files for easy breakpointing
Change-Id: Ib68928d7213a7dbba830b20c882ba53c6f3deb4c
2013-04-13 20:59:03 +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
Tor Lillqvist
8000406861 Add one more file for easy breakpointing and re-structure list a bit
Change-Id: If37b5e646562357c4c6c9ce0a3821d92bbfc07f9
2013-04-12 15:22:10 +03:00