summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-04-23huge hrc and src file cleanupThomas Arnhold
* mostly fallout from ui conversion * some completely unused defines from src files * lots of unused HID ids Change-Id: I976561205798db3d06ee139de6223f638e58f47a Reviewed-on: https://gerrit.libreoffice.org/9142 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-24outdev/bitmap.cxx: remove unnecessary headers, fix SAL_WARN_IF statementChris Sherlock
Change-Id: I01e380cf87c6c18ebfc15b1f2a1055d100074991
2014-04-24Rearrange VCL OutputDevice bitmap functionsChris Sherlock
Change-Id: I9bb6a5d123c35d3de2d2fa7b8a427c92f599afd7
2014-04-24Remove unnecessary OUTDEV_INIT() macro in VCL's outdev.hxxChris Sherlock
Change-Id: I0eba1f88f607ba1faf40d8507bb184bdc88085be
2014-04-23Avoid integer overflowStephan Bergmann
Change-Id: Id429ad5ebb9bd1501292756db45d9fac76f26222
2014-04-23Check for short readsStephan Bergmann
Change-Id: I55b9cec694623a3736a78b11b5fdde7d0edaf199
2014-04-23Typo fix: s/temporaer/temporary/Tor Lillqvist
Change-Id: I8f845323ccc6446fe74ef7c1f8d55c49ed070f53
2014-04-23coverity#708636 Uninitialized scalar fieldCaolán McNamara
Change-Id: I7b80da16399a7f8f6c6b1b4f78d1e2a4ddc6f4b5
2014-04-23coverity#708671 Uninitialized scalar fieldCaolán McNamara
Change-Id: I7bfd15318b80623f225a954bafd56d1d5b3ae3e1
2014-04-23Fix typo: s/potentioal/potentialTor Lillqvist
Change-Id: I13eecb1d4f79ec022228a95f9ce18ed667e4ef3f
2014-04-23Rename OutputDevice::ImplGetGraphics to GetGraphicsChris Sherlock
Change-Id: I4086978f2292538c458802a7fb56c0d3826f2def
2014-04-23Rename VCL's ImplInitGraphics to AcquireGraphicsChris Sherlock
Turns out, we don't try to initialize a graphics context, much less *acquire* one. e.g. Window instances can have many frames (subwindows), of which one some are really being used at any time so we try to "steal" one of the graphics contexts from the frame to use ourself, later on that frame will steal it from someone else, etc. Change-Id: I66d5dbb7015301bc2d2be51627061c91e1f2ee5d
2014-04-23Move bitmap functions in header, warn if calling GetBitmap() in PrinterChris Sherlock
Change-Id: Id2325822730d3d9167706c8c4118eaa3ca727195
2014-04-22CTRunData fix for exporting SPI stuff on OSX < 10.6Douglas Mencken
Change-Id: I7ba23f0b03438cc8a71581cc503aedf46aad45f8 Reviewed-on: https://gerrit.libreoffice.org/9130 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-04-23Fix regression introduced in f4e8bca336 when fixing fdo#74702Chris Sherlock
I misread the original code and in OutputDevice::InitFont(). Antialiasing should NOT be done for Printer fonts, and SHOULD be done by VirtualDevice and Window fonts. Unfortunately, I made Printer fonts do anti-aliasing and VirtualDevice and Window fonts did not... Change-Id: Ic38451da4ffdfa2e7a5412355f659bde03eae08f
2014-04-22With tiled rendering for iOS there is no need for a "frame buffer"Tor Lillqvist
The resulting dropping of the basebmp code reduces app size by 0.7 MB. Change-Id: Id263873ed5c4bb2435d929a1319fedeedb6daa14
2014-04-22coverity#1202749 Bad bit shift operationCaolán McNamara
these longs are really intended as x86 longs, i.e. 32bit Change-Id: I19b68556b0ed57cbcb59338f1d0b4174878fd993
2014-04-22Include tools/helpers.hxx to allow the use of FRound in outdev/rect.cxxChris Sherlock
Change-Id: I1691c4fa5dee3d9cbabc939682a39c4c7befdd4c
2014-04-22Merge tworect.cxx with rect.cxx and rename functionsChris Sherlock
Change-Id: Iad6109a353181759fa64e48a82a003f785d0e58c
2014-04-22Fix wrong function names in bitmap.cxxChris Sherlock
Change-Id: I542282cd4757c3d841f8e2b48847ab5d5ba1574e
2014-04-22DrawTransformedBitmapEx - fix accidental renameChris Sherlock
Change-Id: Ic13a4ac4ca3b4ed23c0db9bc6894024f7b2d959a
2014-04-21WaE: implicit conversion of literal of type 'int' to 'bool'Tor Lillqvist
Change-Id: I1c3721a4d44c882c749903c15f05666a74c725a5
2014-04-22Added missing clipping.cxxChris Sherlock
Change-Id: I2dcde25b98004be4f0f45ad3d7e258daee3ca42b
2014-04-22Move OutputDevice clipping functions into own fileChris Sherlock
Change-Id: Id1bfa4c6db202597107de3047326fe1bd17f2387
2014-04-22Reorganize outdev.hxx - mainly map functionsChris Sherlock
Mainly moved map functions into their own block, however I have also done a bit more reorganization. Quite a bit to go, it seems... Change-Id: I041d91c9b96066f5f1e11bd82968c2712988e5f4
2014-04-22Move DownsizeBitmap from gdi/print2.cxx to outdev/bitmap.cxxChris Sherlock
Change-Id: Ib10024fe92ae364d31082177724be718d426fe26
2014-04-22Reorganize native control functions in OutputDeviceChris Sherlock
Rename lcl_* functions in nativecontrols.cxx, also renamed outdevnative.cxx to nativecontrols.cxx Change-Id: Ie9a362f09cb5044e486086e7d890ae433f7dddc6
2014-04-22Rearrange OutputDevice line functionsChris Sherlock
Reorganized OutputDevice line functions - several of these functions should be private. I have renamed the following functions: * ImplInitLineColor -> InitLineColor (made this private) * ImplPaintLineGeometryWithEvtlExpand -> PaintLineGeometryWithEvtlExpand (made this private) * ImplTryDrawPolyLineDirect -> TryDrawPolyLineDirectNoAA (made this private) I also made a small code change to make bTryAA more clear, and also change (bTryAA && TryDrawPolyLineDirect(rPoly.getB2DPolygon()) to a nestied if statement. Change-Id: I90e8083d69b715912bf0ad1d400bc355f3501981
2014-04-22Renamed function ImplHatchCmpFnc to HatchCmpFncChris Sherlock
Change-Id: Idcb2b3c1ad1830bb781b5a9a0527dd2a08ef2b18
2014-04-22Reorganize OutputDevice hatch functionsChris Sherlock
Grouped hatch functions in outdev.hxx. Renamed ImplDrawHatch to DrawHatch (allow C++ overloading to work out which to use), and renamed ImplCalcHatchValues to CalcHatchValues and ImplDrawHatchLine to DrawHatchLIne. Change-Id: I7be62ec1754864424f6c158ab70178606ccbf1b1
2014-04-22Move DrawImage function location in outdev.hxxChris Sherlock
... also slightly changed the overload documentation for DrawBitmapEx and DrawBitmap functions. Furthermore, DrawImage() should never be called from a Printer instance, so warn and abort. Change-Id: I0de65a5d7bd8249fcd14d844faf74477d490cef5
2014-04-22Rearrange OutputDevice's gradient functionsChris Sherlock
Rearranged gradient functions in outdev.hxx to group them together, also renamed ImplGetGradientSteps to GetGradientSteps and ImplGetGradientStepCount to GetGradientStepCount. Change-Id: I98ea0d177531e50b9bdc097df15cfb93d26474e7
2014-04-22Reorganize OutputDevice bitmap functionsChris Sherlock
I have moved the blending functions from blend.cxx to bitmap.cxx, I also renamed the function ImplBlendWithAlpha to BlendBitmapWithAlpha and ImplBlend to BlendBitmap. I also grouped the functions in outdev.hxx - BlendBitmap and BlendBitmapWithAlpha are both private functions, not public. Change-Id: Idfaf8826341172bb0288473c643afa51a03b0580
2014-04-22Remove extraneous line from DrawBitmapChris Sherlock
Change-Id: I21c9d27edad8fe3ea223149b276d46dfb989ec89
2014-04-21remove comments why a file gets includedThomas Arnhold
also remove some commented out code Change-Id: Ia80c5c57d8d2a74418032de50eee95642cc0969d
2014-04-20cppcheck: Prefer prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: Ic24715d86b3f822babd236ac73c041f3a5c1d92b
2014-04-20WaE: macro is not usedTor Lillqvist
Change-Id: I32a4874bb4be9741b509c5781cd90c17a3e97ab5
2014-04-20Move VCL function SetAntialiasing outdev.cxxChris Sherlock
Change-Id: I10f2fd5715d4781b68cb70c3a8df9ce37dc1e821
2014-04-20Move VCL text line functions from text.cxx to textline.cxxChris Sherlock
Change-Id: I3adea9cd08c86f676e6af525e5a7caf430c96d8d
2014-04-20fdo#74702 Only VirtualDevice should handle the Word ext lead bugChris Sherlock
In #i60945# it was discovered that Unix's leading external font spacing causes problems with the display of documents. Therefore, the reference device implemented a workaround, which was to set the spacing to zero. However, the reference device is a VirtualDevice, so it should really be handled there, not in OutputDevice. I have added a new protected function to OutputDevice, GetFontExtLead() that handles this. Change-Id: I1b84ee7d9f7ae96841b441b52705e67c8115ae5c
2014-04-19coverity#738940 Uninitialized pointer fieldDavid Tardon
Change-Id: I467c9ad530b376fd2a23110e4ff157ad03d23d57
2014-04-19coverity#440822 dereference before null checkDavid Tardon
Change-Id: I3531f200c00f27fd2109041b58969ccccb7465ff
2014-04-19vcl/source/outdev/blend.cxx - indent function in anonymous namespaceChris Sherlock
Change-Id: I0a82c500b06531ecce35984d7dc588bb9f7dbd04
2014-04-19Change ImplDrawAlpha to DrawAlphaBitmapChris Sherlock
OutputDevice has a public function ImplDrawAlpha, but that just draws a bitmap with an alpha layer. It's really a public function, though not yet used outside of OutputDevice. However, the name should really be the same as SalGraphic's function which is DrawAlphaBitmap. Change-Id: If2716c1a1a194079d6514a1d30d8b05f9fda664c
2014-04-19fdo#77667 Remove gcc3 workaroundChris Sherlock
It appears from previous commit log entries that GCC 3.3 and below had problems handling instantiated objects as parameters. Therefore, we don't need this aNullPt, so removing it. Change-Id: I8f88067628078e5b57ed76b8b7dfdb76baa3b2ea
2014-04-19Refactor OutputDevice::DrawImage()Chris Sherlock
There is a fair amount of code duplication going on here. If no valid Size is passed to the function then we should pass on Size(), then in the function we call we should check to see if there is a valid size. In fact, this is something we should probably check for anyway, so if anything this makes the code slightly more robust. Change-Id: If7b55e5505ada6739375c69b123cf1e34a0fa66d
2014-04-19Unify IOS/OS X code in OutputDevice::DrawTransformedBitmapEx()Chris Sherlock
The way that we apply the alpha mask in DrawTransformedBitmapEx should be handled in the same way, regardless of the platform. As it turns out, the OS X/iOS way is quite correct and, as a bonus, the code is far more clear. There is no need to do things differently, so let's use the OS X approach. Change-Id: Ib0ac72ddc549367462e84639b74e4bb148128cd5
2014-04-19fdo#74702 Allow Window & OutputDevice to handle erasureChris Sherlock
Window handles erasure of backgrounds for controls. Probably this needs to be moved to a more specific class in the future, but for now it should go into Windows. I also removed an unnecessary temporary variable, and removed the need to case the pointer to this from OutputDevice to Window. In other words, this code has been vastly simplified :-) Change-Id: I44b91cf68f29424ffbc1679b66fbeaeb024880e9
2014-04-19Remove gcc3 workaround for bug long since fixed in gccChris Sherlock
Change-Id: Ieb1c41481a79ab8713663caee3d5373640ff0ec8 Reviewed-on: https://gerrit.libreoffice.org/9102 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2014-04-19fdo#74702 Allow Printer & OutputDevice to handle font orientationChris Sherlock
Printer handles setting font orientation differently to how a Window or VirtualDevice handles it. Change-Id: I2903b971651fe56f8d262d3467e76baef617455c