429 Commits

Author SHA1 Message Date
Noel Grandin
bca47d830e remove ConnectionIdentifierType enum
since we only use the AsciiCString enumerator.
Consequently simplify the GetConnectionIdentifier method

Change-Id: I9e1a1318d2f12bfd18edeb8479e0e7171b22d0f1
Reviewed-on: https://gerrit.libreoffice.org/34026
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-09 09:51:05 +00:00
Noel Grandin
0bf5254b00 convert PaintMode to scoped enum
and drop unused INVERT enumerator

Change-Id: I6db12ff76a5515bcb4691403b8fb380f9d74c1c9
Reviewed-on: https://gerrit.libreoffice.org/34055
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-09 08:42:27 +00:00
Stephan Bergmann
ccc827a593 Blind fix for build
Change-Id: I0e992eb2e10c71de1e04b9283a012c8e8f229612
2017-02-07 20:25:38 +01:00
Caolán McNamara
555e1ff4cc bubble the original gtk surface type through rendering
this may make scrolling a tad faster

Change-Id: I0c2cc9df85932e25dbfed88727d3b83d299671c7
2017-02-07 16:41:51 +00:00
Caolán McNamara
19ea3db6d3 revert unready stuff
Change-Id: I2b112a17a2bc70bfe4d5a6af7964a3c1d7eacf9b
2017-02-07 13:09:31 +00:00
Caolán McNamara
7863798f2a bubble the original gtk surface type through rendering
this may make scrolling a tad faster

Change-Id: I5f11f9b3196c3d42c82ac03bc332ef84189f3737
2017-02-07 13:07:57 +00:00
Caolán McNamara
00c4679641 gtk3 hidpi xor hack needs to use unscaled extents
so that e.g. the xor cursor in csv dialog can be seen when moving
the mouse across the ruler

Change-Id: Ia2f367d5f610d486a8e10b6bc278cbc8029cf2a1
2017-02-01 12:52:17 +00:00
Noel Grandin
32a461bdd6 loplugin: unnecessary destructor vbahelper..vcl
Change-Id: I6b7800d4a456391251168f7923a1ec7a5ca9efc9
Reviewed-on: https://gerrit.libreoffice.org/33577
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-27 06:50:02 +00:00
Caolán McNamara
4e9cfc178c Resolves: tdf#105416 blank windows under HiDPI RTL
Change-Id: I819f06babd448c37ce2d58297562b640aba1c8c6
2017-01-19 10:02:14 +00:00
Noel Grandin
e8b49f0907 new loplugin: useuniqueptr: vcl
Change-Id: Idcbc8655108ff57c06c33bbcabd652387bf3c4ec
Reviewed-on: https://gerrit.libreoffice.org/32948
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-13 06:49:23 +00:00
Caolán McNamara
a6b6980afa oss-fuzz: make max sane bitmap allocation smaller
Change-Id: I0b924f615ed4652ce605c12d2d2e9ca2ad2befbf
2017-01-06 20:54:19 +00:00
Caolán McNamara
600f22fa3e use same logic in both Creates
Change-Id: I49dab360c5f93e40f5a6e91fbe721935d795472c
2017-01-06 13:52:34 +00:00
Caolán McNamara
3cbe00474c Related: ofz#318 limit bitmap max to SAL_MAX_INT32
Change-Id: Iae8a0782e5c306f619e0d94a60dfa0d7c00ec54e
2016-12-23 19:34:52 +00:00
Caolán McNamara
218179ddbf unroll code for early returns, no logic changed intended
Change-Id: Ic1cc63a5fe3ad2c949f91c395c00f5f99bd7602a
2016-12-23 17:54:34 +00:00
Tor Lillqvist
3d17a40882 loplugin:override
Change-Id: I7ef42d66a0ffbbd8f2754bd4aba0e77659c9ae83
2016-12-12 15:52:53 +02:00
Tor Lillqvist
22166c75ee loplugin:nullptr
Change-Id: I6ab405e7e9a0c8ac3a323fd2484e334c500280ae
2016-12-12 15:52:53 +02:00
Tor Lillqvist
00d3aaa2dc loplugin:unnecessaryoverride
Change-Id: I45d7e14cef0058c4bfca4a3466e31d64e29bdfae
2016-12-12 15:52:52 +02:00
Khaled Hosny
bebee55d19 Use GlyphItem in more places
Change-Id: Ic0dd8c0311161271817eb9a3f454d00a319e43a8
Reviewed-on: https://gerrit.libreoffice.org/31814
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-12-10 01:57:50 +00:00
Tor Lillqvist
b4c56f7323 Try to fix --disable-gui build
Change-Id: I4f56b98f9475dd915fed10b67bb72dd12d859597
2016-12-08 10:29:15 +02:00
Noel Grandin
a08cb3b52e convert PolyFlags to scoped enum
and remove the XPolyFlags enum, which has the same values and was being
converted to PolyFlags anyhow

