summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-03-31-fsanitize=functionStephan Bergmann
Change-Id: I47bb1acebf409f0d391a06ca7a7399d8654ff143
2015-03-31cppcheck: can add explicit to ctorCaolán McNamara
Change-Id: I9b626a8c5674157033f62f5aff10259136d21a42
2015-03-31cppcheck: value that is never usedCaolán McNamara
Change-Id: If4707a661a447e5053df83c431ac9f4dab8ff5ae
2015-03-31cppcheck: scope can be reducedCaolán McNamara
Change-Id: I62e1c203e5224e69b4864f321287f2fcbe3db08f
2015-03-30Scanlines on Windows seem to be padded to DWORD multiplesTor Lillqvist
Change-Id: I806744fed51f451f17e6f493555f81cc38e2d71e
2015-03-30coverity#1292225 variable guards dead codeCaolán McNamara
Change-Id: Ie00be7806b5bce3599c47654585246edf6f8cc90
2015-03-30don't attempt X internals for gtk3 plug window used by avmediaCaolán McNamara
Change-Id: I3694decc417627fe8ea95642b7e1444e5140304f
2015-03-30vcl: fix GCC buildMiklos Vajna
Change-Id: Iceb274718ee2a15dcb3129d2623844e38b51bf8e
2015-03-30Introduce vcl::IsWindowSystemAvailable()Tor Lillqvist
Change-Id: I6e3f804833db7487ddf7ba75c43d15017dcbe1ba
2015-03-30Bootstrap.initVCL is not used by our Android app any moreTor Lillqvist
Change-Id: Id1e58547cf2b0786d7a2ca29eae8bbcdd644fdd5
2015-03-30Covertiy#1292224: Probably this is what was meant...Stephan Bergmann
Change-Id: Idf7b28e9c49ebe06a44b95dd284aa28c16a30c1c
2015-03-30vcl tiled rendering: fix invalidation callback in ImpressMiklos Vajna
Even if map mode is disabled, we have to check if the map mode is 100th mm, and if so, do the mm100 -> twips conversion. This was not visible previously due to the full repaints fixed by commit 7b8a59807806dbf6ec759a836c873b435e09e907 (sd: when tiled rendering, disable map mode early, 2015-03-20). Change-Id: I57862b43cc45ef864d7ec05c47b136e534ba2d54
2015-03-30Don't crash if no screens available (no access to the window system)Tor Lillqvist
Fixes a crash when running gengal on OS X in a ssh session when not logged in through the window system at the same time. Change-Id: I6a47666aeac43fc140f52ae2d62b36eadc976246
2015-03-29Fix test on non-LinuxStephan Bergmann
Change-Id: I0852c732d580d85ebad629ca26c28ede1576b957
2015-03-29loplugin:cstylecastStephan Bergmann
Change-Id: I999ec56219a7d9a9dc8c1e9310cc74dccd0ac099
2015-03-29vcl: cleanup pngreader, use unique_ptr for pImplTomaž Vajngerl
Change-Id: I36fb35338d8635e4bf1ac7c60e0f09da401406db
2015-03-29vcl: test for bitmap convert, use scoped read/write accessTomaž Vajngerl
Change-Id: I702d3e1ced356efce28ebfec141776f07645b2f9
2015-03-28Revert "tdf#89666: vcl: speed up HbLayoutEngine with cache in SwTxtFormatInfo"Norbert Thiebaud
This reverts commit 1efe5fe38031f7bc23150c35e4c68940621a1d5b. which broke windows.
2015-03-29This SAL_WARN is hit every time Writer is opened it can't be that importantTor Lillqvist
Change-Id: I89922b2b3e7415275e7d91c037733537bc45e336
2015-03-28The pExceptionHandler variable can be staticTor Lillqvist
Change-Id: I83f2531e092eaa610cf887937c803e11c6120e55
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: Iad602cece6e328c7f5d5f36adb294c97b152ade3
2015-03-28tdf#89666: vcl: speed up HbLayoutEngine with cache in SwTxtFormatInfoMichael Stahl
When a SwTxtFormatInfo is created to format a paragraph, pre-compute the result of vcl::ScriptRun::next() and cache it for future calls to OutputDevice::GetTextBreak() and GetTextWidth(). This requires adapting a bunch of methods to pass the additional parameter, and some classes to backup and restore the cache when they replace the text of the SwTxtFormatInfo. There is some code in vcl OutputDevice::ImplPrepareLayoutArgs() to modify the passed string and replace digits depending on "meTextLanguage" member; try to set it to the correct value when creating the layout cache (unfortunately it's not possible if the user sets the CTL Numerals config to the non-default "Context" value). Another issue is the check in OutputDevice::ImplLayout() if there is a mpConversion member on the font; apparently this is used to translate between different Symbol fonts, so not very important; just ignore the cache in this case. This reduces vcl::ScriptRun::next() from 11 to 0.36 billion callgrind cycles when built with GCC 4.9.2 -m32 -Os (which is still 16% of the formatting). Change-Id: I61fb8530333f2e7a9199f767c00cf2181ba49951 Reviewed-on: https://gerrit.libreoffice.org/14732 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-28Make console-only mode a proper subset of headless modeTor Lillqvist
Let's not make the mode space too complex. Do we really want to have to ponder what it means to be console-only but not headless? Make it so that turning on console-only mode also turns on headless mode (with dialogsAreFatal turned on, too). Change-Id: I630cb1bc605c1fb1787ace58180125509ef8789b
2015-03-27gnome#745909 grab/ungrab keyboard for menusCaolán McNamara
Change-Id: Id0593e1c9af79084ae798f26a0be37c57d254227
2015-03-27more std::min and std::max fixesNoel Grandin
Change-Id: I4e654419221b39dfd64d85a18ae0919bbe2fab5a
2015-03-27fix OSX build after my StandardButtonType changes - part2Noel Grandin
Change-Id: Ifb5d85866d35cdd1c4150ea841194ee5ca8a496e
2015-03-27fix OSX build after my StandardButtonType changesNoel Grandin
Change-Id: I2a2e8094aba0d227a9b60902133092cc33f1f586
2015-03-27fix std::min issueNoel Grandin
some tinderboxes are complaining with: could not deduce template argument for 'std::initializer_list<_Elem>' from 'int' Change-Id: Ib6bb1c9958a86fd7bb98d5ce855764f381d2ba43
2015-03-27fix macro and enum name collision using CamelCaseNoel Grandin
so that the enum names remain consistent Change-Id: I656069b484038d3bf17ecbb4f3e26395ca5a1b6d
2015-03-27work around Windows and OSX macro collisions with enum valuesNoel Grandin
Change-Id: I3d14b96b6b51e497bde33f0177b377e7fe3dbad9
2015-03-27fix tb56 buildNoel Grandin
Change-Id: I453d6e1840445a03c6918173dc93f32e3028ea74 error: no matching function for call to 'max(int, sal_Int32&)'
2015-03-27convert SymbolAlign to enum classNoel Grandin
Change-Id: Iecc1400809212f56915cad56b739378cda49b90f
2015-03-27convert BUTTON_ constants to enum classNoel Grandin
Change-Id: I0fd391a6b2850e5d7dcbf2cb95cfa39ee5561bd9
2015-03-27convert ProminentEntry to enum classNoel Grandin
Change-Id: I51578e83a6a44beece174792c9e3e59f7f8c5fef
2015-03-27vcl: stack blur implementation + basic test & performance testTomaž Vajngerl
Change-Id: I793ed80a07d9488c5f75b3abdca6db344d80d3d8
2015-03-27vcl: use unique_ptr for fillcolor, linecolor in bmpaccTomaž Vajngerl
Change-Id: I09d00c4492d2866aeb79d1a4818a55f9cdfdc4f0
2015-03-27vcl: get rid of macros for lazy people in bmpaccTomaž Vajngerl
Change-Id: I4b64a70e185f061c7d7e1e895d85ffb47ee60101
2015-03-27vcl: tests for Bitmap, check for symmetry when scaling bitmapsTomaž Vajngerl
Change-Id: I53d6e70018477abb9f98140a52697c1de0f90934
2015-03-27cleanup pngwrite, use const std::unique_ptr for pImplTomaž Vajngerl
Change-Id: I7c9941731789be3553d473d64716484bfceaf8b4
2015-03-26why would we ever want FLOATWIN_POPUPMODE_PATHMOUSECANCELCLICKCaolán McNamara
if we're from the menubar we never set it, but if we are a submenu from a menu in the menubar we set it. with it set, and on right click, the right click is passed through to what ever is underneath the pointer I don't see why we want to do that, especially the inconsistency from e.g. the File menu, vs the "File->New" menu Change-Id: I548f5c95e2511b5e921e8b74600f65eecdd8f498
2015-03-26Resolves: fdo#84795 Menus don't disappear with right mouse clickCaolán McNamara
Change-Id: I95ae2e2d564ec1c45de6df5158e4dec1d93053cb
2015-03-26Revert "fdo#84795 Menu, DropDown-List don't disappear with right mouse click"Caolán McNamara
This reverts commit fa022a9c4fe74f3f67fb3c35ef49022842d7499b. because if a right-click context menu is active and we click outside it in order to remove it then that click goes to whatever is underneath the mouse which is undesirable the list dropdown part of this looks good, its the general menus that are the problem Conflicts: vcl/source/window/winproc.cxx Change-Id: Ib96e52f22cdeefd59dbf4333f555d9f52b3385e2
2015-03-26add GtkLongPressGesture support and implement long-press in slideshowCaolán McNamara
so a long press shows the context menu to e.g. allow switching on/off draw-on-slide mode Change-Id: Icd6ea52d2172217794f4fc802246ccf13020e134
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: I17c57a85bcda98ef36ddefd6562d4681d0c7d5fc
2015-03-26tdf#67990: Management of case in comboboxJulien Nabet
I noticed these 2 points: 1) Combobox were used with autocomplete with default (false) value for matchCase => so initialize autocomplete with true value for matchCase 2) FindMatchingEntry uses bLazy as !matchCase but when bLazy = false, no autocomplete can work since you must type the whole word so just use "entryCombo" startsWith "typed string" instead of "entryCombo" == "typed string" (thank you Lionel for this tip: http://nabble.documentfoundation.org/Finding-the-right-location-for-tdf-67990-Base-module-td4143324.html) Change-Id: Ib1063002c3284122fd5279f27c1ccbc177bbac7c Reviewed-on: https://gerrit.libreoffice.org/14885 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-26loplugin:cstylecastStephan Bergmann
Change-Id: Ia04113c52787aa7498ba11864313a39caa1c1d22
2015-03-26loplugin:constantfunction: vcl/unx/gtk3Stephan Bergmann
Change-Id: Ieedf89bebb59e783dfe13ef2d5ae7ba3347cdc62
2015-03-26add GtkSwipeGesture support and implement swipe left/right to change slidesCaolán McNamara
keep it simple for now. deliver to the same target window that gets the MouseWheel events, maybe worth combining MouseWheel and Gestures into the same thing and use it in slideshows so swipe toward the left to advance to the next slide, to the right to return to the previous slide. swipes are followed by mouse up events, impress already has a similar hack to hide an mouse-up from the (incredibly complicated) interaction with the slideshow so simply use that Change-Id: Ib34f6fa0f15f3aa34eef887eb9d5642de9e5cdd1
2015-03-25Typo: formated->formattedJulien Nabet
Change-Id: Iefd4d375a0dfb36732233852f906c6b85dccc2a5
2015-03-25TyposJulien Nabet
Change-Id: I434be0034b26ac4719590238817538ecd90b8923