summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
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
2014-04-26coverity#708654 Uninitialized pointer fieldCaolán McNamara
Change-Id: Ic342d785746280b6c75d237cfafc83a42786ec7f
2014-04-26annoying inlines and formattingCaolán McNamara
Change-Id: I4a664c1c71a5aab183e7441dcdbcdb8b769fb996
2014-04-26coverity#738920 Uninitialized scalar fieldCaolán McNamara
Change-Id: I4796075c4727d30178bb6c7d0752e87ab22c36cf
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-26Toolbar overflow/context menu: keep ordering and don't discard separator.Andrzej Hunt
Previously the overflow/context menu should have had a separator shown between the overflow items and the hidden items, however these were inadvertently removed by ImplClearPopupMenu which filters the items before the menu is displayed. The previous ordering of items was also the REVERSE of the ordering in the toolbar -- the overflow menu is a logical extension of the toolbar hence items should be in the same order as they were in the toolbar. Change-Id: I8444f4814fea64be1d8f8790445ad6aa01532e70
2014-04-25coverity#735656 Division or modulo by zeroCaolán McNamara
Change-Id: I846f5f10649e2f12bac763c87e88cd55135f3d00
2014-04-25Revert "give empty constructed default font a default height"Caolán McNamara
and make a real copy of the TargetFont the 0,0 font size appears to mean "default" size so it can take the desktop env font size or some such, with a hard-coded value then the various "bold" entries in the UI are huge This reverts commit 121aac37673c1a8142db01e26e50be6de7b36987. Change-Id: Iec1d3867403808370d89d6b5ad2fec60ffdcd881
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-25add better info on the Qt patches needed for KFileDialogLuboš Luňák
Change-Id: I1902f962ac03b171c5e7a45d9c8e59450b04418f
2014-04-25disable KFileDialog usage if QClipboard can recurseLuboš Luňák
Change-Id: If23a365b96c1634c2f8940f6ece973089dc3151f
2014-04-25fix Qt4 QSocketNotifier configure checkLuboš Luňák
When built as a part of the configure check, this doesn't know SAL_OVERRIDE. Change-Id: I1420dd50efdd6666f246884f286a3f29e0b56a2c
2014-04-25make sure KFileDialog does not leave the SolarMutex releasedLuboš Luňák
Change-Id: I806bf5fe1cd1871de499ceeeadf36de539e9d637
2014-04-25Revert "Rewrite Qt4 based nested yield mutex locking."Luboš Luňák
In a dbgutil build LO aborts on an assertion failure the moment KFileDialog is open. It's definitely on okay to release SolarMutex just like that, since the Qt event loop is integrated with LO's, it'll call back to LO code without the mutex held. This reverts commit 13a34f4c6307d1bd2443cbf3fbd83bfdd8cdbafb. Conflicts: vcl/unx/kde4/KDE4FilePicker.cxx vcl/unx/kde4/KDEXLib.cxx Change-Id: Idfa27fbb4728b529c37c25f710ea208fdaa4455c
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#77089 if available, use ext. dimensions for non-placable WMFTomaž Vajngerl
Change-Id: Idcfaa127ed6abed40d6eec7f81fbbfb36658cc91
2014-04-24fdo#77089 if font width 0, pass 0 - don't take it from font metricTomaž Vajngerl
Change-Id: I6c73da1d2470e75774affda836a8d587eebfbe4b
2014-04-24fdo#74336 wrongly transformed line width - use 0 for heightTomaž Vajngerl
Change-Id: I3915cfabb9568480d74ea6d4e459def6fe912eb9
2014-04-24wmf: support fat lines for PolyPolygons in wmf filterTomaž Vajngerl
Change-Id: I9fe9d7b5237031e3001f64af7001d91fa53f1c64
2014-04-24wmf: cleanup winmtf.cxxTomaž Vajngerl
Change-Id: Ib69a5d651dfffa4ebe4806a1836d78b09103188e
2014-04-24wmf: cleanup winwmf.cxxTomaž Vajngerl
Change-Id: Iac28bea6f7ae7d83e48945ac34807d9db8f71caf
2014-04-25Change ImplInitClipRegion to InitClipRegion in menu.(c|h)xxChris Sherlock
Change-Id: If9d3d92c4ceb11a3a49cb8d59e9e40bbebf737f5
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-24WaE: overriding virtual function declaration not marked 'override'Tor Lillqvist
Change-Id: I1a7172cb9b2663b84874b3c3f277fb3b3786c7a4
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-25VCL: Rename ImplReleaseGraphics to ReleaseGraphics, change to protectedChris Sherlock
Change-Id: Iff4198fdd51db787461b897f2d9d8b7640dbf772
2014-04-24vcl-quartz: fix build of recently introduced DrawTextSpecial for OSX<10.6Douglas Mencken
Change-Id: I277d9e2f385b712001385e115b22f6fbb8106ae5 Reviewed-on: https://gerrit.libreoffice.org/8790 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-04-24Related: #i124686# give empty constructed default font a default heightArmin Le Grand
(cherry picked from commit 4a7c54e07713f02a5658471e4aa9163de53f7460) Change-Id: Iaff17eb95d1ad1e1b9bca4388b03703899d9a0db
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