Change-Id: Iaead84933c79a7603698a4e50257dd944df89c41
Reviewed-on: https://gerrit.libreoffice.org/31627
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-12-07 10:34:17 +00:00
Khaled Hosny
2e0ab51259 Strip down GetEmbedFontData to what is really used
The only remaining user is EmbeddedFontsHelper, and it just needs the
raw font data.

Change-Id: Ia15c59158b5c9e44d0936463553303a3c8b6e0f5
Reviewed-on: https://gerrit.libreoffice.org/31374
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-11-29 22:51:26 +00:00
Khaled Hosny
1ee56fc9f4 SalGraphics::GetFontEncodingVector() is a noop now
Change-Id: Id706fa242277a0ea7ba44f52eab4a56e404bd2fa
Reviewed-on: https://gerrit.libreoffice.org/31372
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-11-29 22:37:33 +00:00
Khaled Hosny
59859a8aaa ServerFontLayout is already gone
Kill DrawServerFontLayout, and rename DrawSalLayout to DrawTextLayout,
in parity with GetTextLayout.

Change-Id: I3f61efd8c6ecde64f28301dca6a7c91eb0873702
Reviewed-on: https://gerrit.libreoffice.org/31224
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2016-11-26 10:58:38 +00:00
Caolán McNamara
a250292c5e cairo_surface_set_device_scale is in >= cairo 1.14.0
Change-Id: Iff47499d61dd6eb294d528fa8bfc5baf304ce151
2016-11-24 08:59:48 +00:00
Caolán McNamara
d9a6e0023c Resolves: tdf#99508 ensure sufficient size for hidpi backing surface
and match virtual device scale with widget device scale

Change-Id: I1f35dcbaec94be12758ad6e4276bfd6bda4b1e88
Reviewed-on: https://gerrit.libreoffice.org/31080
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-11-23 22:40:58 +00:00
Caolán McNamara
2fdbe655bb gtk3: scrollbar damage area one pixel too narrow/short
under default Ambience theme Ubuntu 16.04

tools rectangle strikes again, rejig to be left/top +
width/height rather than left/top + right/bottom

Change-Id: Id5274f068863cd5219a89142b392c9ca53a1694d
Reviewed-on: https://gerrit.libreoffice.org/30850
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-11-14 16:28:00 +00:00
Khaled Hosny
0fd8ef082d Rename ServerFont to FreetypeFont
This is what it is actually is, we dropped support for server-side fonts
for a long time now. Renamed also a few related classes, but left
ServerFontLayout* ones as they will go away soonish.

Change-Id: I68a6dad51b6972368b7bf85a0b9c8089cc12740e
Reviewed-on: https://gerrit.libreoffice.org/30390
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2016-10-30 12:54:00 +00:00
Akash Jain
07492d483b GSoC: Modify DrawServerFontLayout and add DrawSalLayout
Modify the definiton of the DrawServerFontLayout method.
Add new DrawSalLayout method which will be used for drawing text
independent of the platform.

