summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2017-02-07tdf#105286 use alternative font when glyph is not vertical.Mark Hung
In vertical layout, a vertical font is selected. For windows, that means prepending a '@' to the font name. Switch back to the one without '@' in order to display characters that needs to be rotated 90 degrees in vertical layout correctly. Change-Id: I4e0361929f898eddc671b739b36a12dd26d68018 Reviewed-on: https://gerrit.libreoffice.org/33064 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2017-02-07uitest: provide a way to get a json representation of the ui infoMarkus Mohrhard
This just provides the information that is also available through the getState method in a nicer way. Change-Id: Ib64f6ecd2c4e9c0a940f3f9607c9a777233e90d2 Reviewed-on: https://gerrit.libreoffice.org/33978 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-02-07tdf#104101 Improve the session management handlingJuergen Funk
- Set the current time to the SessionID - Split the SetProperties-Data, and send DeleteProperties for DiscardCommand (above both topic is the same as kate and plasma-desktop to do) - in statusChange the saveDone was not called, and call only once the saveDone - in shutdownCanceled must be send the saveDone too Change-Id: I42855c75b88b5d651ef8091947e359dc2c3f9209 Reviewed-on: https://gerrit.libreoffice.org/33215 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-02-06vcl: fix inconsistent GraphicsStateUpdateFlags assertsMichael Stahl
(regression from f4826959c1a5b0e6d2849d4240668b2087582848) Change-Id: If530503a667f765c38a6b226bb0627506dbb0900
2017-02-06Add missing #includesStephan Bergmann
...like 6dce9c6757823b9e89863716ae70ff4e8ddd4e60, for macOS-only code Change-Id: I0b4c0ba12df487107661a6af54fba42122e8f023
2017-02-06Add missing #includesStephan Bergmann
...and remove some unncessary using directives/declarations, in preparation of removing now-unnecessary #includes from cppumaker-generated files, post e57ca02849c3d87142ff5ff9099a212e72b8139c "Remove dynamic exception specifications". Change-Id: Iaf1f268871e2ee1d1c76cf90f03557527ebc9067
2017-02-06tdf#43157 Clean up OSL_ASSERT, DBG_ASSERT, etc.dilekuzulmez
Change-Id: I37b62b7cc4b26789e961148c0411615ef1c2ffa1 Reviewed-on: https://gerrit.libreoffice.org/33884 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-06loplugin:unusedenumconstants in vclNoel Grandin
- drop TTCR_GLYPHSEQ - drop ImageType::Invalid - give preedit_data_t a default constructor, so my plugin spots that the eState field is being initalised to DontKnow effectively by a memset - document ToolbarIconSize::Small as unused, but can't remove since it might be stored in a user-setting somewhere Change-Id: I94b34bba83a04de16f95e4faec95b4bd29f3c652 Reviewed-on: https://gerrit.libreoffice.org/33887 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-05sal_uIntPtr to sal_uInt16Matteo Casalin
Change-Id: If463ae457f53a0a8b12cc0748afbc654f54ae3c3
2017-02-05circular freetype and harfbuzz dependencyCaolán McNamara
harfbuzz needs freetype, freetype wants harfbuzz but can live without it Change-Id: I4b5dbd937ccfc9af46c86be5ae1d3f8eeb14e86b
2017-02-03TyposJulien Nabet
Change-Id: Ic54695e86b4b462419fa7d5ded7b1ddb19ee8ed5 Reviewed-on: https://gerrit.libreoffice.org/33904 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03Typo: progess->progressJulien Nabet
Change-Id: Ic13529f4bc9ac49059a59067c50d5f2c0f569822 Reviewed-on: https://gerrit.libreoffice.org/33902 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03TyposJulien Nabet
Change-Id: I36f443c266670bd26aa6b813075e18653f372f52 Reviewed-on: https://gerrit.libreoffice.org/33900 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-02-03tdf#105697: Make the Screenshot command localizableMuhammet Kara
Change-Id: Ieb3f114feea3b9e9c597e0bd16ed80734dcd5ec2 Reviewed-on: https://gerrit.libreoffice.org/33865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-03new loplugin:unusedenumconstantsNoel Grandin
These are the simple removals, where it is obviously safe, the more complex ones will come in separate commits Change-Id: I7211945a6a5576354b60d9c709940ce9b674f308 Reviewed-on: https://gerrit.libreoffice.org/33828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-02loplugin:useuniqueptrStephan Bergmann
Change-Id: I3a246a22baaac8195dc1b94c42994de7d80e8336
2017-02-02convert method names in tools::SvRef to be more like our other..Noel Grandin
reference classes, uno::Reference and rtl::Reference. Specifically rename Is()->is() and Clear()->clear(). Change-Id: Icb7e05e2d09cb9977121508b837ba0961dabb4ae Reviewed-on: https://gerrit.libreoffice.org/33576 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-02convert BmpCombine to scoped enum and drop unusedNoel Grandin
Change-Id: Ic67474683a25a25e5753777f4bbbeded6ceba414 Reviewed-on: https://gerrit.libreoffice.org/33793 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01fix crash with gtk3, opengl and presentation consoleCaolán McNamara
PresenterSlideShowView::PaintInnerWindow has a mbIsForcedPaintPending flag which is used to throw away the console canvas, but for other backends the paint occurs at a much different time after a clear has a chance to get triggered, while for gtk3 it happens as its being setup. hack around this presenter console weirdness by skipping the initial paint for this salsysobj case Change-Id: If1b23600ef07241e52d92bd5eb38b9e90d9ed192
2017-02-01Revert "vcl: include config_features.h"Michael Stahl
This reverts commit a4d5d69eb4a1f5f889c933e5a801582f31c6ad80. Once is enough.
2017-02-01Need <config_features.h> here, tooTor Lillqvist
Change-Id: Ie16af2d0943cec6374307e9afb09cd47ed6d7043
2017-02-01loplugin:unnecessaryoverrideStephan Bergmann
Change-Id: I53699ef386dad99b38559defe985057492a5df76
2017-02-01vcl: include config_features.hMichael Stahl
Change-Id: I6e68a6728eed108c7670ebef6073394de3f53e6b
2017-02-01Need <config_features.h> hereTor Lillqvist
Change-Id: I391554dff6f92d7639d0a391f4b00437c7648a6b
2017-02-01gtk3 hidpi xor hack needs to use unscaled extentsCaolán McNamara
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-01loplugin:useuniqueptr extend to check local varsNoel Grandin
just the simple and obvious case for now, of a local var being allocated and deleted inside a single local block, and the delete happening at the end of the block Change-Id: I3a7a094da543debdcd2374737c2ecff91d644625 Reviewed-on: https://gerrit.libreoffice.org/33749 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-01tdf#105461 PDF export: handle text fill colorMiklos Vajna
Text portion level background in Writer text was working already, as Writer paints its background explicitly, and then uses no text fill color in the metafile (that is turned into a PDF later). However, text fill color is used for Writer shape text and also in Impress. The rectangle is not just the text itself, but also the ascent / descent region, this matches the desktop rendering result. Change-Id: I644007ade43a8b9e663890643b826ae12c427ea5 Reviewed-on: https://gerrit.libreoffice.org/33781 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-02-01An env var to disable font lookupKhaled Hosny
To be used in layout tests. Change-Id: I551b87786a4ad4ab34a22c458561109270fb4a31
2017-01-31add pct fuzzerCaolán McNamara
Change-Id: I6a1787b484479268223fb59bf510c20be833d4d0
2017-01-31teach lolugin:stringconstant about calling constructorsNoel Grandin
so we can remove unnecessary calls to the OUString(literal) constructor when calling constructors like this: Foo(OUString("xxx"), 1) Change-Id: I1de60ef561437c86b27dc9cb095a5deb2e103b36 Reviewed-on: https://gerrit.libreoffice.org/33698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-30extend menu builder to handle radio and check entriesCaolán McNamara
Change-Id: Iadbf01f42cb83b2595a49f2e5ba286bcba24281e
2017-01-30I don't see why we hide 'select all' if there is no insert symbol dialogCaolán McNamara
Change-Id: I928c94e104009e880c46100bdb57926f1a006877
2017-01-30convert edit menu to .ui formatCaolán McNamara
Change-Id: I658242745aba910c42a9bddf648dc88f53db6313
2017-01-30vcl: fix MetaTextLine reading, version 2 contains overlineTomaž Vajngerl
Reading MetaTextLine version 2 was reading to meUnderline (twice) and never read to meOverline. This is not consistent with Write where in version 2 we write the content of meOverline. Change-Id: If7911add5845ec3a01365d4ad8b8afaa6b2723dd Reviewed-on: https://gerrit.libreoffice.org/33687 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-01-30expand SVM test (Mask, TextRect, TextLine) and mtfxmldumpTomaž Vajngerl
Change-Id: I13e0882ac7093d6d3ab46914316f303e1ab01b93 Reviewed-on: https://gerrit.libreoffice.org/33686 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-01-30support accelerator modifiers in menu builderCaolán McNamara
Change-Id: I39c4260ecec288be61f4f2c42c5b7c72babdb7a8
2017-01-30Resolves: rhbz#1417480 stray bare XWarpPointer call in gtk3 codeCaolán McNamara
which blows up under wayland naturally can get here from tools->options->mouse positioning->"dialog center" table->insert table Change-Id: Id81b06a63cc3a2a1073d236e2f36dc65e533e598
2017-01-30tdf#104693: screenshot: fix mirrored mac screenshotsThorsten Behrens
Change-Id: Ie13689d7e15bf8dee6f21e6f5e7d75c9e53e931b Reviewed-on: https://gerrit.libreoffice.org/32543 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-01-28loplugin:stringconstantJochen Nitschke
Change-Id: I4e2e0aba2930d7c4ee60567d1d65e0e773a470bf Reviewed-on: https://gerrit.libreoffice.org/33650 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-01-28loplugin:stringconstant check for unnecessary OUString constructor..Noel Grandin
..calls when creating exceptions Change-Id: I3bc58a5aa4dc6f0508ecb88b3a843b96b8c7ebfe Reviewed-on: https://gerrit.libreoffice.org/33617 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-01-27add eps fuzzerCaolán McNamara
Change-Id: I7455a01076fc7c5fd16bbb90914ac93c236b2a3b
2017-01-27coverity#1371303 Missing move assignment operatorCaolán McNamara
Change-Id: I0dec3e192f3da895398a8b011c0e7275aab59d73
2017-01-27everything ImplClear clears is managed by their dtors anywayCaolán McNamara
Change-Id: Icafd4a4915d2fb3159b50409e5fc443c58d43d57
2017-01-27Animation dtor will be called anyway, so drop ClearCaolán McNamara
Change-Id: Ifa5a1cf6d782af0bb73ceff10f5a2a2daa4457d4
2017-01-27everything reset by ImplClear is going to be overwritten anywayCaolán McNamara
Change-Id: I94de8723a43d177fdf2caf0d8d3e529200d2e718
2017-01-27we copy the flag for the context in the ctor, but not the contextCaolán McNamara
which is worrying, copy the other missing maSwapInfo too which should be safe to do. in the assignment operator, we don't copy any of those three fields at all, which is inconsistent save and restore the context and context flags on the piece where we overwrite ourself via *this = tempobj Change-Id: I06a7d491f95dcb113a3c705ceeb41f576ab0a514
2017-01-27remove weirdness of ImpGraphic assignment operatorCaolán McNamara
seems to me that this hackery is to avoid the swapfile getting pulled out from underneath it during swapin Change-Id: I6b58d7e31731db8edc4026460beabc667204dcae Reviewed-on: https://gerrit.libreoffice.org/33620 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-27DisableGlyphInjection does nothingKhaled Hosny
Change-Id: Ie97eac46fde075bd74c7adb583b8be979f3af829
2017-01-27move these into the member init listCaolán McNamara
Change-Id: I94a1ea4cb81e2b7383c3e7c56314d08eea754434
2017-01-27-Werror=int-in-bool-context (GCC 7)Stephan Bergmann
Change-Id: Ide131a586d0d282993dfbf53a783f02d48860647