summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2013-08-11Reduce scope + convert sal_Bool to boolJulien Nabet1-6/+5
Change-Id: Ib7262a046479faba355c447ebc6bdce008268804
2013-08-10Button::GetStandardHelpText returns empty string, its all a noopCaolán McNamara3-15/+0
Change-Id: I651b19840aabf67b3083cd855c2851ac4c96741e
2013-08-10XubString->OUStringCaolán McNamara1-4/+4
Change-Id: I9a6aef3f5e143ccd6187e3a7f42b041249348870
2013-08-10fdo#67680: Impossible to search for text attributes with VoiceOverBoris Dušek1-2/+2
Change-Id: I02ae12233aa37830106eeffd16876670413f4627 Reviewed-on: https://gerrit.libreoffice.org/5334 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-10Transform left SAL_DEBUG output to SAL_INFOBoris Dušek1-20/+13
Change-Id: Ic3528a8a349ec8e6929ceed8c5e3ec8d2a6232c1 Reviewed-on: https://gerrit.libreoffice.org/5333 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-08-10Remove unused BitmapWriteAccess::FillPolygonJulien Nabet1-42/+0
Change-Id: Iba583b4efab88620b54b02626bc9d9396219d0c8
2013-08-10Some cppcheck cleaningJulien Nabet1-10/+5
Change-Id: I31539733914a66241e77a7246aebc50850dea2aa
2013-08-09Show hidden toolbar items when window size is decreasedPrashant Pandey2-0/+29
When the Window size is reduced, the '>>' symbol thus appearing must also show the items, that are provided by the toolbar but are not shown because they are unchecked in Tools->Customize. Change-Id: I062bee4447126bff4ae7ad6650be3b847acc0794 Reviewed-on: https://gerrit.libreoffice.org/5296 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-09Bin unused #includeTakeshi Abe1-1/+0
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 Stahl4-13/+13
Remove the silly overloading, and introduce virtual methods. Change-Id: If54a6a3fb7464283f80d3387ae23db234690f8a3
2013-08-08Bin a couple of pointless macros only used onceTor Lillqvist1-3/+1
Change-Id: I7d0c812afbbeeb4ea9835f957024b6bf86dfdaaf
2013-08-08if there is no secondary text then keep primary text orig font sizeCaolán McNamara1-2/+7
Change-Id: I12a70c3b3d12d6986a45a5f5c38affd2cd343bfe
2013-08-07Use NSAccessibilityActionDescription for action descriptionsBoris Dušek1-22/+1
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šek1-2/+2
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šek1-0/+29
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 Meeks1-8/+9
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ürr2-8/+10
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 Lillqvist1-2/+1
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 Bergmann1-5/+8
...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 McNamara1-0/+7
Change-Id: I1fd7dd198345167e587353d370a0ef055221962f
2013-08-04set default buttons for various messagebox button combinationsCaolán McNamara1-0/+5
Change-Id: I4d6fc4313014a2478d0838766e09df743212991d
2013-08-04Revert "fdo#54320: VoiceOver does not follow keyboard focus"Boris Dušek1-1/+1
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 Wielaard1-0/+9
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 Thiebaud1-0/+4
Change-Id: I68cba736de084a19d1dc92a3ccdd66b653f975c6
2013-08-02don't reuse SV_HELPTEXT_CLOSE for SV_BUTTONTEXT_CLOSECaolán McNamara2-1/+6
so we get mnemonics Change-Id: I45696077734335f7e3cbb5094de24304e887c349
2013-08-02fdo#67235 adapt form control code to time nanosecond API changeLionel Elie Mamane1-32/+35
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 McNamara1-3/+3
left behind since 0c7579d5de63f569773daf894bcc0ab173223f2a Change-Id: Ide1f81e5af52bece9ef96cfb1c16948086908e22
2013-08-01fdo#67410: VoiceOver does not provide typing or cursor movement echo in textBoris Dušek1-0/+27
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 Yoshida3-90/+95
This reverts commit 43b1ac3651732a1ceb193268ab72b4aaa90dee65.
2013-07-31convert vcl/longcurr.hxx from XubString to OUStringNoel Grandin1-47/+47
Change-Id: I1803e4fdef67cd461c140578b46e0ef5632da3fb
2013-07-31convert vcl/keycod.hxx from XubString to OUStringNoel Grandin1-2/+2
Change-Id: I112979676926bf202213174bddfa2adcffc5249f
2013-07-31Fix compilation error with MSVCTor Lillqvist1-1/+1
Change-Id: Ibd81f2f5252d00c2545e429552028b2115475524
2013-07-31ThinkoTor Lillqvist1-1/+1
Change-Id: I778de768f42377c93db89c6dd1dd204ae7987d3d
2013-07-31Fix bogus change of Len() to isEmpty()Tor Lillqvist1-1/+1
Change-Id: Ie1dece00176985bc82dd89c9831b23cb8594b1c3
2013-07-31Update cautionary commentTor Lillqvist1-2/+2
Change-Id: Idafce559e6499e240c90dc0baa7359f63476ff7d
2013-07-31convert vcl/edit.hxx from XubString to OUStringNoel Grandin1-4/+4
Change-Id: Id0558cb6285ecd19ddc21caee3e26f44cbebf721
2013-07-31convert vcl/menu.hxx from XubString to OUStringNoel Grandin3-95/+90
Change-Id: I9469363c09e4cc863ad4d8ddddf8d923fe444e25
2013-07-31convert vcl/mnemonic.hxx from XubString to OUStringNoel Grandin4-54/+53
Change-Id: I2df7a6b29aa30ad5ad936b524061aeaef837ca9d
2013-07-31convert vcl/msgbox.hxx from XubString to OUStringNoel Grandin1-2/+2
Change-Id: I68a591aa7891f5ea08ab3d6b3290e2fe80827126
2013-07-31convert vcl/pdfwriter.hxx from XubString to OUStringNoel Grandin3-82/+82
Change-Id: Ifc3d56ad9db6b73c26a16520482d5a94a5ba48a2
2013-07-31convert vcl/tabctrl.hxx from XubString->OUStringNoel Grandin1-43/+39
Change-Id: Iad4eb1ebd28e97cc99d7d52ea08c3e3fd04cf975
2013-07-31convert vcl/sttus.hxx from XubString to OUStringNoel Grandin1-44/+36
Change-Id: I173179068d59e0fbdae66186df1e2e010ecb6112
2013-07-31convert vcl/toolbox.hxx from XubString->OUStringNoel Grandin1-3/+3
Change-Id: I352dbb85ccbff46571c417b45249f548f5da8b97
2013-07-31convert vcl/inc/toolbox.h from XubString -> OUStringNoel Grandin3-37/+36
Change-Id: I201d3ad01d0b5172d22f2e5e529e94c5e446bb0b
2013-07-31Argh, the \xNN syntax uses as many hex chars there happens to be...Tor Lillqvist1-25/+25
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 Lillqvist1-27/+27
Change-Id: I5d1cc0331278f09a6e32345980c660d877d606fa
2013-07-31Revert "fdo#66246 fdo#66395 BOM for MSVC with UTF-8 unfriendly codepage"Fridrich Štrba1-1/+1
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 Mogi1-1/+1
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 McNamara1-0/+2
Change-Id: I905aa0364b6be0871f34aa0dc466f99fb5c44dfc
2013-07-30Fix MinGW32 and MinGW64 buildFridrich Štrba1-5/+10
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