Change-Id: Ie3eefb172b1781c685def1ef549db2538f672a62
2016-10-18 20:41:29 +02:00
Caolán McNamara
9f0827d582 SalI18NImeStatus is stubbed the same way for everyone except...
the gen vclplug, which is then unused for the gtk/gtk3 case
so only possible to use in gen/kde.

Make the default impl the no-op case and override just in
gen

Change-Id: Id0dd3fe4ae4e5b94bfc56219defab56905ec710a
Reviewed-on: https://gerrit.libreoffice.org/28675
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-09-06 07:28:03 +00:00
Noel Grandin
3dfbf76e58 convert DuplexMode to scoped enum
Change-Id: Ic6f6e11437e75d17630683196c1b94dc25dd888f
2016-09-05 10:38:51 +02:00
Noel Grandin
87ee6c044d convert Orientation to scoped enum
Change-Id: Ifbfcf3557ca2a16d21e7a1d613ee54c1c6625f07
2016-09-05 08:21:46 +02:00
Noel Grandin
4442d22643 convert OutDevSupportType to scoped enum
Change-Id: I7a1e4448dfff0ea6909149533d228829d980796c
2016-09-05 08:21:46 +02:00
Caolán McNamara
f352ee156c boost::intrusive_ptr->tools::SvRef
Change-Id: I4c913dc62efe3f3747e78670f4efb0216d95c4ad
Reviewed-on: https://gerrit.libreoffice.org/28585
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-09-02 08:09:19 +00:00
Caolán McNamara
0896207282 cppcheck: noCopyConstructor
Change-Id: Id5323cb6f52666f85965e11b07e4f2bca8af4e78
2016-08-18 14:24:11 +01:00
Tor Lillqvist
fb83fd9d22 Massage ifdefs etc for iOS to avoid undefineds
I think it's best to not use cairo on iOS, even if we do use it on
Android. We probably want to use native APIs for the functionality
that cairo would provide. Just like we do on OS X.

No idea whether the resulting TiledLibreOffice will still work like it
used to in May last year, when I last tried.

Change-Id: Ie15cad6918d7a66e2aff7faabfcade7f3246b060
2016-08-17 18:16:10 +03:00
Tor Lillqvist
f3346b1fc5 Intermediate iOS hack
Just to get this one file to compile. More errors come later.  I just
spent a short time on this while waiting for something else.

Actually I have no idea what we should do on iOS nowadays. Do we want
to use cairo? Do we want to use OpenGL? Would it make sense to mimic
what we do on Android as much as possible? (But what do we do on
Android, and is that by choice or accident?) Even if that might mean
not using APIs native to iOS, but slower (not HW accelerated) FLOSS
alternatives that perform the same functionality, broadly speaking?

Change-Id: Id88a895b90f753417eced744141376656bcf72c3
2016-08-10 16:37:32 +03:00
Caolán McNamara
f5fd2c66f6 set antialias once when context is created
Change-Id: Id36e716253768321e1ddfb977a22470c6b694147
Reviewed-on: https://gerrit.libreoffice.org/27510
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-07-29 01:55:53 +00:00
Armin Le Grand
ffa1c7bc86 tdf#101026 Create more correct replacement control vector
Change-Id: I909adaab3dca3c1bac4331b164343cdbc1205df2
Reviewed-on: https://gerrit.libreoffice.org/27365
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2016-07-28 09:42:07 +00:00
Noel Grandin
938821fb08 new loplugin overrideparam
verify that parameters on override methods have the same set of default
values for their params as their parent/super-methods do.

