summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
AgeCommit message (Collapse)Author
2014-04-26unnecessary to check for null before deleteCaolán McNamara
Change-Id: I82b5c5ced8a4f0e719d1aeffed86845b9db1b68b
2014-04-26the OutDevState dtors are never calledCaolán McNamara
regression since cf3c6cb40f99fa1761a6af3d7447a899b9447868 Change-Id: Iaeb44d948d3e0a0b26cfd3e16aa81b979cf56457
2014-04-25Fix OutputDevice::PopStephan Bergmann
Change-Id: Iaaf19c01dc4ec10c72a66dac35ac64e37766d08e
2014-04-25VCL: ImpObjStack replaced with std::stackChris Sherlock
ImpObjStack uses it's own home-grown stack and stack functions. There is a function that unwinds the stack, but really it would be better if we used std::set. In fact, this is better, because the name ImpObjStack is really not terribly descriptive. I've replaced it with a stack of OutDevState objects. Change-Id: I87bdd4340ad77b7ffd9ff176fa5a9ffeac8b8666
2014-04-25VCL: Remove unused and deprecated debug check functionChris Sherlock
Change-Id: I3fcf630b8a0ef5be0d98ddc11a746e07885bae53
2014-04-25VCL: Reorganize and rename wallpaper functionsChris Sherlock
Grouped wallpaper functions in outdev.hxx, also changed the function names: + ImplDrawColorWallpaper -> DrawColorWallpaper + ImplDrawBitmapWallpaper -> DrawBitmapWallpaper + ImplDrawWallpaper -> DrawWallpaper Change-Id: I0eb9c21bf2f6a336df22cd27cd1557f2c795f792
2014-04-25Renamed ImplGetDPI(X|Y) to GetDPI(X|Y)Chris Sherlock
Change-Id: If76b99589ddd83431593404c1034b8b726bc3f9b
2014-04-25Remove ImpInitOutDevData and ImplDeInitOutDevData in OutputDeviceChris Sherlock
All these do is some very, very basic initialization. There is no need to lazy load the structure, it should be initialized when OutputDevice is created in the constructor and deinitialized in the destructor. Change-Id: I780caf4d02e9a2a7d094989cf0bba579493ca98d
2014-04-24fdo#74336 wrongly transformed line width - use 0 for heightTomaž Vajngerl
Change-Id: I3915cfabb9568480d74ea6d4e459def6fe912eb9
2014-04-25Rearrange function locations in outdev.hxx and outdev/clipping.cxxChris Sherlock
Change-Id: Idb1faf5632da8ea3fec674f9fb2d042c7ff14fa7
2014-04-25VCL: Rename OutputDevice::ImplSelectClipRegion to SelectClipRegionChris Sherlock
Change-Id: I8c683588d8bdb6dd287e60fc1e249bd5633a4ee2
2014-04-25VCL Change OutputDevice::ImplSetClipRegion to SetDeviceClipRegionChris Sherlock
Change-Id: Ia2db9d640af6bdc35f3e38b5b85355721d5b8331
2014-04-25fdo#74702 Move GetActiveClipRegion code into WindowChris Sherlock
Window checks to see if the window is currently being painted, then it checks to see if there is an active clipping region (which it needs to intersect with). Printer and VirtualDevice don't have this need, so they just return the clipping region. Change-Id: I1a9af237940f5add725c783c02a193c9e3329fa6
2014-04-25VCL: remove comment, rename ImplInitClipRegion to InitClipRegionChris Sherlock
Change-Id: If8d18b59285f75d61d9972ca019390fce700be3c
2014-04-25fdo#74702 Move ImplInitClipRegion Window code out of OutputDeviceChris Sherlock
Window instances need to handle overlapped window clipping, VirtualDevice and Printer do not have to worry about this. This code should be kept in the class that handles it, so I'm seperating it out. Change-Id: Ie7df90c983f7a858b563d4f892ceb64d575c0319
2014-04-24VCL: Remove unnecessary headers from outdev/transparent.cxxChris Sherlock
Change-Id: I0b3c6e4a1f75d2cb50ed35595dca65d8bb89996e
2014-04-24VCL: Remove unnecessary headers from outdev/text.cxxChris Sherlock
Change-Id: I0a55fcad484c368634d8eb79d1a0fb440c6f635a
2014-04-24VCL: Remove unnecessary headers from outdev/polyline.cxxChris Sherlock
Change-Id: I2439ad38dc531fb35167f6778312a244bb2fbb01
2014-04-24VCL: Remove unnecessary headers from outdev/pixel.cxxChris Sherlock
Change-Id: Ibc307a74e93cd80c651d17e41a3828c06a58b160
2014-04-24VCL: Cleanup headers in outdev/nativecontrols.cxxChris Sherlock
Change-Id: I3dd371fee066eebe357379d6a3b3f6ebe1901471
2014-04-24VCL: Remove unnecessary headers from outdev/wallpaper.cxxChris Sherlock
Change-Id: I361074519a84c9c1497a4ce91df86842e69fc6b0
2014-04-24VCL: Remove unnecessary headers from outdev/textline.cxxChris Sherlock
Change-Id: I533593d8e5dee52441e97d55a72685def7566320
2014-04-24VCL: Remove unnecessary headers from outdev/polygon.cxxChris Sherlock
Change-Id: Ib8f72898bc9cc40a7a4fc1e509eb2f2e36e3d283
2014-04-24VCL: Remove unnecessary headers from outdev/mask.cxxChris Sherlock
Change-Id: Id759b151bb636aa7c79043854a622a88a544138d
2014-04-24VCL: Remove unnecessary headers from outdev/map.cxxChris Sherlock
Change-Id: Idd1bc7f640fb62265f453b5a201b052bbbc14b77
2014-04-24VCL: Remove unnecessary headers from outdev/font.cxxChris Sherlock
Change-Id: I45c811b9f7c5c10fcefe0e2da809bdc5cc381de1
2014-04-24VCL: Remove unnecessary headers from outdev/curvedshapes.cxxChris Sherlock
Change-Id: Iae98ff3b75dce83a7d05176b6a0bdf93b7e5fb00
2014-04-24VCL: Remove unnecessary headers from outdev/clipping.cxxChris Sherlock
Change-Id: Idee24d0d5ec25082ed1be48bee6051f132e00a97
2014-04-24VCL: Remove unnecessary headers from outdev/bitmap.cxxChris Sherlock
Change-Id: Ib4d5da9bb36e6ad7a02536f169ae7b634bb939db
2014-04-24vcl/text clean-up includesNorbert Thiebaud
Change-Id: Ic984322bb4890196a8ff8e8798ac16292c95dc70
2014-04-24vcl/text remove unnecessary and hardly needed using clauseNorbert Thiebaud
Change-Id: Iaceaa0806b200bb79ea2e033b93512670dd9d58b
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-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-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-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-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