Commit Graph

16795 Commits

Author SHA1 Message Date
Michael Stahl
68bc8af6b6 SvxRelativeField: set the unit from the passed stringmap
In the Paragraph "Indents & Spacing" tab there are fields with unit:
<object class="svxlo-SvxRelativeField" id="spinED_LEFTINDENT:0cm">

But the unit is effectively ignored, and the resulting SvxRelativeField
with FUNIT_NONE and 9999 max somehow results in 0.18cm max when the
dialog sets cm as unit.

Change-Id: I6001c93079fd7d899f1e119913b29ea4898b1c34
2014-05-20 16:44:29 +02:00
David Tardon
eccaf91ec9 use VCL's OpenGLContext for 3D transitions
Change-Id: I510518461eb8bc9669d0de2679c34c473f66b175
2014-05-20 15:48:51 +02:00
Chris Laplante
eff1d991de Move #include from middle of file to top
Change-Id: I715f606ee0f94e9ffd3ef9ec889948a56a9cdc19
Reviewed-on: https://gerrit.libreoffice.org/9381
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-20 07:24:55 -05:00
Noel Grandin
8d54796bf1 enhance pass-by-ref plugin to detect large arguments
Detect arguments larger than 64 chars passed by value.

Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-20 11:17:22 +02:00
Tor Lillqvist
c3ed5f6d33 Fail early in OpenGLContext::ImplInit() on platforms where not yet implemented
So far this code apparently has not been invoked except in the very
special use cases for which it has been developed, and which
presumably aren't such that one would come across in "normal"
LibreOffice use.

But now it gets invoked unconditionally, in some unit tests even, and
letting it call glewInit(), which calls glGetString(), without any
OpenGL context, leads to a crash. So instead, explicitly fail early on
OS X (and iOS and Android).

Change-Id: Ia4547cc1ddff1aaa0190fcdb69506ad444214b7a
2014-05-20 11:07:10 +03:00
Stephan Bergmann
498c314861 Hack to for now work around dpy == null crashing CppunitTest_chart2_*
...since 2fc4f5cd75 "Register OpenGL windows to
ScGridWindow upon file load."  Should be revisited and fixed properly.

Change-Id: I5a3d08cb750fd9ec7c98d5b85250eaabd1c7a8b2
2014-05-20 09:41:59 +02:00
Chris Sherlock
9626106562 vcl: add missing resource.cxx file
Change-Id: I7ab6fe8592845040f9e87f3667c11200735d7d63
2014-05-20 08:26:05 +10:00
Chris Sherlock
87ea3aa1cf vcl: move resource functions from window.cxx to resource.cxx
Change-Id: I050cb975dfa6ba20a6a840f24d30745fbafbfaef
2014-05-20 08:04:58 +10:00
Thomas Arnhold
67467b93f2 vcl: remove using namespace from headers
Change-Id: I57439b09e95bf385436501921ca8db1469758105
2014-05-19 20:04:25 +02:00
Thomas Arnhold
3db8d606d5 hrc and src files: squeeze multiple newlines
for i in `find . -name *.src -or -name *.hrc`; do FILE=$(cat -s "$i"); echo "$FILE" > "$i"; done

Change-Id: I2bac5ad3e1eb3c566e5c867ccf45893a19e1561e
2014-05-19 20:04:22 +02:00
Chris Sherlock
bb2f6e6c51 vcl: move globalization functions from window.cxx to globalization.cxx
Change-Id: I8f617f2c480f8c5c7f5230cc6d6a6e82d8750857
2014-05-20 03:05:23 +10:00
Chris Sherlock
e77bb87b41 vcl: rename CopyAreaFinal to CopyDeviceArea
The name I gave this makes no sense. Basically, this function calls on
the SalGraphics function to copy the area, so really this name is much
more clear.

