summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-09-30fdo#82577: Handle RegionNoel Grandin
Put the VCL Region class in the vcl namespace. Avoids clash with the X11 Region typedef. Change-Id: I6e008111df7cf37121fbc3eaabd44a8306338291
2014-09-30vcl: fixup last cleanupChris Sherlock
Change-Id: I628b50b3dd7914edcacb571ead226146455f62f1
2014-09-30vcl: cleanup vcl/inc/quartz/salgdi.hChris Sherlock
Change-Id: Ib34aa29bfa191efda8d31486a60ae0e607787387
2014-09-29vcl/osx: std::auto_ptr -> std::unique_ptrStephan Bergmann
Change-Id: If54aaffc6d88569220c4f1747926aae3199946b8
2014-09-29fdo#59299 Personas for bottom toolbarsMichael Jaumann
Change-Id: If823964bf3bb67563504db61b6c5d557cab89243 Reviewed-on: https://gerrit.libreoffice.org/11609 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-29vcl: std::auto_ptr -> std::unique_ptrStephan Bergmann
Change-Id: I5a08186b465b15311c63784506a0ca0e119286e2
2014-09-29vcl: use WT_EXECUTEINTIMERTHREAD for Timer QueueMichael Stahl
Currently the timer callback is running on a separate thread, but that is unnecessary since it just does a PostMessage(). Every thread stack stack mysteriously eats 10M of VM apparently despite dumpbin -headers soffice.bin: "989680 size of stack reserve, 1000 size of stack commit" Change-Id: I6eac3f6fa45939cd5dbb3dfbec61f9a504bdaa8b
2014-09-29loplugin: cstylecastNoel Grandin
Change-Id: I58ec00d6f8a4cc6188877db1330c5e32c9db12e5
2014-09-29Avoid deadlock in a convoluted situation with an IME and a URP clientJan Holesovsky
Change-Id: I0338d1c68fe6be8793777a3a238c750560bcf7fe
2014-09-28border_width from 12 to 6, as the rest of dialogsAdolfo Jayme Barrientos
Second pass. Change-Id: Ic4702d2ca7a9d54ee4712dcd073006f16b2d5d1d Reviewed-on: https://gerrit.libreoffice.org/11669 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-28Avoid leaking dbus objectsMatthew J. Francis
Change-Id: Ifb6a7bb3867bba293fd256c87998528a90053507 Reviewed-on: https://gerrit.libreoffice.org/11678 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-26vcl: restore that cast for MSVCMichael Stahl
Change-Id: I8a8b4b16811660290c881f82b3cf9b910d054215
2014-09-26remove unnecessary casts in calls to SvStream.WriteUInt32Noel Grandin
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I1d848f19f82783e6eabf2da37dbde78fe36ea1e0
2014-09-26remove unnecessary casts in calls to SvStream.WriteInt32Noel Grandin
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I0c0172519479be0535a447e41a592fbf782751bd
2014-09-26remove unnecessary casts in calls to SvStream.WriteUInt16Noel Grandin
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I482ca7abb84613971e7e8f839f7aa67a65cd71ff
2014-09-26remove unnecessary casts in calls to SvStream.WriteInt16Noel Grandin
left over from our conversion of the SvStream output operators to more specific methods Change-Id: Ie44bec6b988f3e46fe78d14b740818c9141f5df0
2014-09-26remove unnecessary casts in calls to SvStream.WriteUCharNoel Grandin
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I2ea4c7d97e745b3e6a3834f41ac7bfefa4883c7a
2014-09-26remove pointless commentsNoel Grandin
Change-Id: I8edfe830b8f6ca7f1809332870e06d1d286b90e8
2014-09-26remove unnecessary casts'sNoel Grandin
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I63f18be8e940098c2acbbc73ee49ede3a949fcb2
2014-09-26remove unnecessary static_cast'sNoel Grandin
left over from our conversion of the SvStream output operators to more specific methods e Please enter the commit message for your changes. Lines starting Change-Id: Ibfe7635451ef7b8813d7a59c78c5223092a17ad5
2014-09-25vcl: try to make clang tinderbox happy about new timer testMichael Stahl
Change-Id: I15ae1693e92e430c78b5d73c12a7bae297c098bb
2014-09-25fdo#84000: Sort out problems with short timeouts & long callbacks.Jan Holesovsky
Previously, the timer events could have accumulated in that scenario leading to unresponsiveness to user events. Change-Id: I455d726ae7475f7dbf98d871c54d8c156cb64e52
2014-09-25vcl: avoid crashes from Timer Queues on shutdownMichael Stahl
The timer callback SalTimerProc can be called after DeInitVCL has deleted the SalInstance, and crash. Avoid that by calling WinSalTimer::Stop() and also using the INVALID_HANDLE_VALUE parameter which waits until the timer callback is done executing. Change-Id: Ia4cf2cf9dc48904d077e0a691e14107256c50ded
2014-09-25use SAL_OVERRIDE for WinSalTimerMichael Stahl
... and no, we do not "overload" virtual methods. Change-Id: Iff7c46326974995994e966873ff804092bc53540
2014-09-25mhPrevInst was pointlessTor Lillqvist
Change-Id: Iacd1c0856f991e11ef26d7ff6bf1e75264b89ac9
2014-09-25Bin pointless single-line wrappers of Win32 APITor Lillqvist
Change-Id: I9c56dbee65c93dd98344577d9e696dc61c1edbd8
2014-09-25Follow-up to fdo#84138: Add YIELD_GUARD here, too, fixes another crashTor Lillqvist
Change-Id: If4de88233493d7590736e4a3b76c2447ed429ae5
2014-09-25fdo#84138 Add missing YIELD_GUARD to fix an input method crashMatthew J. Francis
Change-Id: Iecf69c29a4574105a33ec003970067d4db823423
2014-09-25Related: fdo#83010 implement wrapping on reaching NumericFormatter limitsCaolán McNamara
Change-Id: Ia88671cb71a0bcf8cb55ae0d88625b0f28092615
2014-09-25Related: fdo#83010 move NumericFormatter clipping to min/max into one placeCaolán McNamara
Change-Id: I60cfe651a6ec25fc7e482192d908acca25c1ad8b
2014-09-25coverity#1240250 Buffer not null terminatedCaolán McNamara
doesn't matter in practice Change-Id: I410022a395d25827217b9c542d79718f6f5b333d
2014-09-25coverity#1147661 Uninitialized scalar valueCaolán McNamara
Change-Id: I7a225287c9ca2f14d2e8da15380c541148d1a15f
2014-09-25fdo#84000 - unit test timers / main-loop bits.Michael Meeks
At least test Unix platforms. Change-Id: I960343cb9622474fe48687a5e458e1c6dbe55358
2014-09-25Fix miscellaneous memory leaksMatthew J. Francis
thumbnailview.cxx: ::ImplInitSettings is called from various places other than the constructor, so mpItemAttrs must be freed each time gloactiongroup.cxx: Must call g_list_free on list returned by g_hash_table_get_keys Change-Id: Id5a592520987a1596debdbc48bfa171a537e400b Reviewed-on: https://gerrit.libreoffice.org/11638 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-25coverity#1241396 Uninitialized pointer fieldCaolán McNamara
Change-Id: Ib9c38ae857125036252ba27ebd03f428046724e0
2014-09-25nHighlightedItem only ever set, never readCaolán McNamara
Change-Id: Ie4b1517e41e09df3c243b6d4ff124f50777e8bc0
2014-09-25fdo#75757: remove inheritance to std::vectorTakeshi Abe
Glyphs::iterator_pair_t was gone at df3c7e76cca60d246277731d0c525d5f7e6f6597. Change-Id: I471a2ef659dd98527d2dca5fd8c3741851341ec5 Reviewed-on: https://gerrit.libreoffice.org/11533 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-24add test case for EDB-34720Caolán McNamara
Change-Id: I9ef73811b93dfff502a2430a1e3e9aa3b46c9935
2014-09-24vcl button: Allow automatic handling of UNO commands (like .uno:Something).Jan Holesovsky
Change-Id: I71c00286dde2e5a01a7a592305c1790f1ed63a93
2014-09-23fdo#84000 - unwind recursive timer issues.Michael Meeks
Seemingly timers were not being issued or re-queued. Handle recursion issues in the main thread, not in the timer thread. Change-Id: I4f49341115bb7c7b1613e61f77a467154818a8aa
2014-09-23fdo#84000: Reimplement the Windows WinSalTimer using Timer Queues.Jan Holesovsky
Timer Queues http://msdn.microsoft.com/en-us/library/windows/desktop/ms686796%28v=vs.85%29.aspx allow creating & maintaing high-precision timers. This commit switches the WinSalTimer implementation from using the Timers: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644900%28v=vs.85%29.aspx to Timer Queue Timers. The 'classic' Timers do not have better precision than some 15.6ms (the documentation mentions 10ms, but some measuring seems to confirm that it is more than that). With the Timer Queue Timers, we now have 1ms precision. Incorporates some cleanup from Michael Meeks <michael.meeks@collabora.com>. Change-Id: I0312a0c9fdc2779258698b24389b24c39e643473
2014-09-23Fix memory leaksMatthew J. Francis
Change-Id: I7cd727657a9e426a43f72d1c5b843e581cfe8c5d Reviewed-on: https://gerrit.libreoffice.org/11608 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-09-23fix OSX buildNoel Grandin
after my commit 827c46e "fdo#82577: Handle Window" Change-Id: I945849d7b95988162785eea6831da0f761514bb4
2014-09-23fdo#82577: Handle WindowNoel Grandin
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-22vcl: Allow creation of button content from action name (.uno: commands).Jan Holesovsky
Change-Id: If4b2aef59d45a848fb77de9e1b7bf80d49548a75
2014-09-22fdo#84086 Fix assorted use-after-free bugsMatthew J. Francis
Change-Id: Iec004fffdb0afbe27bd69f379db90f6d904a8a65 Reviewed-on: https://gerrit.libreoffice.org/11553 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-22fdo#62104 Optimize thumbnail size by using PNG8 and other tricksTomaž Vajngerl
Change-Id: I54ece4a1977fe93c0e7bbb11774bd8657912c6bb
2014-09-22Convenient function to compress a Graphic to PNG imageTomaž Vajngerl
Change-Id: I3d30dd4337b6bd3b5b0c7cdf97a8787c4bc37fa3
2014-09-21set mpFirstBand back to 0 after deleting itCaolán McNamara
bff + valgrind ==30470== Invalid read of size 8 ==30470== at 0xA02103F: RegionBand::isSingleRectangle() const (regionband.cxx:294) ==30470== by 0xA01F562: WriteRegion(SvStream&, Region const&) (region.cxx:1640) ==30470== by 0x9F01FD4: MetaClipRegionAction::Write(SvStream&, ImplMetaWriteData*) (metaact.cxx:2487) ... ==30470== Address 0x1d175980 is 0 bytes inside a block of size 56 free'd ==30470== at 0x4A07991: operator delete(void*) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==30470== by 0xA020BB1: RegionBand::implReset() (regionband.cxx:87) ==30470== by 0xA020EF2: RegionBand::load(SvStream&) (regionband.cxx:249) Change-Id: I2468d43c7e73b3390f355358990f8af30b5f026e
2014-09-21WB_OWNERDRAWDECORATION is needed by toolbar popupsMaxim Monastirsky
Can be tested with the new color popup. Without this change it keeps itself on top of other windows, and even if the main window lost focus. Also for some vcl plugins the popup have a wrong placement. Change-Id: Ibf4216683ce2c58a1b919cdb63eda964a764eefd