summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2013-12-09fix equalsAscii conversion. Noticed in fdo#72391Noel Grandin1-5/+5
In commit 363cc397172f2b0a94d9c4dc44fc8d95072795a3 "convert equalsAsciiL calls to startWith calls where possible" I incorrectly converted equalsAsciiL calls to startsWith calls. This commit fixes those places to use the == OUString operator. Change-Id: If76993baf73e3d8fb3bbcf6e8314e59fdc1207b6
2013-12-08Put local static fucntions into anonymous namespace.Tomaž Vajngerl2-0/+10
Change-Id: Id838860b6d44febe72fe3e51081107d5635e19b8
2013-12-06fdo#60705 Don't discard valid printing options.Andrzej Hunt1-1/+1
PPDValue::m_aValue is simply an optional parameter description, whereas m_aOption is the actual option being passed to cups. For example, for the key "PageSize" (which was previously passed without problem), a typical PPDValue could be: m_aOption = "A4" m_aValue = "<</PageSize[595.3 841.9]/ImagingBBox null>>setpagedevice" However for the key "InputSlot" (which was previously not passed to the printer), a typical PPDValue could be: m_aOption = "RearPaperFeedSlot" m_aValue = "" Change-Id: I7959317c9f9d67bfafd911e710927a70edfa8792
2013-12-06map homogeneous to opposite of non-homogeneousCaolán McNamara1-0/+4
which should silence that annoying "unknown packing: homogeneous" warning Change-Id: I826908024063909ddd5f975829b7a5727944d399
2013-12-06Re-organize OS X and iOS code in vcl a bitTor Lillqvist214-529/+531
Now with the ATSUI code gone is a good time for some re-organisation. Get rid of "aqua" in file names and the separate "coretext" folders. CoreText is all we use now for OS X (and has always been so for iOS), so no need for a "coretext" folder, we can keep the CoreText-using code under "quartz". Keep OS X -specific code in "osx". Ditto for headers. Keep "Aqua" as part of class names for now, though. This is also preparation for planned further unification between OS X and iOS code. Change-Id: Ic60bd73fea4ab98183e7c8a09c7d3f66b9a34223
2013-12-06Bin unused VER_TIGER and VER_LEOPARDTor Lillqvist1-3/+0
Change-Id: Ie5427d776c726c3725465e06bf4d14e93a2bbb32
2013-12-06Zip .ui translations per UIConfig target.Matúš Kukan1-6/+29
Fix installer / scp2 to not ignore directory prefix in 'Name'. Change-Id: Ib319363c8be73a72029f1ba3833e518e15c55e29 Reviewed-on: https://gerrit.libreoffice.org/6915 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-12-05I think SAL_FORCE_IACCESSIBLE2 is what is intended hereTor Lillqvist1-1/+1
Change-Id: If03696cfcc9a3d5053af881e00a4c6a484cbd445
2013-12-05EMF+: force canvas if EMF+ comments are used.Andrzej J.R. Hunt1-0/+7
Without this the drawinglayer renderer is used, whereas only the canvas renderer supports EMF+. Change-Id: Id8a10e400e08c1913e7d6864a51f7b73fc9be437
2013-12-05Fix fallout from 461e0f9eaf9895ecd0eba67b35a4d2cec8a5e5c5Tor Lillqvist1-1/+1
Change-Id: Iffa0c948356e705f610e057892c84d43d0d3490b
2013-12-05fdo#39956 Delete JABDavid Ostrovsky8-307/+28
JAB has been discontinued in favor of the native IA2 bridge. Change-Id: I88461f73c620507d3e97b077ea2abdd2229322e1 Reviewed-on: https://gerrit.libreoffice.org/6819 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-12-05Resolves: #i123795# variable names should not confuse vcl...Herbert Dürr13-210/+195
Window and cocoa NSWindow types VCL's Window type and Cocoa's NSWindow type are quite different. Naming variables as if they were the same introduces gratuitous complexity especially when debugging stacks where both types are used. The names of NSView type variables have been adjusted too. (cherry picked from commit 5e6120c21a979c05bc6b9297035e31a47b98b785) Conflicts: vcl/aqua/source/app/vclnsapp.mm vcl/aqua/source/gdi/salgdi.cxx vcl/aqua/source/gdi/salgdiutils.cxx vcl/aqua/source/window/salframe.cxx vcl/aqua/source/window/salobj.cxx vcl/inc/vcl/sysdata.hxx vcl/source/window/syschild.cxx vcl/source/window/window.cxx Change-Id: Ic4143dfddfa9502a529c871ac4ce0bea413b6ce9
2013-12-05Typo fixTor Lillqvist1-1/+1
Change-Id: I994ebbad19873236ad6d8dc99f721908722d302a
2013-12-05Increase consistencyTor Lillqvist1-3/+3
Change-Id: I5469b00a533ef9bf731698d7906a470699e29ba6
2013-12-04Resolves: rhbz#1038189 refresh printer list when print dialog launchedCaolán McNamara1-0/+2
which is the the same thing the printer settings dialog does Change-Id: I36fb9f057b66faa8c9fce5a9934ed2fb70786363
2013-12-04Add some logging to MetaFile read.Andrzej Hunt1-0/+4
Change-Id: I11bc4a82fd0d09fb255c30f3aeffecd3b4e95c09
2013-12-04Resolves: rhbz#912529 Kerkis SmallCaps shown instead of Kerkis RegularCaolán McNamara1-2/+9
we encounter both fonts, but all their properties that we compare are the same, so we think they are two versions of the same font and throw away the "Regular" version. Change-Id: I24369f10c7a0edba1faa02621bb78616e880966e
2013-12-04fdo#67011: Run Display::Yield through KDEXLib::Yield.Jan-Marek Glogowski1-6/+16
Drag'n'Drop is handled in a second thread, which tries to "yield the display" while the main Qt thread probably is already yielding. Both need the YieldMutex, which freezes the application until the D'n'D thread times out. Trying to yield the display throught the application yield results in a recursive loop. So this catches and breaks the recursion, but just inside the Qt thread, so other processes can "yield on the display", instead of simply disabling the Display::Yield. Change-Id: Ifba91aa89fe5b0a89cc94820935dc996a065112f Reviewed-on: https://gerrit.libreoffice.org/6750 Tested-by: Jan-Marek Glogowski <glogow@fbihome.de> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2013-12-04Rename coretext/salgdi2.* to coretext/salgdi.*Khaled Hosny17-16/+16
The "2" part was a temporary measure so an older version of the file, that is long gone, can coexist. Change-Id: I3a22b287bfb1351bb73e9dabbfa67100fe17bb97
2013-12-04Add a commentTor Lillqvist1-0/+1
Change-Id: Icd7ecafa46392133b8f6b82574a699e843ce588f
2013-12-04Bin ATSUI codeTor Lillqvist17-3250/+10
TDF has been shipping a CoreText-using LO since 4.1 and the sky hasn't fallen. Getting rid of the ATSUI code will make other needed refactoring easier. Change-Id: I494096c3988ea26fa2b336621857d32b64b040f0
2013-12-04WaE: private field 'mbPrinter' is not usedTor Lillqvist1-1/+0
Change-Id: I78b364394b3bedafe66b2b72b3191a8ae778432b
2013-12-04No more uses of printer built in fontsKhaled Hosny7-379/+18
Less parsing of AFM files at startup. Change-Id: I62d4c81d6e892f2356df22b53bb35c0f9f7bc344 Reviewed-on: https://gerrit.libreoffice.org/6860 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04Device-specific font substitution is not usedKhaled Hosny20-118/+23
This was only used for printer built in fonts, which was dropped in the previous commit. Change-Id: Iff62786284470ff3873c8d4b0aae0614bf69c7f3 Reviewed-on: https://gerrit.libreoffice.org/6859 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04Don't perform printer font substitutionKhaled Hosny7-256/+41
The so called printer resident fonts is a relic of a bygone era, when life was simple and there was only ASCII and Type1 fonts. It is just broken by design these days, offers nothing useful and can go wrong in many ways. Since 1f3a91cf2ace315fb332c0149808a2433eb9ae71 this "feature" is disabled by default anyway, so scrap this code to make room for some long due cleanup. Change-Id: Id124b2cad1a484099701a885c4d96e6a12af8d9a Reviewed-on: https://gerrit.libreoffice.org/6858 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04VCL : Remove usage of DBG_CTOR and DBG_DTOR.Arnaud Versini26-743/+4
Valgrind is capable of detecting such bugs. No need for extra macros. Change-Id: I6a785b42be72736560ec69f1a7949f2f0b9414a3 Reviewed-on: https://gerrit.libreoffice.org/6805 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04convert OutputDevice::HasGlyphs from xub_StrLen->sal_Int32Noel Grandin2-7/+8
Change-Id: Ic8f0ae3d263d6cb02e6faa7226db0241681fc45f
2013-12-04remove some STRING_NOTFOUND usageNoel Grandin1-3/+3
from old, probably dead code. Completely untested. But at least it's not in my grep results anymore. Change-Id: I9d917d0558bcab25a48fa36140beaa92150b62c9
2013-12-03vcl: d'oh /me still to dumb to typeMichael Stahl1-1/+1
Change-Id: Ie8a5b7493c08a0a63f2791d3cfb00b490609eb7c
2013-12-03vcl: fix sal_Int32 GetTextBreak harderMichael Stahl8-11/+12
Change-Id: I75181d12ca8b883055e5314504633af38b5e49c7
2013-12-03vcl: try to fix some sal_Int32 GetTextBreak()sMichael Stahl2-8/+9
Change-Id: If4aee2b42f0d2e15ca228863754959b7486437ee
2013-12-03longparas: convert GetTextBreak to sal_Int32Caolán McNamara9-58/+57
Change-Id: I693e4c9916e1968c33ebd922829662f6efc27bfb
2013-12-03drop unused argumentCaolán McNamara1-1/+1
Change-Id: Ifc262144b7a4c027529ad2927996a4ebf766a5c2
2013-12-03we don't need to copy this string anymoreCaolán McNamara1-4/+3
Change-Id: Ie705cb2c949ef9212a69c9d875e3c3217a3146bb
2013-12-03convert Edit::GetCharPos from xub_StrLen to sal_Int32Noel Grandin1-12/+12
Change-Id: I8fe982d0c0c0a04e2a10cff0f0ae68d51bed590a
2013-12-03Call getLineBreak with null XHyphenator unless TEXT_DRAW_WORDBREAK_HYPHENATIONStephan Bergmann1-2/+4
So no longer instantiate XLinguServiceManager (which might e.g. bootstrap Python) unless explicitly requested, which e.g. removes a noticable delay when switching to the Options dialog's "Security" page (which causes size calculations of FixedText controls that use TEXT_DRAW_WORDBREAK but not TEXT_DRAW_WORDBREAK_HYPHENATION). Change-Id: Ib0a28d3d7d7718faf6df7a138f5a86b8b2fd7713
2013-12-02Resolves: #i123765# reset buffered DropTarget when undockingArmin Le Grand1-0/+5
(cherry picked from commit 8d679227fafe9108c4dc6e8adff85a727e4ef3af) Change-Id: Ia6fba705d91157afea30693fa7078aabc96f02ac
2013-12-02Resolves: #i74854# fix buttons in MsgBox with info iconHerbert Dürr1-0/+8
Patch by: hanya.runo@gmail.com Found by: ooo@catcons.co.uk Tested by: hdu@apache.org (cherry picked from commit 02cc651a1b45cbfbdab0aca6b57bff7bdf9e4f2c) Conflicts: basic/source/runtime/methods.cxx vcl/inc/vcl/msgbox.hxx Change-Id: I1656263e189f1a6cfa58436741bfa74ae0e6fffa
2013-12-02No idea what maOwnContextMemory isTor Lillqvist2-2/+0
Change-Id: I8ebda0c7da3cb663802fb8b05a98115db7589e09
2013-12-02vcl: check if AT is running before loading the libraryMichael Stahl2-10/+33
... which should result in faster startup if it's disabled. Change-Id: I39774b0a56f186d08270c2f17b2b20a823f21dc2
2013-12-02vcl: fix crashes when retrieving objects for MSAAMichael Stahl1-4/+6
The ImplHandleGetObject() function modifies the Application Settings and must take the SolarMutex for this; otherwise we get crashes when another thread calls StyleSettings::GetPersonaHeader() during some unoapi test. Also fix another HWND to long cast; use LRESULT which is Win32 for intptr_t. Change-Id: I5580f88ed0a8e9955697655ace94584e2307982d
2013-12-02fix buildCaolán McNamara2-14/+34
Change-Id: I24e5ad4f27584aa982fa8a4d7ee80e7167bbcacf
2013-12-02Make include guards sane in vclTor Lillqvist41-138/+110
We have a convention. Use it. Kill copypasta. Change-Id: I512e1c8e75b5da20b6756ffc88209a27674ad7c7
2013-12-02Clear up some copypastaTor Lillqvist4-12/+12
Change-Id: I453bd42e24b059e86e71dc2a64a0d6f524f7a197
2013-12-01Remove useless comments from field.cxx field2.cxxTomaž Vajngerl2-568/+0
Change-Id: I39dc5793a06f76af5f804846b1771664704369c3
2013-12-01Use SAL_MAX_INT64 for max value in NumericFormatter & code formatTomaž Vajngerl1-10/+10
Change-Id: I30ecb70c7d46ab575c2ffa0f3c9439805cd4f41b
2013-12-01upload libeot-0.01David Tardon2-5/+5
Change-Id: I877cab5e13ebb52911b2e238a0f4ebb87cda73e9
2013-11-30WaE: ‘nPos’ may be used uninitialized in this functionTomaž Vajngerl1-1/+1
Change-Id: I993492fa3c3355eeb8d57b4262e176bc2f439f7e
2013-11-29typo: seperator -> separatorAndras Timar1-1/+1
Change-Id: Ifad806a4a846656f4b81439c596aa34d898d021a
2013-11-29Surely ATSLayout is no friend of the CoreText AquaSalGraphicsTor Lillqvist1-1/+0
Change-Id: I81725b388311ad9aade52906b4c5a6263b6bc104