Change-Id: I842e6f2b81014a8222c39a62c5437bd53d66141c
2014-05-20 00:45:49 +10:00
Chris Sherlock
f797e6c467 vcl: move debug function from window.cxx to debug.cxx
Change-Id: I9c3debcdda4b6ee943792e8799d436b097df2982
2014-05-20 00:32:25 +10:00
Tor Lillqvist
b5f45a5163 Argh, *this* is what the compiler tried to tell me
Change-Id: Id5716bf6f9c86e7fa0d64b1bae9b69b4a5dadfe5
2014-05-19 09:10:58 +03:00
Tor Lillqvist
1b529df25f Fix 'non-const lvalue reference cannot bind to a temporary'
Change-Id: Ic308a281f7b16c8924658be792216d3aba4444c5
2014-05-19 09:04:47 +03:00
Tor Lillqvist
6a21c29fc6 WaE: passing OUString by value, rather pass by reference
Change-Id: I6a7331ab3d87cc04021e92283db938c92b066e6b
2014-05-19 08:46:07 +03:00
Tor Lillqvist
d7034051a9 WaE: overriding virtual function declaration not marked 'SAL_OVERRIDE'
Change-Id: I00aaacadf108f2cc5d57963991e5c99ea4485056
2014-05-19 08:45:31 +03:00
Tomaž Vajngerl
9a4a48d213 vcl emf test: test clip region is correct for problematic files
Change-Id: I60caf9ebcff417e0f87bae9c6b5d308b5e2f0b37
2014-05-19 00:01:15 +02:00
Tomaž Vajngerl
fc83bf8bbf fdo#72590 scale or map only when EMR_EXTSELECTCLIPRGN action
Change-Id: Ie42c855e696922b38760876d4090d572deaa689a
2014-05-19 00:01:15 +02:00
Tomaž Vajngerl
10cd55677c vcl wmf: EnhWMFReader more cleanup
Change-Id: Ia6bff28bc70214da965c26cd72ea332573576cc1
2014-05-19 00:01:15 +02:00
Tomaž Vajngerl
e6c5c854d6 vcl wmf: EnhWMFReader constructor, ReadHeader, cleanup
Change-Id: I43b95f3ee7af42b5b1c9110cafbbae325dddb946
2014-05-19 00:01:15 +02:00
Tomaž Vajngerl
8ff29fac52 vcl wmf: cleanup winmtf.hxx
Change-Id: I8d8114378e639438f548b7ee77f8b0ef6275051f
2014-05-19 00:01:14 +02:00
Thomas Arnhold
5c669a5cfb vcl: don't build demos for windows at the moment
as they are broken, see red tinderboxes

Change-Id: I09fed7b4c4dec0bebd9e8f85c6266688cf0d68ea
2014-05-18 13:39:39 +02:00
Chris Sherlock
2701cc1aed vcl: missing demo files
Change-Id: If269ee28c80210186699a2f2de85db8c914b28f1
2014-05-18 19:10:23 +10:00
Chris Sherlock
01c52c3f71 vcl: fix svpclient
I have converted the UNO stuff to the more modern variety (i.e. the
stuff that actually works now...), use GraphicFilter to get the
bitmap and fixed the string copy typo.

Change-Id: I6a3c1af54d222ef70814d2bb581cc2f3c058bb2f
2014-05-18 18:16:02 +10:00
Chris Sherlock
c0d5da9123 vcl: fix svptest
Change-Id: Ibaec6e027aa9fd61824ff6b4f1f71b69d217dfdc
2014-05-18 18:16:01 +10:00
Chris Sherlock
37c766dcde vcl: make vcldemo work
Change-Id: Icef2d988c37fb7b25245ad9f3f3856fa86f76a77
2014-05-18 18:16:01 +10:00
Chris Sherlock
fc974a4028 vcl: make svdem called on Application::Abort() instead of exit(1)
Change-Id: I7660d4f0081d2d88689f5bcacef7ad2bff083636
2014-05-18 14:49:49 +10:00
Tor Lillqvist
980dabdbc6 WaE: overriding virtual function declaration not marked 'SAL_OVERRIDE'
Change-Id: Id20db2d9dada07fa5090de1fa74f2b2acb684b68
2014-05-18 00:36:48 +03:00
Julien Nabet
745a094a37 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part15
Change-Id: I38e855966598342eb2352e70e04f7a5e09e54f83
2014-05-17 23:33:02 +02:00
Andrzej Hunt
b1e4d856d2 Don't build svdemo for Android and iOS.
f89296db59 adds building of svdemo,
this however uses SAL_IMPLEMENT_MAIN from include/sal/main.h --
which specifically can't be built on Android and iOS, hence
we shouldn't build svdemo for those platforms.

