summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2013-05-11fdo#64311 - don't encourage the fpicker to give us URLs we can't handle.Michael Meeks
Change-Id: Ide7d833801e96a3375909238d036687082f34605
2013-05-11Drop code for FreeTyope version we don't supportKhaled Hosny
Change-Id: I404ac35010c243fad65b6d83c10c75665a0568f0
2013-05-11Cleanup FreeType ascender/descender handling a bitKhaled Hosny
Change-Id: I9734f15811020ce1a7b761688d602c7e244167c7
2013-05-11Revert 052f181dad89ad34d90513bc9dcd3e3239727933Khaled Hosny
Which in itself was effectively a revert of 3364fefe1e2dec522211040f2f9ea37bf5cd7466 Keeping the old broken line height calculation code is just masking of the real problem; there are some code elsewhere that have fragile workarounds to the real bug here (the removed code here shows a good example of such workarounds). On Mac we use the correct metrics as well, so we need to find the quirks and fix them, instead of pretending they do not exist. This fixes fdo#55469, among others. Change-Id: I36f13b28eaba022b7c388feae7e0bfd0ed1c3e89
2013-05-10Resolves: #i121445# Added transparency support to the galleryArmin Le Grand
(cherry picked from commit cf417aec41decab94b5f1e82f6409e97a6c02fb5) Conflicts: extras/source/gallery/gallery_system/sg2.sdg extras/source/gallery/gallery_system/sg2.thm svx/inc/galtheme.hrc svx/inc/svx/fontworkgallery.hxx svx/inc/svx/gallery.hxx svx/inc/svx/galtheme.hxx svx/source/gallery2/galctrl.cxx svx/source/gallery2/galexpl.cxx svx/source/gallery2/galobj.cxx svx/source/tbxctrls/fontworkgallery.cxx vcl/inc/vcl/outdev.hxx vcl/source/gdi/outdev6.cxx Change-Id: I519a2cf4e16bb42ecfd9c4b48094e65adcc35599 (cherry picked from commit ddec662e8dc234b7196c1b3c28db5da743557ec6)
2013-05-10Resolves: #i121407# Gallery reorganizations...Armin Le Grand
and additions of new themes (cherry picked from commit 8ccf0e00b5c67f17427d041321baaa5ade488e7c) Conflicts: extras/prj/build.lst extras/source/gallery/bullets/makefile.mk extras/source/gallery/gallery_system/sg2.sdg extras/source/gallery/gallery_system/sg2.sdv extras/source/gallery/gallery_system/sg2.thm extras/util/target.pmk scp2/source/ooo/directory_ooo.scp scp2/source/ooo/file_extra_ooo.scp svx/inc/galtheme.hrc svx/source/gallery2/gallery1.cxx svx/source/gallery2/galobj.cxx svx/source/gallery2/galtheme.src vcl/inc/vcl/alpha.hxx vcl/inc/vcl/bitmap.hxx vcl/inc/vcl/bitmapex.hxx vcl/source/gdi/alpha.cxx vcl/source/gdi/bitmap.cxx vcl/source/gdi/bitmap3.cxx vcl/source/gdi/bitmapex.cxx (cherry picked from commit 8012fae6cedcf325130d70adf0a486e8918f452f) Conflicts: vcl/source/gdi/bitmap3.cxx Change-Id: If4b2397b889f914487f2135679250c175181e1df
2013-05-10[coretext] Fix drawing fallback fontsKhaled Hosny
Core Text will apply its font fallback mechanism when typesetting a CTLine, and we can't assume that the returned run all use the original font. This fixes the random glyphs drawn when we hit font fallback. Change-Id: Id4d7098cb7bd3464cba6abab22be3ac3942c8889 Reviewed-on: https://gerrit.libreoffice.org/3846 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-11sal_Bool to boolTakeshi Abe
Change-Id: I7e69466f189b845a807edbf3ca4422b0fb2aec94
2013-05-10Resolves: #i120306# enforce finite memory consumption of loaded jpegHerbert Dürr
Patch-by: orw Tested-by: orw (cherry picked from commit 7a8c7f6a6ceb29bf754e24f07ef92fcee4b925c3) Conflicts: svtools/source/filter/jpeg/jpeg.cxx Change-Id: Icda84dad6b5a8395f8592fdba479b194d4cc7ff7
2013-05-10Related: #i120306# better input checks in WinSalBitmap::ImplCreateDIB()Herbert Dürr
Patch-by: hdu, orw (cherry picked from commit 7b6990763f759f2de1902f8d22a22eb8e66797f7) Conflicts: vcl/win/source/gdi/salbmp.cxx Change-Id: I106efb3960cb99367d2ecefb8bcae006f389e271 Corrected static_cast which does not work on Win compiler reinterpret cas needed (base classes are not related) (cherry picked from commit 99e4d3a57f88f71c47f1e519bde13080f0df3041) Change-Id: I02fc89d1ab346231985c68d63d9710c036d2ab2a
2013-05-10WaE: unreachable codeTor Lillqvist
Change-Id: Ia3e12c18a30e5aa0f37db5035cd308b06b2b5655
2013-05-10Font refcount is not uint16 (anymore)Eike Rathke
Change-Id: I1aa89a8d6f712abb4f768a413ebac29e14612484
2013-05-10Enhancements to VCL metafile handlingChris Sherlock
* Remove EMFP_DEBUG with OSL_DEBUG conditional defines and SAL_INFO * While we are about it, to help with troubleshooting metafile issues, add another vcl.emf area to log-areas.dox * Improve error handling when processing an EMF header: + replace variable name nsal_uInt32 (!!) with sane variables to make the code more readable + check to ensure that type field is 0x1, which is all it can be for metafiles + check that signature field is set to ASCII-encoded value "FME" + loose check of version field to see if it is 0x00010000 + warn if record count is zero - that really shouldn't be possible + check bytes field in header to make sure it correlates to the actual size of the metafile + additional check - [MS-EMF] states that reserved field should be zero, and ignored... but we can use this to check for file corruption - not 0, not correct! * Quite a few more comments in the code to clarify the intended structure of a metafile, per [MS-EMF] documentation Change-Id: Id4ed486b2dd0c6e7bdee67cb344aaaf8e8d98f84 Reviewed-on: https://gerrit.libreoffice.org/3839 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-05-10Resolves: #i122208# introduce rtl::CStringHash and rtl::CStringEqualHerbert Dürr
unify the various c-string compares and hashes. (cherry picked from commit b7e3470a154538a92f0a21b14e726d75723f4a92) Conflicts: oox/inc/oox/export/shapes.hxx oox/source/export/shapes.cxx sal/inc/rtl/string.hxx sdext/source/minimizer/pppoptimizertoken.cxx svx/source/customshapes/EnhancedCustomShapeTypeNames.cxx vcl/source/glyphs/gcach_ftyp.cxx writerfilter/source/resourcemodel/TagLogger.cxx xmloff/source/draw/EnhancedCustomShapeToken.cxx Change-Id: Ib742744077bfb4d38a462d88b44bdef45601b4ae
2013-05-10fix kde buildCaolán McNamara
Change-Id: Iddcf995b079867cf14454d28c363efacc0323ae8
2013-05-10protect SalFrameView's isOpaque() method by an isAlive() checkHerbert Dürr
(cherry picked from commit feb1be19817d10e0ed1a18bada9c917f2a4532db) Change-Id: I9e6ddcf04047bdc905f00b709db84459112122db
2013-05-10Related: #i112873# check native widget's control value type...Herbert Dürr
before converting to SpinbuttonValue or ScrollbarValue Else problems like #i112873# or even crashes can and do happen. (cherry picked from commit d2fde1d34c3c28572b1b6b4780269c15dd4c2bef) Conflicts: vcl/unx/kde/salnativewidgets-kde.cxx Change-Id: I6429205ab41b3194577bc50aa02384c920e11ed2
2013-05-09MinorKhaled Hosny
Change-Id: I31b95844234135d14f117ae74124350eedf7d20a
2013-05-09[coretext] Fix line spacingKhaled Hosny
It should have been nExtDescent + pMetric->mnDescent, but then the whole thing does not make any sense; why add the descent to the leading and then calculate the leading by subtracting the descent! (well, the ATSUI code was doing this but it makes no sense either). Just use CTFontGetLeading() directly. Change-Id: Ia54648f6c02c11359865f4aa6476adf40b27f906
2013-05-09no FT_Face_GetCharVariantIndex on RHEL-5, dlsym itCaolán McNamara
Change-Id: Ie94e6d0acdfbb11801bc974b9ed37133df964245
2013-05-09WaE: clang warningsCaolán McNamara
Change-Id: Id18a1f1053ec55f910152440a7e7a2eea4d44b3a
2013-05-09Resolves: #i121233# Added bitmap scaling methods BMP_SCALE_SUPERArmin Le Grand
added from symphony, also BMP_SCALE_LANCZOS, BMP_SCALE_BICUBIC, BMP_SCALE_BILINEAR and BMP_SCALE_BOX. Changed defaults for internal scalings, enhanced PDF export when reduched DPI is used, added BMP_SCALE_BESTQUALITY and BMP_SCALE_FASTESTINTERPOLATE as new default for Bitmap::Scale (cherry picked from commit bf734a151dc5169b65cf5d2a127e4142b765326c) Conflicts: canvas/source/vcl/canvasbitmaphelper.cxx canvas/source/vcl/canvashelper.cxx sd/source/ui/slidesorter/cache/SlsGenericPageCache.cxx vcl/inc/vcl/alpha.hxx vcl/inc/vcl/bitmap.hxx vcl/inc/vcl/bitmapex.hxx vcl/source/gdi/bitmap3.cxx vcl/source/gdi/impgraph.cxx vcl/source/gdi/pdfwriter_impl2.cxx vcl/source/helper/canvasbitmap.cxx (cherry picked from commit 593c86280b64d97725adde0c0a0cc4f090fb2310) Change-Id: I41cf0a7e11bdbc6510e22e762486420995ba739b
2013-05-09make conversions between BitmapColor and sal_uInt8 explicitHerbert Dürr
Implicit conversions are a dangerous cause of confusion as seen in http://markmail.org/thread/a4copx2di7cxeowg and require tricky rewrites to work around them, this change cleans them up and disables them. (cherry picked from commit 2d9d5c8d6beb7fb0a7dafa0c1c4d10a25d7200fd) Conflicts: filter/source/graphicfilter/egif/egif.cxx filter/source/graphicfilter/epbm/epbm.cxx filter/source/graphicfilter/epgm/epgm.cxx filter/source/graphicfilter/ipbm/ipbm.cxx filter/source/graphicfilter/ipsd/ipsd.cxx sd/source/ui/slidesorter/view/SlsButtonBar.cxx svtools/source/filter/igif/gifread.cxx svtools/source/filter/jpeg/jpeg.cxx svtools/source/filter/wmf/winwmf.cxx svtools/source/graphic/grfmgr2.cxx vcl/inc/vcl/bmpacc.hxx vcl/inc/vcl/salbtype.hxx vcl/source/gdi/bitmap.cxx vcl/source/gdi/bitmap3.cxx vcl/source/gdi/outdev2.cxx Change-Id: I1d163c66782c2750aeee00725dbb2b614507c0d4 (cherry picked from commit ff80c37b18b941712fb967a0c1d48813b47c0583)
2013-05-09fdo#63154: Remove _CL and _LF from solar.hMarcos Paulo de Souza
And use RTL_CHAR_{CR,LF} from rtl/string.h Conflicts: vcl/source/app/dbggui.cxx Change-Id: I05b0325006845e48eb5483485a9042aa7b0cd22a Reviewed-on: https://gerrit.libreoffice.org/3740 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-05-09Update pchAurimas Fišeras
Change-Id: I7c0c9158eb17cb79ffceae6770b4c513d57b3817 Reviewed-on: https://gerrit.libreoffice.org/3831 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-05-09sal_Bool to boolTakeshi Abe
Change-Id: I4835adb15e2a9494d0080eeee80158c98981d7cc
2013-05-08harfbuzz: stop delivering headersMichael Stahl
Change-Id: I6a68b2df3a5bd4076e07729b675179e52f4f0615
2013-05-08consider borderline outliers as outliersCaolán McNamara
Change-Id: I138cdcb29b4e38211feb9e2d6a81a6ecb1688084
2013-05-08While I could swear that it worked yesterdayStephan Bergmann
...to revert a206bc22623caba30c0285fda0fe0da8879efea3 "avoid warnings about deprecated decls. from glib2" in my Fedora 18 environment, it /does/ fail now post 98ba9ca066fcf8f1e576eac4bbd5731b4f810c74 "Revert 'avoid warnings about deprecated decls. from glib2.'" Change-Id: I42d118c06665c976a26a2dbfedc31ca4c8bcf0cc
2013-05-08Revert "avoid warnings about deprecated decls. from glib2"Stephan Bergmann
This reverts commit a206bc22623caba30c0285fda0fe0da8879efea3. While removing the GLIB_DISABLE_DEPRECATION_WARNINGS defines does not lead to problems at least with my current Fedora 18 environment (and, according to dtardon, "guessing by the date, it was on f16 or f17" where that fix was relevant), having the defines does cause -Werror=unused-macros at least in one RHEL 6 environment. So I'm reverting for now, in the hope that should any warnings re-appear, they can be addressed by applying the recent s/-I/$IFLAGS/ approach to GTK_CFLAGS in configure.ac. Change-Id: I5a3e4efabb88eb06304dd8b9eee6d8867fd77be5
2013-05-08fdo#46808, Convert ZipFileAccess service to new styleNoel Grandin
Dropped XComponent from merged interface because noone is using it. Change-Id: Id22c49e63679f42d86f617a919fdfd7cea4d5381
2013-05-08fdo#46808, Convert graphic::SvgTools to new styleNoel Grandin
Change-Id: Id195be7968ab256e44271cad00fa8b5cac8698b4
2013-05-08fdo#46808, Use service constructor for rendering::MtfRendererNoel Grandin
Change-Id: If15cd2ac23bf76aa79ee8134ee0fb97c64d747c3
2013-05-08fdo#46808, Convert some code to getProcessComponentContextNoel Grandin
Change-Id: Ic59060818bf02a402610613a6bc97c5969a5c461
2013-05-07Fix fdo#40421 Take current clip into account for shape bounds.Thorsten Behrens
Seems with the extensive drawinglayer rework, we now get bitmap fills rendered via clip polygon and subsequent bitmap tiles. To get the true bound rect of the current metaaction, clip it against outdev's clip region bounds (as some reasonably cheap best-effort approximation). Change-Id: I4ecf04e2d94da21acc97362a1a65a965c7176077
2013-05-07officecfg: remove Package_cppheaderMichael Stahl
Instead include generated headers directly from workdir. Change-Id: I9d2bcc07175d2bbc16d3cc548c2245e7a4fb0c65
2013-05-06Surely the intent was to check for !pFallback hereKhaled Hosny
Change-Id: Ia583cfe1d123903ac8f61ad4a224364af7c77ef7
2013-05-06Revert "properly prefix graphic filter methods"Peter Foley
This reverts commit eacf12eeb174e35a301570726bf74434a4dd4b94. Appears to be broken. Conflicts: vcl/source/filter/graphicfilter.cxx Change-Id: I9ae3fbac2e7e9d08484c063cdb10e080ca89def2
2013-05-06Debug rendering for PostScript printer backend.Thorsten Behrens
Change-Id: I4581026627fe509895d471f5c28089aaaee85f58
2013-05-06Enable HarfBuzz by defaultKhaled Hosny
HarfBuzz integration should be functional now, so to give it more wider testing it is made now a required dependency on non-Windows non-Mac OSs. By default text layout is now done by HarfBuzz but ICU LayoutEngine is kept as a fallback and can be enabled with SAL_USE_ICULE env variable. After 4.1.x is branched, ICU LayoutEngine should be removed completely. Change-Id: I4fe3beeaf6092f33dd436906c11b83aeafdfbd5d
2013-05-06[harfbuzz] Fix text width calculation, 3rd tryKhaled Hosny
It turns out storing the width in the layout is not so good idea, because in some mysterious cases when font fallback is involved we call GetTextWidth() without calling LayoutText() first, and we return the width of the previous text run. It seems all I needed is to pass down the X offset with the glyph item, and take it into account when calculating the width. Change-Id: Idbdb6bba00573fb6ca773701757d667e21ac0912
2013-05-06Remove unused variablesKhaled Hosny
Change-Id: I7881af8907c0735e4d8e8c327103c8d8488ec496
2013-05-06Drop unused SystemClipboardExt and GenericClipboardExt servicesStephan Bergmann
...uses of which had been introduced with 2fab32e831fc02e7efd4069aa0dfc7779d97a9cf "mtclip01: #i112022# Allow extended clipboard creation" but which did not introduce any implementations of those services, so this might have been a hook for StarOffice-only functionality. Change-Id: I4d3c977547147aaca78b6079d1df8fbf6b196650
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06Revert "fdo#46808, Convert SystemClipboardExt service to new style"Stephan Bergmann
This reverts commit 135d20caa4178c3a6d7682b547c5da6d58310f01. Conflicts: vcl/source/window/window.cxx There is no implementation of the SystemClipboardExt service, so Window::GetClipboard would now always fail with catching an Exception, instead of trying to create a SystemClipboard if SystemClipboardExt is unavailable. (I'll clean up the unused SystemClipboardExt in a follow-up commit.) Change-Id: Ic3c45b148057e174d3487aedb4176549cb28f3c0
2013-05-06Revert "Blind fix for MSVC"Stephan Bergmann
9041dac37f912a6f183be9f6b6558f1ef44280c0. The correct fix was f4227c822c7f5a4e1e1b3b4e096cb63cf710a3f1 "Blind fix for MSVC, take two." Change-Id: I6c319a0f7a1d3dbcffbd4be8ac02682e5fdd7802
2013-05-06Java cleanup, convert more Vector to ArrayListNoel Grandin
Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33
2013-05-06fdo#46808, Convert graphic::Primitive2DTools to new styleNoel Grandin
Change-Id: I9719b43dbf98cfca29638f54cc907e48c7ad28b7
2013-05-06fdo#46808, Convert some XMultiServiceFactory to XComponentContextNoel Grandin
Change-Id: I65a4399de203e02b8fc90c7d2e4c783d5c156de5
2013-05-06fdo#46808, Use service constructor for rendering::CanvasFactoryNoel Grandin
Change-Id: If6bebe0d2dfb30c3fffd0fb284cd766e3f315b49