summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2013-05-14vcl: attempt to fix high quality scaling to get aspect ratio right.Michael Meeks
Change-Id: Ic62c6a16c39dd4e4e19bf9a96503ecf6ac50f292
2013-05-14Remove redundant overrideStephan Bergmann
Change-Id: Idda7987a5042b93a02cfa65160a355f040a03543
2013-05-14SolarMutex does not belong into the URE interfaceStephan Bergmann
...so move it from osl/mutex.hxx to its own comphelper/solarmutex.hxx. It looks like a newbie mistake that 59e7685d8d812ee8773f57475cbe3aa2a0bdfc81 "Create an abstract interface to be used to implement a SolarMutex" put it here in the first place. I do not consider this an incompatible change really, as no external URE client code should have used SolarMutex anyway. (Also included some clean up, like removing unused {Clearable,Resettable}SolarGuard, and spelling out SolarGuard in the few places it is used.) Change-Id: I121ffb5b7cefbc19e88b5405e5a85ffc895be852
2013-05-14sal_Int*/sal_uInt* to boolTakeshi Abe
Change-Id: I133445673895e26d6f19a7843f005dc13870f9ca
2013-05-14initialized with plain 0, instead of sal_False/falseTakeshi Abe
Change-Id: I2df1bd52293c4423de5ac4c41f9392be1e8d2ccf
2013-05-14sal_Bool to boolTakeshi Abe
Change-Id: If2f09533666a6090d4860e79b33a05d12e058940
2013-05-13Remove redundant OSL_ENSUREStephan Bergmann
Change-Id: Icb3c4a4afe80e50d6f39e9a8092eab71afed2e2d
2013-05-13cppcheck: fix arrayIndexThenCheck in vclJulien Nabet
Change-Id: Id7258dd35c131c2c8151bc5e0f97076241e6d10f Reviewed-on: https://gerrit.libreoffice.org/3868 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-05-13Handle fonts without hhea or OS/2 table e.g. Type1Khaled Hosny
Change-Id: Ib7245e9f8b7874087966cb1098e63d1f83acaa6a
2013-05-13Related fdo#35546: Further improve Layout of Photo Album DialogSamuel Mehrbrodt
With suggestions from http://nabble.documentfoundation.org/Streamlining-the-Photo-Album-Creator-td4054397.html * Moved "Album Layout" to the right * Changed buttons to GTK Stock buttons, added VCL equivalents * Improved the wording of the Layout options Change-Id: Icfb24a8678d096bb596bcdeabbf539e9fe1835db Reviewed-on: https://gerrit.libreoffice.org/3852 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-05-13fdo#46808, Convert util::PathSettings service to new styleNoel Grandin
Change-Id: I302be46b46518e1e872771e1c8a0647f7c330b30
2013-05-13WaE: signed/unsigned mismatchTor Lillqvist
Change-Id: Id655a3f97107fd99bdf3c271fdc1938e22d6317d
2013-05-13Support IMR_QUERYCHARPOSITION in Writer and Calc.Yohei Yukawa
IMR_QUERYCHARPOSITION is one of optional but fundamental request message sent from IMEs to application. This message is used for retrieving the positional information for each character in a composition text especially when the composition text is drawn by the application. This information is critical for IMEs to align suggestion window with the composition text. Change-Id: I53a344a78688060004cc8bcbbf1127f22a468e20 Reviewed-on: https://gerrit.libreoffice.org/3849 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-13TypoKhaled Hosny
Change-Id: I28ea63722f542a79aef904f9be40645baac191e4
2013-05-12Remove old scale convolution methods from Bitmap.Tomaž Vajngerl
Change-Id: I0265a4b4c7b2fda267eb56ef719fd6a53d49d460
2013-05-12Resolves: #i120165# Adapt Mask/Alpha at BitmapEx construction...Armin Le Grand
when size differs from base bitmap Original patch by: pengyunquan Changed patch by: alg Review by: alg(cherry picked from commit 3cfc24693469fb9b682e9c76c28610be1e004799) Change-Id: I6f09cb18206487c1df01147a902ea0f390d65c65
2013-05-12WaE: signed/unsigned comparisonCaolán McNamara
Change-Id: I89d6ce71fc463ee8aca34cb3d39afc9d2304f445
2013-05-12Some loggingKhaled Hosny
Change-Id: I4515d4d6760e22ce4d77fbb3cbce93e3ce097b98
2013-05-12Resolves: #i119450# Added EMR_ALPHABLEND case to EnhWMFReaderArmin Le Grand
to correct visualisations Patch by: Jianyuan Li Review by: alg(cherry picked from commit 1ea8c3a924d518043c5d3d1427cd40cf500c8b21) Conflicts: svtools/source/filter/wmf/enhwmf.cxx Change-Id: If1436cc58ba48048777571e74511f4fc97d2bef3
2013-05-12Resolves: #i122241# Made Push/Pop with PUSH_MAPMODE safe...Armin Le Grand
for mbMap flag and MapMode preservation (cherry picked from commit 664f4d882129c98d502463e08ce601259b85fc8c) Change-Id: Ibe062a01c495ca0e067e9c4399b55fccf65baebe (cherry picked from commit 579a09b817eada81f1ffbfffa38b63bd5ca34165)
2013-05-12WaE: private field 'mpGraphics' is not usedTor Lillqvist
Change-Id: Id10519547445b5e67d3328a82909f85f9de83a80
2013-05-12EMF+ fixesChris Sherlock
A number of fixes have been made to commit 256e42646bedbeb9cba900f962f36ba4b1a1cda3: * Missing redirect in SAL_WARN - only gets picked up when DBG_LEVEL > 1 * Some errant newlines in SAL_INFO * Some missing braces * Missing semi-colon fixed (!) * Changed int to sal_Int32 (causing ambiguity error) * Add dumpWords to the SAL_WARN that ensures that size is not greater than length * Show values when proessing EMF+ comment record (only enabled when DBG_LEVEL > 2) * Missing std::hex in SAL_INFO Change-Id: I059ba24964dd428a56a31d100109cfec938a8a49 Reviewed-on: https://gerrit.libreoffice.org/3861 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-05-11[coretext] Attempt to fix jumping linesKhaled Hosny
No more jumping and spaces between text runs are not eaten, but text selection is still broken, as well as editing. Change-Id: Ic9d2a6df0add20b63d6edf0ddf84b7d6f8de0983
2013-05-11fdo#64311 - fix pre-processor conditionals & don't bail-out without gnome-vfs.Michael Meeks
Change-Id: Ia7a805c95625b52fc99face000587692de21461e
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