summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2013-12-18vcl get rid of xub_StrLen and STRING_LEN in outdev3Norbert Thiebaud8-67/+163
a new log section (sal.rtl.xub) is used to display alert in case of suspicious len == 0xFFFF (aka STRING_LEN) Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e Reviewed-on: https://gerrit.libreoffice.org/7117 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-12-17Related: #i123840# normalize SalFrame resolution type to sal_Int32Herbert Dürr3-4/+4
(cherry picked from commit 8a7cfd2bded9a531a034222c71ba3eda9df7d436) Conflicts: vcl/aqua/source/gdi/salgdi.cxx vcl/aqua/source/gdi/salprn.cxx vcl/aqua/source/window/salframe.cxx vcl/inc/aqua/salframe.h vcl/inc/aqua/salgdi.h vcl/inc/os2/salgdi.h vcl/os2/source/gdi/salgdi.cxx vcl/unx/generic/gdi/salgdi3.cxx Change-Id: I86f2902d765422b4b850619c72119ad4e03452d7
2013-12-17support setting end ellipsis from .uiCaolán McNamara1-0/+11
Change-Id: I426f41ffdf107b7dcff8ae713e2dc63610f915af
2013-12-17fdo#72598 Remove SunStudio cruft from code baseJelle van der Waa1-6/+0
Change-Id: I6f75d0df0ddafc892fef0ce1bfdcdd6c70151afc Reviewed-on: https://gerrit.libreoffice.org/7104 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann6-12/+12
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-17remove unnecessary double calls to OUString constructorNoel Grandin1-1/+1
Change-Id: Ib2690e3ec9987b97363687b61fe8ddae4ace9058
2013-12-17Remove unnecessary use of OUString constructor in + expressionsNoel Grandin2-3/+3
Convert code like aFilename = OUString::number(nFilePostfixCount) + OUString(".bmp"); to aFilename = OUString::number(nFilePostfixCount) + ".bmp"; Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-12-16uiconfig is a l10n-relevant targetBjoern Michaelsen1-1/+1
Change-Id: I8a2ca73c02fd6b04ce60e7701c51d2362ef7ec06
2013-12-15We already get AquaSalGraphics::CreateFontSubset from salgdicommon.cxx nowTor Lillqvist1-11/+0
Change-Id: Ie63ee5ea20a8340cfcbb51323871e5b0318e6cc3
2013-12-15Add a commentTor Lillqvist1-0/+2
Change-Id: I01ec957bd4b10e26075e311593cec36487eee4bc
2013-12-14Fix fallout from 6265876ae9f1bb862440182d2d2c9b9b5b322668Tor Lillqvist1-4/+0
Change-Id: I62023c594d2cb2d4bf76459a9c1caaa5060c4b49
2013-12-14iOS tiled rendering workTor Lillqvist17-105/+233
Possibly quite broken intermediate commit. But anyway, now it is possible to render the tile diretly to a CGContext. Can be seen in the MobileLibreOffice app when build in the Debug_tile_tester configuration. See touch_lo_draw_tile() in viewsh.cxx. Unfortunately the old plain LibreOffice test app is now broken, though, and displays nothing at all. This refactoring and hacking in vcl was done in a quite ugly fashion, with ifdefs etc. But trust me, I did try, several times, for many days, to get where I wanted in an elegant and clean fashion. But doing it cleanly meant not being able to actually build it for days while trying to figure ut which bits go where and which class should be split into what base and derived class(es), and it was too much for my limited brain capacity. I just couldn't juggle all the vcl class structure in my head, especially as I don't have any good understanding of the general design of it all. Change-Id: Ia59d6a9cce15a63e63f94e8d8574bef21993fb1f
2013-12-13Targetted text updates, with seasonable changes before l10n freeze.Michael Meeks2-2/+2
Change-Id: If37ef9f68711da3a0aa9a3ba59b111a8a23421df
2013-12-13graphite2: get visibility right for static linkage on windows.Michael Meeks6-3/+25
Change-Id: I79fa15d539bcb86610dd4def08536c33bd2a10c2
2013-12-13WaE: statement aligned ... [loplugin]Tor Lillqvist1-0/+2
Either missing braces around the else branch, or inconsistent indentation. I guessed it was the former and added braces. Change-Id: Ic5e7db892774d48ba6db09a40741e5fbbdc95994
2013-12-13fdo#70338 : Fixed file corruption issue after save for docx.Sushil Shinde2-1/+26
- File was giving corruption message if saved in LO. - Issue due to video file. - Attached file contain .mov which was not handled properly. - Added mov extension support in graphic filter. Reviewed on: https://gerrit.libreoffice.org/6818 Change-Id: Ia278127ddc4afcd2d5fe04e86ed6201fb28dc04f
2013-12-13Follow header guard conventionTor Lillqvist3-3/+4
Change-Id: I4cf80fb61fd63b10e241154785ae872c6b75eaf7
2013-12-13Drop duplicate #includeTakeshi Abe2-2/+0
Change-Id: I63612bc5bd4e13fcc5c4e57ac73bd9c7bbf4f0e6
2013-12-12Bin a few nonsense commentsTor Lillqvist4-4/+3
Change-Id: I65b83b4eda76501a5d37d853df3644b157f296de
2013-12-12Related: #i123840# use CoreGraphic helper methods for primitivesHerbert Dürr1-19/+19
C++11 says that narrowing conversions in array initializers are illegal. This often happened for signed/unsigned and 32bit/64bit mismatches when initializing CoreGraphics elementary types. Using CoreGraphic helper methods for primitives is recommended. (cherry picked from commit 5e7c8cd9c6772d9b9e5747e74768c61143a7ed01) Conflicts: vcl/aqua/source/gdi/salgdi.cxx Change-Id: I5927790d97decea57ff236b0a52561e08f017163
2013-12-12Resolves: #i123841# fix constness issues in OSX 64bit clipboard handlingHerbert Dürr4-22/+23
(cherry picked from commit 0801e9b488660e792a09d12717da951d224b26e0) Conflicts: vcl/aqua/source/dtrans/DataFlavorMapping.cxx vcl/aqua/source/dtrans/DataFlavorMapping.hxx vcl/aqua/source/dtrans/aqua_clipboard.cxx vcl/aqua/source/dtrans/aqua_clipboard.hxx Change-Id: Ifaf90c9aafcc22dd93923250d2342346806f9e88
2013-12-12simplify - use OUString::startsWith where possibleNoel Grandin1-1/+1
Convert code like if( !aStr.isEmpty() && aStr[0] == 'x' ) to if( aStr.startsWith("x") ) Change-Id: Iabc3a44ed3be2d29eed876e0eeef212ccd271edf
2013-12-12Do not use C++-UNO internal static_type functions in client codeStephan Bergmann12-25/+25
...use cppu::UnoType instead. Change-Id: I507914b30ef8acda910ee4ecc0589fd328eb6f31
2013-12-12Much better fix for the iOS text colour problemTor Lillqvist2-34/+1
Just use the same simple trick as for OS X in OutputDevice::ImplLayout(). Thanks to Khaled Hosny for pointing out this. This reverts commit 9aba69e8cc034526c53f6135a41fc62dc3c5dce3. Change-Id: I27ba92ef8ebd1ebdb9eb74f670d8170649078881
2013-12-12Fix the iOS coloured text problemTor Lillqvist1-0/+33
The eventual text colour is not known yet when LayoutText() is called. So we need to re-do the layout and justification in DrawText() in case we have a text colour. For some reason this is needed only on iOS. On OS X, the original code manages to display coloured text correctly. But then, on iOS a virtual device is used, and who knows what other strange things going on. Some of the scary warnings printed make you a tad unsure everything is working correcly... (Like "SdrPageView::DrawLayer: Creating temporary SdrPageWindow (ObjectContact), this should never be needed (!)") Change-Id: Ide99c163dea0f758a373c8dab9c54681ff57f624
2013-12-11Use static for this getenv call too.Matúš Kukan1-1/+2
Change-Id: Ieb8dd13763c6d5e6d30ce641683de79d89d135df
2013-12-11Try to fix colour issuesTor Lillqvist2-3/+18
Use RGBA consistenly. Wonder why the code was changed to use BGRA at some point? I got the picture in the document to show up with correct colours but unfortunately not the RED GREEN BLUE etc text. Weird. Even weirder, if I add a temporary hack in CoreTextStyle::SetTextColor() to use some other colours for non-black text (instead of the ones passed in the parameter), those colours do show up. This is a mystery. Change-Id: I591424a19fa02b3f095035e989cbc49fff94b8ca
2013-12-11Related: rhbz#1040291 Change language name from 'Oriya' to 'Odia'Caolán McNamara2-3/+3
Except for our external api where the Oriya is stuck (and similar for the vba implementation) Change-Id: I8288c930567385eea49a4c303727b13ef8b8a89f
2013-12-11drop unused ulcodesCaolán McNamara1-77/+0
Change-Id: I075db734dae73244d90a39b655fca2dc48d921c7
2013-12-11regband.hxx is private to vclTor Lillqvist3-4/+152
Change-Id: If17510b572aa172c8d973f74b881b0d723213eef
2013-12-11octree.hxx is private to vclTor Lillqvist4-6/+133
Change-Id: I3cb377cfa99914fdba00504fb7d955e088bfca76
2013-12-11fontmanager.hxx is private to vclTor Lillqvist15-14/+553
Change-Id: Iec1d1539db0b44d2ddc420cf500585098d4793fc
2013-12-11displayconnectiondispatch.hxx is private to vclTor Lillqvist3-2/+48
Change-Id: I86fab011150be6f151e4fd6a51246f41e86e5833
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