New branch 'feature/droid_calcimpress3_rebased' available with the following commits: commit b424cd46bdb30f7c55b2a55a44a8f9d8ab8e19bf Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Sun Nov 30 18:07:19 2014 +0100
android: extract JavaPanZoomController (PZC becomes an interface) Change-Id: I87e63008fe7c6db62c18bf461dc4dcda733393ac commit 3205e4a465ed82f8d0aca903b6e0ee0df685e633 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Sun Nov 30 17:26:50 2014 +0100 android: Fennec change - move classes from gecko.ui to gecko.gfx Change-Id: I510e0d601e293ed8e013a0273d5ae0f9be078d8a commit a25dc44a9bb4e6818557db99a5f1d0c848136a97 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Sun Nov 30 17:21:10 2014 +0100 android: change LOKitThread.draw to return void Change-Id: I00f3ed059bd633e662e5bee09703ca505bf3b9a5 commit 1f04e956d5d995334bf05043e19919855c234fcc Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Sun Nov 30 17:18:56 2014 +0100 android: Fennec PanZoomControler updates.. Change-Id: I277fbf522b16d9b479260df8372a5ee160adcc37 commit 420059f3fc6d904d9e736ef24ec7d4d1e77519f2 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Sun Nov 30 10:36:42 2014 +0100 fdo#85845 android: draw tiles immediately when they are ready Change-Id: I924a212210703b0f6136ddefacd77d98dc89f42d commit d43a6161e3da00186d2e05f66a34c4d25de135f7 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Fri Nov 28 15:21:52 2014 +0100 android: rearange anc clean-up GeckoLayerClient Change-Id: I6b4a7f8053adea6d86ee625201eeead188bbadcc commit 56ba1e7cc49fbff5957986eaac94035848bb0e6b Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Thu Nov 27 22:47:42 2014 +0100 android: Fold LayerController into GeckoLayerClient Change-Id: I6a6e702e243b389f1c487b6b5390f28a4292cc74 commit 3562526f48a9cd987d83eed75db76a4e215db465 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Thu Nov 27 21:46:22 2014 +0100 android: introduce getDisplayMetrics - reduce code duplication Change-Id: Ic020d9604814213e13c339b07b6e74de77a9f400 commit 5ee5dfe67543fbe2c164a615a971353df61347f9 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Thu Nov 27 10:39:40 2014 +0100 android: reset document dimensions when changing document part Change-Id: I2f7967ee20ad71b58e2b0dc7f182769499910373 commit 362c1a5b7415b72c8c526c58c1605905e55fb0df Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 17 13:42:41 2014 +0100 android: Change the handle type (long too ByteBuffer) Change-Id: Ia2ed94dbbb43d2e768da5af5ca7a51f5cda5bae0 commit 04e016151d969d8f69acdf4f7f21e43ef1f3d5f7 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 17 10:47:02 2014 +0100 android: use ByteBuffer to send or store pointers in JNI bindings Using direct ByteBuffer is much nicer option to store or send pointers between C(++) code and Java via JNI as it handles endiness and pointer size for us. Using "long" type can have unexpected results in 32-bit architectures (mostly Android). This was causing grief especially when Android introduced support for 64-bit architectures starting with SDK 19. Change-Id: Ie92d0f913b668e1724e846d70d1820445d9cb086 commit 423b5af4eb04112afe298550f55dbe006d1c5adb Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 17 10:44:04 2014 +0100 android: cleanup LibreOfficeKit initialization in Java Change-Id: I7688968e92ae4b3d6fef19c4544ae91bdcd8b1b9 commit 2c4199da8e51b7e263a625b2278c68c24b323c55 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 17 10:38:54 2014 +0100 android: use different function to prevent stripping JNI symbols Change-Id: Ib003da5c7fec7fc3783f01a33a63deb384c7e770 commit 8e976b2113992ae72e69542323d6563d6894691f Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 17 10:36:53 2014 +0100 lok: improve error reporting in lok implementation Change-Id: Ifc7b18e173b0c91c24a53fad9c35ac3a34a4b33e commit 8baefb818172d69c7474cbd6740765f63e62a057 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 17 10:34:20 2014 +0100 android: extract gathering document info into postLoad method Change-Id: Id90680d3b207973b55927add1c91111268bb2a48 commit 6d4dfbc079c90dbf6593a4783dba8cd5102f099a Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 17 10:32:26 2014 +0100 android: improve error messages in DirectBufferAllocator Change-Id: Iefab77e543606cfad937a79743fb3b9a68a0f2a2 commit d490237af969f825811b55d340154566649c0bf9 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 10 13:10:03 2014 +0100 android: add destroy and exit as a separate JNI call Change-Id: Ia8516da556b3736f34b366e2eb89ad8bbd7bafc1 commit 783e4556ea41094a3aeead93299a97e6eb41d399 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Mon Nov 10 13:04:27 2014 +0100 android: VM based implementation of DirectBufferAllocator DirectBufferAllocator is responsible to allocate buffer. We used Fennec JNI based allocation (and freeing) because of overallocation bug in some Android versions. With this the VM based allocator implementation is added and used by default because of bugs that happen in newer Android versions (specifically when ART is used as the Android VM). Change-Id: I07eb364fd1647b3a09d1568d4fef82398a02dfeb commit 768d4a20dd4384d3948d3c31a13414f842cca8e3 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com> Date: Sat Nov 8 15:19:46 2014 +0100 android: use int type for size in DirectBufferAllocator allocate Change-Id: Ied2687d334f7d1ff9ff2f3cb6664848d50814b7c commit 0062013cd0d068660ab50dfc43afc69adeeace2c Author: Tor Lillqvist <t...@collabora.com> Date: Mon Oct 27 15:17:03 2014 +0200 We seem to crash unless we have org.openoffice.Office.UI/Factories Change-Id: Ie172f60a7134173462ff9711a40dc74c94ad8206 commit 70d55f112521d9f35b738146805d595f291302a7 Author: Tor Lillqvist <t...@collabora.com> Date: Mon Oct 27 15:16:33 2014 +0200 Do the configuration pruning only in the DISABLE_UI case Change-Id: If85c6a86434c0aa32d188a0f128f6b6cd613bbb5 commit 4e1f2c2d0f142e51255c850d44bc3e548f5303fe Author: Tor Lillqvist <t...@collabora.com> Date: Mon Oct 27 14:33:51 2014 +0200 The configuration pruning with mobile-config.py seems to work now Change-Id: I1b1891f0d7d7b8aa407e7da346ff5f8e3cbe8657 commit bfa287444e24eb8d9f58d613b5a1364933d2a4eb Author: Tor Lillqvist <t...@collabora.com> Date: Mon Oct 27 14:10:18 2014 +0200 Don't prune org.openoffice.Office/UI It apparently contains color schemes and stuff that the code wants access to here and there. Change-Id: Ie3f0de5e3846df99a02a2693156679cc6c010d10 commit a47609d4e25cce81b65e086d16937c3f41a227d7 Author: Tor Lillqvist <t...@collabora.com> Date: Mon Oct 27 14:09:56 2014 +0200 Avoid automatic toolbars in the non-desktop case Change-Id: I9e5bff735b0035c147e10ae066da3a4873d66749 commit deb04da3c40ec38d877a777aa9d2779c388dabe8 Author: Tor Lillqvist <t...@collabora.com> Date: Mon Oct 27 13:26:31 2014 +0200 Ignore exceptions when getting the background color configuration We are experimenting with a pruned configuration database in the desktop case, and letting the exception propagate here killed the document loading. Change-Id: I59e5d016617c17c2bc36de2fd69c6691bfa6b135 commit b3ac452530c4e96b49a3c3a1f25f449e123e1adc Author: Tor Lillqvist <t...@collabora.com> Date: Mon Oct 27 10:19:59 2014 +0200 Beware of modifying a list being iterated Change-Id: Ib9cf1a47eb20bd28d954ddcded89f67cf6865f1c commit fd524afc8dc59d94514d292f522d27c3905b1c77 Author: Tor Lillqvist <t...@collabora.com> Date: Fri Oct 24 17:17:35 2014 +0300 Revert "Temporarily do more verbose logging" This reverts commit 00d2482326af17ac61d3c2aaa21d837f0e72bb37. commit 4978b81470fc12737d34114854c1e009dc2f6b13 Author: Tor Lillqvist <t...@collabora.com> Date: Thu Oct 23 14:30:26 2014 +0300 Add (commented-out) invocation of mobile-config.py Change-Id: I379601099bda928b9eeeaeb29030bc009e3cbbf2 commit 9be42e47c4b96e0d7ac9e155fdd07acb09174b5b Author: Tor Lillqvist <t...@collabora.com> Date: Thu Oct 23 14:29:59 2014 +0300 Temporarily do more verbose logging Change-Id: I3d0db329311e9f2496f80931e6d2776e18f1b2d9 commit 08dbbc5d1f8598d45f6800c47345e132fd0eb5d3 Author: Tor Lillqvist <t...@collabora.com> Date: Thu Oct 23 14:29:27 2014 +0300 Try to be less eager Change-Id: I83a395c628b00b6ca96c93d5d5362ea750e57b2b commit e3323d5768548295d9cfdd4be3c7c17a6b8067e9 Author: Tor Lillqvist <t...@collabora.com> Date: Thu Oct 23 12:31:58 2014 +0300 Log parsing time of each xcd file Change-Id: I290e2c84b17b9b5063139c6027b72f6cd3a78a99 commit e6a6aa7cc810fd3a1934908458a8ddbe752ff0f9 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 22 16:55:37 2014 +0300 SAL_INFO how long parseXcsXcuLayer() and parseResLayer() took Change-Id: I1e71b8a6348301cd5b3fed0ae8b3346ae3e07d8e commit df737f811b46a6faa2056e73a4581264d6e23cd9 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 22 11:54:22 2014 +0300 Bin duplicates Change-Id: Ie6347ed6b9c1b8bee7a08950d5c67d4a2039fba5 commit c2c366f3b5d126058b19f5f2d0124de2d92d04ef Author: Tor Lillqvist <t...@collabora.com> Date: Tue Oct 21 18:22:11 2014 +0300 Cosmetics Change-Id: I4d819f59ecb2462aee5998628ad034657bf3b0f9 commit 6fc9991b528426459044bd02ab717b3d2c66cc46 Author: Tor Lillqvist <t...@collabora.com> Date: Tue Oct 21 17:27:30 2014 +0300 Log time since object creation, not since epoch Change-Id: I43c7725b88c9326e269abc277f42e47c08acefb5 commit fd07c06fc43038e6ec1125166090ad52fdff1e3e Author: Tor Lillqvist <t...@collabora.com> Date: Thu Oct 16 13:01:35 2014 +0300 android: Stopgap: _exit() is better than a hang Change-Id: Iaada020e85a8d2557e270f7d1514f2260ffb2af0 commit 44e0d98bb538ff57dad62162f4e64701b86d847d Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 15 15:39:24 2014 +0300 Add a SAL_INFO The "bootstrap" errors tend to end up being displayed in some error dialog attempt which of course does nothing on mobile platforms, and that crack seems to crash on Android even, so this should give us some chance to get some idea at least what the code thinks is wrong... Change-Id: I070b017baf042ff692766d1efd1511e1addb6ecf commit 8a79385e8f9860e637d682f84d9d1da3ea2c75ff Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 15 15:39:04 2014 +0300 Use maximum logging verbosity while attempting the restart Change-Id: I3e3162474db1edef3b92e252b249fe373dedbbfd commit da9d3445feaeb3dea756d7f6bcdf479064581a06 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 15 13:12:37 2014 +0300 Reduce log verbiage Change-Id: I0da75df61d129aaaf03ac546fcf1e5dbcff9d404 commit 0c295a7b3013637f9cf7afac2950539d0774825f Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 15 12:08:38 2014 +0300 If loading a document fails, try restarting the 'main loop' and try again Does not work, though, we end up with a crash that is hard to debug thanks to the rubbish tool-chain. Change-Id: Ie1954e35e649fac8dd106f0ccbc6951c4a6c1c63 commit 6c25cf6e3fcfedaecd108cfbfd937a659adaa980 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 15 12:02:44 2014 +0300 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 commit b4ca65cc5e9997516de3a43ef8bbc5390670a2eb Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 15 10:55:42 2014 +0300 The 'bInitialized' state needs to be global, and unset in lo_destroy() I assume, for lo_destroy() to be useful at all. Not that I know for sure what the exact intended semantics of lo_destroy() and lo_initialize() are. But I assume that the idea is that after lo_destroy() has been called, lo_initialize() can be called again. Change-Id: I2dea26db150d19ed438427e1c119a5297b9bc9c3 commit a324b30afee71bb6dd31d2f636afe6204e6d7a43 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Oct 15 10:17:15 2014 +0300 Don't keep the LibreOfficeKit pointer in a global variable It is invalid in case lo_destroy() has been called. Change-Id: I45533b66d32fc650e48748da8ea1d2f2aaa381e0 commit 85bb22202d638292ef5a21b5384fd83607b10d76 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Oct 1 08:13:45 2014 +0100 android: remove preferences menu item for now. The preferences activity doesn't work, so easiest not to try to use it until it is properly implemented. Change-Id: I4b4195f6dcafa3c99dbef1ae3044ea18ab173c21 commit 0a68496bcb47662fca0fb26ac9e19df39de7cab0 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 22:14:48 2014 +0100 Add libanimcore to factory list. This helps various .ppt and .pptx files. Change-Id: Ib53fed6083b369d3421eab082bda0e31d1f3847a commit 244d1f12f71591195c8d3e5d75cb17588ed241a5 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 20:43:43 2014 +0100 Fix wrong conditional for zoom-saneness-check. Change-Id: I54cb8ffc71c162e75675d306b903ef40ad05092f commit 4c5a8f1772f7c927126b8fd943e300883f23fa2a Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 20:03:26 2014 +0100 Temp: the DrView scaling will be completely wrong for tiled rendering. (No idea why yet) Change-Id: I9fcbd9055d82feb59b1c957234c9d7747f95ced9 commit 4a6a325c6585ba636bbee147a63266ba4f4162f1 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 16:12:56 2014 +0100 Don't render infinitely large document if empty. Change-Id: I887d8cef0c24b1e5155969a9f571660ca54ef463 commit a721611fab34f961f5d6dd67cdf970b4aa3eb621 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:28:36 2014 +0100 TODO: printfun needs fixing (see previous commit). We don't need this for tiled rendering for now though. Change-Id: Iac9ed2a4327840ac0af00eb1903484e127fac2c8 commit 525208d0c9fb04ed80d2d279dd0164902cb9cac5 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:28:03 2014 +0100 Use twips internally for FillInfo too. Otherwise errors sum up leading to tile-mismatches for tiled rendering. Change-Id: I5328771a2d7c284870bb028b53fe69a61e00ba6d commit cf73d0270a2f7d7253dadbc2af737a18dd4cead6 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:24:25 2014 +0100 Adjust MapModes for gridwin tiled rendering. Change-Id: I8d31521d6b22f375c6de413f2070746f4758a431 commit 201e3dc9d2c3159aab34fc4e65f7a0dfddbc48bc Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:22:48 2014 +0100 Don't abort rendering if Android window 'minimized'. This simply has no relevance to tiled rendering. Change-Id: Iee348cf6792d83d364c33de81415a7cbe0be6a47 commit 7eb51514f785ee24b174c29fea47ec5c69ebb1be Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:21:42 2014 +0100 We want to keep nPPTX/Y for our old scaling. Change-Id: Ia10baf8eebeb92c421066a392387a1ad71e56ce9 commit 904e5bb168bea5f83b28498fbf28d920c0ed7de8 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:20:53 2014 +0100 Remove incorrect fudge factor. Change-Id: I3a8d2b2ca1f90a07bd9fffd9e33f59b23671569c commit 7d62cbb807fb6b56a41d7b2b071f4a7995acc2c6 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:20:07 2014 +0100 ScreenPos calculations in twips too. Change-Id: Ibc45f414a56e3c4cdf6c7f384d561938382c1653 commit ab90b9036e2f5304d332277c9eb93c7a1f24bab6 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Sep 30 15:19:30 2014 +0100 Use twips internally for GetScrPos. Change-Id: I48c674815c95f73722a427fd2d8d9a3dca9b3a6c commit 60970adc4cd7da6d1591c226131a6a93798cb1ad Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Aug 27 14:29:07 2014 +0200 Use GetScrPos so that col/row-headers match the grid. Without this we can still get single pixel errors which can sum up over multiple columns/row. Change-Id: Id428dafab1ca771c123c84d815261263a7d33fed commit c13e095def941ded1dfe44198a19ecc1fb28ca49 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Aug 27 20:52:09 2014 +0200 Match TiledRendering scaling to the new ViewData PaintMapMode. This is a bit hacky, still need to figure out what's going wrong that we need this weird conversion. Change-Id: Id1c62401f9f85c6d436bdd73b51ccf126100cbc4 commit 9a805b3f7b3bdec38e2cde98a316abe5b81ff914 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Aug 27 20:42:48 2014 +0200 Don't use UpdateVisibleRange for calc tiled rendering. Change-Id: Iaba02741acc280dfc4c500e0d08271b39560149b commit cf7de9ae41cd84195f214e4bdb176e6adaf84539 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Aug 27 20:37:45 2014 +0200 Set visible range from origin for Calc Tiled Rendering. Change-Id: I255b8865786088751c5d71da9db2ba38defed3bd commit fb0f5df1689653105aa20bd07a1817b9ec357928 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Aug 27 14:46:06 2014 +0200 Allow PaintMapMode retrieval. We need this for conversions elsewhere (outside of ScViewData). Conflicts: sc/source/ui/inc/viewdata.hxx Change-Id: I86ce18a22095488d3d3750bd13a5fab46a352be5 commit 0f53ffdb459a48b18a6f59a07a42dabf97c0a338 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Aug 15 16:48:01 2014 +0200 Use MapMode instead of nPPTX/nPPTY. This is far from complete: we need to replace all uses of nPPTX/nPPTY for things to work correctly. Change-Id: I7c8aca62c537d8770903f4a6ae0a164479af3fc1 commit 3e41fc17a9d79fd9de3fe4b6d8e2796ba49b5750 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Aug 15 16:46:11 2014 +0200 ScOutputData needs ScViewData for scaling. Change-Id: I14cd3e835ba8233478514d5f6832737aa2c99bf9 commit 6821cf58c6b504f8083ae5ce69ebc8fc9b72c35e Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Aug 15 16:06:06 2014 +0200 Make nPrtToScreenFactor and GetOutputFactor fractions. These are then used for our output MapMode which required Fractions too. Change-Id: Icbfd9f808a6efe297096c94dc4043cef88c0ba0b commit 6556557cd81b5d7fc51d3065313fddef04f9bb1b Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Aug 15 09:54:58 2014 +0200 ScViewData::GetActiveWin can be const. We need to reuse this in other const methods, so lets make it const too. Change-Id: I6d96fa2370081d515f8629998d8a1e218bec643a commit 02e469b511a5d6af2ec3c6830445b76515f60d21 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Aug 15 09:53:56 2014 +0200 Allow overriding limits for SetZoom for Tiled Rendering. Change-Id: Ic656012921408ce5c8dc691933a71a9e0ac78e5d commit 45150fc68a363e2f30573142b955e3bdb56ffdf6 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Aug 15 09:52:58 2014 +0200 aScrSize should be mutable. Change-Id: I7376ea17aa4f66c9d9085757b84fb69dd0ad71cb commit 1652968f6e58c2651fb6536bec0995aecdf78b59 Author: Andrzej Hunt <andr...@ahunt.org> Date: Tue Sep 9 06:12:44 2014 +0200 Fix PaintTile scaling preparation. Change-Id: I0a725fd5c030f3c089c2bbd25947088c321eb2d4 commit b3834b6c667ee5176ef19fb8750ed5840745c09d Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Thu Jun 26 17:06:58 2014 +0100 Ensure we actually render all cells in the selected area. Only cells within maVisibleRange are rendered, even if we request a larger area (and maVisibleRange is otherwise not updated for tiled rendering). Hence we should explicitly set it here. Change-Id: I399be9df1f266a2b3d32a95483960b21f561c6b3 commit 3175d284e194b2b64c26105110582369e6b13392 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Thu Jun 26 14:30:08 2014 +0100 Take into account drawing layer for data area size. The drawing layer could potentially have items that are outwith the data area, but we probably want to have them included for tiled rendering. Change-Id: I958c4fa29491cdb0fd80392dfcfa033306f2b76c commit 780261fa817ed629b6ed9a2c6cf39122e1fccd16 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Jun 18 09:33:16 2014 +0100 Implement data area size retrieval. Cell dimensions appear to be in TWIPs (but the drawing layer is in 100th mm). commit 4a9eba35052a24501bffcccaa388f3638f4f77c5 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Jun 18 08:28:04 2014 +0100 Allow overriding of device for Paint, and use that for Tiles. Paint handles figuring out which cells are within the visible area for us etc. Gridwin being a Window which paints to itself is a bit of a pain, since we now need to be able to reroute painting calls to alternative output devices, however these changes seem to be sufficient to at least get the cells in the desired tile rendered. Change-Id: I7bd1434c97acc6e9ef6e1e63cbcf039b987c88e4 commit ed3611a9b0b1e6130ecacccd10009b825e177b50 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jun 16 16:19:56 2014 +0100 Calc: Add tiled rendering device to the paint view. This prevents the previous warnings of SdrPageView::DrawLayer: Creating temporary SdrPageWindow (ObjectContact), \ this should never be needed Change-Id: I76cb7c9ed4d45bfcbd297f697314309b4e036f80 commit f11e43520d2a8f6a416088ff0f0686b7e2bcd1cd Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jun 16 15:00:02 2014 +0100 Render tiles from calc. Currently the document size and number of cells to be rendered is hardcoded, this will need some more work to select the correct cells for a given tile (i.e. cells from location). Also, there isn't really a "size" for a calc sheet, so presumably we'd need to instead return the area containing cells that aren't empty, whilst still being able to render larger tiles? (And in any case the client will need to be aware of this and provide an appropriate interface, i.e. the current LO UI simply extends the sheet ad-infinitum.) We also currently get some warnings most likely related to the way we push our OutputDevice into the rendering methods: SdrPageView::DrawLayer: Creating temporary SdrPageWindow (ObjectContact), \ this should never be needed Change-Id: Ia9d64d7de6c22d5b401350f88497a7ec106f1973 commit 737680175eea09a900d13410bcb3e787ace04e21 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Sep 26 09:12:56 2014 +0100 Add more lok debug output. This should allow as at least to see if soffice_main thread initialisation gets stuck (which we'd otherwise have a hard time determining if we are trying to debug e.g. on Android). Change-Id: I0baa211c015318c4e0fcf78a4e86a0ba8b895d5f commit 29470ddb81fc6e942b34353e1e06b9ada8eeb8ca Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Sep 26 09:11:53 2014 +0100 Don't use this quick hack on Android. It *seems* to cause missing areas (at least in Impress). (i.e. the bottom half or right side of headers on slides can sometimes go missing, not using this hack fixes the problem for me). Change-Id: I205531666e0ad12470020e5ff2568ebf16bc2f01 commit 1d3379575573bdc73406eb8f9ae273cb1894aa71 Author: Andrzej Hunt <andr...@ahunt.org> Date: Thu Sep 25 10:08:54 2014 +0100 TEMPORARY: We need OfficeIPCThread for LOK on Android for now. LOK uses the OfficeIPCThread to know that soffice_main is ready -- we should have some form of separate condition instead since I don't think we need any of the actual functionality here for Android. Change-Id: I27030383aae4d7895725c2161c53617f896a5f83 commit be167e7e95a9b0327a965966e7b7fa408cbadf58 Author: Andrzej Hunt <andr...@ahunt.org> Date: Thu Sep 25 09:25:47 2014 +0100 Don't use ImplDoTiledRendering for Android. With svp this causes images not to be rendered for tiled rendering, however this could potentially cause issues with SmartArt (however SmartArt support for Tiled Rendering is possibly problematic in any case). Change-Id: Iccbdce7b6d5353966892fbde3d3d10eb49164df9 commit 3c4741e8ca850291dfdbe66d724e4b42b9ad95ee Author: Andrzej Hunt <andr...@ahunt.org> Date: Thu Sep 25 09:20:56 2014 +0100 LOK Android: don't initialise until TMPDIR is set. As part of LOK initialisation we now start soffice_main, this requires TMPDIR access, and will fail if we haven't set TMPDIR (as by default it attemps to access /tmp which is not allowed on Android). Change-Id: I63bd7bce9b52c898c60fda6eea33ee919349a109 commit 5909314f01f37ad96fc216c8f3b7c42913b91a1e Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Thu Jul 31 10:07:39 2014 +0200 Use one test instance to run all LOK tests. Recreating Office instances after destruction (when still within the same process) currently fails, hence we need to do all tests at once for now. Change-Id: Ic7652c909e1cd970fe1ee76995e61fb6aae8f96c commit 2e957563cc0fc21ff79393c8e7bcdf3f481c8f7b Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Wed Jul 30 19:52:46 2014 +0200 Make common paths member variables. We'll need these for other tests too. Change-Id: Ia99c2e60f5e5bb24a83875a9dcf85a6b4f54beb4 commit bc53fa0a5f5192a79524930d11e2433479acd6d2 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Tue Jul 29 07:18:28 2014 +0200 Upgrade lokconf_init to LibreOfficeKitInit.h Change-Id: I0581a107c3eefd33c25b003afe9f7be217598441 commit 77eb4a3bdf77c7903bf1c5567ffe6335e6e53d18 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jul 28 20:23:03 2014 +0200 Kill the libreofficekit static library / shim.c. It looks like the cleanest method of getting lok_init into a LibreOfficeKitInit.h header (in a c89 compatible way) is to have it as a static function. (inline is only available in C99 or later -- this is actually available on Linux which is the only place that we can actually use lok_init anyways currently, however given we have to keep c89 for the C code (for MSVC) compatibility, selectively enabling c99 would likely be more messy.) Conflicts: libreofficekit/Module_libreofficekit.mk Change-Id: I0493e7a68ed5397479220bb6ba8c3db870b6dd32 commit 37a48c9f1d2fedddf5b9cd5d0505ca94eacdc119 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jul 28 16:18:57 2014 +0200 LOK: do clean main thread shutdown cleanly. Change-Id: If44971f67a489f6b50dee6c1683707c47e695de4 commit fb61c1ec624a3ee2bff975f07566c744dc0c68a2 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Jul 25 21:03:19 2014 +0200 Make sure LOK is actually headless. This prevents e.g. the document recovery dialog from trying to be shown. Change-Id: I253720f7fa1abd1c053670434f8394473517b670 commit bab5983ab070429750b8293551f7aee391712ae5 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Jul 25 20:56:18 2014 +0200 Don't fail on --protector. If we have any "unknown" command line arguments Desktop init will fail, however our LOK Tiled Rendering test uses Desktop (via soffice_main). (Other unit tests don't use soffice_main hence this check never comes into play.) It looks like it's most reliable simply to ignore --protector here, rather than try to filter it out elsewhere (which is difficult as it is passed to osl via SAL_IMPLEMENT_MAIN). Change-Id: I95d047892851ba2cf9edd2e26bacc6efa0320f71 commit 971a3b7b244d76a885bcdfb29f028206a05b8987 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jul 21 21:16:09 2014 +0200 Don't start Impress Remote server in headless mode. Change-Id: Ibafe57413a60745e949dc3146fbc843c52c029d6 commit aa149df3244e811bbca29a8fe9af438895c7f12d Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jul 21 19:36:11 2014 +0200 Use gb_CppunitTest_use_confpreinit for LOK tiled rendering. Now that we use the event loop for LOK we need to make sure that it is able to run successfully first time, as unit tests start with a completely clean config. Change-Id: If9ddcb75fe8286381d71ecdc76ac7eb3697960d0 commit f9d549d0d44c8bf2a6bc28b9d9c1f98a7057a03a Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jul 21 19:35:13 2014 +0200 Add gb_CppunitTest_use_confpreinit: For unit tests that use the VCL event loop we can use this to avoid the otherwise required restart. Change-Id: I48265d7e7188a4efaa6f87432c762320331c0c78 commit 2f9c7b8b3055eafbad76077c986d408f937f26b2 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Mon Jul 21 19:34:09 2014 +0200 Implement lokconf_init. This is a simple executable which can be used to ensure there is a pe-pared configuration for unit-tests to avoid the usually required re-start on the first run. Change-Id: I49b706e8daa93bc34db508a24615b63b9babddba commit d31b9d3fa8ba88ca6a7457e6b6b23b431f6a4733 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Jul 18 13:12:25 2014 +0200 Fail LOK initialisation if restart is required. Change-Id: Ia13a3523666147f002b5a5177fd6962d55556f56 commit 6e4b96371221f0c59ad3032653a8e2fa448a895b Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Jul 18 13:10:14 2014 +0200 Add OfficeIPCThread::IsEnabled. This lets us easily check whether Desktop::Main has shut down, i.e. which happens on the first restart-requiring initialisation. Change-Id: I7fe5699a4bf59e2c3b891ac73abd9b147773d22e commit 09aeabd3b8e2a39a7d72ef9dd3085f347825f632 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Jul 18 10:02:48 2014 +0200 Use OfficeIPCThread::WaitForReady rather than sleeping. This way we actually continue when we're ready to, rather than dumbly hoping we wait for long enough. This isn't entirely unproblematic though -- if we have no config pre-prepared (i.e. first-run), then we just end up hanging on this since soffice_main exits without doing anything to the OfficeIPCThread. (Which is especially problematic for unit tests which specifically run on an empty config.) Change-Id: I064fb500a224cfe37a0d3ba24b6154ffd72a71a3 commit 4b77347d3fbb96e950abd66c40c8c386961fb972 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Jul 18 10:00:42 2014 +0200 Bin outdated / incorrect comment. Change-Id: I7b8f97377b9606a2228f172f772d8051a64703d2 commit c9c5cd61399d0324eab92085b7a58363db901506 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Fri Jul 18 09:48:47 2014 +0200 Add OfficeIPCThread::WaitForReady. For LibreOfficeKit we need to start up the event loop, and can't continue initialisation until all the related (VCL etc.) setup is complete -- the OfficeIPCThread is also enabled as one of the last items, and can be used to indicate whether or not we can start actually working with VCL. Change-Id: I0450b65584ddf6e8d02ce0c6e66e06f47841d1b7 commit fa59f1abe34d6a7f18998ae04df50a02cb4537d2 Author: Andrzej Hunt <andrzej.h...@collabora.com> Date: Sat Jul 26 16:06:04 2014 +0200 Hack soffice_main into LOK. Change-Id: I86e13192ddb5904afabca38d3a201f17f145de09
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits