Commit Graph

1246 Commits

Author SHA1 Message Date
Stephan Bergmann
9c89ce00d7 Clean up previous commit
Change-Id: Icd4703c1541fa82bbe76f44369434a12cb397a19
2015-03-11 16:31:03 +01:00
Chris Sherlock
ccd627d510 canvas: use constructor syntax in canvas.component
Change-Id: I983307f7eeb5702c51ca2398e69c9c560c6e2435
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-03-11 16:31:03 +01:00
Caolán McNamara
556373c41f V668 no sense in testing the result of new against null
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-03-11 09:58:36 +00:00
Caolán McNamara
924b2923b8 V801: Decreased performance
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
2015-03-09 20:56:26 +00:00
Stephan Bergmann
9e8564afbd Simplify o3tl::LazyUpdate
Change-Id: I7569a20877411a5ceb4a7475d82cb634eb6cb114
2015-03-05 22:39:16 +01:00
Julien Nabet
48f0a5ed35 Typos
Change-Id: I845a85e1aad4a0708f2b43f7d94606b4b5513ee4
2015-02-18 21:59:02 +01:00
Stephan Bergmann
5272bfb329 loplugin:deletedspecial
Change-Id: Ibfed67bd911579caa19ca2203f60a86a4e6d637c
2015-02-07 12:35:56 +01:00
Noel Grandin
f61dbc3029 followup code removal after changing virtual methods to non-virtual
This cleanups up indentation and removes dead classes.

This is a followup patch to commit
272b1dd55797aacf511fb4342b0054e3697243f6
"new loplugin: change virtual methods to non-virtual"

Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
2015-01-26 08:42:29 +02:00
Stephan Bergmann
c7cc1a9132 Some more loplugin:cstylecast: canvas
Change-Id: I3654875c560ba4c2d88b023e3b2104c6f43bb4a0
2015-01-20 09:06:45 +01:00
Michael Stahl
2f69e16c72 override the overloading of "overload" to decrease cognitive (over-)load
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-09 00:00:47 +01:00
Caolán McNamara
fd1372ba8b boost::unordered_map->std::unordered_map
you can get debug stl this way

Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2015-01-02 16:14:36 +00:00
Caolán McNamara
f5607f7a44 only checked for new VirtualDevice
Change-Id: I64d7a3c6c0894e231cb0644922675dcce0db89fa
2014-12-11 21:07:53 +00:00
Caolán McNamara
067b560335 stray debugging code
Change-Id: I953389e236739c01226365c33ab777fc3972b69d
2014-12-11 20:51:38 +00:00
Caolán McNamara
94d935eecb Resolves: fdo#87242 reuse vcl clip for cairo during animations
Change-Id: I0a26d4c4092226732620c3852b0402ee45d4fa1d
2014-12-11 20:44:26 +00:00
Caolán McNamara
f88b5ab869 Related: fdo#87242 merge duplicate clip setup code
favoring the vclcanvas one for the places where
they diverge

Change-Id: I18e3d4e7659ebd4cb90c86718c1b1035671b4be3
2014-12-11 20:44:26 +00:00
Caolán McNamara
f95b0743da Related: fdo#87242 init VirtualDevice with size of surface
otherwise vcl's clipping doesn't work quite right when the render text
with vcl apis fallback is used.

Manually forced in my case, but it should happen in practice with vertical
text, so if there is a bug about vertical text not appearing in slideshows then
this is part of the fix for that.

Windows and Mac remain unchanged as initialized with 1, 1. If the same problem
affects those platforms then they'll need to be adjusted to remember their
height/widths from the ctor and those values plugged in here instead

Change-Id: I2f82f0db0cf446d7db21f0a7ee4f8c15c7ebdb42
2014-12-11 20:44:26 +00:00
Michael Weghorn
0e55feea6a reduce scope of local variables
This addresses some cppcheck warnings.

Change-Id: I1122494e295af756ef3cc32717fe204505aeb9e3
Reviewed-on: https://gerrit.libreoffice.org/13335
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-11 06:15:26 +00:00
Michael Stahl
7594c0c29d canvas: DIRECTX_VERSION macro is obsolete
It was only checked by our own code, and only DirectX 9 is supported.

Change-Id: I03035f87969301624df011cb4d76c6a9532f3c99
2014-12-10 18:23:21 +01:00
Michael Stahl
ff17c5a2b0 canvas: remove Windows SDK #ifdefs - all supported MSVC/SDK have DirectX
Change-Id: I5106593ad5472992e3607665849fb35802b6e266
2014-12-10 17:47:18 +01:00
Riccardo Magliocchetti
abb8ce43ab Kill unused directx < 9 ifdefery
Change-Id: I2cd5dd5b4f723e26802930003c68433917af782d
Reviewed-on: https://gerrit.libreoffice.org/13371
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-10 10:17:39 +00:00
Caolán McNamara
4ac876084b mpSurface->getCairo() == mpCairo
so make that clearer, and we only need to pass a Cairo context
not a surface here

Change-Id: If385dbd4e8a546fa18c2f93650428fe0ed0c76fc
2014-12-07 14:17:00 +00:00
Caolán McNamara
5e59fe98ce cairo_restore without matching cairo_save
Change-Id: I74496f40a532f9202e8729b8a81ef20ee86a5133
2014-12-07 14:16:59 +00:00
Thorsten Behrens
7d68c0f5ad Slightly less verbose adaptation to boost-1.56.0
This fixes up 45dfbdca6a

Change-Id: I754fec5c94d51cbae69ad1155f57b0bb53788ba5
2014-12-05 16:17:24 +01:00
Michael Stahl
6a0fe37dec sal: clean up public headers with include-what-you-use
Sadly cannot forward declare "struct {...} TimeValue;".

rtl/(u)?string.hxx still include sal/log.hxx but removing osl/diagnose.h
was painful enough for now...

Change-Id: Id41e17f3870c4f24c53ce7b11f2c40a3d14d1f05
2014-11-17 11:06:53 +01:00
Riccardo Magliocchetti
c245858dc4 Bump cairo version to 1.2.0
Requirement already fullfilled by RHEL 5

Change-Id: I2304ecac744d1b46b4329ab6d1a0b75739d5c4ea
Reviewed-on: https://gerrit.libreoffice.org/12250
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-12 20:42:48 +00:00
Andrea Gelmini
da40cac540 Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12 11:04:11 +00:00
Noel Grandin
cd3204559c fix spelling implemenation -> implementation
Change-Id: I5ac499df1f4063a80a5d41f60778106a7b96940d
2014-11-10 13:36:03 +02:00
Riccardo Magliocchetti
6a7ae600b5 Kill directx < 9 ifdefery
Baseline is Windows XP and SP3 includes directx 9.0c

Change-Id: Ib7095ebb71f297898ae8b316e3b9f18e7c052f34
Reviewed-on: https://gerrit.libreoffice.org/12246
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-11-04 16:23:12 +00:00
David Tardon
dbf093aa59 coverity#982921 do not leak
Change-Id: I7f40b7e72caa67644b23f02fa6c2a4ccfe4f354d
2014-11-03 18:48:36 +01:00
Noel Grandin
af5ebbf783 create a macro library for implementing bit-flags types
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>,
changed from a macro- to a template-based solution.  (Unfortunately MSVC 2012
does not support explicit conversion operators.  Worked around that with
explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and
SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a
baseline that requires unconditional support for them.)

Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
2014-10-13 17:45:57 +02:00
Noel Grandin
a28e7f7aa9 loplugin: cstylecast
Change-Id: Ie478d1fcfd3b64d7a2128887c216b5e0b4501ab9
2014-10-03 15:20:04 +02:00
Noel Grandin
cf86b3435b fix windows build
after commit c9d4a2887c
"fdo#82577: Handle PolyPolygon"

