summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2013-08-09Bin unused #includeTakeshi Abe
This came with f982b722fb71032cca2b6cd9cdc46cdace2fbf15, and should go with c6b30952edc6cf64f657f1d27225844b6b13aa30 Change-Id: I0727a534f6ba8c6599275a96efa0ebcbd6e65733
2013-08-08vcl, sw: fix the inheritance of SwComboBox from ComboBox a bitMichael Stahl
Remove the silly overloading, and introduce virtual methods. Change-Id: If54a6a3fb7464283f80d3387ae23db234690f8a3
2013-08-08Bin a couple of pointless macros only used onceTor Lillqvist
Change-Id: I7d0c812afbbeeb4ea9835f957024b6bf86dfdaaf
2013-08-08if there is no secondary text then keep primary text orig font sizeCaolán McNamara
Change-Id: I12a70c3b3d12d6986a45a5f5c38affd2cd343bfe
2013-08-07Use NSAccessibilityActionDescription for action descriptionsBoris Dušek
Change-Id: I26a233e72274be7afc2e3e41e13a6743f75e695f Reviewed-on: https://gerrit.libreoffice.org/5238 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-07Fix accessibility of text attributes on OS XBoris Dušek
The applyAttributesFrom:... method takes range parameter that specifies a range in the 'string' parameter passed to that method, not in the whole string of the UI element as retrievd in createAttributedStringForElement:... (the former string is a substring of the latter). In other words, the 'range' parameter in applyAttributesFrom: is relative to the string passed to that method, not to the whole string of the UI element. This enables proper reading of text attributes in Writer - when moving cursor through text, VoiceOver now announces e.g. "bold" or "plain" to indicate changes in text formatting. Change-Id: I21a633af0bf426759f639435581fcd3bfeafa598 Reviewed-on: https://gerrit.libreoffice.org/5236 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-07Add debugging output for OS X accessibilityBoris Dušek
In case someone needs to debug accessibility on OS X, provide ready debugging messages to be enabled by changing #if 0 to #if 1. Change-Id: I4d0c0b11d12aa2419c53da7656a881f43c436d87 Reviewed-on: https://gerrit.libreoffice.org/5237 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-06Disable auto-detection of high-contrast mode by defaultMichael Meeks
Lots of Linux themes are rather 'black' anyway, and yet want the icon set they selected and the colours too. If this is needed it can still be forced either by changing the setting back, changing the setting back in the UI, and/or exporting SAL_FORCE_HC=1 Change-Id: Ia034942db7ec2fdd27b4a0b43f2f19269e05f5c6
2013-08-06Resolves: #i122948# fill gaps in glyphs->chars mapping for usp10-layoutsHerbert Dürr
using a heuristic that assumes a glyph with unknown char mapping is the continuation of the preceding glyph. If there is no known preceding mapping use the run bounds. (cherry picked from commit 576e4ea626e1c1ffcf9d025e692db62fed8c3cab) Change-Id: I70e58a02d814e14e9592ff8efc0ae630346ae5df
2013-08-06fdo#67660: Fix memory mismanagement crashTor Lillqvist
The CTLayout constructor called CFRetain() on the associated CTTextStyle's attribute directory (a CFMutableDictionaryRef) and the destructor then called CFRelease() on it, even if there was no guarantee it was still the same CTTextStyle. And in the scenario that caused this crash, AquaSalGraphics::SetFont() had in fact deleted the original CTTextStyle and created a new one. It seems to me that these CFRetain() and CFRelease() calls are not necessary. Change-Id: I18e03965dd05d450955353f8c48f111c19a069e3
2013-08-05Do not instantiate LinguServiceManager when it is not neededStephan Bergmann
...this e.g. prevents endless recursion when broken JVM detection leads to a message box that in turn tries to instantiate a Java-based service from LinguServiceManager. Change-Id: I0e78ab3ea05ce16544846803d5bb84c789a61eef
2013-08-04add a VclFrame::get_labelCaolán McNamara
Change-Id: I1fd7dd198345167e587353d370a0ef055221962f
2013-08-04set default buttons for various messagebox button combinationsCaolán McNamara
Change-Id: I4d6fc4313014a2478d0838766e09df743212991d
2013-08-04Revert "fdo#54320: VoiceOver does not follow keyboard focus"Boris Dušek
The code was correct (and docs confusing). The code did not work because 67410 was not fixed at that moment. With 67410 fixed, the code works as it was originally. Also in the meantime I discovered a comment in the NSAccessibility.h header telling that NSAccessibilityPostNotification should be passed the newly focused element and that the function itself will make sure to post the notification on the NSApp element instead. This reverts commit e9257fa0e642de2f1c79f2c80387334010812dab. Change-Id: I7f76ebde963cf57879273d9848ff195877759524 Reviewed-on: https://gerrit.libreoffice.org/5239 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-04Fix memory leaks in ensure_dbus_setup.Mark Wielaard
g_menu_append_item and g_menu_append_section don't reference their argument but copy the argument. So explicitly g_object_unref the arguments afterwards. Change-Id: I14f18d7571351a2eec99dc557b59e69b766fbde8 Reviewed-on: https://gerrit.libreoffice.org/5269 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-08-02NSAppKitVersionNumber10_7 is not surprisingly not defined in 10.6 SDKNorbert Thiebaud
Change-Id: I68cba736de084a19d1dc92a3ccdd66b653f975c6
2013-08-02don't reuse SV_HELPTEXT_CLOSE for SV_BUTTONTEXT_CLOSECaolán McNamara
so we get mnemonics Change-Id: I45696077734335f7e3cbb5094de24304e887c349
2013-08-02fdo#67235 adapt form control code to time nanosecond API changeLionel Elie Mamane
Conflicts: offapi/type_reference/offapi.rdb Change-Id: If68ecf0691919d71d06d7b97d46db115013f9805 Reviewed-on: https://gerrit.libreoffice.org/5149 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-08-01update signature of DrawTextArray in workbenCaolán McNamara
left behind since 0c7579d5de63f569773daf894bcc0ab173223f2a Change-Id: Ide1f81e5af52bece9ef96cfb1c16948086908e22
2013-08-01fdo#67410: VoiceOver does not provide typing or cursor movement echo in textBoris Dušek
Change-Id: Ief39aecd247b612c52cd970b6c5911f34d8cb69e Reviewed-on: https://gerrit.libreoffice.org/5208 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-07-31Revert "convert vcl/menu.hxx from XubString to OUString"Kohei Yoshida
This reverts commit 43b1ac3651732a1ceb193268ab72b4aaa90dee65.
2013-07-31convert vcl/longcurr.hxx from XubString to OUStringNoel Grandin
Change-Id: I1803e4fdef67cd461c140578b46e0ef5632da3fb
2013-07-31convert vcl/keycod.hxx from XubString to OUStringNoel Grandin
Change-Id: I112979676926bf202213174bddfa2adcffc5249f
2013-07-31Fix compilation error with MSVCTor Lillqvist
Change-Id: Ibd81f2f5252d00c2545e429552028b2115475524
2013-07-31ThinkoTor Lillqvist
Change-Id: I778de768f42377c93db89c6dd1dd204ae7987d3d
2013-07-31Fix bogus change of Len() to isEmpty()Tor Lillqvist
Change-Id: Ie1dece00176985bc82dd89c9831b23cb8594b1c3
2013-07-31Update cautionary commentTor Lillqvist
Change-Id: Idafce559e6499e240c90dc0baa7359f63476ff7d
2013-07-31convert vcl/edit.hxx from XubString to OUStringNoel Grandin
Change-Id: Id0558cb6285ecd19ddc21caee3e26f44cbebf721
2013-07-31convert vcl/menu.hxx from XubString to OUStringNoel Grandin
Change-Id: I9469363c09e4cc863ad4d8ddddf8d923fe444e25
2013-07-31convert vcl/mnemonic.hxx from XubString to OUStringNoel Grandin
Change-Id: I2df7a6b29aa30ad5ad936b524061aeaef837ca9d
2013-07-31convert vcl/msgbox.hxx from XubString to OUStringNoel Grandin
Change-Id: I68a591aa7891f5ea08ab3d6b3290e2fe80827126
2013-07-31convert vcl/pdfwriter.hxx from XubString to OUStringNoel Grandin
Change-Id: Ifc3d56ad9db6b73c26a16520482d5a94a5ba48a2
2013-07-31convert vcl/tabctrl.hxx from XubString->OUStringNoel Grandin
Change-Id: Iad4eb1ebd28e97cc99d7d52ea08c3e3fd04cf975
2013-07-31convert vcl/sttus.hxx from XubString to OUStringNoel Grandin
Change-Id: I173179068d59e0fbdae66186df1e2e010ecb6112
2013-07-31convert vcl/toolbox.hxx from XubString->OUStringNoel Grandin
Change-Id: I352dbb85ccbff46571c417b45249f548f5da8b97
2013-07-31convert vcl/inc/toolbox.h from XubString -> OUStringNoel Grandin
Change-Id: I201d3ad01d0b5172d22f2e5e529e94c5e446bb0b
2013-07-31Argh, the \xNN syntax uses as many hex chars there happens to be...Tor Lillqvist
So use string splicing after a sequence of \xNN. (For consistency even if it isn't a valid hex character that follows.) Change-Id: I269788fa5d5fbc4eda5b9edcaaabfcbce59e4885
2013-07-31Convert utf-8 bytes to \xNN hex representationTor Lillqvist
Change-Id: I5d1cc0331278f09a6e32345980c660d877d606fa
2013-07-31Revert "fdo#66246 fdo#66395 BOM for MSVC with UTF-8 unfriendly codepage"Fridrich Štrba
This breaks tinderbox builds. Better fix on the way. This reverts commit ded871e9c1a69f640d6283ae6f79820689f0d612.
2013-07-31fdo#66246 fdo#66395 BOM for MSVC with UTF-8 unfriendly codepageIsamu Mogi
MSVC misinterprets UTF-8 source code without BOM as ANSI/OEM codepage. For that reason if local codepage is unfriendly to UTF-8, it sometimes causes compilation error. Change-Id: I8acd5500e581e020fd60b5a2ec20629f92fdf87c
2013-07-30start weeding out TabDialog::AdjustLayoutCaolán McNamara
Change-Id: I905aa0364b6be0871f34aa0dc466f99fb5c44dfc
2013-07-30Fix MinGW32 and MinGW64 buildFridrich Štrba
SHARDAPPIDINFO is Windows 7+ only. MinGW32/64 headers don't have it. So, just declare a struct with the same members since the SHAddToRecentDocs expect LPVOID anyway. Change-Id: I27e2c8cd6cd7f033cdcf053cc60a1c71038b189a
2013-07-30fdo#66715: fontconfig: try harder to ignore duplicate fontsMichael Stahl
The thin space not being displayed correctly is caused by using the wrong font, namely /usr/share/fonts/liberation/LiberationSerif-Regular.ttf, which (on Fedora 18) is version 1 and does not contain u2006 etc. glyphs, whereas the LiberationSerif-Regular.ttf bundled with LO is version 2 and does contain these. There is already isPreviouslyDuplicateOrObsoleted() function to ignore older fonts but it does not work for this case because: 1) Only the previous element was looked at, but there may be several fonts with different weight/slant that need to be checked. 2) The LiberationSerif-Regular.ttf differ in the "lang" entry. Change-Id: I2f9e8d50a1f8155b65f8f07c9259dd988c32992a
2013-07-30vcl: fix obviously wrong mapping of WIDTH_ULTRA_EXPANDEDMichael Stahl
Change-Id: I2f23f51e7f04df6fcbc1e2d6661949b830cc248e
2013-07-30Adapt to NSPrintInfo API changeTor Lillqvist
Change-Id: Idce313b30b46a81847e116c380f6fe8eb2953a35
2013-07-30Drop internal copies of X11 extensions headersKhaled Hosny
They are not use by default since 2011, and non of the distro configs uses --without-system-xextensions-headers. Change-Id: I51e88796c22b1b3d0854c3ec1db15fcab720a079 Reviewed-on: https://gerrit.libreoffice.org/5175 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-30WaE: cast to 'id' from smaller integer type 'int'Tor Lillqvist
Change-Id: I0106bac830416ef9743787b309ca2821dd6adc89
2013-07-30Resolves: fdo#67378 merge the label into the disclosure buttonCaolán McNamara
Change-Id: I43df94c16a178c90da9c006565390a81c2fda29b
2013-07-30XubString->OUString for msgboxCaolán McNamara
Change-Id: Ieee6547b36534d0a31b6df8e00c44f1ebbaeae9a
2013-07-29cppcheck: Prefer prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: If1bd91f28a96bd0eb53e4057e51db900f8b2c52b