summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2013-03-14pass argb32 pixmaps from vcl to canvas, avoiding costly x11 roundtripsRadek Doulik
- fixes also problem with emf+ rendering for slideshow Change-Id: Icb894d3f37b29f23d3f267c944d827eefbf47fda
2013-03-14fix canvas bitmap rendering (argb32 pixmaps) fixes color issue in n#780830Radek Doulik
Change-Id: I5242bbb171ba21da43e535255b7e9dd73c1d4930
2013-03-05Merge branch 'distro/suse/suse-3.6' of ssh://logerrit/core into suse-3.6Petr Mladek
2013-03-04Personas: Fix fdo#59208 - get rid of artifacts when we run out of bitmap.Jan Holesovsky
So far I am using the same color that is used for the workspace; should it be a problem, we can use a different color. Change-Id: I06fde7f31a9d37d2e387a7e3fd0b6d3d33f8d6e6
2013-03-04Personas: Clear the BitmapEx first, so that we can switch off Personas.Jan Holesovsky
[Also rename mpPersona*Bitmap -> maPersona*Bitmap, it is not a pointer.] Conflicts: vcl/source/app/settings.cxx Change-Id: I93cc56b1f30c4fe966b8de87b766e820d9e2cefa
2013-03-04Personas: Fix fdo#59230 - make Personas fully work in non-NWF case too.Jan Holesovsky
Change-Id: I19a475f198fcb24c4d66134eb67da719fc99099e
2013-03-04Personas: Fix one more potential crash.Jan Holesovsky
Change-Id: Ib7aca26c34aa8484e8c71873805ca8e8812526a7
2013-03-04fix crash with new personas when notifying windowsMarkus Mohrhard
Change-Id: I41e4c747c4662fb066746c0ca87d17ea6742080e
2013-03-04Personas: As Michael suggested, use BitmapEx instead of BitmapEx*.Jan Holesovsky
Conflicts: vcl/inc/vcl/settings.hxx vcl/source/app/settings.cxx Change-Id: Ib1d84b37d452785d12502095c0eedaac4a25fb6b
2013-03-04Fix fdo#59616 - ensure BitmapEx has same-sized subbitmapsThorsten Behrens
Lots of code relies on the fact that the two bitmaps inside a BitmapEx actually have the same size. Enforce that convention during import. Change-Id: I436ccc33b06c627cd6347747d22c24bfaf7ca932 Reviewed-on: https://gerrit.libreoffice.org/1822 Reviewed-by: Radek Doulík <rodo@novell.com> Tested-by: Radek Doulík <rodo@novell.com>
2013-03-04Personas: Broadcast the information that the Persona has changed.Jan Holesovsky
Conflicts: cui/source/options/personalization.cxx Change-Id: Ic563204c1a1a64d315e3e73dff30b6a6d05cfd87
2013-03-04Merge tag 'libreoffice-3.6.5.2' into suse-3.6Petr Mladek
Tag libreoffice-3.6.5.2 Conflicts: editeng/source/editeng/impedit3.cxx instsetoo_native/util/openoffice.lst oovbaapi/UnoApi_oovbaapi.mk sc/source/filter/oox/workbookhelper.cxx sc/source/ui/app/scmod.cxx sc/source/ui/cctrl/checklistmenu.cxx solenv/inc/minor.mk writerfilter/source/dmapper/DomainMapper_Impl.cxx writerfilter/source/dmapper/DomainMapper_Impl.hxx writerfilter/source/dmapper/PropertyMap.cxx Change-Id: I7ea70b82b3b874cbe78354d5dd97307e63842e72
2013-03-04Personas: Fix copy constructor + always reference the Application settingsJan Holesovsky
...to avoid reading the bitmaps more than once. Change-Id: I7577f5df96a5a28f1ac1f800867af5eee298663e
2013-03-04Kill workaround of i#75264 - it breaks drawing of a perfectly fine bitmap.Jan Holesovsky
The case where it broke was a bitmap that is very wide (3000 pixels), but not too tall - and the small height satisfied the aPosAry.mnDestHeight > 3*mnOutHeight condition. Such workarounds that are triggered only in very rare cases are a bad idea in general, unless there is a unit test. I've tested with the document from i#75264, and it works for me - there were some improvements in the bitmap scaling, hopefully the root cause is fixed by that, or maybe I just have more memory; who knows. Change-Id: I4b7a749378ef35469db78dfc680fc77f87bc4382
2013-03-04Personas: Make the Persona working in the top docking area too.Jan Holesovsky
Change-Id: I1d3986675ceb7a2748a77b736beb8a654a514e0d
2013-03-04Personas: Make the Persona in the menubar working.Jan Holesovsky
Change-Id: I21a45159f6b27aa7beff5ec07530b14480675729
2013-03-04Fix base location of the bitmap Wallpaper computation.Jan Holesovsky
The nX / nY is correct for clipping operation, but not for base; visible with WALLPAPER_TOPRIGHT style. Change-Id: I8de92b68b822a156bc376201e97ce458d1a6ba08
2013-03-04Personas: Read the bitmaps in StyleSettings.Jan Holesovsky
Conflicts: cui/source/options/personalization.cxx vcl/inc/vcl/settings.hxx vcl/source/app/settings.cxx Change-Id: I52b67c82f69059a7d2babf1b49e59f27062cc02c
2013-03-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky
Conflicts: cui/source/dialogs/SpellDialog.cxx editeng/source/items/frmitems.cxx filter/qa/cppunit/filters-pict-test.cxx sd/source/filter/grf/sdgrffilter.cxx sd/source/ui/app/sddll.cxx svgio/source/svgreader/svgimagenode.cxx svtools/Library_svt.mk svtools/Module_svtools.mk svtools/Package_inc.mk svtools/source/filter/exportdialog.cxx svx/source/core/graphichelper.cxx svx/source/dialog/compressgraphicdialog.cxx sw/source/ui/shells/grfshex.cxx sw/source/ui/uiview/view2.cxx sw/source/ui/utlui/glbltree.cxx test/source/bootstrapfixture.cxx tubes/source/contacts.cxx vcl/Library_vcl.mk vcl/qa/cppunit/graphicfilter/filters-test.cxx vcl/source/filter/FilterConfigCache.cxx vcl/source/filter/graphicfilter.cxx writerfilter/source/rtftok/rtfdocumentimpl.cxx Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-03-04Move GraphicFilter class to vcl.Jan Holesovsky
Conflicts: icu/prj/dmake jfreereport/prj/dmake svtools/qa/cppunit/data/bmp/fail/.gitignore svtools/qa/cppunit/data/bmp/pass/.gitignore vcl/qa/cppunit/graphicfilter/data/bmp/fail/.gitignore vcl/qa/cppunit/graphicfilter/data/bmp/indeterminate/.gitignore vcl/qa/cppunit/graphicfilter/data/bmp/pass/.gitignore vcl/qa/cppunit/graphicfilter/data/bmp/pass/CVE-2004-0691-1.bmp vcl/qa/cppunit/graphicfilter/data/bmp/pass/CVE-2006-0006-1.bmp vcl/qa/cppunit/graphicfilter/data/bmp/pass/CVE-2007-2244-1.bmp vcl/qa/cppunit/graphicfilter/data/bmp/pass/CVE-2008-5870-1.bmp vcl/qa/cppunit/graphicfilter/data/bmp/pass/EDB-22680-1.bmp vcl/qa/cppunit/graphicfilter/data/gif/fail/CVE-2008-5937-1.gif vcl/qa/cppunit/graphicfilter/data/gif/pass/CVE-2012-0282-1.gif vcl/qa/cppunit/graphicfilter/data/gif/pass/EDB-19333-1.gif Change-Id: I2318eeda59cee1cfdb074f9a90fd7d8d80aab19f
2013-01-04Related: fdo#50284 apple's modern symbol font is unicode encodedCaolán McNamara
So codepoints that are from the legacy range need to be converted to their unicode equivalents even in the presence of an installed "symbol" font on MacOSX. This should work out ok if input codepoints that exist in the apple symbol unicode are used, they should be left untouched by this conversion. Change-Id: Ia9996e2d9bf632c86c8d26832d77c7c662cf1076 Reviewed-on: https://gerrit.libreoffice.org/1403 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-01-02fdo#47553: UniscribeLayout: adjust mnSubStringMinMichael Stahl
... to actual minimum so that the fix for fdo#33090 in UniscribeLayout::GetNextGlyphs subtracts exactly the right number. The original value of mnSubStringMin is guessed and may be up to 8 smaller than the actual start of the first VisualItem. For the bugdoc it happens that sometimes it's too small by 8 and then the wrong entries in mpGlyphs2Chars are initialized and then apparently there are single glyphs that represent multiple characters and so GetNextGlyphs returns a -1 character which is invalid. ->GetNextGlyphs dir 1 36 mnSubStringMin 28 ->GetNextGlyphs g2c #1 [8] = 36 ->GetNextGlyphs g2c #1 [9] = 37 ->GetNextGlyphs g2c #1 [10] = 38 ->GetNextGlyphs g2c #1 [11] = 39 ->GetNextGlyphs g2c #1 [12] = 40 ->GetNextGlyphs g2c #2 [4] = 40 ->GetNextGlyphs g2c #2 [3] = 39 ->GetNextGlyphs g2c #2 [1] = 38 ->GetNextGlyphs g2c #2 [1] = 37 ->GetNextGlyphs g2c #2 [0] = 36 ... ->GetNextGlyphs init nCharPos -1 ->GetNextGlyphs g2c [2] nCharPos -1 ->GetNextGlyphs set pCharPosAry -1 layout[0]->GetNextGlyphs 768,1024 a1800 c-1 0 Change-Id: Ie33ec797a412aa898bec3f4e8f97b88dcfed4d11 (cherry picked from commit cec68bceba9aa1e984d74897fcd7bf4db702d14b) Reviewed-on: https://gerrit.libreoffice.org/1467 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-12-19fix KDE file dialog setting checkboxes to trueLuboš Luňák
No idea how long this has been broken, or if it ever worked, but inserting a picture sets the 'link' and 'preview' checkboxes to true for the next time (as getValue() returns void*, which gets silently converted to bool *sigh*). Change-Id: I6af0e09ac5e475fc9ff04cd7f937af0bc7aeea77
2012-12-18fdo#56937 - mac a11y hang related to traversing vast, broken hierarchies.Michael Meeks
Change-Id: Iff0537a69b2c6ae929da6a05f26c0d55415d6d8a Signed-off-by: Tor Lillqvist <tml@iki.fi>
2012-12-04Resolves: fdo#43901 and fdo#42577 RTL tollbars mirroringAbdulmajeed Al-Abaulrazzaq
Change-Id: I32dd8cdd34965bf8dd31729a79b65d8ee78af7dc Reviewed-on: https://gerrit.libreoffice.org/1187 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz> (cherry picked from commit aa61177f1d339422acb3322c8851962cd1ca7466) Signed-off-by: Lior Kaplan <kaplanlior@gmail.com>
2012-11-26make presentation spanning all screens work (bnc#758138)Luboš Luňák
This reverts an API "improvement" from 6ee5dfa150d408179e20a5525ff7ec46649e0e58 that tried to use -1 as the current screen/display but failed. The check for nDisplayScreen being in range broke all-screens (which is represented as last_screen+1 value, which is broken in its own way, as e.g. the screen count can change). The same way -1 as the default value is broken, as everywhere else invalid invalid screen number means spanning all screens. The extra overloads without a default value should take care of that. Conflicts: vcl/source/window/wrkwin.cxx Change-Id: Ie118038eacacebc007c25860732d5904ad0de2b9 Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2012-11-26make presentation spanning all screens work (bnc#758138)Luboš Luňák
This reverts an API "improvement" from 6ee5dfa150d408179e20a5525ff7ec46649e0e58 that tried to use -1 as the current screen/display but failed. The check for nDisplayScreen being in range broke all-screens (which is represented as last_screen+1 value, which is broken in its own way, as e.g. the screen count can change). The same way -1 as the default value is broken, as everywhere else invalid invalid screen number means spanning all screens. The extra overloads without a default value should take care of that. Conflicts: vcl/source/window/wrkwin.cxx Change-Id: Ie118038eacacebc007c25860732d5904ad0de2b9 Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2012-11-15Windows: Enable nicer toolbars even for XP, not only Vista and higher.Jan Holesovsky
Change-Id: I26837290d1416637032d2dfcfa45b4003c874309
2012-11-05Merge remote-tracking branch 'origin/libreoffice-3-6-3' into suse-3.6Petr Mladek
Conflicts: desktop/source/app/sofficemain.cxx instsetoo_native/util/openoffice.lst solenv/inc/minor.mk Change-Id: I3e9510067c7173f6c71368e70ba6dfe168c5318e
2012-10-25fdo#44657 Remove hack that "simulates" a mirrored horizontal scrollbar.Jan Holesovsky
We are able to paint mirrored scrolbars with the 'gen' plugin, so just fix the rendering of the scroolbar with the Gtk+ plugin. Change-Id: I5dbd13420c6290e165ed2f5827769979298abf37 (cherry picked from commit bfa21ce5fa08f2c634ccb6162914be55aef9f3c2) Signed-off-by: Lior Kaplan <kaplanlior@gmail.com>
2012-10-23Resolves: rhbz#868479 / fdo#56281 doubled ~ in German ok/cancel translationsCaolán McNamara
We have unix-specific code adding ~ to OK/Cancel. So don't add ~ if string already contains those. Though its an open question if the presence of ~ is a bad thing for the Windows case. i.e. if we should have tooling to not allow the OK/Cancel translations to contain ~ in the first place, of if we should drop the ifdef UNX and do it globally now Change-Id: I461c6ac9ca574ed188f51472919be82ec582e389 Signed-off-by: Petr Mladek <pmladek@suse.cz> Signed-off-by: Eike Rathke <erack@redhat.com> Signed-off-by: Andras Timar <timar74@gmail.com>
2012-10-22Resolves: rhbz#868479 / fdo#56281 doubled ~ in German ok/cancel translationsCaolán McNamara
We have unix-specific code adding ~ to OK/Cancel. So don't add ~ if string already contains those. Though its an open question if the presence of ~ is a bad thing for the Windows case. i.e. if we should have tooling to not allow the OK/Cancel translations to contain ~ in the first place, of if we should drop the ifdef UNX and do it globally now Change-Id: I461c6ac9ca574ed188f51472919be82ec582e389 Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-10-13confusion around parantheses near fabs()Andras Timar
Change-Id: Ifcab9f9ef73eb044288ed68014dc05acd9a2efa8
2012-10-12Add new Scale modes, simplify convolution calculation.Tomaž Vajngerl
Convolution calculation now uses 2x transposing horizontal pass instead of horizontal and vertical which simplifies the code by reducing code duplication. Instead of more convolution methods, only one generic method is used and kernels are now a parameter to the method. For this Kernel class was introduced with responsibility to calculate kernel walues and hold kernel specific information. Besides Lanzcos resampling also Box, Bilinear and Bicubic resampling was introduced. Box is the simplest and fastest but with still good quality.
2012-10-10Fix fdo#55142 - use proper output offsets.Sergey Farbotka
Change-Id: I49cd72a91cd31ddc8b3d57000210523a73926d1f Reviewed-on: https://gerrit.libreoffice.org/853 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-10-01Silly workaround for fdo#55156Tor Lillqvist
I feel dirty now. Change-Id: I1cafb0c0494d56bc9c81594c2145b2cc4a1ee389 Reviewed-on: https://gerrit.libreoffice.org/710 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2012-09-28simpler fix fo fdo#51336, bnc#757602 - change vcl checkbox no-label behaviourNoel Power
Change-Id: I1563dc2afc49c7b1115192db00fbd08a7524154e
2012-09-28Revert "fdo#51336 - change vcl checkbox no-label behaviour"Noel Power
This reverts commit 99cad9fd7f413adecffc527d334eff616799cc4b.
2012-09-28Revert "additional fix for fdo#51336 for radiobuttons"Noel Power
This reverts commit aea425a8cd851e6bee02247673c8996b58789484.
2012-09-27Fix crash on Mac when a11y in use, and avoid infinite loop, fdo#47275Tor Lillqvist
The code used static_cast blindly even if the object not necessarily was of the assumed subclass. Crash followed. Use dynamic_cast instead to be able to check, like the corresponding code for GTK a11y. After that fix we then got a nice infinite loop whn an object apparently is its own parent. Detect that and break out. Whether accessibility for the affected parts of the GUI actually works now for its real use cases, no idea. But anything is better than a crash... Change-Id: I862234e168db0bd19d185b0f1f73b733b570cac4 Signed-off-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-26Clean up option processingStephan Bergmann
* Support --version on non-UNX, too. * Consistently show the first unknown option and the help blob in the presence of any unknown options. * There is no need to tunnel --help/--version past oosplash in the soffice script, as oosplash is prepared to treat them adequately (esp. not pass them over any pipe); this only added unnecessary variance to what spellings exactly are supported and how mixtures of --help, --version, and unknown options are handled. (cherry picked from commit f4a4ba9ac1b58b4726825400e1edd1bf47d4080a) Change-Id: I617f2e727e2f0eafd34a2de3b85d441c6783ec4f Reviewed-on: https://gerrit.libreoffice.org/700 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2012-09-20Don't access broken service mgr during bootstrap failureStephan Bergmann
...so that displaying a (non-translated) error box upon BE_UNO_SERVICEMANAGER works after all. Augment the error text with an exception message where appropriate. This allows to revert fdfb7a3c4b3a89b73ab5546b9620348bc4984d8f "Related fdo#51252: Report uncaught exceptions with MessageBox on Windows" as that was to catch and display failures from instantiating the service mgr. (cherry picked from commit cccc6bcfa095121c91e8bbc396f5bcf7e95424b9) Change-Id: I049a38e95342634796eb0e940e2ee8e55193c9d3 Reviewed-on: https://gerrit.libreoffice.org/654 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-09-10fdo#47368: Fix for infinite recursionMichael Meeks
See bug for discussion. Change-Id: Id45dd2902bd2cb68618c3e7324867f226c025698 Signed-off-by: Tor Lillqvist <tml@iki.fi>
2012-09-07multiline tooltip for very long (eg. footnote) texts #i42424#László Németh
Change-Id: Ib6383220c3cdd6fef55dee82fcfdc3472da45163 Signed-off-by: Andras Timar <atimar@suse.com>
2012-09-05fdo#54546: Force version 2.1 of the sRGB profile for PDF/A-1aFridrich Štrba
(cherry picked from commit 24f691867d02e853153a53e49276c2a8c30ea1fe) Change-Id: I7c40c37fbe344f1e46ea4a09fb99a5ac82ffd577 Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
2012-08-16Resolves: fdo#53258 Aquabase-spanish-support busts ttf reader againCaolán McNamara
Once as #i107552# and now again as fdo#53258. This is one sick puppy of a font. It makes fontforge and fontconfig jump through hoops as well. Change-Id: Ifee780bb1463dca4e8b045828a07369e6c3863fc Signed-off-by: Tomas Chvatal <tchvatal@suse.cz>
2012-08-14Windows toolbars: Use our own theming even for vertical or bottom toolbars.Jan Holesovsky
Change-Id: I4836d7f2055c4811f0e6ccdc87dc58895528b3f8 Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-08-10WaE: unused variableChristian Lohmaier
see a9e58e29f65df820d133022c5cb15387075d6b37 not cherry-picked as file was moved on master Change-Id: Ibb74e51a1bcba6f0fd532186767124d55e061f67
2012-08-08additional fix for fdo#51336 for radiobuttonsNoel Power
Change-Id: Ib35d27962b2c63221e1967886236547b3b1047d6 Signed-off-by: Petr Mladek <pmladek@suse.cz>
2012-08-08fdo#51336 - change vcl checkbox no-label behaviourNoel Power
Change-Id: I352c6041cc520dc76c302190dcf3a6945f5ac85f Signed-off-by: Petr Mladek <pmladek@suse.cz>