Change-Id: Ibdbc1c6e417fbaa680ea025a6bbf5ba9c2e5bcd2
Reviewed-on: https://gerrit.libreoffice.org/27437
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-07-25 06:09:17 +00:00
Tomaž Vajngerl
b490051150 don't use AA in SVP backend when getAntiAliasB2DDraw is false
Change-Id: Icea880a824f57ca74eb9e22820893faf6cbf7945
2016-07-24 19:34:47 +09:00
Caolán McNamara
0d2a328ab0 use CAIRO_FILL_RULE_EVEN_ODD by default
as seen in tdf#100909 with gtk3 backend

Change-Id: I67a270a96df980489cd2cb37461b3bf88de4df03
2016-07-19 09:54:59 +01:00
Miklos Vajna
ac0b3b05ab vcl headless: ignore visibility in GetClientSize()
This fixes the missing-invalidation problem outlined in commit
22023b104cd1e024aecc28a6161bea519a584407 (vcl lok: fix missing paints
due to zero-sized windows, 2016-07-12) also in Writer, not only in
Impress. Starting text edit, doing a change, and ending text edit now
results in the expected invalidations.

Ignoring visibility seems to be a better fix for the missing paints.
This way the headless case doesn't hit the corner cases of 0x0-sized
windows. Also, the gtk vclplug's GetClientSize() only returns 0x0 in
case the underlying window is disposed or it's minimized, but it does
hand out the size before Show() is called, so now the headless backend
is in sync with that.

Change-Id: I78698cbfce954c8c593d279ab057a87cfbe87260
Reviewed-on: https://gerrit.libreoffice.org/27224
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-14 17:44:26 +00:00
Stephan Bergmann
0ce1ecab48 loplugin:redundantcast: redundant static_casts in vcl
Change-Id: Ib543e45d8eb1d54ef5c27769c601379fe615b23d
2016-07-08 16:47:31 +02:00
David Tardon
cff87aac4e update other places that read data from cairo image surface
Change-Id: Icb8761e5ff89e1c0e0e034a751fe9a50ad5ab90a
2016-06-28 14:52:57 -04:00
David Tardon
e9ef81eeef rhbz#1341064 fix OutputDevice test on big endian systems
Change-Id: I902acd90797ab26304bc5b239b862cae9f3075ef
2016-06-28 14:52:40 -04:00
Xisco Fauli
0325b22a2a tdf#62525 vcl: use cow_wrapper for jobset
Besides:
* Convert ImplJobSetup to be a class.
* Use ImplJobSetup's setters and getters everywhere
* add some const-correctness at places

Change-Id: I32101048e9be4f3950a4540b0666ed548bbcb211
Reviewed-on: https://gerrit.libreoffice.org/24594
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-06-24 23:01:04 +00:00
Michael Stahl
cd292ba17c vcl: avoid vcl_filters_test crash with ASAN 32-bit
ASAN usually aborts on operator new[] allocation failure but with
allocator_may_return_null=1 in ASAN_OPTIONS it returns null instead; it
doesn't throw std::bad_alloc though.

Change-Id: I28d67a787e90604c12ad06fd97d265664bd62ef2
2016-06-23 11:39:00 +02:00
Mark Page
99200d7cc2 tdf#96099 Remove various smart pointer typedefs in vcl
Change-Id: I4ac1bb25d3d63f150b42d9e1708efc344bbdb6a7
Reviewed-on: https://gerrit.libreoffice.org/26113
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-10 07:25:59 +00:00
melikeyurtoglu
258301879b tdf#96971 SetXORMode - remove un-needed parameter
Change-Id: I901e5de3e4e25f0cae5c71d6e83fd94459fe7b7e
Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/21951
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-06-09 11:31:11 +00:00
Caolán McNamara
de8c740ca1 1 bit masks need each byte to be reversed
to match CAIRO_FORMAT_A1 ordering

as seen under gtk3 with animated gif of tdf#99519

Change-Id: I62d7197522ad779683e46837ddeabbfe21f3717b
2016-06-01 13:25:30 +01:00