Change-Id: I6ce851ece90837112279c89467326b82f7a2070b
Reviewed-on: https://gerrit.libreoffice.org/9391
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-05-17 20:45:29 +00:00
Lionel Elie Mamane
f7e2f18e89 avoid segfault when nBrekPos is past the end
Change-Id: Ieedc24c0443ba10d8277cd6327b3b735203e5d45
2014-05-17 19:41:52 +02:00
Chris Laplante
3c1e30b77d Correct common misspellings, and remove some ASCII art along the way.
Change-Id: I42787db31769e8bde984c5f4f0aa90335e889b1c
Reviewed-on: https://gerrit.libreoffice.org/9356
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
2014-05-17 12:38:38 +00:00
Markus Mohrhard
bc5c536559 add missing OpenGL type error string
Change-Id: I53a7eba4a4f8b1bd61381283b20190cfc05a138a
2014-05-17 09:12:00 +02:00
Chris Sherlock
f89296db59 vcl: fixup svdemo
Change-Id: Ifb7cc12da349fcbcd1d3dc25b64cd2bf3fd7e819
Reviewed-on: https://gerrit.libreoffice.org/9378
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-05-17 07:14:25 +00:00
Michael Meeks
5eeea7c91d fdo#78799 - ignore overlayed monitors with co-incident origin.
This happens with certain fglrx drivers etc. where 'cloned' is not
set but instead both monitors are placed over the top of each other
(by XFCE) -> work around that.

Change-Id: I9d1846bfae2692681606717f7f5e8408df532d95
2014-05-16 21:52:02 +01:00
Caolán McNamara
cb6464fd73 coverity#705542 Unintentional integer overflow
Change-Id: I87712c71689d45259bc9e4e2f71c92375bc887ea
2014-05-16 16:42:51 +01:00
Caolán McNamara
aa583636e3 coverity#1202771 Operands don't affect result
Change-Id: I6a0228594d31cda252f299cad55469ad02c6b353
2014-05-16 16:42:49 +01:00
Caolán McNamara
6709d982a5 lsan: mpFontCharMap double-add-ref, never released
Change-Id: Id511d6d0d975434b4754786204cc0fc91568168e
2014-05-16 11:32:44 +01:00
Tomaž Vajngerl
fd70beaccb vcl wmf test: null terminate stream
Change-Id: I10342262cacbe3e3d978fee652cdbc4692f46dc4
2014-05-15 23:50:58 +02:00
Stephan Bergmann
a470fe1ea0 loplugin:unreffun
Change-Id: I10ca928ce30631b531a2549985b54ca071efb79c
2014-05-15 22:49:41 +02:00
Tomaž Vajngerl
1811336b05 wmf: assume WinOrg/ViewportOrg = (0,0) if they are not provided
Change-Id: Ia8a91a565118d102ff769da8bca65f16b5dfece2
2014-05-15 19:51:09 +02:00
Tomaž Vajngerl
154752865f wmf: add SAL_INFOs for interesting things at WMF import
Change-Id: Ic21709896fe156c7393ece54345b00bceb37587d
2014-05-15 19:51:09 +02:00
Tomaž Vajngerl
f9e81786f4 wmf: test that non-placeable WMF uses correct sizes
Change-Id: I546d654726483b40ce4d981bc66377c8a3df6194
2014-05-15 19:51:08 +02:00
Tomaž Vajngerl
7da0a6e562 fdo#78603 mixup (Left->Top) in Rectangle construction
Change-Id: I7fa566e036508d43b153c7983dc89fc6660718e7
2014-05-15 19:51:07 +02:00
Tomaž Vajngerl
6a94e8fbcb wmf: put WMFReader constructor out of the header file
Change-Id: I8bf15c9990745759dd1414296257558adf5a42c0
2014-05-15 19:51:07 +02:00
Tomaž Vajngerl
1c77fcacbd vcl: problems with WriteWithVersion so remove for now
A sw test fails when WriteWithVersion is used istead of direct
replacement. Remove it for now.

Change-Id: I0425c85d6492061a5d7565e709d5913b79b28a46
2014-05-15 19:51:06 +02:00
Tomaž Vajngerl
ccb96f3439 vcl: remove macros in metaact.cxx{hxx}
Macros to reduce code duplication in metaact.cxx are discuraged
as it is not possible to find those classes using "git grep".
Lets find a better way to reduce code duplication for those
classes (some have already been replaced in this commit).

Change-Id: I35c7cd74d6345f37e937754e2d0177b816e0e0fa
2014-05-15 19:51:06 +02:00
Tomaž Vajngerl
9e5f11aa6e vcl WMF: in non-placable images use SETWINDOW{ORG,EXT} for Bounds
If the image is non-placable the image bounds are bounds of all
elements. Special cases are when both SETWINDOWEXT and SETWINDOWORG
or SETVIEWPORTORG and SETVIEWPORTEXT are available - in those two
cases use those bounds bounds instead.

Change-Id: I60e53cf6c47ccfc0f1139a11a866392f3e8e3ed1
2014-05-15 19:51:06 +02:00
Tomaž Vajngerl
7d69e25354 vcl WMF: some code clean-up
Change-Id: I0b8d433d3d3bf03e3f414b2586a718146380ee2a
2014-05-15 19:51:05 +02:00