Commit Graph

355927 Commits

Author SHA1 Message Date
Andrzej Hunt
c3db22841c LOK: can't use basebmp as a library on android.
Change-Id: I84198ac00865991ba845a19c1810dc3f180251ce
2014-06-25 19:10:45 +01:00
Jan Holesovsky
e7441f2e19 pagedesc: We have DelPageDesc() that takes OUString as param directly.
Change-Id: I616f89716a6e337c647cfb880a4e675cd1b65993
2014-06-25 20:03:20 +02:00
Jan Holesovsky
c1be76ec98 pagedesc: Consolidate FindPageDescByName() and FindPageDesc().
Change-Id: I18d570509cd3f3b65a19a12a9df0b1d5db901d04
2014-06-25 20:03:19 +02:00
Jan Holesovsky
f246ac13bd pagedesc: It's better when MakePageDesc returns a pointer.
This removes many uses of GetPageDesc(sal_uInt16).

Change-Id: I9660e30d7fccd4336422ba03b19087321a7ae973
2014-06-25 20:03:19 +02:00
Zolnai Tamás
211e07c0e0 libgltf: try again with this configure patch
Touch only the configure but not the configure.ac

Change-Id: Iee93036f2378f29530ffae9be8b4324e8425d2ec
2014-06-25 19:23:24 +02:00
Zolnai Tamás
c5bb272883 libgltf: replace configure patch to avoid using autoreconf
Change-Id: Idcab012af9c27c4fed31c07ce230816d1c61d605
2014-06-25 18:51:23 +02:00
Zolnai Tamás
bb9078e3de libgltf: use --with-pick
Change-Id: Ide01491460c9c81ed044be762c7dd07e8a5ca575
2014-06-25 18:29:38 +02:00
Zolnai Tamás
f2b5ece0ca glTF rendering: moving in walktrough mode is to fast
Change-Id: I2b7869c6c14b69732db864a03a2d9b6638424cf7
2014-06-25 17:29:52 +02:00
Michael Stahl
0bb6fd2f3a vcl: MSVC can't link inline ITiledRenderable dtor
Change-Id: Idbb776de489e0c6e6ae14cb65907ac75cfca3851
2014-06-25 17:19:36 +02:00
Noel Grandin
533c6cb6ba fixes for up-casting to Reference<XInterface>
Fix regressions introduced with
6a043e9c0a "Use the new type-checking
Reference constructor to reduce code noise"

Change-Id: I85662856f21c810a7db497fe3b0e116f075b1687
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-06-25 17:10:43 +02:00
Michael Stahl
96ff104494 libgltf: try to fix the MSVC2010 build
Change-Id: I8dde439d19be45d5039904b6e917b17ca0ee4758
2014-06-25 17:05:11 +02:00
Michael Stahl
dfe787ef5d libgltf: add patch to find the headers in WORKDIR
Change-Id: I8570511be7c1d6de94ee82e18bad5b00b36d99bb
2014-06-25 16:58:43 +02:00
Michael Stahl
d83e66da94 libgltf: variable names need module prefix
Change-Id: Id144a483fe5576cdd546ac5da87890dc61f964b3
2014-06-25 16:58:41 +02:00
Bjoern Michaelsen
5aadf3ce06 still ugly, but lets silent the warning for now
Change-Id: I647e969bfc9f8b4294d3e526d8d5b11df7d7bea9
2014-06-25 16:00:32 +02:00
Bjoern Michaelsen
ba327f6b86 remove old redline save/restore
Change-Id: I3165f84d44c74bca3a2d75ebf3cd681b9d5d120a
2014-06-25 16:00:31 +02:00
Bjoern Michaelsen
c8ad16ca7c refactor redline save/restore
Change-Id: I4840d694954a5c0419abfa4c0fbe67b756f8253c
2014-06-25 16:00:31 +02:00
Miklos Vajna
0da4e600e6 Let SwTextBoxHelper::findTextBoxes() return a set
The intention was to have a container where it's fast to look elements
up, and list is a linked list, so it doesn't fit.

Change-Id: I3196c8dee96ecd4a6f464b74fd5141b27f1773b8
2014-06-25 15:54:21 +02:00
Caolán McNamara
af60018734 fix build
Change-Id: I33f06887b4b2b7950c6e322ccf1c7ec65240f9b0
2014-06-25 14:46:57 +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
Zolnai Tamás
6403f2b59b Update libgltf: new build system and various fixes
Building:
- The new tarball has reasonable build system so
build libgltf as external package instead of compiling
source files directly.
- Freetype dependancy is removed