Change-Id: Iac00779e4f8d94bc93a4112f7ad6abf3db14fad5
2014-09-30 11:58:03 +02:00
Noel Grandin
c9d4a2887c fdo#82577: Handle PolyPolygon
Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows
PolyPolygon typedef.

Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
2014-09-30 11:47:41 +02:00
Noel Grandin
8dbde0845a fdo#82577: Handle Region
Put the VCL Region class in the vcl namespace. Avoids clash with the X11
Region typedef.

Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
2014-09-30 09:58:23 +02:00
Noel Grandin
827c46e7d7 fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.

Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
Noel Grandin
e1ba582605 fix windows build
after my commit 60e78fbb80 "fdo#82577: Handle Font"

Author: Noel Grandin <noel@peralex.com>
Date:   Tue Sep 16 10:09:58 2014 +0200

    fdo#82577: Handle Font
be ignored, and an empty message aborts the commit.

Change-Id: Id87e9ac86b457962fa156fdb1607dfe779b8564d
2014-09-18 09:35:23 +02:00
Noel Grandin
60e78fbb80 fdo#82577: Handle Font
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.

Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-18 08:54:37 +02:00
Markus Mohrhard
be7d3df141 remove SAL_DEBUGs introduced earlier
Change-Id: I901188b5b0a3e64e2407d039dd80f89cce8cf6de
2014-09-02 01:31:13 +02:00
Markus Mohrhard
7741e4c2e5 some temporary debug output 2014-09-02 01:08:48 +02:00
Markus Mohrhard
b1d2bbecac add warning about bad input
Change-Id: I7018813740460c79d09318770fbdcb24a24a441e
2014-09-02 01:08:48 +02:00
Markus Mohrhard
5522655317 fix shader names, the .glsl is attached in OpenGLHelper::LoadShader
Change-Id: I267c1fefa5330359f3aea0d57d38a153232b655f
2014-09-02 01:08:46 +02:00
Markus Mohrhard
30cf6528cc request a legacy context for OGLTrans
Change-Id: If001121da14ca9d15f6c36af30428f1851710524
2014-09-02 01:08:46 +02:00
Caolán McNamara
efe49ba4fc coverity#1233512 Uncaught exception
Change-Id: Idc1e1e905282ff44581b26ea1557c70641abe8b8
2014-08-31 12:33:37 +01:00
Jörg Sonnenberger
45dfbdca6a Fix build with boost-1.56.0.
Change-Id: I61686bf61ff1e0561c385492c563e4495456ca47
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-08-29 10:10:15 +01:00
Noel Grandin
794d5ac4ac vcl: use enum for complex text layout constants
Since these constants are bitfield flags, we define some methods to make
working with them reasonably type safe.

Move the definitions to outdevstate.hxx, since we need the values there,
and that appears to be the "root most" header file.

Also dump TEXT_LAYOUT_BIDI_LTR constant, since it means the same thing
as TEXT_LAYOUT_DEFAULT (ie. 0), and leaving it in causes people to write
weird code thinking that it's a real flag.

Change-Id: Iddab86cd6c78181ceb8caa48e77e1f5a8e526343
Reviewed-on: https://gerrit.libreoffice.org/10676
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-20 09:01:26 -05:00
Markus Mohrhard
2f0259d73f fix invalid memory access in dx bitmap code
Change-Id: If3a495ab2db068f37dcee184e61c0c1e66f09666
2014-08-13 11:38:22 +02:00
Markus Mohrhard
282c16a371 fix OpenGL canvas windows build
Change-Id: Ic6ed9c69003fa79a60310dc0b010ffc0ca868791
2014-08-13 02:00:08 +02:00
Stephan Bergmann
12a1179bcb -Werror,-Wunused-private-field
Change-Id: I03d8f81b17341e128c9c0517ecca2a76f7b4552c
2014-08-08 10:10:00 +02:00
Stephan Bergmann
ac7e26e3a9 -Werror,-Wunused-macros
Change-Id: I614e1736844637eb0a5bab3830473c36d7999426
2014-08-08 10:07:47 +02:00
Markus Mohrhard
396fa3b663 reimplement custom sprite rendering with FBO
Change-Id: I8d7a54fac61a3072d4f34615e71e37c70dec4e50
2014-08-08 09:24:00 +02:00