summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2016-03-08Bin a pointless level of macro abstractionTor Lillqvist2-10/+6
Change-Id: I343844aca956a1ce05c733f60a28d51115574ef8
2016-03-07gtk3: popover positions come pre-computedCaolán McNamara1-15/+30
i.e. the position provided is the location where the popover is to be drawn, not the bounds of the thing to be pointed to, so adapt them so gtk will point to the desired place. e.g. the slide names/numbers in the presentation slide view sidebar Change-Id: I8c87d5dba32e27f9e627b3282f34d87a8ee460ca
2016-03-07Resolves: tdf#98425 gtk3: grab the SolarMutex when setting the clipboardCaolán McNamara2-1/+3
Change-Id: Ic439affbd69532534f5caf82a743786d5975939e
2016-03-07loplugin:unuseddefaultparamsNoel Grandin8-36/+21
Change-Id: Ia414f7845425ef73859ed04853378e96cc738795 Reviewed-on: https://gerrit.libreoffice.org/22971 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-07tdf#96099 Reduce number of trivial typedefsChirag Manwani2-8/+6
Change-Id: I39e9fcfdf2203239ac56d1c8195ca7ac07054817 Reviewed-on: https://gerrit.libreoffice.org/22898 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-07improve defaultparams lopluginNoel Grandin4-27/+18
to catch calling params with defaults like "= OUSString()" Change-Id: Iad060e318ed492c22f8be44e326174fe6d28fff9 Reviewed-on: https://gerrit.libreoffice.org/22932 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-07loplugin:unuseddefaultparam in variousNoel Grandin2-10/+7
Change-Id: I03d7381aad055cbe9bd905e4082586073f4112e0 Reviewed-on: https://gerrit.libreoffice.org/22900 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-07opengl: fix loading shader with preamble that uses #versionTomaž Vajngerl1-2/+2
The preamble was inserted into a false position so the shader could was constructed incorrectly and would fail to compile. Change-Id: I4c51adde9014a326bbe38a5d2d17dd0047e33195
2016-03-07opengl: fix inv.scale values are always integer - cid#1352479Tomaž Vajngerl1-2/+2
Force cast to double to avoid integer division - which gives a wrong inverse scale value. Change-Id: I0135e44ef07f3915619f9dfead9aadf50fc03685
2016-03-04tdf#79679 vcl: dashed lines show as solid lines when importing EMF filesChris Sherlock4-46/+27
Issue is a regression in commit 09c722873b2d378d2d155f5f1dd7d8f3fb2012e9. (EMF/WMF: fix rendering of pen styles (dash, dot, dashdot, dashdotdot). I've looked at how the latest version of Word on the Mac works, and it turns out that the spacings for the PenStyle enumerations in the LogPen objects for all the create pen EMF records are as follows: * PS_DOT - ■ □ ■ □ ■ □ ■ □ ■ □ ■ * PS_DASHDOT - ■ ■ ■ □ ■ □ ■ ■ ■ □ ■ * PS_DASHDOTDOT - ■ ■ ■ □ ■ □ ■ □ ■ ■ ■ (where ■ is the actual filled in area, and □ is the space between the filled in areas) In other words, each dash fills in the space of three dots, and there is the one dot worth of empty space between the dashes and dots. Each "dot" has a width and height equal to the width specified in the pen. So basically, we seem to be arbitrarily setting the dot, dash and distance lengths arbitrarily, which were reasonable guesses but tended to produce very odd lines at different zoom levels. Change-Id: Ie8b5fa396e4fb0f480cb3594c8129a59f472c1b8 Reviewed-on: https://gerrit.libreoffice.org/22886 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-03-04tdf#98052 - polypolygons were not drawn on the alpha deviceMarco Cecchetti1-0/+2
In OutputDevice::DrawPolyPolygon when b2dpolygon are used for drawing the source polygon is not drawn on the alpha device. Change-Id: I54f4e5a13469d9844866cea61b074420219b836d Reviewed-on: https://gerrit.libreoffice.org/22892 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-03-04Don't build ui-previewer in the App Store caseAndras Timar1-2/+3
Change-Id: I25ca4b8672702095cc04723bc9c6bdf01a06382f
2016-03-04-Werror,-Wunused-macrosStephan Bergmann1-1/+0
Change-Id: Ib333ad2880e0a1cbfed2f6a919ca2b92f42dde45
2016-03-04-Werror,-Wunused-macrosStephan Bergmann1-3/+0
Change-Id: I0ac1ba124ba452deeeeaa473ccbbf865e490c447
2016-03-04-Werror,-WshadowStephan Bergmann1-1/+1
Change-Id: I1e26a805ac96f1c57d2f7c795b598c4eaa8d2a3e
2016-03-04-Werror,-WshadowStephan Bergmann1-2/+2
Change-Id: I4893f538911449953fadf4cf10f6adb819bc023f
2016-03-04-Werror,-WshadowStephan Bergmann1-4/+4
Where wglChoosePixelFormatARB is defined as a macro expanding to __wglewChoosePixelFormatARB (as WGLEW_GET_FUN is just expanding to its argument), and __wglewChoosePixelFormatARB is declared in global scope in workdir/UnpackedTarball/glew/include/GL/wglew.h. itself) in workdir/UnpackedTarball/glew/include\GL/wglew.h Change-Id: I0c4d09e9112c2233d25a262ea1f2b35bdf49645c
2016-03-04loplugin:unuseddefaultparams in vcl and xmloffNoel Grandin14-73/+45
and teach the plugin about code that takes the address of a function Change-Id: Ia9d5afef44520aca236659e8176f1e27135ef4fc Reviewed-on: https://gerrit.libreoffice.org/22861 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-03vcl: type inference is beyond MSVC's limited abilitiesMichael Stahl1-2/+2
Change-Id: I3e6c84c1f49e9523e881ce12dbb2f7e0d1df956e
2016-03-03coverity#1355126 Logically dead codeCaolán McNamara1-8/+5
maybe we should be using more precision, but we haven't been in the past Change-Id: Icf1e1e95099c783435e04f60d8ade755a8d2d4d5
2016-03-03nLog10Divisor is 1Caolán McNamara1-15/+9
Change-Id: I8820d435e2f26d04ac3eccb710383399d050e020
2016-03-03gtk3: position the native popup menus exactly where we want themCaolán McNamara1-4/+30
Change-Id: I2594925cba1f7c9c90178906d9c782024ad1cf4f
2016-03-03refactor these two bizarro positioning things into reusable chunksCaolán McNamara1-21/+33
Change-Id: I3f89aca650d31658ce17b3b1496a7babba23bdc6
2016-03-03tdf#98380 - opengl - get font anti-aliasing right.Michael Meeks1-1/+11
Change-Id: I087c4939c19bc5966da45cb848d71e95ac982e33 Reviewed-on: https://gerrit.libreoffice.org/22854 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-03-03Follow our code layout styleTor Lillqvist1-4/+6
Consistency is important. (I know that we are wildly inconsistent in many things, even inside individual source files. Like the spacing of the expression in an if statement. But putting an opening brace on a separate line is something we do quite consistently.) Change-Id: I7c50628653b94a4da0fc4dc8db8869a5f1a64527
2016-03-03tdf#96393: reuse layout if availablePierre-Eric Pelloux-Prayer1-5/+14
If position and size were loaded from the WindowStateData structure there's no need to recompute the layout. As an added benefit if the user previously resized/move the dialog, the new one will open using the same geometry. Change-Id: I306504080357f9be8f3e628ba13ca5dc2957dd52 Reviewed-on: https://gerrit.libreoffice.org/21850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-03-03vcl: scheduler - remove obsolete comment.Michael Meeks1-1/+0
Change-Id: I8a469f73b682e32bbb15a71e5be9b64d8412f3f1
2016-03-02vcl: document that it's possible to dump GDIMetaFile to XMLMichael Stahl1-3/+17
Change-Id: I921577df6c905e935d05ff0e9d2b2c6e8d22cc89
2016-03-02Fix the import of line joins and caps from EMF filesStephan van den Akker3-6/+55
Change-Id: I976336d35366b661e402db484820b4dd9a7b0228 Reviewed-on: https://gerrit.libreoffice.org/22821 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-03-02gtk3: menubar close button shouldn't get keyboard focusCaolán McNamara1-0/+1
Change-Id: I6ddd512afa1e41d2dec7c92f61d65ed5bbfa9ace
2016-03-01valgrind: fix g_variant leakCaolán McNamara1-0/+6
Change-Id: I6d10c7d20f9bc1dfcaa60ad89a9092fe06922074
2016-03-01gtk3: gdk_x11_display_set_window_scale needs 3.10.0Caolán McNamara1-0/+2
Change-Id: I4c86082eca0e7618de30841e6fe7040be7326098
2016-03-01replace SetExtendedFrameStyle + m_nExtStyle hack to direct updateWMClass callCaolán McNamara2-8/+12
Change-Id: I2b7dd0ea24794d08557620dda8ca1de71244ec61
2016-02-29libreoffice-main -> libreoffice-startcenterCaolán McNamara2-2/+2
to sync these names with the the .desktop names Change-Id: I1c4d8943e61b5ae537b865d5a9c3065894f200d7
2016-02-29gtk3: presumably XrmInitialize can be dropped nowCaolán McNamara2-5/+3
Change-Id: Ib3e87d8a07f4e38f8dcb6e1226f91920df53c81c
2016-02-29split gtkdata into gtk3 and gtk3 versionsCaolán McNamara2-132/+845
Change-Id: Ic102a5a1193a8bc50b460e5897b1ca488f0d4a65
2016-02-29shouldn't have to recall gtk_init hereCaolán McNamara1-1/+0
Change-Id: If851dbdb034384395ba590fda61f3383f5ef791a
2016-02-28Fix gtk2 menubarMaxim Monastirsky1-0/+8
Change-Id: I0605e570022f6eb57d453a3eb8bea5f4314c8229
2016-02-28mbUnityMode is always falseMaxim Monastirsky2-5/+1
Change-Id: I7c4b05cd02dee2b6efb926955759d725428e1dc1
2016-02-28tdf#84258 Allow creation of command aliasesMaxim Monastirsky1-0/+8
We already can use different labels for commands, based on whether they're in a menu, context menu or a toolbar. But in some cases we need different labels for the same type of UI element, or even different icons. One example is page/slide commands in Draw/Impress, as they share same commands, but need different icons/labels. Creating full-fledged duplicate slots just to satisfy the need of UI representation seems like overkill, and isn't flexible enough. The proposed solution is to allow creation of command entries, that do not correspond to real application slots, but instead link to another existing commands. The "real" commands will be used for controller factory and dispatch (execute/status) APIs, thus fully retaining functionality. This can be useful also for giving icons to complex commands (i.e. commands with arguments). Change-Id: I9b261b406ec8fc781cae06cf283963386379d4ad
2016-02-27log to the crashreporter whether we use OpenGLMarkus Mohrhard1-0/+3
Change-Id: I8fd2ffe5908074417aa5cfc00adbc54b6e9ed360
2016-02-27loplugin:implicitboolconversionJulien Nabet1-1/+1
Change-Id: I5bac3a484b78c68022d2533cbedaf89259b189a9
2016-02-27lp#1506544 tdf#92458: default to breeze theme on unity desktopsBjoern Michaelsen1-1/+1
Change-Id: I1e0e10d1561e32c5904e0e7352e914bb62b85363
2016-02-27Another blind fix for some TBs (-Werror,-Wunused-private-field)Julien Nabet1-0/+8
Change-Id: I2b6c219c95e94cbbee4a7fbe7c2a2ffa45d0e151
2016-02-26gtk3+wayland: gnome#762756 hack around keyboard focusCaolán McNamara1-0/+17
Change-Id: I6be61592a16660d62be583e082ffcf5b1907770f
2016-02-26gtk3: add a menubar close buttonCaolán McNamara5-9/+86
the css foo is modeled on the similiar gedit close buttons in its tabs Change-Id: I7af32ad0434a49c52eea215f797c502be7f96dac
2016-02-26gtk3: native gtk menubarCaolán McNamara6-32/+64
Change-Id: Ibb75aa3eae99e499e1c2026c41b0bf51d7f8cf31
2016-02-26loplugin:commaoperatorStephan Bergmann1-4/+8
Change-Id: I481fe73256bf0d974c54a6419874fa76ea4beaa6
2016-02-26loplugin:fpcomparisonStephan Bergmann1-1/+4
Change-Id: I5ef9d7bcff3fcc2b01c0e5578487a293c6e315df
2016-02-26log some information about used OpenGL deviceMarkus Mohrhard3-0/+11
Change-Id: I0c050396e6b1efa7dd2f003a79a9dc506135197a Reviewed-on: https://gerrit.libreoffice.org/22555 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>