Improvements comes with the new libgltf
- Can rotate the models too (orbit mode)
- Two camera handling mode: walkthrough and orbit
(press M to change).
- gltf_animation_set_time() works
- FPS can be displayed without freetype (press F)

Additional notes:
- There were some bugs/regressions which are fixed
during the integration (see patches).
- License files are uddated now.
- libgltf building is enabled only on those platforms
on which gltf support actually works (windows and linux)

Change-Id: Ia6c9c4da53a9b4fedba0d73aa5791489f8ad424b
Reviewed-on: https://gerrit.libreoffice.org/9895
Reviewed-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
Tested-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
2014-06-25 13:22:29 +00:00
Luboš Luňák
076e4afc61 MSWord uses \xb for linebreaks in DB fields, take 2 (bnc#878854)
This commit also does the conversion when reading the data from a data source
using the mail merge wizard.

Change-Id: Ia14417507b6ddce955fec26142a42ce51f77de4e
2014-06-25 15:22:19 +02:00
Michael Stahl
17dc7f1153 remove spurious com::sun::util prefix
Change-Id: I002a14fe0cb0cbdb4d5da51db8da6c8208cf604e
2014-06-25 15:04:47 +02:00
Michael Stahl
ca18092a78 remove spurious com::sun::text prefix
Change-Id: I98d2fc7de3c2d3f95fb96192da83761ac1146172
2014-06-25 15:04:47 +02:00
Michael Stahl
c9d53bbe6e remove spurious com::sun::forms prefix
Change-Id: I5c7c1d888cda7f01685bce46a6092a2c30b856f9
2014-06-25 15:04:47 +02:00
Michael Stahl
1ba9504212 remove spurious com::sun::frame prefix
Change-Id: Ica1291e8d115ae7a7f1e99e569c9889e2b852f8a
2014-06-25 15:04:47 +02:00
Michael Stahl
4f1b0e0e32 remove spurious com::sun::script prefix
Change-Id: I66fc14d1f26da0c91a455b0f63bde31210566c2c
2014-06-25 15:04:47 +02:00
Michael Stahl
426b940a94 remove spurious ::com::sun::sdbcx namespace prefix
Change-Id: I37220af64c15259ab5bcf61b324d2a73ed8f5348
2014-06-25 15:04:46 +02:00
Michael Stahl
0de1e3a015 remove spurious com::sun::chaos
Apparently some time before inital CVS import a global
search-and-replace went horribly wrong and added spurious namespace
prefixes everywhere.

Change-Id: I4009bc3ab4b1d4c80412f75ad0e4628a382f99f0
2014-06-25 15:04:46 +02:00
Miklos Vajna
93011580b7 SwView::EnterDrawTextMode: refuse to edit editeng text if texbox is attached
Change-Id: If1b3e9807414e90341199eabfa937376084c097d
2014-06-25 15:06:46 +02: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
Caolán McNamara
ef16d76530 Related: fdo#37401 adjust fix to original aCenter use
i.e. as far as I can see the bug came about during....

commit 74cb1c4cb5
Author: Ivo Hinkelmann <ihi@openoffice.org>
Date:   Tue Nov 14 12:37:46 2006 +0000

with

2006/10/27 12:14:08 aw 1.2.1208.5: #i39528# ::basegfx -> basegfx adaption

in

-                Vector2D aFullVec(aStartPos - aEndPos);
-                Vector2D aOldVec(Vector2D(aRect.Left(), aCenter.Y()) - aRect.TopLeft());
                                                         ^^^^^^^^^^^
-                double fFullLen = aFullVec.GetLength();
-                double fOldLen = aOldVec.GetLength();
-                double fNewBorder = (fFullLen * 100.0) / fOldLen;
-                sal_Int32 nNewBorder = 100 - (sal_Int32)(fNewBorder + 0.5);
+                basegfx::B2DVector aFullVec(aStartPos - aEndPos);
+                const basegfx::B2DPoint aTopLeft(aRange.getMinX(), aRange.getMinY());
+                const basegfx::B2DPoint aCenterLeft(aRange.getMinX(), aRange.getHeight());
                                                                       ^^^^^^^^^^^^^^^^^^
+                const basegfx::B2DVector aOldVec(aCenterLeft - aTopLeft);
+                const double fFullLen(aFullVec.getLength());
+                const double fOldLen(aOldVec.getLength());
+                const double fNewBorder((fFullLen * 100.0) / fOldLen);
+                sal_Int32 nNewBorder(100L - FRound(fNewBorder));

Change-Id: I840caa5e49a04f9b6460c4fa8e3731f3e5ebde05
2014-06-25 13:11:43 +01:00
Andrzej Hunt
2c658ae4fb LOK DocView: clean up document on exit.
Otherwise lock files etc. aren't cleaned up, which isn't particularly
nice should when then opening the file in normal LibreOffice.

Change-Id: I822b6fb582473674371a4c1d403d5a05adb7ea6b
2014-06-25 13:04:33 +01:00
Andrzej Hunt
4171e2fdb2 Add zoom controls to gtktiledviewer.
Change-Id: I33ae83a97be254a3d3716bd9ae05f089845fd536
2014-06-25 13:04:33 +01:00
Andrzej Hunt
6024ddbfac LOK Docview: add set_zoom
Change-Id: I902f3a134b4a7dcc721eff3f67376014a4276885
2014-06-25 13:04:33 +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
5da5882df4 Add tiled rendering outline to Calc.
(No real implementation yet.)

Change-Id: I67b84b554dbb29db449d8c190ef816645a8bff07
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
f35b010a95 Add ITiledRenderable.
We want to have a simple interface that allows access to tiled
rendering without digging into the internals of writer
(and in the future calc/impress/draw).

Change-Id: Ia9c278a48c919333186e5361ff25bb1ab603b846
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
eaa21b726d Prevent GTK assertions due to scrolled window not being initialised.
Seems to be a gtk bug which we need to work around. The assertions
don't actually seem to cause any harm (they just print a bunch of
"Gtk-CRITICAL **: IA__gtk_range_get_adjustment: assertion `GTK_IS_RANGE (range)' failed"
but probably best to avoid them.

Change-Id: I5d1bb20bd5c0569c6d023a6148123208a15b9de2
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
ff6a38b76d Tiled Rendering: ensure rendered area is visible.
MakeVisible only scrolls the view, so parts of the tile to be rendered
might be outside the SwView's visible area, and therefore not painted.

This however makes the background window (shown for the tilederendering
app) unuseable (but that window is invisible for all practical uses
of tiled rendering, and hence probably not a problem).

Change-Id: I6c3c2846906163b362f7cff6d8c7ba308a58a7ad
2014-06-25 13:04:31 +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
d465dfb209 Implement LibreOfficeKit gtk+ viewer widget.
Very basic, but works.

Change-Id: I0c521e833b53e13065e0be48e6fa767e44b29787
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
cd1f3480a6 Fill the alpha channel by default for vcl 32-bit bitmaps too.
Otherwise the alpha channel for bitmaps created directly is empty,
indicating a transparent bitmap (although we don't actually handle
transparency). This complements hardcoding of the alpha channel
in basebmp. VCL bitmaps can be copied bit-for-bit directly into
a basebmp bitmap, hence it's important to make sure we fill the
alpha channel in vcl too.

Conflicts:
	include/vcl/salbtype.hxx

Change-Id: Icb2fa417db6625a6ffa6bd82eb5773ff75be5a3c
2014-06-25 13:04:30 +01:00
Andrzej Hunt
e756452c40 Add base value to set alpha channel for 32 bit colourspaces.
Currently the alpha channel is completely ignored by basebmp.
However this results in completely "transparent" output, meaning
the client has to manually overwrite the alpha channel -- instead
we now set it automatically when writing colourdata.

Unfortunately this doesn't quite work -- it seems that drawing
a non-opaque bitmap/image on top of the existing bitmap can
erase the alpha channel information (i.e. these areas will
once again be transparent -- for example document borders seem
to have a transition effect overlayed onto them): presumably
there is some method that bypasses our RGBMaskSetter (probably
some form of direct manipulation of raw values?).
manipulation in basebmp

Change-Id: Ia4be6a748cc30191a4422121f9ec347d9198b225
2014-06-25 13:04:30 +01:00