summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-06-03Remove xub_StrLen refsJulien Nabet
Change-Id: Iea8c3f881a3ddfeaed4f4dca5d66dbe1716b8ce0
2014-06-03vcl: Refactor scale "super" out of bitmap and make it independentTomaž Vajngerl
Introduce BitmapFilter as a general bitmap filtering class, and make scale "super" algorithem independent as BitmapScaleSuper which uses BitmapFilter as superclass. This is an ongoing work to make some bitmap algorithms structured and more independent from the big bitmap class This will make them easier to work with, test and optimize. Change-Id: I37d29709b2af95cab2f6da21129302f5be79318b
2014-06-03Related: #i125020# fix the calculation of the text-update rectangle...Herbert Dürr
in CoreText by doing the calculation before CTLineDraw() updates the text position. Requesting the update early is possible because that update region is not used until AquaSalInstance::Yield(). (cherry picked from commit ee042661b996fd00d5504caf4f4be60f77bf880f) Conflicts: vcl/aqua/source/gdi/ctlayout.cxx Change-Id: I317a2068071a2f6d33f34c81e104e30beedc33db
2014-06-03#i125020# allow antialiasing on all update borders for Aqua graphicsHerbert Dürr
(cherry picked from commit 513225be9cbadee6d8f7fd4e9910e10fc5ff571b)
2014-06-03Resolves: #i124935# fix expanded/condensed text breaking...Herbert Dürr
in the CoreText engine the concept of an extra-width per code-unit was obsolete at least since apps supported unicode with its different normalization forms, diacritical marks, surrogate-pairs, non-printing characters such as ZWJ/ZWNJ/RLM, etc. so of course modern engines like CoreText don't aid this typographical crime. The fix here extends the CTLayout::GetTextBreak() method to handle the obsolete semantic of per code-unit extra-widths by successively approximating the number of involved code-units. (cherry picked from commit a9b9ceff86f35be1eeff5f251d24e338db760a1e) Conflicts: vcl/aqua/source/gdi/ctlayout.cxx Change-Id: I52a7f7488a9e8a303ed7271df2a24a3c85098ce3
2014-06-03#i125020# fix rounding error in AquaSalGraphics::RefreshRect()Herbert Dürr
Rounding left and width down can accumulate a rounding error of almost two in the calculation of right. The existing code compensates for this by increasing the width by two, but since left has been decremented by one to accommodate for antialiasing artifacts this compensation is one to few by itself and two to few when accounting for antialiasing artifacts on the right. Y-pos and height have the same problems and get the matching fix. (cherry picked from commit 073ec69fb970830d39c8700317ee74dbbdfd1fda)
2014-06-02callcatcher: update unusedcodeCaolán McNamara
Change-Id: I73ff045699113778892db6a534433a70e0e9c8e1
2014-06-01fdo#68849: Add header guards to all include filesJens Carl
Added header guards to files in directory vcl/ Change-Id: I76ad0c34f2b107d56e92c5a6a8f4c61554c93e2f Reviewed-on: https://gerrit.libreoffice.org/9597 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-06-01fix crash if there is no OpenGLRenderer setMarkus Mohrhard
Change-Id: I6cd75aa2a9db7219b2873d0b6516ef9df4fbe33d
2014-06-01fdo79368 Don't process overflow menu items twice.Andrzej Hunt
We reuse the toolbox overflow menu for toolbarmanager's context menu -- toolbarmanger previously added its menu listener to the toolboxes menu permanently, meaning that it would try to handle overflow menu items (in addition to the context menu items which it should handle), instead we should only add the listener when we are actually using the menu as a context menu. Perhaps it would be better in the long run to actually use fully separate menus instead, and ask toolbox to specifically add its items to that rather than trying to hack the context menu on top of the overflow menu? Change-Id: Iecface2c6eae9ab79dbcdb25ffdbaf446e2885ea
2014-06-01coverity#1219806 double closeNorbert Thiebaud
Change-Id: I0719451a3f2f8f8bf5e2d417252412f1e68b456e
2014-06-01vcl: cleanup window.hChris Sherlock
Change-Id: Iea8323382f889705681236e364a9ef8b744fa9f2
2014-05-31vcl: make Window::Show() if statement a little easier to readChris Sherlock
Change-Id: I3b4d88f8e0a2f378878f29fbf799b795018b18b3
2014-05-30tweak massively complicated html export wizard a bitCaolán McNamara
Change-Id: I1d15780d0128204f063a816df9df251b05ab93d2
2014-05-30Avoid undefined left shift of negative integerStephan Bergmann
Change-Id: Ib857f7c802b4ce65ec352b67e6acde59965c893a
2014-05-30New loplugin:inlinevisible to flag inline functions marked DLLEXPORTStephan Bergmann
...which does not make sense. On Linux and Mac OS X, they potentially end up exported from multiple libs (weakly, though), while on Windows the potentially even end up not emitted at all, which could cause link errors. Change-Id: I092c9ba39e686c17b6e91581cdd4753f1c4d582f
2014-05-28fdo#62719: Set more relaxed clipping region.Jan Holesovsky
It actually is so that the line is in the output PostScript; and it is even visible sometimes when you zoom the file (like, when you are zooming continuously, the line is appearing and disappearing). I guess it is a corner case of the clipping, highly dependent on the exact settings, so let's be more relaxed and clip a bit less (as we already do for right/bottom). Hopefully some other functionality does not depend on this exact clip setting ;-) Change-Id: I7080ad3ff730408296f9e9dec7a0b74ac4afca7d
2014-05-29Allow STYLE_OPTION_MONO to be unset from toolkit-created windowLionel Elie Mamane
This was keeping form controls (e.g. CheckBox and RadioButton) to transition from flat style to 3d style, while the 3d-to-flat transition was allowed, making flat some unescapable pit of doom. Whatever the goal of that pinning, it will have to be achieved in a different way. Change-Id: Icc4dfb9673a7dfe4a7d8726fbfd23f75499f8b41
2014-05-29Resolves: #i124922# allow late setting of the font color...Herbert Dürr
for CoreText-layouted text (cherry picked from commit 42f9768f771457c53a9f1e6a3581b2df9856401f) Conflicts: vcl/aqua/source/gdi/ctfonts.cxx vcl/aqua/source/gdi/ctfonts.hxx vcl/aqua/source/gdi/ctlayout.cxx vcl/source/gdi/outdev3.cxx Change-Id: Ie2685ab80ca87ea72e25f18d02f883fb36c24a36
2014-05-29remove more unnecesary OUString constructor useNoel Grandin
when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-28Lsan: fix memory leakMarkus Mohrhard
Change-Id: I223e0587b5a82c1617a0e79a002472070d2d4402
2014-05-28fix build errorMarkus Mohrhard
Change-Id: I550616e1f6e63ac42103756014b1aa26cee5c21f
2014-05-28try to fix mouse interaction on windowsMarkus Mohrhard
Change-Id: I8662b0c20dc719401eec3e3d2d852bb3e139a641
2014-05-28update_pchThomas Arnhold
Change-Id: I5316693452427ed76a7738b090de023b110caa40
2014-05-28Oops, this reference can't be const.Matúš Kukan
It's used in ImplFontCache::GetGlyphFallbackFont. This is fix for commit a6b00d16eb27a5e7e31c721671001a909ecef960, which caused huge performance regression for document in fdo#59882, fortunately immediately detected by loperf. Change-Id: I475742b5249f106d34c4f6c43b1e39e9bb7b897a
2014-05-28coverity#705055 Unchecked dynamic_castCaolán McNamara
Change-Id: I84456e587897fd56626a823ef99f15db227f894f
2014-05-28Fix build to work with older harfbuzz versions.Thorsten Behrens
Whee, seems hb has changed naming, with 0.9.11 it is spelled as quoted. newer versions have a mapping in hb-deprecated.h ... Change-Id: I425ded33e6b9928aadca9f6988437a021fcecbfb
2014-05-27Resolves: fdo#78040 nAryLen is traditionally 32bit not 16bitCaolán McNamara
30bb1eddba2b4a36b4354303ffcb37a3a15f38a6 originally incorrectly changed some different 16bit numbers to 32bit, then 02abb559fb506e3d3911bbf058c9a60d28b0a3b5 reverted those 16bit->32bit changes but accidentally changed the 32bit nAryLen to 16bit but that was 32bit before 30bb1eddba2b4a36b4354303ffcb37a3a15f38a6 Change-Id: I36863b62418d7a3b5ccce51aef86c63c523f9598
2014-05-27Related bnc#822625: Cache FontEntry with the original FontSelectPattern.Matúš Kukan
Otherwise we never hit cache directly, only after expensive call to ImplFindByFont. Change-Id: If15b368feeba94c8fff8ee7cbe049fc4a2069768
2014-05-27use namespace css instead of com::sunThomas Arnhold
Change-Id: I47582b072bb939cf270a76e430a9f7908b5c1d93
2014-05-27Resolves: fdo#77206 CRASH printing with all applications on windowsCaolán McNamara
Change-Id: I5d5066413508a115f6b4c63b8b3dd19268f66574
2014-05-27mark QA file non-translatableAndras Timar
Change-Id: I19f10c40151ebfea9b02bfe5df7c31b157188351
2014-05-27Remove unnecessary semicolonsPeter Senna Tschudin
A simplified version of the semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // </smpl> Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e Reviewed-on: https://gerrit.libreoffice.org/9493 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-27vcl: move clipping functions from window.cxx into clipping.cxxChris Sherlock
Change-Id: I2a2c3d6283c962bba2994de04bbd869a79fc2eca
2014-05-27vcl: move functionality from window2.cxxChris Sherlock
Change-Id: I68d1c7bb32df9024ea57a07d7d3b051efc08b2ed
2014-05-27vcl: rearrange function in window.cxxChris Sherlock
Change-Id: Icb7f692cdf03a77573379257b34400f38def71ec
2014-05-27vcl: "non-pro version" actually means debug buildsChris Sherlock
Change-Id: I814869869bbc16a8bae94ef9c5deaeb97c13f03e
2014-05-27vcl: cleanup window.cxx namespace aliasesChris Sherlock
Change-Id: I3b8782ed7bbd782dbca52cd4bec46582a9b35271
2014-05-27vcl: move GetSystemData() & GetSystemDataAny() back to window.cxxChris Sherlock
Change-Id: I46736950563776bb4f5fefd71789010541e99e70
2014-05-27vcl: move Window::ImplSetFrameParent() from window.cxx to stacking.cxxChris Sherlock
Change-Id: I41ce1398017c7c9ff7b24464250911c63b3e2c92
2014-05-26No need for these fields for iOSTor Lillqvist
Change-Id: I3fff002919a1f15ae370c7d0c7f65e67108a6232
2014-05-26callcatcher: update unused codeCaolán McNamara
a few more ResId using ctors going away Change-Id: Ic956bc179c094d19989bf850657471192d042a01
2014-05-26react only to left mouse clickMarkus Mohrhard
Change-Id: Ia4c2c52b8803cd36d7ed32be559ba446589377e7
2014-05-25cppcheck: unusedFunctionThomas Arnhold
Change-Id: I81f2a4be65bbc9359e51accccb746f1e8ea48c4f
2014-05-25fdo#39468: translate comment in Window::ImplInit()Chris Sherlock
Change-Id: Ibf9a7ef8edaa608aa0c13b8e4307e27a6789fa7d
2014-05-24some work on mouse scrolling and improved mouse draggingMarkus Mohrhard
Change-Id: I3265e26530183b2fc4fd7f67319f3dc124353c2e
2014-05-24cppcheck: unreadVariableThomas Arnhold
Change-Id: If3d480bf3032ec2bd2edc62bb73dd93b00c2cbe7
2014-05-24cppcheck: variableScopeThomas Arnhold
Change-Id: I36c0d491bc27ff93c13b1c497e450646d7151df4
2014-05-24Stub mouse move events propagation to 3D charts.Michael Meeks
Change-Id: If87545df4b1caeece107a20e0c00df88fb8e6fd5
2014-05-24cppcheck: redundantAssignmentThomas Arnhold
Change-Id: Ia53ac439c785e83de380fddd201ad4159f729cb2