summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2018-06-04svx: support importing PDF imagesAshod Nakashian1-0/+16
(cherry picked from commit 6e00acca4ffe130f41d19313e5b310ae6da6358d) Change-Id: Id4524a30b8f9fa4228c4acb4bf8714700da3017c
2018-06-04svx: support breaking PDFs imported as imagesAshod Nakashian2-5/+5
(cherry picked from commit 825ca67423eef8567edbc938fc8b65dab45781a9) Change-Id: I990c2b3c3055fbffddedc407c34beb5824277b38
2018-06-04vcl: svx: preserve the imported PDF page number in GraphicAshod Nakashian2-7/+21
(cherry picked from commit dbbf8641e9e66c106cf74637ea9e94b56fd588c0) Change-Id: I1bb3fa7d44d5f92df2bb8c4ed4b85ccd984c2617
2018-06-04sd: import PDFs as images using Pdfium new SdPdfFilterAshod Nakashian8-82/+87
LOK now opens PDFs as images using Pdfium, which has a superior accuracy and support to poppler, the default pdf reader. (cherry picked from commit 0e8f4f45b44935c7c8002d606b97a48e60e37b23) (cherry picked from commit 42733c51385b6518678a8d5483c234909db2af40) Change-Id: Ifbbecf7f048f001836fb98886705cba47e6bed4e
2018-06-04vcl: support rendering multiple PDF pages to bitmapAshod Nakashian1-1/+7
Reviewed-on: https://gerrit.libreoffice.org/51255 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> (cherry picked from commit d7c0cc3908a7624aa159549ab1561b511d6fae28) Change-Id: Id42ecabcad90dde84475a01e5df4ed94f221f5ce
2018-06-04vcl: refresh font cache only on real changeAshod Nakashian1-1/+1
GTK3 emits way too many style-updated, which triggers font cache updates. The avoidance of unecessary font cache updates was first implemented in 29c55564. Unfortuantely, it seems that the current font was never set as last-seen font, so checking for font style changes would have worked, leaving the code seemingly suffering the original issue of way too many font cache updates. Change-Id: I01a47d4d7fb033e335b1a49ffa6e1bb98f7fd28d
2018-06-03uitest logger: ListboxSelect and ListboxFocus loggingSaurav Chirania1-1/+7
Change-Id: I5a38adaeea3c2e64366563bd449d8bf06d9161a3 Reviewed-on: https://gerrit.libreoffice.org/55112 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-06-03uitest logger: support for buttons, dialog, command and key loggingSaurav Chirania3-3/+39
This patch adds logging faclity for radiobuttons, checkboxes and button clicks. It modifies the logging for UNO commands and dialogs execution for consistency with other log statements. It also makes key logging more informative by printing the details of the object on which the user is typing. Change-Id: I911d0dfb64dacfde64193f0aea21f7d837dbf9da Reviewed-on: https://gerrit.libreoffice.org/54745 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2018-06-03Fix tdf#100937: LO Freezed when I insert a very long text in...Matteo Casalin1-1/+1
... the Description box The issue was triggered by ImpVclMEdit::Resize initially calling TextEngine::SetMaxTextWidth() with a negative width (due to an initial empty area, further "reduced" to take into account a vertical scroll bar) and then with positive values in following iterations. I preferred to consider such negative widths a no-op instead of extending them to the "maximum" possible width. Change-Id: I756652a30c23ebe6674e481e7d8d6e0d8ba45e75
2018-06-03Improve 1a2ee0ecd5b0cff52922c1d261f7d03a57a52ca0Matteo Casalin1-3/+4
Change-Id: I50f369f28c3b97ba7fed494cb238b7756920abc6
2018-06-03Try harder to find a matching file extensionMatteo Casalin1-12/+21
Potential regression from 2a39163aef4211c9d19cb1faee7f55d3718355b6 Change-Id: I67f1f11bd52a1dbf0f77a35df7ad556437ccd39b
2018-06-03Fix tdf#117410 - UI: Settings in PDF Options not remembered...Matteo Casalin1-1/+2
for next export Change-Id: I6f066c81d96595a4560f5bb9e148001b004b38f0
2018-06-03avoid a deadlock when the crash handler can't acquire SolarMutexLuboš Luňák1-9/+11
Change-Id: Iea2d9b993dcf08fe022f97a2ac8e15fba9a8568c Reviewed-on: https://gerrit.libreoffice.org/55090 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2018-06-02coverity#708674 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: Icbd707fc5bcdad58592ab80c095ad0b1d655786c Reviewed-on: https://gerrit.libreoffice.org/55214 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-02fix dubious cache comparison checkCaolán McNamara1-1/+1
in... commit 083b7ca26bbf4b9bad2922520caaf5c0227dac5e Date: Tue Dec 26 15:58:21 2017 +0100 Move PhysicalFontFace member of FontSelectPattern this went from... if ( (rA.mpFontData && rA.mpFontData->IsSymbolFont()) || (rB.mpFontData && rB.mpFontData->IsSymbolFont()) ) to ... if (rA.IsSymbolFont() && rB.IsSymbolFont()) { Change-Id: I1407573dfa73ac843b790ff3bc4ac0d5f66ab42c Reviewed-on: https://gerrit.libreoffice.org/55183 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-02share the cairo clipping codeCaolán McNamara3-17/+10
Change-Id: I2dc8f55fd2612b5fc4440b46ee3184341fd56859 Reviewed-on: https://gerrit.libreoffice.org/55180 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-02share the cairo polyline drawing codeCaolán McNamara3-138/+47
Change-Id: I35c04f33f3a87962a3d0e731213228d5b2e8590e Reviewed-on: https://gerrit.libreoffice.org/55179 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-02valgrind: uninitialized readCaolán McNamara1-2/+1
Change-Id: I29811f652c2368a0fecef66dd02343d12ee67068 Reviewed-on: https://gerrit.libreoffice.org/55178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-02Resolves: tdf#101798 ResetClipRegion needs to affect cairo drawing tooCaolán McNamara1-0/+3
regression since... commit cb382034b061b4acd4f0fd490f42af34517a7b8d Date: Fri Jul 1 14:00:00 2016 +0200 tdf#50613 speedup fat line drawing on linux using cairo Change-Id: I2f1a70f102786228d52199df9960336218c6f9f9 Reviewed-on: https://gerrit.libreoffice.org/55177 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-06-02Removed executable permission on data filesAndrea Gelmini1-0/+0
chmod -x for odp, ods and so on Change-Id: I74397d9b8e24575130d2776ed90f4cfc13e1f03c Reviewed-on: https://gerrit.libreoffice.org/52570 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-06-01Remove unused Qt5MenuItem::mpVCLMenuStephan Bergmann2-2/+0
Change-Id: Ia7f28a54f253f0263cc781feb5997bb51bb640b2 Reviewed-on: https://gerrit.libreoffice.org/55193 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-06-01Fix various Clang and loplugin warnings in --enable-kde5Stephan Bergmann6-13/+14
Change-Id: Ia79f97ca589720dbdfd14ea03560713fd2d22db9 Reviewed-on: https://gerrit.libreoffice.org/55195 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-06-01use more BitmapEx in filterNoel Grandin1-2/+4
Change-Id: I68fdad6a69a178df8c59c4272f1d8d0b2f101315 Reviewed-on: https://gerrit.libreoffice.org/55163 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-06-01Various trivial loplugin fixes in --enable-qt5Stephan Bergmann21-67/+64
Change-Id: I9539eb77f663e1174919ae801495801f81571710
2018-06-01remove old "convert to SVM1" code only active in debug modeNoel Grandin3-75/+8
Change-Id: I1d83e6ea5f8eb998f95e6ec334a695eb1df78df1 Reviewed-on: https://gerrit.libreoffice.org/55173 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-06-01Make clang-format happy, remove vcl/unx/kde5 from blacklistKatarina Behrens28-1118/+1146
just between us girls, I hate you clang-format Change-Id: I4cd041eff7a9fa01eb9192cf357e3f07a26fa6ad
2018-06-01Use harfbuzz and graphite, needed after GenericSalLayout refactoringKatarina Behrens1-0/+2
Change-Id: I21c221715c4e6b4e692c8b5ea4d9c9eb5d073980
2018-06-01Add radiobuttons to native menusKatarina Behrens1-0/+14
Change-Id: I015bbb0a337b917096ca6f542a73c24c79fbef7d
2018-06-01Add checkmark buttons to native menusKatarina Behrens1-0/+9
Change-Id: If64227af287006cb4f9b980dac97b2fb401eac88
2018-06-01Dispatch commands from menus for realKatarina Behrens2-4/+20
Change-Id: I01997caa22e14c1350bd83100edb74397ebab5d7
2018-06-01Basic structure of a slot to dispatch commands from menuKatarina Behrens3-2/+13
Change-Id: If3a134f67f59d3238c27eb0fef99bf49a8970433
2018-06-01Add shortcuts to native menu entriesKatarina Behrens1-1/+14
something's wrong though, they don't really show Change-Id: Id8559fd9b6a5d4b2b49442d179571d31a99b5b20
2018-06-01Insert separators into native menuKatarina Behrens1-2/+8
Change-Id: I88bb70b1e443821cc8d1904039f2a8fb52df1ff9
2018-06-01Native leaf menus and submenus are now visibleKatarina Behrens2-24/+32
Change-Id: Ieaac0966b167d82c8bdeb60f3ce4b9cc8589ec62
2018-06-01Clear menubar before opening a new appKatarina Behrens1-0/+3
Change-Id: Icab19e31f7aa737351460790d2028114b24284ad
2018-06-01Replace ~ with & (Qt accelerator marker) in menu entriesKatarina Behrens2-0/+7
Change-Id: Ie7866357d4e74b778849262c1c2b60605a26faad
2018-06-01Unify Color -> QColor conversionKatarina Behrens4-4/+10
this also resolves build failures on 32bit platforms Change-Id: I53fa2faae52a8cb322644c5bd5e5e84d71110d8e
2018-06-01Top-level native menubar items are now visibleKatarina Behrens3-1/+20
Change-Id: I6746b4a41a99c75234e64ab48ce81ea97333da04
2018-06-01Expose menu bar of the main windowKatarina Behrens4-2/+40
and some addional work on activating menus Change-Id: I0c4d87dc158f3253aa97d151385fce14551c11b9
2018-06-01Templatize Qt5Widget classKatarina Behrens5-78/+179
to distinguish between QMainWindow (top-level SalFrame) and QWidget (everything else). The former are going to receive a native menu Change-Id: I9023d1e464345f96f13967f5e2c8b0716890fbc9
2018-06-01Basic ops (add, remove) with native menu itemsKatarina Behrens1-0/+14
nothing's visible yet Change-Id: Iee9d31ecdb931e64016f8430b51b619a39528726
2018-06-01Prep Qt5Instance for native menusKatarina Behrens2-0/+28
Change-Id: I7ec34b13823b943ef5e99b92d919c2df795d6ace
2018-06-01Basic skeleton of native menusKatarina Behrens3-0/+156
in the closet Change-Id: Ic54b3853b53987b3e5a85444da0b9167a785bd81
2018-06-01Get rid of annoying focus rectangles in start centreKatarina Behrens1-0/+1
Change-Id: I7ef38b226cd2bab7641638c500341cf7c198026d
2018-06-01Render list headers nativelyKatarina Behrens1-0/+9
they have somehow odd colour though Change-Id: I645581cc594ba3e06c4475957565aadc633b9d20
2018-06-01Use QImage format with premultiplied alphaKatarina Behrens2-1/+2
as that's what cairo (almost) silently expects Change-Id: If1ad6f28fcc6fb7ddc2ac4fcec0a31bad512cb2a
2018-06-01Native focus rectangles for push buttonsKatarina Behrens1-2/+5
far from perfect, they also hide the button text (but at least focus frame in contrast colour is visible) Change-Id: I9a7c2b429ae14b8604f894de64a7328cde6cb270
2018-06-01Native focus rectangles for radiobuttonsKatarina Behrens1-4/+13
that suffer from the same problem (lack of transparency) as those of checkboxes Change-Id: I4bb81c5f95b07e57a7d6cdb86ba4e31ec7660f5a
2018-06-01Native focus rectangles for checkboxesKatarina Behrens1-4/+14
done only half-way, they need to be made transparent Change-Id: Id7b1ebce33ef6f8912ee5250c13e38592b383f81
2018-06-01KDE5SalData derives from Qt5DataKatarina Behrens4-2/+97
A step back since now mbNoFocusRects (= draw focus rectangle natively) is set, but native drawing itself is not yet implemented and no focus rectangles are drawn Change-Id: I4dde734d057f6c594eb11162990430697277f029