Commit graph

4892 commits

Author SHA1 Message Date
Noel Grandin
8416a65af1 fix spelling structur -> structure
Change-Id: I7aa4a9bf72732db95a67cee368f3a83a0d71bb9c
2014-07-17 14:49:41 +02:00
Andrzej Hunt
b7742fd8b8 Add getPart(s) to lokandroid too.
I.e. make lokandroid match
4d15212ef8
2014-07-13 08:06:58 +02:00
Andrzej Hunt
01f43039aa LOK: use solar mutex for setPart.
Needed e.g. for changing slides in impress.

Change-Id: I2f5de40d4efbacde910e27225768979a98ff1c0a
2014-07-12 05:19:15 +02:00
Andrzej Hunt
d27a140534 LOK: some logging for tiled rendering.
Change-Id: I5779eec97507b1996cda89174a6e6c55cdd57baf
2014-07-12 05:19:15 +02:00
Andrzej Hunt
4d15212ef8 Add get/setPart to ITiledRenderable, and implement for sw/sc.
Change-Id: Iec3d6374f029149cadf8fb9c9b16fec90146c31e
2014-07-12 05:19:13 +02:00
Noel Grandin
dac4ca5f68 new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.

Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11 14:12:25 +02:00
Andrzej Hunt
390f842de1 Check whether Command Args are already set up before doing so.
Could already be set up e.g. if a client application is using UNO
separately, in addition to LOK.

Change-Id: I50c3230b6f2456360273902a308c303576baac10
2014-07-11 11:43:49 +01:00
Caolán McNamara
0d78ad871e DBG_ASSERT->assert when followed by dereference
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
2014-07-07 10:48:25 +01:00
Matúš Kukan
7931b6d398 Fix dependencies for libmerged wrt. libsofficeapp
Change-Id: If1575e0bcacbc5c3c40d485063b1025017eef73a
2014-07-03 13:58:11 +02:00
Tomaž Vajngerl
a3ccf3eab5 lok JNI: no "handle" in funcs & don't wrap some native funcs
Change-Id: If783fecd80a0de05e94c76e23572b567d151bb06
2014-07-03 10:51:56 +02:00
Michael Meeks
3a25b45122 WaE: couple of android / LibreOfficeKit bits.
Change-Id: I2ee864977d8bb266861af95fb64eb5c0852acee8
2014-07-02 12:41:03 +01:00
Tomaž Vajngerl
c5777b4edd android lok: fix paintTile JNI method
Change-Id: Ife12b8bc49d722ae614b7de253bb2061bea5bb7f
2014-07-02 11:14:17 +02:00
Stephan Bergmann
e50ef195bc New loplugin:stringconcat
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-07-01 15:45:52 +02:00
Jan Holesovsky
55fb9149d8 lok: It is expected that we point directly to the program/ directory.
Change-Id: I54329e8dc914ac2698c441c02dfc9da03b56614f
2014-07-01 12:43:08 +02:00
Tomaž Vajngerl
ca61fdcac9 libreofficekit JNI for Android
Change-Id: Ia905c20fb4ee9b126d65fd3c8e3c1f54649abe1a
2014-07-01 09:12:14 +02:00
Jan Holesovsky
c1d64ca9e4 lok: Correct sofficerc path for bootstrap.
Change-Id: I229958c0f2c6f8905926c95cabd45fa58aed3da1
2014-06-30 14:48:04 +02:00
Jan Holesovsky
ae9babde80 'pMap' may be used uninitialized in this function.
Change-Id: I4085801a773626824ddc5bc4fbca62240fcc171c
2014-06-30 14:48:01 +02:00
Norbert Thiebaud
d92aa2f445 remove SFX_APP() macro that was a mer wrapper for SfxGetApp()
Change-Id: I480a789c767dd671775c9d70d96bf71908f21f5b
2014-06-27 17:08:04 +02:00
Andrzej Hunt
c3db22841c LOK: can't use basebmp as a library on android.
Change-Id: I84198ac00865991ba845a19c1810dc3f180251ce
2014-06-25 19:10:45 +01:00
Andrzej Hunt
0a5e6614bd LOK: tiled rendering / svp includes are Linux only too for now.
Change-Id: Iacd8554698f309f79208fd8390800ae2c5fd8085
2014-06-25 14:41:45 +01:00
Andrzej Hunt
e5fb98294a LOK: Tiled Rendering only useable on Linux.
Change-Id: I90daddddb08c26c594109ecf926cb4ea64308770
2014-06-25 14:33:26 +01:00
Andrzej Hunt
74a0782166 Add all the required conditions for vclplug_svp.
As per Repository.mk, we only have this on linux AND headless.

