summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2013-04-19remove unused component_canUnload functionsMatúš Kukan
Change-Id: Id3f41e2a620c47bb848718d0fc994739be2d64fc
2013-04-19Make Application::PostZoomEvent() and PostScrollEvent() non-DESKTOP onlyTor Lillqvist
That is where they are used anyway. Avoids misleading entries in unusedcode.easy. Change-Id: I2ce06ebca55998dc1df7df1f40b08b496adfbc64
2013-04-19lp#1085169: we overactivate here, as it does not seem to hurtBjoern Michaelsen
Change-Id: I4f6e76347c5c9b5c67a09b8c3dcd1b1708e8e703
2013-04-19Resolves: coverity#708649# start to fix mis-pimpl-ification of Window classHerbert Dürr
(cherry picked from commit b0a0253e4fea1d79bc255d45f8472498a3206fd5) Conflicts: vcl/source/window/window.cxx Change-Id: I8330b7361dfdd9f291babb2e49d59ddeb91f5e35
2013-04-19fdo#31082 cursor visible during impress presentationjorendc
Change-Id: I8983676244d0b996c237cbfc487ed68a535803d1 Reviewed-on: https://gerrit.libreoffice.org/3376 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-19Do not arbitrarily lock a mutexStephan Bergmann
...without unlocking it again. This nonsense /does/ cause deadlocks and hours of frustrated debugging on --enable-dbgutil Mac OS X, e.g., after this code is called as 0 VirtualDevice::~VirtualDevice (this=0xa363200) at lo/core/vcl/source/gdi/virdev.cxx:187 1 0x05541677 in VirtualDevice::~VirtualDevice (this=0xa363200) at lo/core/vcl/source/gdi/virdev.cxx:182 2 0x0554164a in VirtualDevice::~VirtualDevice (this=0xa363200) at lo/core/vcl/source/gdi/virdev.cxx:182 3 0x05646a76 in StatusBar::~StatusBar (this=0xa362f10) at lo/core/vcl/source/window/status.cxx:176 4 0x05646947 in StatusBar::~StatusBar (this=0xa362f10) at lo/core/vcl/source/window/status.cxx:168 5 0x0564691a in StatusBar::~StatusBar (this=0xa362f10) at lo/core/vcl/source/window/status.cxx:168 6 0x0396cf2f in VCLXDevice::DestroyOutputDevice (this=0x390356cc) at lo/core/toolkit/source/awt/vclxdevice.cxx:56 7 0x039d4345 in VCLXWindow::dispose (this=0x390356cc) at lo/core/toolkit/source/awt/vclxwindow.cxx:956 8 0x039d452c in non-virtual thunk to VCLXWindow::dispose() (this=0x390356f8) at lo/core/toolkit/source/awt/vclxwindow.cxx:976 9 0x10dc6126 in framework::ProgressBarWrapper::setStatusBar (this=0x39002aac, rStatusBar=@0xb122e050, bOwnsInstance=0) at lo/core/framework/source/uielement/progressbarwrapper.cxx:63 10 0x10c17c84 in framework::LayoutManager::implts_backupProgressBarWrapper (this=0x19582c48) at lo/core/framework/source/layoutmanager/layoutmanager.cxx:943 11 0x10c16ca7 in framework::LayoutManager::implts_destroyProgressBar (this=0x19582c48) at lo/core/framework/source/layoutmanager/layoutmanager.cxx:959 12 0x10c13928 in framework::LayoutManager::implts_destroyStatusBar (this=0x19582c48) at lo/core/framework/source/layoutmanager/layoutmanager.cxx:837 13 0x10c135cb in framework::LayoutManager::implts_destroyElements (this=0x19582c48) at lo/core/framework/source/layoutmanager/layoutmanager.cxx:446 14 0x10c1a022 in framework::LayoutManager::setDockingAreaAcceptor (this=0x19582c48, xDockingAreaAcceptor=@0xb122e318) at lo/core/framework/source/layoutmanager/layoutmanager.cxx:1344 15 0x10c1b199 in non-virtual thunk to framework::LayoutManager::setDockingAreaAcceptor(com::sun::star::uno::Reference<com::sun::star::ui::XDockingAreaAcceptor> const&) (this=0x19582c60, xDockingAreaAcceptor=@0xb122e318) at lo/core/framework/source/layoutmanager/layoutmanager.cxx:1363 16 0x10cc26fb in framework::lcl_disableLayoutManager (xLayoutManager=@0x39013338, xFrame=@0xb122e3d8) at lo/core/framework/source/services/frame.cxx:505 17 0x10cca452 in framework::Frame::dispose (this=0x3901320c) at lo/core/framework/source/services/frame.cxx:1851 18 0x10cc925e in framework::Frame::close (this=0x3901320c, bDeliverOwnership=1) at lo/core/framework/source/services/frame.cxx:1644 19 0x10cc933b in non-virtual thunk to framework::Frame::close(unsigned char) (this=0x39013238, bDeliverOwnership=1) at lo/core/framework/source/services/frame.cxx:1645 20 0x0cfb07ad in (anonymous namespace)::callVirtualMethod (pAdjustedThisPtr=0x39013238, nVtableIndex=5, pRegisterReturn=0x0, pReturnTypeDescr=0xa03e240, bSimpleReturn=true, pStackLongs=0xb122e610, nStackLongs=2) at lo/core/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx:75 21 0x0cfb01aa in (anonymous namespace)::cpp_call (pThis=0x179e2b20, aVtableSlot={offset = 0, index = 5}, pReturnTypeRef=0xa03e240, nParams=1, pParams=0x179ec9e0, pUnoReturn=0x0, pUnoArgs=0xa3652a0, ppUnoExc=0xb122eaac) at lo/core/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx:270 22 0x0cfaf785 in bridges::cpp_uno::shared::unoInterfaceProxyDispatch (pUnoI=0x179e2b20, pMemberDescr=0x179ed690, pReturn=0x0, pArgs=0xa3652a0, ppException=0xb122eaac) at lo/core/bridges/source/cpp_uno/gcc3_macosx_intel/uno2cpp.cxx:461 23 0x10817d68 in binaryurp::IncomingRequest::execute_throw (this=0x179edf90, returnValue=0xb122ed58, outArguments=0xb122ed48) at lo/core/binaryurp/source/incomingrequest.cxx:245 24 0x10816293 in binaryurp::IncomingRequest::execute (this=0x179edf90) at lo/core/binaryurp/source/incomingrequest.cxx:74 25 0x10829105 in request (pThreadSpecificData=0x179edf90) at lo/core/binaryurp/source/reader.cxx:85 26 0x00bc39fe in cppu_threadpool::JobQueue::enter (this=0x179db470, nDisposeId=171320704, bReturnWhenNoJob=1) at lo/core/cppu/source/threadpool/jobqueue.cxx:115 27 0x00bc67f1 in cppu_threadpool::ORequestThread::run (this=0xa362580) at lo/core/cppu/source/threadpool/thread.cxx:171 28 0x00bc698c in non-virtual thunk to cppu_threadpool::ORequestThread::run() (this=0xa362588) at lo/core/cppu/source/threadpool/thread.cxx:201 29 0x00bc81ad in threadFunc (param=0xa362588) at thread.hxx:187 30 0x00016f4c in osl_thread_start_Impl (pData=0xa362030) at lo/core/sal/osl/unx/thread.c:251 31 0x9560eed9 in _pthread_start () 32 0x956126de in thread_start () in JunitTest_extensions_unoapi; but it is also called regularly when running a plain backing-windows soffice instance, 0 VirtualDevice::~VirtualDevice (this=0xbfff7a60) at lo/core/vcl/source/gdi/virdev.cxx:187 1 0x05541677 in VirtualDevice::~VirtualDevice (this=0xbfff7a60) at lo/core/vcl/source/gdi/virdev.cxx:182 2 0x10ca4f3d in framework::BackingWindow::Paint (this=0xa9da800) at lo/core/framework/source/services/backingwindow.cxx:699 3 0x05698dd8 in Window::ImplCallPaint (this=0xa9da800, pRegion=0x179d55c0, nPaintFlags=60) at lo/core/vcl/source/window/window.cxx:2462 4 0x05698f4b in Window::ImplCallPaint (this=0xa08dad0, pRegion=0x179c7270, nPaintFlags=60) at lo/core/vcl/source/window/window.cxx:2486 5 0x05698f4b in Window::ImplCallPaint (this=0xa08dd90, pRegion=0x0, nPaintFlags=60) at lo/core/vcl/source/window/window.cxx:2486 6 0x0569a141 in Window::Update (this=0xa08dd90) at lo/core/vcl/source/window/window.cxx:7505 7 0x056c9881 in ImplHandlePaint (pWindow=0xa08dd90, rBoundRect=@0xbfff8198, bImmediateUpdate=true) at lo/core/vcl/source/window/winproc.cxx:1575 8 0x056c6e88 in ImplWindowFrameProc (pWindow=0xa08dd90, nEvent=8, pEvent=0xbfff82a0) at lo/core/vcl/source/window/winproc.cxx:2484 9 0x056f33a6 in SalFrame::CallCallback (this=0xa08e050, nEvent=8, pEvent=0xbfff82a0) at salframe.hxx:243 10 0x05727a93 in AquaSalFrame::SendPaintEvent (this=0xa08e050, pRect=0x0) at lo/core/vcl/aqua/source/window/salframe.cxx:423 11 0x057678d3 in -[SalFrameWindow windowDidBecomeKey:] (self=0xa08e130, _cmd=0x9402b075, pNotification=0x179d5240) at lo/core/vcl/aqua/source/window/salframeview.mm:227 12 0x9b556df1 in __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 () 13 0x996ba903 in ___CFXNotificationPost_block_invoke_1 () 14 0x99685688 in _CFXNotificationPost () 15 0x9b541fde in -[NSNotificationCenter postNotificationName:object:userInfo:] () 16 0x9b557272 in -[NSNotificationCenter postNotificationName:object:] () 17 0x937deec5 in -[NSWindow becomeKeyWindow] () 18 0x9374af4d in _NXSendWindowNotification () 19 0x937de618 in _NXShowKeyAndMain () 20 0x9374477d in -[NSApplication sendEvent:] () 21 0x0575388d in -[VCL_NSApplication sendEvent:] (self=0xa02d120, _cmd=0x94126a08, pEvent=0x179c8430) at lo/core/vcl/aqua/source/app/vclnsapp.mm:208 22 0x056f081e in AquaSalInstance::Yield (this=0xa315ff0, bWait=true, bHandleAllCurrentEvents=false) at lo/core/vcl/aqua/source/app/salinst.cxx:695 23 0x050acee2 in ImplYield (i_bWait=true, i_bAllEvents=false) at lo/core/vcl/source/app/svapp.cxx:422 24 0x050a81be in Application::Yield (i_bAllEvents=false) at lo/core/vcl/source/app/svapp.cxx:456 25 0x050a817a in Application::Execute () at lo/core/vcl/source/app/svapp.cxx:401 26 0x00124a3a in desktop::Desktop::Main (this=0xbfff95e0) at lo/core/desktop/source/app/app.cxx:1736 27 0x050b8934 in ImplSVMain () at lo/core/vcl/source/app/svmain.cxx:162 28 0x056eff73 in AquaSalInstance::handleAppDefinedEvent (pEvent=0xa324b20) at lo/core/vcl/aqua/source/app/salinst.cxx:538 29 0x05752faf in -[VCL_NSApplication sendEvent:] (self=0xa02d120, _cmd=0x94126a08, pEvent=0xa324b20) at lo/core/vcl/aqua/source/app/vclnsapp.mm:60 30 0x936d6b21 in -[NSApplication run] () 31 0x93967ac5 in NSApplicationMain () 32 0x056eec96 in ImplSVMainHook (pnInit=0xbfff9580) at lo/core/vcl/aqua/source/app/salinst.cxx:231 33 0x050b9ea1 in SVMain () at lo/core/vcl/source/app/svmain.cxx:195 34 0x0018e01d in soffice_main () at lo/core/desktop/source/app/sofficemain.cxx:82 35 0x00001f5b in sal_main () at lo/core/desktop/source/app/main.c:48 36 0x00001f40 in main (argc=5, argv=0xbfff966c) at lo/core/desktop/source/app/main.c:47 Whatever the root problem behind 8ed93fef13be39815b452474e9e44bf8b6861ea3 "We need to acquire the yield mutex here," please fix it properly instead. Change-Id: I281da60de1471f702ca34fd2b3239b6da83e2cf9
2013-04-19Add pan gesture handlingTor Lillqvist
I get exactly the same kind of artefacts as in the Android app, which I guess is good as it is at least consistent, as the implementation at the LO layer is identical... Change-Id: Icf0690fd2c48a133cb66de2ab7977b7088d2199e
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-18Related: rhbz#761009 lp#766153 lp#892904 HandleFontOptions crashCaolán McNamara
The mpServerFont member of a ImplServerFontEntry must not be deleted while the ImplServerFontEntry still exists see also 39cbce553da1834f78b77f48b2f1be9578d6cc05 for another reason a crash in the same place can happen. Its impossible from traces in crashes before 39cbce553da1834f78b77f48b2f1be9578d6cc05 was fixed to distinguish those crashes from this crash. This crash is a regression due to 7a416820ab5e03f8b988656e0f6a592cb1e81d07 where we went from modifying pServerFont in X11SalGraphics::setFont directly to modifying it/a-different-one indirectly via ImplServerFontEntry The various font caches and font thing lifecycles of LibreOffice are somewhat confusing. This crash had eluded me for years, to reproduce: insert->special chars->select a font with loads of glyphs, i.e. "AR PL UKai CN" click on the first row of glyphs and hold down page-down until you hit the bottom, then page-up until you hit the top. Pre patch it won't survive the whole down+up (and valgrind will moan quite a bit) Change-Id: Ifde0cb375f487c556b04a640d77765a7dc2f0913
2013-04-18allow tree and tab boxes to have borders via .uiCaolán McNamara
Change-Id: I988f307d2ce88ac5f7e1ee7d7c5cffd352c963e0
2013-04-17Adapt to gtkframe -> gtksalframe renameStephan Bergmann
Change-Id: I2a464208081b42a577aafbe321d9662007208d77
2013-04-17some more debug infoBjoern Michaelsen
Change-Id: Icabdaab665ac969c9ba6240d2e825d1e62776249
2013-04-17move gtkframe to gtksalframe to match class nameBjoern Michaelsen
2013-04-17MSC needs those min/max macros after allStephan Bergmann
...otherwise, it will fail with "c:\program files\microsoft sdks\windows\v7.1\include\GdiplusTypes.h(470) : error C3861: 'min': identifier not found" errors. Change-Id: Ib81ab7f5357b1f980202b63b144296fa252b71b1
2013-04-17MSC needs those min/max macros after allStephan Bergmann
...otherwise, it will fail with "c:\program files\microsoft sdks\windows\v7.1\include\GdiplusTypes.h(470) : error C3861: 'min': identifier not found" errors. Change-Id: Ie58a5e85e6712e4244ce4799c203b31a717a91e6
2013-04-17fdo#62096 - replace some O(U)String compareTo with ==Artur Dryomov
Change-Id: I98d04d7da4c2b7ea0b769df9c2bfa8c1ad86bf2d Reviewed-on: https://gerrit.libreoffice.org/3422 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-17Update pchAurimas Fišeras
Change-Id: Ice80350184f7a514d5beab0a5e1da5b98d5733e4 Reviewed-on: https://gerrit.libreoffice.org/3427 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-17-Werror=unused-macros (MinGW, vcl)Stephan Bergmann
Change-Id: I2a3b5ad429e7bcc60dc50635a48feb6037b0001e
2013-04-16Move {pre,post}x.h to where {pre,post}mac.h and {pre,post}win.h areTor Lillqvist
Change-Id: I561aa6cc1de7ed6128d25c82cd493d5d5718e052
2013-04-16fdo#39468 Translate German comments V2 - vcl/source/edit/{textdata, textdoc}Christian M. Heller
made the changes suggested by Thomas and Petr Change-Id: I0f9e8dcda27a714628edaa5e1e8fd875c8f67593 Reviewed-on: https://gerrit.libreoffice.org/3162 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-04-16More orientation experimentation and hackingTor Lillqvist
Now it re-orients and re-sizes the LO "frame" correctly upon rotation, but it still starts wrongly if starting in landscape orientation. Change-Id: I4c12a7e00d687391435a47400b6e8b4c7e49bdda
2013-04-16Try to propagate display size change to LOTor Lillqvist
Change-Id: If52c0aa9290c377c08f2cec8c9e36d987c0ed9b6
2013-04-16What makes Andale Sans UI a suitable cross-platform fallback font?Tor Lillqvist
Change-Id: Ice34e9b92bde470746f37dc9216ea2b52695df99
2013-04-15basic inplace Font preview for calcNoel Power
Change-Id: Ic1e6c953852a6106ee94f0b577ed398d62aa2285
2013-04-15properly prefix graphic filter methodsPeter Foley
Change-Id: I1d14e2330447e446ab35832d03220c71ee326866
2013-04-15AquaA11yTextAttributesWrapper: trigraphs confuse llvm-g++ 4.2.1Michael Stahl
Change-Id: Ic45a2219c8352625f40619373f5828b981864fef
2013-04-15fdo#61688 SIGABRT with debug build in VclBuilder::handleChildTerrence Enger
reverse commit e0dd0e821b9b29e7489e0a17f7c43ef45c0941e9 as commit 8c4f20938bc5d4013126a00a02e8eca80b250284 is a better fix Change-Id: I4951f19161e6cc92a1297ad17b7cc1fe9c76df0b
2013-04-15fdo#60724 correct spellingThomas Arnhold
Change-Id: I3d978cb657647b4a4e9709258c6a6a4ac1d339a9
2013-04-15fdo#60724 successfull -> successfulThomas Arnhold
Change-Id: I287bef5b7f2baf5aaaab47141267ae2cadfe2451
2013-04-15fdo#60724 correct spellingThomas Arnhold
Change-Id: Ieb653adbd0cb4371ec5db57e70bcc551872f647f
2013-04-15fdo#60724 correct spellingThomas Arnhold
Change-Id: I7318a9f4f3410edf4dbe67bf08f31682fcb4edc7
2013-04-14Resolves: #i120096# Detect empty polygon in Region constructor...Andre Fischer
and set impl object accordingly. Reported by: Du Jing Fixed by: Andre Fischer (cherry picked from commit dbd0cea6052c5198fc960883830c3daebb989a4c) Change-Id: I210ec0e696e673309aad64a1e157e207bea10a66
2013-04-14Resolves: #i119735# missing css.svg.SVGWriter when using GraphicProviderArmin Le Grand
missing implementation for com.sun.star.svg.SVGWriter when using GraphicProvider Adapted patch provided by Sven Jacobi (thanks), added some fixes/cleanups to make it work with all kind of graphics (SVG, Bitmap, Metafile) (cherry picked from commit 891011181285d7ad54984ffd05ed44d825a70647) Conflicts: filter/inc/filter/msfilter/msdffimp.hxx filter/source/graphicfilter/epict/epict.cxx filter/source/svg/svgexport.cxx filter/source/svg/svguno.cxx filter/source/svg/svgwriter.cxx filter/source/svg/svgwriter.hxx svtools/source/filter/filter.cxx Change-Id: Ie53f995614060a00c709f620f89d132913a25c5c
2013-04-14Add lo_keyboard_input()Tor Lillqvist
Change-Id: I5904f673de9854af47eefac2f192295a281c5525
2013-04-13Add experimental lo_keyboard_did_hide() implementationTor Lillqvist
Change-Id: I24a7449848710c0e09a4bf0da0d906d30a59f0bd
2013-04-12Resolves: #i119965# Fixed saving slides where temporary files...Andre Fischer
of background images were deleted outside the office. Patch by: Steve Yin Review by: Andre Fischer (cherry picked from commit 2809da479a141ad2c5c90624edf411ac2ec04597) Change-Id: I30318ef05408eb397cb26a0d433d265de90a6e74
2013-04-12AlphaMask derives from Bitmap so their destructors should be virtualHerbert Dürr
(cherry picked from commit 846a7425314d1782bae3b517d1394a46ff980256) Conflicts: vcl/inc/vcl/alpha.hxx vcl/inc/vcl/bitmap.hxx Change-Id: I8bf83e2edde33f9aee50a7feffe18bcb5c352dd4 Notes: merged as: d859e54534994d2e6f0c62e7711fa674406f8e22
2013-04-12fdo#60690 - Remove all calls t GTK_YIELD_GRAB because it does nothing.vjinoch
Change-Id: I76e76ec5fc85d8e1fd673a45b3e54163ca7643f3
2013-04-12document VclContainer a bitCaolán McNamara
Change-Id: Ib00a0ab1c2e382547041137c11f8955140b8113d
2013-04-12fix embarassing mess up around gtk+ version detection.Michael Meeks
Change-Id: I5a24235f5bb6791f64ba752b01cf185e7a7287cb
2013-04-12Start implementing on-demand keyboard display for non-DESKTOPTor Lillqvist
Change-Id: I9321dcf9d863cb59eee9b2a012d887a17cb1b454
2013-04-12fdo#60690 - a little more cleanup of gtk+ mutex bits.Michael Meeks
Change-Id: I020d6f59751aef0bfb06667317ddcaf2965395d1
2013-04-12-Werror=unusedStephan Bergmann
Change-Id: Icab9990a1e4bcbd709f63cb5ef24358441cced8d
2013-04-12Remove GtkHookedYieldMutex and some small changes.vjinoch
Change-Id: Id84a5eaa4cea4c7cce9aa873c1a7c286e5d5cc92 Reviewed-on: https://gerrit.libreoffice.org/3349 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-04-12Remove code marked by HORRIBLE_OBSOLETE_YIELDMUTEX_IMPL tag.vjinoch
Change-Id: Ib87e3a5155176a6ce0531e04b08a2731a9c956a7 Reviewed-on: https://gerrit.libreoffice.org/3289 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-04-12Turn off subpixel positioning for nowTor Lillqvist
Change-Id: Id8b9bec79e5673db738e16905eacd8e84cea89e1
2013-04-12Use my improved understanding of what a subset BitmapDevice isTor Lillqvist
Need to pass the whole pixel buffer to CGBitmapContextCreate(). Change-Id: Iadac7dc3e63c29e5d0cc328b2e2a1f10824248a6
2013-04-12A bit more logging in DrawText()Tor Lillqvist
Change-Id: I04c715e88ee79aa639c10f2a39d303eecdbd3962
2013-04-11Log the stretch factor if different from oneTor Lillqvist
Change-Id: I37472b779f0e455892f4fe2cfe93023c14335400
2013-04-11Log a null CGRect as "NULL"Tor Lillqvist
Change-Id: I94ef782a3d4cd86afe4c1e96426df771401a65d3