summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-04-28fdo#74336 limit the size of the non-placeable WMF imageTomaž Vajngerl
For a non-placable WMF image the size is unknown and needs to be calculated by using a bounding box over all elements. Sometimes this results in a very big image which is not drawn correctly when using dashes and dots. This change normalizes the size to reasonable values. Change-Id: I0e5b71fb011c5a9dff1c5cb13e29d5578570ca65
2014-04-28Revert "fdo#74336 need to transform dash length / dot length / distance"Tomaž Vajngerl
This reverts commit 17ca93a6e592d3109e47c756fcfe8ac975acae5f.
2014-04-28OpenGLContext: destroy contextZolnai Tamás
Change-Id: Ia779045d93361a4ca4bfe5027958a04fdebd2ca1
2014-04-28Introduce OpenGLContext::MakeCurrent for switching between contextsZolnai Tamás
Change-Id: I00b06d1330241c4df3b07dc6e0019c49fd7aa521
2014-04-28prefer makefile-gmake-modeTakeshi Abe
Change-Id: I9cc9bfbddd3a90e00eee3e674994e5d6207f9034
2014-04-28VCL: Move line functions into state areasChris Sherlock
Change-Id: I4a92c66892fbb9687b9e7c521c770150b75229b0
2014-04-28VCL: Rename ApplyMask to DrawDeviceMask in OutputDeviceChris Sherlock
Change-Id: I3392294f8144a9f3124ada972934bb0452c6e13b
2014-04-28VCL move DrawCheckered from outdev.cxx to rect.cxxChris Sherlock
Change-Id: I55cbab29e4e0d772e593f39ba48a3a2dffbce382
2014-04-28VCL move DrawGrid from polygon.cxx to rect.cxxChris Sherlock
Change-Id: I551901111ee8eee2a9c1cf75890b89f7100d925d
2014-04-28VCL: remove newline from DrawGrid in outdev/rect.cxxChris Sherlock
Change-Id: Iff26673bd97827bca20b19937591c1fbc69bdf4f
2014-04-28VCL: remove newline from outdev/rect.cxxChris Sherlock
Change-Id: I90b3c0369a54c22a87bd660801b5ea384e01c19a
2014-04-28VCL move SetLayoutMode & SetDigitLanguage from font.cxx to outdevstate.cxxChris Sherlock
Change-Id: Iaf48a39fa1d4d7b88143022e517f2c4e119e94d5
2014-04-28VCL move SetRasterOp & SetDrawMode from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: I8c597e5b9049cd23223ecf4376a4449ca1effb38
2014-04-28VCL move SetAntialiasing from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: I0d0336f4f3a7add0f11f7b8d19aec517c3d8c9af
2014-04-28VCL: Move SetFont up the include fileChris Sherlock
Change-Id: I6721e78f8a10d95a54ff09c1f25f0ae3ece71cfa
2014-04-28VCL: Move SetBackground from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: I04bf1470e43ed08ef5759fcbd6f96d4896f7690b
2014-04-28VCL: Move SetFillColor from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: Ia817fbe4aa2927ac5568fd842e8f313608bed320
2014-04-28VCL: Move EnableOutput from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: I3b1f63d280549ca0dc3ec59733fa6e9ca2672a1c
2014-04-28VCL: Move GetGCStackDepth from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: I61a366f4dd005cb19794b48c857760a3b2a8a267
2014-04-28VCL: Move Push and Pop from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: I98076c6e23b69b2e59dcca9fbc35a3a9755e564c
2014-04-28VCL: Move InitFillColor from outdev.cxx to outdevstate.cxxChris Sherlock
Change-Id: Ia6752c8ab95fc5dc9846c939d1f8767f17f6ced6
2014-04-28fdo#78030 - Bitmaps are missing allover the UIThomas Arnhold
Original behavior was to call DrawBitmap without the size argument. case IMAGETYPE_BITMAP: { const Bitmap &rBitmap = *static_cast< Bitmap* >( rImage.mpImplData->mpData ); if( nStyle & IMAGE_DRAW_DISABLE ) DrawBitmapEx( rPos, makeDisabledBitmap(rBitmap) ); else DrawBitmap( rPos, rBitmap ); } break; A check of bIsValidSize is needed here, too. This brings the missing bitmaps back. Change-Id: I60582090a7543b3916b15675af1a5ec9ee216270
2014-04-28coverity#708631 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ie95fe7f64e9f60500748511aa1e55c430f0a6641
2014-04-28coverity#708630 Uninitialized scalar fieldCaolán McNamara
Change-Id: Iaab1985c5db6482578d66abf224248da38db1624
2014-04-28coverity#708629 Uninitialized scalar fieldCaolán McNamara
Change-Id: Ia570a267732a4f7d76f1873563f6db1eb884dc56
2014-04-28coverity#708627 Uninitialized scalar fieldCaolán McNamara
Change-Id: I729eab07b6de04be07e8495f28d14bcf1191e00d
2014-04-28coverity#708319 Uninitialized scalar fieldCaolán McNamara
Change-Id: I8f817ba8fc286979f666ad06f4fe21f4703b4652
2014-04-27OpenGLHelper: extract BGRA buffer -> BitmepEx conversionZolnai Tamás
Change-Id: I71edb2768d24f0c6686a9c94333447a5acc498b4
2014-04-27WaE: implicit conversion of literal of type 'sal_Bool' to 'bool'Tor Lillqvist
Change-Id: I259f3a192097fed449bbea28a18febccfd93db04
2014-04-28VCL: Renamed two functionsChris Sherlock
Renamed functions: + supportsOperation -> SupportsOperation For consistency + DrawAlphaBitmap -> DrawDeviceAlphaBitmap I want to make it more clear that these are the functions that call on mpGraphics to actually draw on the graphics device Change-Id: Ic4951bfcc0ac0c09fe5b6908dfdf1f699a634265
2014-04-28VCL: rename TryDrawPolyLineDirectNoAA to TryDrawPolyLineDirectNoAACheckChris Sherlock
Change-Id: I7355db3294f5aaa3b4f4bac802ba064724ad2214
2014-04-27VCL: complete reorganization of text and font functions in outdev.hxxChris Sherlock
Change-Id: I7dbd9ec79213d43acf6486a2507c8f0cfb47d943
2014-04-27VCL: rename OutputDevice::ImplInitFillColor and make it privateChris Sherlock
Change-Id: I01c0974d3a2f79cf3c6b9730ea306dcd49927a3c
2014-04-27VCL: OutputDevice::ImplRotatePosi, nOrientation param. should be shortChris Sherlock
Change-Id: Ie49b5b2c489619700f9cc34d9efb38454bcaff2c
2014-04-27VCL: rearrange functions in outdev/font.cxxChris Sherlock
Change-Id: I98977212547929ff59641f0b73273d68740420fd
2014-04-27VCL: rearrange font functions, move functions into OutputDeviceChris Sherlock
I have rearrange the various functions of OutputDevice to better group them in outdev.hxx. Also moved ImplRotatePos and ImplDrawWavePixel into the OutputDevice class. Change-Id: I0b384a4d094dffcfb3ee19c29562630cfb3a2167
2014-04-27VCL: MenuFloatingWindow::InitMenuClipRegion should be privateChris Sherlock
Change-Id: I8eace414ba07c188e435aa693331a60cf2aec246
2014-04-27VCL: remove unnecessary linebreaksChris Sherlock
Change-Id: Ice7a07337397d9808580c626df023fe39f535651
2014-04-27Fix mac build: explicitly check all platforms inside swapBuffersZolnai Tamás
Plus some cosmetics Change-Id: I42d989217a0b40a8a6a03c0ebc6c4aa14b34d387
2014-04-27First try to render OpenGL content in a windowZolnai Tamás
Change-Id: Ibb7178330d356806cea2cfc972b361167d5a9340
2014-04-27OpenGLContext: use generateWinData inside window initializationZolnai Tamás
Change-Id: I618dacceb88ddab1ca6d45a8669199354e4b6a6d
2014-04-27OpenGLContext: Provide all data for SystemChildWindow creation.Zolnai Tamás
Change-Id: I7a0ceee6c784af8240fb908f19622d4ede1f5a6a
2014-04-27vcl/outdev/*.cxx cosmetic clean-upNorbert Thiebaud
Change-Id: I967a50cf4fdde87efbcec990eab4f68570f27b94
2014-04-27avoid several 200ms delays in Qt testsLuboš Luňák
Since the tests are run during LO startup, this is not such a good idea. Also redo the socket notifier test which seems a bit of an overkill when a mere pipe will do (and I'm not sure TCP sockets would have the data available the moment it's written to). Change-Id: I6a436b286d20ceecf859f9028af98da03c2561b7
2014-04-26given the explanation of MenuFloatingWindow::InitClipRegion()...Caolán McNamara
should not be virtual then prior to 95711f5b9e7b6a982d1762d37d5a38e0f40b86f9 the menu ImplInitClipRegion had nothing to do with the outdev ImplInitClipRegion and so all the original ImplInitClipRegion calls here should now be routed to InitMenuClipRegion which was removed by "In fact InitMenuClipRegion() is unused" so restore that Change-Id: Id208b30561803ee774e10d44e19ed0808f824766
2014-04-26coverity#708651 Uninitialized pointer fieldCaolán McNamara
Change-Id: If2c5d406994902839c4c81a947fc46a06056fe90
2014-04-26fdo#74336 need to transform dash length / dot length / distanceTomaž Vajngerl
Dash length, dot length and distance also need to be world transformed to be compatible with device metrics. Change-Id: I57c04f5010006aaf8c1c32e0949cb39b7f2bc67d
2014-04-26In fact InitMenuClipRegion() is unusedTor Lillqvist
Change-Id: I5198baeb7b396bec2df991a94a57531f35b7a24b
2014-04-26work around LO blocking when asking for QClipboard's contents, helps fdo#35950Luboš Luňák
Specific to KDE4 vclplug and just a bit of a hack, but it's at least something. Change-Id: I4bf0f9c8e0b4f7faebaf010a06fcc4ff2e44fa6b
2014-04-26vcl: MenuFloatingWindow::InitClipRegion() should not be virtualMiklos Vajna
When OutputDevice's ImplInitClipRegion got marked as virtual, the compiler raised a warning about colliding method names in MenuFloatingWindow, and this got fixed by making the method virtual. But making it virtual just makes the warning go away, doesn't fix the real problem, that OutputDevice's ImplInitClipRegion() is no longer called, leading to strange missing text in the menus. In the meantime also ImplInitClipRegion() got renamed to InitClipRegion(). Fix the problem by renaming InitClipRegion() to InitMenuClipRegion() in MenuFloatingWindow. Regression from 95711f5b9e7b6a982d1762d37d5a38e0f40b86f9 (fdo#74702 Move ImplInitClipRegion Window code out of OutputDevice, 2014-04-25). Change-Id: Ibeb5e8e99bf4369b349ac44376a2c217786ef318