Change-Id: I708c89e38a661afb839ab1ac3e48ff9b2ecc040c
2014-06-25 13:32:00 +01:00
Andrzej Hunt
858d1b2de1 vclplug_svp only exists with ENABLE_HEADLESS.
Change-Id: I72fc636b1187bc99370b43927b25ed6fb89fe8f3
2014-06-25 13:19:19 +01:00
Andrzej Hunt
3545b78755 Use full sofficerc for LOK.
Otherwise we get segfaults in cppu::idefaultConstructElements when exiting,
in addition to complaints of:
ignoring GError "Operation not supported" for <***RECURSION DETECTED***/log.txt>

Change-Id: If2f56873f50ba957288d1e5591db967d248ee7a4
2014-06-25 13:04:33 +01:00
Andrzej Hunt
cd96b0498d Use ITiledRenderable for LIBLOK.
Means that no changes should be required here once calc/impress/draw
support tiled rendering.

Change-Id: I0987d94303f39ba37e29b9ae7b2276e82dc0ccbf
2014-06-25 13:04:32 +01:00
Andrzej Hunt
837631c6cf LIBLOK: implement getDocumentType, make doctypes unique.
Change-Id: I6cf810af55284cb6ddd9e0bfd879fd19508d127a
2014-06-25 13:04:32 +01:00
Andrzej Hunt
0cea87d60c Move gtktiledviewer into libreofficekit.
desktop is no longer the right place for it now that
libreofficekit has its own directory.

Change-Id: I207f1d642e7e35c460ff85bb57aa142cb98023c8
2014-06-25 13:04:32 +01:00
Andrzej Hunt
17f223c195 Implement data area size retrieval.
The scaling is wrong, but seems to work in principle
(i.e. we get roughly 1.5x the correct size).


Conflicts:
	sc/source/ui/view/gridwin4.cxx

Change-Id: I6db1986e6cb1e5f3889ec3a462d999a9eab57331
2014-06-25 13:04:31 +01:00
Andrzej Hunt
e6b881521c Remove outdated includes.
These were needed for the X11 "context" rendering which is no longer used.

Change-Id: Ib60c8fff9dad06b1f8f489eed66c3b3c3597e1ee
2014-06-25 13:04:31 +01:00
Andrzej Hunt
539552484d Kill gtktiledviewer's alpha channel hack.
basebmp and vcl now set the alpha channel appropriately, so no need
to do so in the viewer now.

However it would perhaps make more sense to just use RGB instead
of RGBA, seeing as the alpha channel is permanently set to be opaque.

Change-Id: I86ad758c6a8bee21b265730727a76605e5850c0c
2014-06-25 13:04:31 +01:00
Andrzej Hunt
2eff3574d5 Get rid of outdated comments.
We can now set the colourspace as desired, and we return the rowstride too.

Change-Id: Idf1e55a67b9e9ab58e82d7ed0be2813b682ec2ff
2014-06-25 13:04:30 +01:00
Andrzej Hunt
24dfd0a0d6 Upgrade gtktiledviewer to use its own buffer.
Change-Id: I3f567ff19ee0d5b0d54aeef9b163b78567d72946
2014-06-25 13:04:30 +01:00
Andrzej Hunt
67d7bad694 Use external buffer for LibLO tiled rendering.
Means we can get rid of hackily storing a reference to the last
buffer we created.

Change-Id: I8092a7d87bc391301f75651a59b37fbd73ac64fd
2014-06-25 13:04:30 +01:00
Andrzej Hunt
01bd2bd371 Upgrade gtktiledviewer to RGBA.
The Alpha channel seems to be set incorrectly by LO, hence
we need to manually set it here for now.

