summaryrefslogtreecommitdiff
path: root/vcl/unx
AgeCommit message (Collapse)Author
2013-07-04Related: fdo#54186 show JCL options, parse JCLOpenUI the same as OpenUICaolán McNamara
Change-Id: I495583b56502f349cd789466e9daeb6528ea9048
2013-07-02fdo#46990 - re-work new desktop checks, guard against NULL DESKTOP_SESSION.Michael Meeks
Change-Id: Ia3e408b372989b757f7dde080849e38d315d53cd
2013-07-02fdo#46990 - detect MATE and XFCE desktops.Pader Rezso
Change-Id: Id72860fc2e7d6b40f4fcb96b8f504a4f86a335b1
2013-07-02gtk3: Clearlooks theme paints scrollbar buttons depending on the style classIvan Timofeev
Change-Id: I8e464e4b71671eccb2c0467d74542e6ddda0f5a6
2013-07-02gtk3: gtk_vscrollbar_new is deprecated, use gtk_scrollbar_newIvan Timofeev
Change-Id: Iea6b6cd0147e42eab9889ea9a45aaf98c77cfaab
2013-07-01gtk3: for checkbox map BUTTONVALUE_MIXED to GTK_STATE_FLAG_INCONSISTENTIvan Timofeev
Change-Id: I5f5810a1e2dc56afb0fba7fde20a383980e3ba51
2013-07-01gtk3: add indicator-spacing to size of checkbox/radiobuttonIvan Timofeev
Change-Id: Ifea43607c8cd5a8047796b7d2efdf14289b029e2
2013-06-29remove OUString wrap for string literalsThomas Arnhold
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-28fdo#66335: gtk: Revert hacks for RTL scrollbarsIvan Timofeev
returning false here in getNativeControlRegion results in a fallback to square buttons in vcl scrollbar code. But there is no problem in gtk+ backend in this case, let's fix the problem differently. This reverts commits 898a3e84807bccbb876e3f5583728f6d24e05e9a and e8e82bd2109b82ddd535cdac30303249c6b62942. Change-Id: I66fcdd1f27d471321852445e5881cee03baef7b1
2013-06-24fix typo in higher debug level codeCaolán McNamara
Change-Id: I2e30bc94c78dcc4cfb26d5fbde4441fa9f9513f6
2013-06-23fix missing content of header tabs with gtk vclplugCaolán McNamara
regression since e717d1dcce7f8906311c5ccdbb2326b61a702630 Change-Id: I72e6e2f3ef093f272765036ebfc60b3f56a8fc34
2013-06-19Translate some key names to Hungarian in Customize -> KeyboardGabor Kelemen
Change-Id: If11b5fbd96a107ed83e305127713630093ef00dc Reviewed-on: https://gerrit.libreoffice.org/4346 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-06-18remove test code.Michael Meeks
Change-Id: I69875478e43a5aa4163f35ba75db4de7b9db7c4c
2013-06-18fdo#60565 - re-read font data on GtkSettings fontconfig-timestamp notify.Michael Meeks
Change-Id: If1c4d3a7754cc35208e40494828a799f94f26afc
2013-06-18fdo#65844 use right colors from paletteDavid Tardon
It is not correct to expect that the palette will always be the same as default-constructed from VCL. For example, 1bit PICT images use reversed white and black. Change-Id: I6b5e7cd19af98202e80f4cff17fddaa3a3f0e3af
2013-06-16fdo#43460 use isEmpty()Jelle van der Waa
Change-Id: Ie33025fbd10f47efd6b97304b76b21166d4ee70e Reviewed-on: https://gerrit.libreoffice.org/4307 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-06-14Resolves: #i122456# Corrected tessellation for fat linesArmin Le Grand
(cherry picked from commit eeba25ef43bb4ec175b16118b3b4c62f50f40ed5) Change-Id: Ic482dd1230793d505abd2d0551cb527ca5c816f6
2013-06-14Resolves: #i121534# Reintegrating changes for rotated bitmap supportArmin Le Grand
(cherry picked from commit b2cc0de3fc9adee90787ca760e86869f9255b380) Conflicts: canvas/source/vcl/spritecanvashelper.cxx drawinglayer/Library_drawinglayer.mk drawinglayer/source/processor2d/vclhelperbitmaprender.cxx drawinglayer/source/processor2d/vclhelperbitmaprender.hxx drawinglayer/source/processor2d/vclhelperbitmaptransform.cxx drawinglayer/source/processor2d/vclhelperbitmaptransform.hxx drawinglayer/source/processor2d/vclprocessor2d.cxx officecfg/registry/schema/org/openoffice/Office/Draw.xcs svx/source/svdraw/svdograf.cxx vcl/aqua/source/gdi/salgdi.cxx vcl/inc/aqua/salgdi.h vcl/inc/os2/salgdi.h vcl/inc/salgdi.hxx vcl/inc/unx/pspgraphics.h vcl/inc/vcl/bitmapex.hxx vcl/inc/vcl/outdev.hxx vcl/inc/vcl/salbtype.hxx vcl/os2/source/gdi/salgdi2.cxx vcl/source/gdi/bitmapex.cxx vcl/source/gdi/outdev2.cxx vcl/source/gdi/salgdilayout.cxx vcl/source/gdi/salmisc.cxx vcl/unx/generic/gdi/pspgraphics.cxx vcl/unx/generic/gdi/salgdi2.cxx vcl/unx/headless/svpgdi.cxx vcl/unx/headless/svpgdi.hxx vcl/unx/headless/svppspgraphics.cxx vcl/unx/headless/svppspgraphics.hxx vcl/win/source/gdi/salbmp.cxx vcl/win/source/gdi/salgdi.cxx vcl/win/source/gdi/salgdi3.cxx vcl/win/source/gdi/salgdi_gdiplus.cxx vcl/win/source/gdi/winlayout.cxx Change-Id: I871d1d107b019758f3913e5eb63bc9bc0ba403fd Do not name unused arguments to prevent compiler warnings. (cherry picked from commit f3118889a0cd941f193e9b6557c0792015d77a34) Change-Id: I482d1f96d695c7bf9912ec464bb39e7fdd14adef Related: #i121534# fix graphite-enabled windows build (cherry picked from commit c90a6ca92b1239d01a2892e15488e4a183a88b1a) Conflicts: vcl/win/source/gdi/winlayout.cxx Change-Id: I95fd41ad6f7187f34ba9474674a471fb4fc65314
2013-06-13cppcheck: fix all the others Prefer prefix ++/-- operatorsJulien Nabet
Change-Id: I7956510a5faf1d659f88268941f8afce44e83560
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-12Atempt at making --enable-gtk3 build againStephan Bergmann
...post e717d1dcce7f8906311c5ccdbb2326b61a702630 "Resolves: #i121237# Rework/Cleanup of Region code..." Note that GktSalGraphics variant for GTK 3 (there is two declarations in vcl/inc/unx/gtk/gtkgdi.hxx) inherits m_aClipRegion from SvpSalGraphics. Change-Id: Ic264226bc406f67f20d1893455d85ad0d1bc17ed
2013-06-12allow at least some KDE protocols in KFileDialogLuboš Luňák
Although LO doesn't support all KIO protocols, it supports at least a subset (as can be see also in 673be8e76856c6bc39f448f3374db4ae84258952), so allow at least that subset. Change-Id: I2334764317ffc1e20d234e863b60bcc06d17fde0
2013-06-12Resolves: #i121237# Rework/Cleanup of Region code...Armin Le Grand
due to missing complete support for B2DPolygon class (cherry picked from commit cab10eeb7878edf224a004fd7640bd4adf8d3c51) Conflicts: cppcanvas/source/mtfrenderer/implrenderer.cxx svx/source/sdr/overlay/overlaymanagerbuffered.cxx svx/source/svdraw/svdpntv.cxx vcl/aqua/source/gdi/salgdi.cxx vcl/inc/region.h vcl/inc/unx/gtk/gtkgdi.hxx vcl/inc/vcl/regband.hxx vcl/inc/vcl/region.hxx vcl/os2/source/gdi/salgdi.cxx vcl/source/gdi/bmpacc3.cxx vcl/source/gdi/outdev2.cxx vcl/source/gdi/outmap.cxx vcl/source/gdi/regband.cxx vcl/source/gdi/region.cxx vcl/source/window/window.cxx vcl/unx/generic/gdi/pspgraphics.cxx vcl/unx/headless/svpgdi.cxx vcl/unx/headless/svppspgraphics.cxx vcl/win/source/gdi/salgdi.cxx Change-Id: Iee9a66ff431c3cecb7603e445147b67715de0f7d Remove unused variable to prevent compiler warning (cherry picked from commit 0ac65ccf079e3e22ac23cbe7ae546504c863c31f) Change-Id: Icbcaa9d576a7e560d96debc7360bdbe9090b3fd3 Wrong comparison with bool corrected (cherry picked from commit 612cefdcf6176b6bb847ce899d89af40ef313a90) Change-Id: I1cf5de6734b588f78d8e870ba7b7860634b461ce
2013-06-11fix and simplify getting files from the KDE4 file dialogLuboš Luňák
- Fix multiple selection handling. - The "double click selection KDE4 bug" does not exist (anymore?) as far as I can tell. - Apparently it's not true that multiselect needs the first item in the list to be the directory. - KFileDialog can already give full URLs. Change-Id: I5bb651902fb6c1d75af40b78bf32c79b004b7358
2013-06-11Revert "fix canvas bitmap rendering (argb32 pixmaps) fixes color in n#780830"Michael Meeks
This reverts commit 46e53913e9dcc84ffed8fb5f1b4959c70c7e5649. Conflicts: vcl/inc/salbmp.hxx vcl/source/gdi/gdimtf.cxx vcl/unx/generic/gdi/salgdi2.cxx Change-Id: Ifa893b687c724ea71655aa4e084a44858695073e
2013-06-11Revert "pass argb32 pixmaps from vcl to canvas, avoiding costly x11 ...Michael Meeks
This reverts commit 22f63477a3300d474c3d6832232b888f75c7290c. Conflicts: canvas/source/cairo/cairo_canvasbitmap.cxx Change-Id: Ib266050ebc6eaca4fbd36ed013ac95a1b4b9d316
2013-06-07Fix memory leak in SelectionManager::getXdndVersion.Mark Wielaard
Release XListProperties atom properties of window after inspection. Change-Id: I89d86509babd7a9d8ec65dbabe0a062bf69fc493 Reviewed-on: https://gerrit.libreoffice.org/4186 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-06fix WM_CLASSLuboš Luňák
VCLSalFrame is definitely not the name of any instance of LibreOffice. Change-Id: Iba227061c0c0541290c90876c94d1016aa1e783e
2013-06-06simplify WM_COMMANDLuboš Luňák
it's not necessary to prepend /bin/sh to WM_COMMAND, soffice itself already is executable Change-Id: Iece77f901f233c8c675f524c8c88510d0cfc1c52
2013-06-05Fix memory leak in SalGtkFilePicker::SalGtkFilePicker.Mark Wielaard
The result of gtk_widget_create_pango_layout should be unrefed when done. Change-Id: I46c220a933a2dac42ec21e9e2904938bc4649dbd Reviewed-on: https://gerrit.libreoffice.org/4157 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-06-05Fix memory leak in SalGtkFilePicker::execute.Mark Wielaard
The result of g_filename_from_uri should be explicitly freed when done. Change-Id: I194a562482531aa51cf31ed1f7dbc0ee59054d8b Reviewed-on: https://gerrit.libreoffice.org/4158 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-05Fix memory leak in SalGtkPicker::uritounicode.Mark Wielaard
The gchars array returned by g_filename_from_uri will be copied into the OUString sEncoded and should be freed. Change-Id: Ib610cce5848607826632c0f5e32020708dac7645 Reviewed-on: https://gerrit.libreoffice.org/4156 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
2013-06-03fdo#56583 - avoid setting user time on unrealized windows.Michael Meeks
Change-Id: Iab776088b1d168295d636069e1a92ba948241653
2013-05-28Source files shouldn't have executable bit set.Mark Wielaard
Change-Id: Iafad6249a7998d7c749c1ca2979a606078cfcb5e Reviewed-on: https://gerrit.libreoffice.org/4070 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-28fdo#63254 UI:Horizontal scroll bar isn't displayed when RTL tabAbdulaziz A Alayed
opened with LTR UI. Change-Id: Iff6899539fe0b1788df7b09f91f850b91bcdb811 Reviewed-on: https://gerrit.libreoffice.org/4024 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-05-27vcl: Check SH_MenuBar_MouseTracking when menubar is drawn on KDEIsamu Mogi
If QStyle::SH_MenuBar_MouseTracking is 0, it makes a mouse rollover effect minimize. By this, a menubar item of CDE and Motif styles becomes closer to standard behavior. Change-Id: I87dccbd30bf7b9f0d82d1a6e67355c1b25d22dc8 Reviewed-on: https://gerrit.libreoffice.org/4018 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-05-27vcl: Implement drawing CTRL_MENUBAR and PART_MENU_ITEM on KDEIsamu Mogi
Currently, menubar's background is drawn in window's background color and no menubar's specific background color. To fix this, The patch calls QStyle::drawControl() with QStyle::CE_MenuBarEmptyArea. Change-Id: I89b9decc016a926a0f00b9663ec1a5bce81daac1 Reviewed-on: https://gerrit.libreoffice.org/4025 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-05-27vcl: Add sink effect (QStyle::State_Sunken) to menubar on KDEIsamu Mogi
A selected menubar item of cleanlooks, gtk+ and plastique styles becomes closer to standard looks by passing QStyle::State_Sunken with QStyle::CE_MenuBarItem to QStyle::drawControl(). It is currently not documented on QT developmet resources. But these styles interpret that. Change-Id: Ic7835bf0bf7af374ebdf8330d15b462d056de8a5 Reviewed-on: https://gerrit.libreoffice.org/4017 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-05-22Add mouse rollover effect to menubar on KDE and WindowsIsamu Mogi
- Add mouse rollover handling code to vcl::MenuBarWindow and vcl::Menu - Add member variable of rollover color to StyleSettings and ImplStyleData - Add rollover color definitions for each platforms Change-Id: I9ececd8a7089918ac63c5f2027c0c2f361a9d227 Reviewed-on: https://gerrit.libreoffice.org/3856 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-14SolarMutex does not belong into the URE interfaceStephan Bergmann
...so move it from osl/mutex.hxx to its own comphelper/solarmutex.hxx. It looks like a newbie mistake that 59e7685d8d812ee8773f57475cbe3aa2a0bdfc81 "Create an abstract interface to be used to implement a SolarMutex" put it here in the first place. I do not consider this an incompatible change really, as no external URE client code should have used SolarMutex anyway. (Also included some clean up, like removing unused {Clearable,Resettable}SolarGuard, and spelling out SolarGuard in the few places it is used.) Change-Id: I121ffb5b7cefbc19e88b5405e5a85ffc895be852
2013-05-11fdo#64311 - fix pre-processor conditionals & don't bail-out without gnome-vfs.Michael Meeks
Change-Id: Ia7a805c95625b52fc99face000587692de21461e
2013-05-11fdo#64311 - don't encourage the fpicker to give us URLs we can't handle.Michael Meeks
Change-Id: Ide7d833801e96a3375909238d036687082f34605
2013-05-10fix kde buildCaolán McNamara
Change-Id: Iddcf995b079867cf14454d28c363efacc0323ae8
2013-05-10Related: #i112873# check native widget's control value type...Herbert Dürr
before converting to SpinbuttonValue or ScrollbarValue Else problems like #i112873# or even crashes can and do happen. (cherry picked from commit d2fde1d34c3c28572b1b6b4780269c15dd4c2bef) Conflicts: vcl/unx/kde/salnativewidgets-kde.cxx Change-Id: I6429205ab41b3194577bc50aa02384c920e11ed2
2013-05-08Revert "avoid warnings about deprecated decls. from glib2"Stephan Bergmann
This reverts commit a206bc22623caba30c0285fda0fe0da8879efea3. While removing the GLIB_DISABLE_DEPRECATION_WARNINGS defines does not lead to problems at least with my current Fedora 18 environment (and, according to dtardon, "guessing by the date, it was on f16 or f17" where that fix was relevant), having the defines does cause -Werror=unused-macros at least in one RHEL 6 environment. So I'm reverting for now, in the hope that should any warnings re-appear, they can be addressed by applying the recent s/-I/$IFLAGS/ approach to GTK_CFLAGS in configure.ac. Change-Id: I5a3e4efabb88eb06304dd8b9eee6d8867fd77be5
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-06fdo#46808, Use service constructor for uri::ExternalUriReferenceTranslatorNoel Grandin
Change-Id: I723b1baf50b75f6aaea86a4784ee10a3d2196e83
2013-04-30fdo#62815 - tolerate crazy / out-of-bound ScreenNumbers for FullScreenMichael Meeks
Thus making the gtk+ backend more similar to the generic backend in this regard; also be more strict about invalid monitors -> empty screens. Change-Id: Ia4f2e1205cb1d309fb1bb01f9631167339a3478e
2013-04-25drop duplicated warningCaolán McNamara
Change-Id: Ied358faaf6ba1aecae4f61ff56e639752a2de664
2013-04-25Related: fdo#63802Caolán McNamara
let si-phonetic-dynamic survive libreoffice losing focus and regain it cycle and still use surrounding text. It should be safe to report that we can provide surrounding text but there isn't any during the time window when there is no focus window, because the focus in event was received but it hasn't arrived yet because that happens on a postuserevent. Change-Id: I0481c42208953f2a0618aaed7b0d9e9f3e7bda07