summaryrefslogtreecommitdiff
path: root/desktop
AgeCommit message (Collapse)AuthorFilesLines
2016-01-03vcl: Excise vcl::FontInfo classChris Sherlock1-2/+2
This may sound crazy, but literally vcl::FontInfo serves no purpose that I can see. The inheritance chain is like this: ┌────────────────────────┐ │ │ │ vcl::Font │ │ │ └────────────────────────┘ ^ ╱ ╲ │ │ ┌────────────────────────┐ │ │ │ vcl::FontInfo │ │ │ └────────────────────────┘ ^ ╱ ╲ │ │ ┌────────────────────────┐ │ │ │ FontMetric │ │ │ └────────────────────────┘ vcl::FontInfo (which, incidentally, needs to be put into the vcl namespace due to collisions with poppler!) literally does nothing and is acting as a bridge between FontMetric and vcl::Font. Unlike a bridge though, this bridge doesn't actually *do* anything. So I'm removing it, which means one less class to deal with in the vcl fonts world. Change-Id: I32725669c9bca7fbb0846b6a062135464046e4f6 Reviewed-on: https://gerrit.libreoffice.org/21058 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2015-12-27sal_uLong/sal_uIntPtr/sal_uInt16 to sal_uInt32Matteo Casalin1-1/+1
also avoid some explicit temporaries and group some checks. Change-Id: I7795b208dde53fd383b8c75f72dd9f56429aea2b
2015-12-24loplugin:unusedfieldsNoel Grandin2-3/+1
Change-Id: I979592adb978c3757a1e54615021ee424a2e02bf Reviewed-on: https://gerrit.libreoffice.org/20892 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-23loplugin:unusedfields in desktopNoel Grandin10-42/+7
Change-Id: Ic816a7faf4d357d16c13f67533b3b409a531d14c
2015-12-21loplugin:unusedmethodsNoel Grandin1-1/+0
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
2015-12-18LOK: get feedback for all of the font/back color commandsMihai Varga1-0/+3
Change-Id: Id4aac707666420752b985bcfd03b5b9bb99f79f1
2015-12-14FreeBSD can live with default search pathBaptiste Daroussin1-1/+1
Change-Id: I3fa26aaf57d9620e952823c303ee77e2fc642045 Reviewed-on: https://gerrit.libreoffice.org/20651 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-11No need for a separate <vcl/graph.h>Tor Lillqvist1-1/+0
Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
2015-12-08Missing osl_destroyThreadStephan Bergmann1-0/+1
Change-Id: I526cb06b019b945931b24eb40477a1727c38cdc2
2015-12-07last arg of SetOutputSizePixelScaleOffsetAndBuffer no longer usedCaolán McNamara1-4/+2
Change-Id: I65e7e82e46c5751617b00a39df47d864b29b6ce1 Reviewed-on: https://gerrit.libreoffice.org/20441 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-07Resolves: tdf#96224 don't fiddle around with a separate alpha bufferCaolán McNamara2-35/+4
use a format that supports alpha directly now we can unify the android and linux cases as well and drop the BGRX support Change-Id: I3c845913691d8194822423005d308cfa7ef13ec3 Reviewed-on: https://gerrit.libreoffice.org/20440 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-07tdf#96250 desktop: empty str is the same as 0 str in jsonToPropertyValues()Miklos Vajna1-1/+1
Change-Id: I77306dc998afc53bb1d5710a8d1ae68717f945d1
2015-12-07Let LIBO_INTERNAL_ONLY imply LOK_USE_UNSTABLE_APIMiklos Vajna2-3/+0
Change-Id: Ifbed5e534ba79d32b7188bb7fb7108338b6e124d
2015-12-04Fix documentationStephan Bergmann1-12/+12
Change-Id: I682a6e4f1a9a5ca3047a4ba2a3229158a8229b4a
2015-12-04unoinfo documentationStephan Bergmann1-0/+35
2015-12-03uno::Sequence -> std::vectorNoel Grandin2-255/+150
Change-Id: I8295505c4b83d23736c1da763eced7406b174409
2015-11-30loplugin:vclwidgetsStephan Bergmann1-6/+8
Change-Id: I520e27de82f11cc3c44c0e059ad60f3edaa4c370
2015-11-30LOK: get state change feedback for more uno commandsMihai Varga1-11/+15
I've also ordered them alphabetically so we can read them easier. Change-Id: Ia332f1662a91de4a4068f0056a3d969fe978a744
2015-11-30LOK: renderFont methodMihai Varga1-0/+53
Renders the given font in a virtual output device. For now it iterates over a list of fonts until it finds the one that matches the requested font. Change-Id: Ie4ecc3a1441519840d8f4f4a890e92670759b4fc
2015-11-30loplugin:unusedfieldsNoel Grandin2-3/+0
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
2015-11-26i126615 - Allow build on FreeBSD Mac PowerPCG5Pedro Giffuni1-0/+3
These appear to have been missed from earlier effort Brave attempt by: Curtis Hamilton (cherry picked from commit abb9cd92ab4614d606df8ced0d57916dcb04289c) Change-Id: Ia778e090c46220d83388ea1a9485b9009787f191
2015-11-24desktop: fix LOK_DEBUG rectangle paintingMiklos Vajna1-13/+13
Change-Id: If023e409fad6fed8c0345a66ea48c1ed9924bff0
2015-11-23updae getTileModeCaolán McNamara1-1/+1
Change-Id: Ic8d67f08d40f475020c0534570fe3bea07aa431b
2015-11-23VirtualDevices either match another device depth, or are 1 bitCaolán McNamara3-13/+19
cairo can therefore always render to a svp virtual device with need for a fallback Change-Id: I5d03ae541820389e26f7448444444be009fb28a4
2015-11-23establish that Virtual Devices either match Physical Device depth or ...Caolán McNamara1-3/+3
are 1 or (rarely) 8 bit and lock that down. Change-Id: I3d946ebef34ffb71c5adea7aa420af50e9584e05
2015-11-23Do all svp text rendering with cairoCaolán McNamara1-7/+5
enabling us to delete a whole pile of foo For android we patch cairo, which is internal in that case, to swap the rgb components so that cairo then matches the OpenGL GL_RGBA format so we can use it there where we don't have GL_BGRA support. Change-Id: I25e34889c7b7263438b143dd2a2ad882fb0f190a
2015-11-23Fix help for argument --pidfile (--pidfile=file)Reto Schneider1-1/+1
Change-Id: I131efc46630437dae28e6698ea849e587abce68e Reviewed-on: https://gerrit.libreoffice.org/20093 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-11-23LOK: add Document::getTileMode()Miklos Vajna1-0/+7
So that clients can know if they get old-style RGBA or new-style ARGB output in paintTile(). Change-Id: Icfde4b3259444b3524e64478ccd976664a3fe0ed
2015-11-22cppcheck:useInitializationListNoel Grandin1-2/+3
Change-Id: I744ff3e268fbffca9499121f3567640934aaae51 Reviewed-on: https://gerrit.libreoffice.org/20110 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-20Seems more natural to pass a homogenous list by initializer_listStephan Bergmann2-14/+15
...than by template parameter pack (even if that requires using ServiceDecl*, as initializer_list cannot take reference types) Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
2015-11-20loplugin:unusedfields in desktopNoel Grandin5-42/+12
Change-Id: Iab2f05ca2ec2bc313121b4edfb9a0129911c2c91
2015-11-18vcl::ITiledRenderable::initializeForTiledRendering: support init. argumentsMiklos Vajna1-1/+1
Change-Id: I9a6a75457078dc6383673f4c1a2012b69b5cefdd
2015-11-18lok::Document::initializeForRendering: support init. argumentsMiklos Vajna3-39/+43
Change-Id: I8aaf19a50f25f495cb87fba7ff6a4b0f56ed7d80
2015-11-16sc lok: use client zoom for ViewRowColumnHeadersAndrzej Hunt1-0/+3
Change-Id: I85000851f82ea7cdc4b536683adbc8570de9af7e
2015-11-16Bin some const char arrays used only onceTor Lillqvist1-10/+2
Change-Id: I08c4cc689016708f4c219f36492bf827111bbc30
2015-11-16desktop: stop --convert-to from creating some not requested ...Michael Stahl1-60/+66
... file format by default if the requested filter does not exist. Much better to write an error message and do nothing. Change-Id: Ie5404772e7aae5751126bd4c2784b58177804448
2015-11-16no need to take a mutex when only dealing with stack-local dataNoel Grandin2-44/+4
Change-Id: Ie45e626aad55a8174a53b769a98601bf54dedf65 Reviewed-on: https://gerrit.libreoffice.org/19979 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-16use cairo-compatible top-down direction virtual devices everywhereCaolán McNamara1-2/+2
that way we can use cairo to text render etc onto our basebmp-backed headless/gtk3 virtual devices Change-Id: I91002b610b72a4fe1d2094a57c5cb1b6b5d69cb1 Reviewed-on: https://gerrit.libreoffice.org/19957 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian4-438/+399
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin1-2/+1
using variations of: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\)\; \s*OUString\* pArray.*; .*\[0\]\s*=\s*(\S+)\;/Sequence<OUString> \1 { \2 };/g" Change-Id: I03c64334ff30ee14dce0d17b67f5122a3893bbe3 Reviewed-on: https://gerrit.libreoffice.org/19971 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser for Sequence<OUString>Noel Grandin1-2/+1
performed using: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence<OUString> (\w+)\(1\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-15use initialiser syntax for Sequence<OUString>Noel Grandin3-6/+3
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-14CppunitTest_desktop_lib: add Writer comments textcaseMiklos Vajna2-0/+47
Fails without e.g. the last hunk of commit 1ba9d7fd2a7a3e2b4f52ed0f5efdf7df867b9db3 (sw lok: forward key events to annotation window if necessary, 2015-11-12). Change-Id: I7f39530881f6141fea956b751aa57eb2bdcadcb2
2015-11-13loplugin:nullptrStephan Bergmann2-6/+6
Change-Id: I001d3cefea8083e0f0d1a965b26ce867f384aea0
2015-11-13LOK: setClientZoom() - sets the client zoom levelMihai Varga2-1/+27
We need to know the client's view level to correctly handle the mouse events in calc. PaintTile() set a zoom level that corresponds to the requested tiles and previously postMouseEvent would call SetZoom(1,1). Now we can make use of knowing the client's view level and call SetZoom() with the correct parameters Change-Id: I34b5afcdcc06a671a8ac92c03e87404e42adf4cd Conflicts: sc/source/ui/unoobj/docuno.cxx
2015-11-12lok: Use reference instead of copy constructing in range-based for.Jan Holesovsky1-5/+5
Change-Id: Ie5bf5d4ab139f22e67f3654b0bb31e10b8c9f337
2015-11-12sw lok: filter out defalt styles to avoid duplicatesAndrzej Hunt1-4/+14
Change-Id: Iff84c2f16844a507d30f30c1fd4b23d807ded466
2015-11-12More range based forAndrzej Hunt1-1/+1
Change-Id: I9cdcd8dca413981389cd4db3059a420131e5f839
2015-11-12Use std::vector instead of an array of stringsAndrzej Hunt1-3/+5
This makes the code much more readable / sane. Change-Id: I1d60f4102b6c619fa2fefac4a3644b7f04c0b9c0
2015-11-12lok: send list of commands instead of ClearStylesAndrzej Hunt2-5/+22
We currently send just one command, but this could be expanded server side in future. Change-Id: Id8f14196158f3a7fe9c54595d094603efd5e2ce3