Change-Id: I1f9091b8b6f88c1dba6653dfb7bf51f9fe14b3fc
2014-06-25 13:04:29 +01:00
Andrzej Hunt
04d5b861f8 Upgrade LibLO tiled rendering to RGBA.
This is the expected format for gtk+ pixbufs which is currently
the primary target. We could potentially allow the user to choose
the format via LibLO -- but we want to eventually allow passing
in a buffer (rather than passing out an LO owned buffer) anyway, so
should add that then.

Change-Id: I8427925a94366917fa82fb8ea28e7dbb3fa1840d
2014-06-25 13:04:29 +01:00
Andrzej Hunt
dbf426edea Draw the whole image for our gtk tiled viewer.
We just draw one huge tile, it doesn't seem to work too well
for larger documents though where the latter portions can appear
empty.

Change-Id: Ic527aec377bf2f82a528a04392186d3d8b752762
2014-06-25 13:04:29 +01:00
Andrzej Hunt
fd5f324b09 Implement document size retrieval for LibLO.
Change-Id: Ibd69f8e766fd421b05d2305f967179a969bc5b56
2014-06-25 13:04:29 +01:00
Andrzej Hunt
41911db36e Add rowstride to tiled rendering via LibLO.
The buffer width could be larger than the desired rendering
width, hence we need to give the client access to the rowstride.

Change-Id: Ic63c1f455c89960164e076ed2528d43e64e81a40
2014-06-25 13:04:28 +01:00
Andrzej Hunt
d6ee2be0ae Use bitmap buffers in the gtktiledviewer.
Looks pretty decent now -- however the vertical flipping isn't ideal.

Change-Id: I6ffa9d2b8fced142308781e06e8f161228f1db26
2014-06-25 13:04:28 +01:00
Andrzej Hunt
0434043aed Return a bitmap buffer for tiled rendering from LibLO.
We still need some way of managing the buffers properly rather
than just keeping a static reference to the last buffer
that was rendered.

Change-Id: I17940c758948aa9418f4e0216ecd253d128cd04f
2014-06-25 13:04:28 +01:00
Andrzej Hunt
3a26638155 Add some rendering to our gtktiledviewer.
Just a hardcoded single tile for now.

Change-Id: I9bfae4243e0083aa8fca38ae98dc369fe6de36fb
2014-06-25 13:04:28 +01:00
Andrzej Hunt
d2382e3f3d Add tiled rendering via liblibreoffice.
We still need to add functions for getting dimensions of documents
etc. for this to be truly useful, this is also only usable for writer
documents for now.

Change-Id: I07812c9b72caca71dfd509705af48c1d355cb2f8
2014-06-25 13:04:28 +01:00
Andrzej Hunt
9e4f23698a TiledRendering: outline of basic gtk tiled rendering app using liblibreoffice.
Change-Id: I46760c0a1329b9823fd999c470b57fef66d28914
2014-06-25 13:04:27 +01:00
Andrzej Hunt
707a648eb3 LOK: kill saveAsWithOptions.
The saveAsWithOptions/saveAs split existed for reasons of historical
API compatibility. Since we're breaking the API currently we can
now get a clean start, and get rid of the redundant saveAs, and
make saveAsWithOptions the standard saveAs function.

Change-Id: Ia3e2294a8604cab08e95b07544c9d10d42dd1152
2014-06-23 12:24:36 +01:00
Andrzej Hunt
f73e4594d3 LOK: kill double initialize.
Change-Id: I4d3dd913faea8b9f4a0bd3c13af37d097ced9888
2014-06-18 12:07:16 +01:00
Andrzej Hunt
8ba3116a8f LOK: Split into instance and class.
Change-Id: I2b6f33eaf12343c7da1328a932eb703bb4e4ef6f
2014-06-17 16:58:57 +01:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Andras Timar
76fe2776af translatable="yes" in .ui files
Change-Id: I2f15875aaba4d960e7b66d38286ef08e091532e1
2014-06-16 12:32:25 +02:00
Caolán McNamara
8d373129e9 callcatcher: update unused code
and strip away some stuff in rsc that should now be dead

Change-Id: I6411e706c50dff299099680f1f942bf61c4e79f2
2014-06-15 20:30:39 +01:00
Stephan Bergmann
1db81a3e4b loplugin:staticcall
Change-Id: I98f62391ee27c806f89cd8b85a04d67d1bcc78b7
2014-06-13 17:54:25 +02:00