summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2013-08-12convert vcl mnemonicengine.hxx and quickselectionengine.hxxNoel Grandin
.. from String to OUString. These 2 API's are tied together, necessitating their conversion in one step. Change-Id: Ibcc05d8d3617253adf49edb4a244542d32b38224
2013-08-12convert vcl/field.hxx from String to OUStringNoel Grandin
Change-Id: Ibbca39643906e0d1b7e9ef11f19008508ba16777
2013-08-12convert vcl/FilterConfigItem.hxx from String to OUStringNoel Grandin
Change-Id: I156c249e3384003c8aad76053f96ab317162d5bf
2013-08-12convert vcl/font.hxx from String to OUStringNoel Grandin
Change-Id: I3df88f26516296ca8f4e81576e86372c8b499a84
2013-08-12convert vcl/graphicfilter.hxx from String to OUStringNoel Grandin
Change-Id: I41997c49e6332fc378a3173616112a3a26e336ae
2013-08-12convert vcl/i18nhelp.hxx from String to OUStringNoel Grandin
Change-Id: I804a5713a1d793e4828c78f777418c914a6feb71
2013-08-12convert vcl/pdfextoutdevdata.hxx from String to OUStringNoel Grandin
Change-Id: I65a04c9bf2d1b9f456e6cf8a430c280f7b15e67c
2013-08-12convert vcl/ppdparser.hxx from String to OUStringNoel Grandin
Change-Id: I8a95a98e5cc92e5bedb4813411afc86cc438fdad
2013-08-12convert vcl/strhelper.hxx from String to OUStringNoel Grandin
Change-Id: I1d54431dbd8c562703879a81540f62b3513e9dc9
2013-08-12convert vcl/svapp.hxx from String to OUStringNoel Grandin
Change-Id: I95c203d1096ebd2e58a11b52097e5080b891243b
2013-08-12convert vcl/textdata.hxx from String to OUStringNoel Grandin
Change-Id: I10a6c682430daeef645ac60984e31c9d165304d8
2013-08-12convert vcl/textview.hxx from String to OUStringNoel Grandin
Change-Id: I455c49cbd398b88fc45d73f58637d1a8c69d2100
2013-08-12convert vcl/unohelp2.hxx from String to OUStringNoel Grandin
Change-Id: I9e0d4d68135ee740af1239d7070dbb4329dda866
2013-08-12convert vcl/vclmedit.hxx from String to OUStringNoel Grandin
Change-Id: I1722f647bc3a871c316998c1f08e0545af0ac92b
2013-08-12convert vcl/xtextedt.hxx from String to OUStringNoel Grandin
Change-Id: I96ad6373fe04e6f936db92c4ce7f50e48e9c5a32
2013-08-12covnert vcl/texteng.hxx from String to OUStringNoel Grandin
Change-Id: Iaa2dca415b30cae436173df27058c9d3e3755efd
2013-08-12convert vcl/cmdevt.hxx from XubString to OUStringNoel Grandin
Change-Id: Ib574cc7130f49c7a6be23566377313906c52abb8
2013-08-12convert vcl/menu.hxx from XubString to OUString (second attempt)Noel Grandin
Change-Id: I579525326be702ffbb57d49970da5804fd2fe12d
2013-08-12Make VoiceOver announce paragraph alignmentBoris Dušek
Change-Id: I7d9d012e0af3b5685421ca2f10d2d8cb3420cc15 Reviewed-on: https://gerrit.libreoffice.org/5352 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-12Assert has become somewhat redundantStephan Bergmann
...with d8dbf1b5dbfa0db2d765063a1d848d031835398a "Turn basebmp::Format into a proper enum" demonstrating that nDeviceFmt should only take on values enumerated at basebmp::Format. Change-Id: I9f5fe2b3d403a8fc50a286b40b9e1bc74079e2cb
2013-08-12fdo#67980 - VoiceOver does not inform about misspelled textBoris Dušek
Change-Id: I4aefa1c013e62942801dd38a06034103c0df24be Reviewed-on: https://gerrit.libreoffice.org/5351 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-12Add XAccessibleTextMarkup to AquaA11yWrapperBoris Dušek
Change-Id: Ic15aeb46b384531c4d64d6ec8a103f3e44068cf1 Reviewed-on: https://gerrit.libreoffice.org/5350 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-12Refactoring: remove 3 unneeded ivarsBoris Dušek
The default font size, font name and font traits were stored as ivars of AquaA11yWrapper, but they are in fact only needed as temporary state for the createAttributedStringForElement:inOrigRange: method of AquaA11yTextAttributesWrapper. So remove these 3 ivars and instead introduce a class that holds these 3 properties and make createAttributedStringForElement:inOrigRange: use instance of this class to hold the needed state instead. I checked that the default font size, font name and font traits ivars are really only used in AquaA11yTextAttributesWrapper at that one place. Change-Id: Id2e45977c394db116f3fb0636136300c23e71f25 Reviewed-on: https://gerrit.libreoffice.org/5346 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-12XubString->OUStringCaolán McNamara
Change-Id: I04c7da143425a9d8cc4fae155ad45a469df953c1
2013-08-12fdo#67957: Font name reported in AXFont always Times New RomanBoris Dušek
This is a partial fix. Now VoiceOver does report changes in font faces but it works correctly only when the paragraph text style has font "Times New Roman". If it has not, then parts of the text with "Times New Roman" have not change in font reported, but parts with font different both from the paragraph style font and "Times New Roman" do have font change reported. In other words, the default font for paragraph is still "Times New Roman" in accessibility even though sometimes it's not true. This also fixes font size being reported only when bold or italic is set, and has more robustness for handling mixed bold/italic when at least one of them is set in the paragraph style as well. Change-Id: Id0715727d04cd9b814aa0e4093939cd3e6abe897 Reviewed-on: https://gerrit.libreoffice.org/5344 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-08-11Reduce scope + convert sal_Bool to boolJulien Nabet
Change-Id: Ib7262a046479faba355c447ebc6bdce008268804
2013-08-10Button::GetStandardHelpText returns empty string, its all a noopCaolán McNamara
Change-Id: I651b19840aabf67b3083cd855c2851ac4c96741e
2013-08-10XubString->OUStringCaolán McNamara
Change-Id: I9a6aef3f5e143ccd6187e3a7f42b041249348870
2013-08-10fdo#67680: Impossible to search for text attributes with VoiceOverBoris Dušek
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šek
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 Nabet
Change-Id: Iba583b4efab88620b54b02626bc9d9396219d0c8
2013-08-10Some cppcheck cleaningJulien Nabet
Change-Id: I31539733914a66241e77a7246aebc50850dea2aa
2013-08-09Show hidden toolbar items when window size is decreasedPrashant Pandey
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 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