Commit Graph

242 Commits

Author SHA1 Message Date
4f31b90271 Remove visual noise from cui
Change-Id: I6cec1f747ce57c3153af92e9e0c317d34d5a245d
Reviewed-on: https://gerrit.libreoffice.org/8250
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 06:07:48 -06:00
057a663043 coverity#704595 Dereference after null check
Change-Id: I2c8aa1163d3eb228259db0c51f5cf9dca0657daf
2014-02-23 14:22:41 +00:00
0ce0c369aa Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-23 03:38:49 +00:00
e8f8f24c84 vcl: sal_Bool -> bool
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
a18a1a4545 Remove vcl/settings.hxx from vcl/svapp.hxx and vcl/outdev.hxx
Added vcl/settings.hxx to all cxx files which require it.
This helps to speed up compilation after changes to the settings.

Conflicts:
	sc/source/ui/dbgui/pvlaydlg.cxx

Change-Id: I211a0735c47f72d6879f6f15339355abfe0e3cf4
Reviewed-on: https://gerrit.libreoffice.org/7933
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-20 16:22:17 +00:00
12f1faf7bf svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
2014-02-20 08:17:00 +01:00
ae8a688555 cid#704597 dereference after null check
this code dates back to the first commit, if the null check was
valid the dereference should have triggered a bug by now.

Change-Id: If074f68bde6a63083921f687e700321488842364
2014-02-14 11:38:03 +02:00
cf2e95aa5a cid#704596 dereference after null check
this code dates back to the first commit, if the null check was
valid the dereference should have triggered a bug by now.

Change-Id: I7746bd26b6760dec4db522938e40a323be9ae4d8
2014-02-14 11:38:02 +02:00
9ff5689fe2 coverity#1169878 Uninitialized pointer field
Change-Id: I722689f54f7c12ab632104550c632aaa16afe65f
2014-02-08 14:15:55 +00:00
4ff873bda2 Introduce com.sun.star.ui.theWindowStateConfiguration singleton.
Change-Id: I50861ac8952d54cb1a45846ea72a2ecac4f83409
2014-02-06 12:03:28 +01:00
094f92bb78 Introduce com.sun.star.util.thePathSettings singleton.
To replace single-instance com.sun.star.util.PathSettings service,
incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f

Keeping util::PathSettings::create in
sc/source/ui/vba/vbaapplication.cxx because for some reason
util::thePathSettings::get does not work in sc_macros_test
while testing sc/qa/extras/testdocuments/Ranges.xls.

Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
2014-02-06 12:03:25 +01:00
e0e82c6d12 Handling ".uno:InsertSymbol?Symbols:string=" appears to be dead code
4d3148e0b7ee607de9c86e9e9aa79e9cd423f1f1 "CWS-TOOLING: integrate CWS
mba32issues01" had introduced it, along with code in
SfxConfigGroupListBox_Impl::AddAndSelect to generate such URLs, but which had
been commented out from the beginning (and since been removed), and all other
places that mention .uno:InsertSymbol apparently use it without a query part (to
run the special character dialog), and the string has 33 characters, not 34, so
aRet would not contain the first character after Symbols:string=, which looks
odd.

Change-Id: Icdab24148b217531f2db65b1604678650180a22c
2014-02-04 14:44:46 +01:00
20c207905f Simplify showKeyConfigTabPage
Change-Id: I31f7dd7ded3d319ba67e38f530128e28c265b7d5
2014-02-04 11:51:49 +01:00
4ca5536f00 fdo#74252: Fix crash on exit with the customize dialog.
pEventLB gets accessed after it's been deleted. Moving the code that
accesses it to before it gets deleted fixes the crash.

Change-Id: If559fe3ea7dd76a3394d0aa7c18c9329188aa17f
2014-01-30 20:20:20 -05:00
19e16083c6 Introduce com.sun.star.ui.theModuleUIConfigurationManagerSupplier singleton.
Change-Id: I7b503e5d49865c9ff287bf72eaff1995ce871790
2014-01-30 10:48:25 +01:00
ee883319f2 bool improvements
Change-Id: Ibb509cb162e53e03d42cb50eb30dd1d175991dd6
2014-01-28 20:26:29 +01:00
ba8413d262 Introduce com.sun.star.frame.theUICommandDescription singleton.
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
2014-01-28 18:52:22 +01:00
54f606c666 Introduce com.sun.star.ui.theUICategoryDescription singleton.
Change-Id: I79a78f208b2aa5eaacbd2e349b2b5066afa1ad23
2014-01-28 18:52:22 +01:00
0b500f6dab coverity#1158465 Uninitialized pointer field
Change-Id: Ic53e3f8165595ef2b8a6241003bce736f936db3a
2014-01-23 16:02:13 +00:00
ebf5e613a5 SfxNoLayoutSingleTabDialog not needed anymore
all single tab dialogs are .ui enabled now.

So now we can remove SfxNoLayoutSingleTabDialog and merge SfxSingleTabDialog
and ~SfxNoLayoutSingleTabDialogBase together

Change-Id: If0acc792d85b7d399572257d7e9b0e12993ba3fe
2014-01-23 16:02:10 +00:00
df942dcf9d convert event assign page to .ui format
Change-Id: I99312fdba95a868c836af6452abec31565f2d067
2014-01-23 14:11:00 +00:00
272bc403e0 rename SfxConfigFunctionListBox_Impl to SfxConfigFunctionListBox
Change-Id: I753744adf106d515abdc5caf2b29c53962aeae71
2014-01-23 14:11:00 +00:00
22a8a96bc5 rename SfxConfigGroupListBox_Impl as SfxConfigGroupListBox
Change-Id: Id2e25b5feecc0bab5b4e926e5fe44320979d89ba
2014-01-23 14:11:00 +00:00
121b8691b3 adjust macro assign dialog to have horizontal buttons
Change-Id: I9acb9a85f7172e492818fecea73f64a2a1071a4b
2014-01-23 11:16:00 +00:00
39366b11bf convert macro assign page to .ui
as seen in calc->right click on tab->sheet events

Change-Id: I4df1e1c7f79f4f6431905bfc286a0f9d214ccf6c
2014-01-23 11:16:00 +00:00
945394d867 rename _HeaderTabListBox to MacroEventListBox
Change-Id: I310b1e0c48723b383b9eb15b8df763bac3bfd687
2014-01-22 16:35:27 +00:00
696fd019ca split resize parts of ConnectElements into ::Resize
Change-Id: If338bf70537883e575e9137fe749675b301c27fe
2014-01-22 16:35:27 +00:00
28da94a090 as far as I can see there is no users of SvxShortcutAssignDlg
Change-Id: I624500b149abbcc6f5fb7e16f68b852d8a2c0f29
2014-01-22 16:35:26 +00:00
3d21cb27ac bool improvements
Change-Id: I63078dd1ac7119d2886d4183e7267eeff3365b87
2014-01-22 08:22:35 +01:00
a3f32769fc Fix bogus mass-conversion equalsAsciiL -> startsWith
3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to
startsWith calls" should rather have converted to oprator ==.

Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21
2014-01-21 15:54:52 +01:00
04683f1488 Window::Notify should return bool
Change-Id: I72081b1022582c8b6f95a611e21d9c78f7581efe
2014-01-17 16:42:29 +01:00
c680605098 Resolves: #i123887# Factory settings -> Default settings
Change-Id: I0864a0d2d8a13d57755928862810dd07e2718197
2014-01-17 09:11:01 +00:00
62951cdd17 Introduce com.sun.star.frame.theGlobalEventBroadcaster singleton
...to supersede com.sun.star.frame.GlobalEventBroadcaster single-instance
service.

Change-Id: I74ecaadadb4c600d39979aa7c13b6389bed38fd7
2014-01-16 18:40:05 +01:00
4ebeb52a23 Dialog::Execute does not return bool
Change-Id: I4d1c0b6f0586e2ff7adc5aae524a14c9eaa2dc3b
2014-01-14 21:28:05 +01:00
0194b9f5eb convert customize tab dialog to .ui
Change-Id: I95463021b388e936e8982454b91e58036e3920b5
2014-01-06 15:06:16 +00:00
f42d83b986 add borders to macro/configuration listboxes
Change-Id: Ia028b19fa0e0eae0bb5e3cbc63bde2fac0785ef2
2013-12-30 16:24:51 +00:00
4c539fac01 vcl get rid of xub_StrLen and STRING_LEN in outdev3
a new log section (sal.rtl.xub) is used to display alert in case of
suspicious len == 0xFFFF (aka STRING_LEN)

Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e
Reviewed-on: https://gerrit.libreoffice.org/7117
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-12-18 01:54:16 +00:00
08fe82e59c Remove unnecessary use of OUString constructor in + expressions
Convert code like
  aFilename =  OUString::number(nFilePostfixCount) + OUString(".bmp");
to
  aFilename =  OUString::number(nFilePostfixCount) + ".bmp";

Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-12-17 11:49:03 +02:00
abbe6ce54c Integrate branch of IAccessible2
Change-Id: Ic7d66abbfe8d88bfad66b1dbc8dd5bd103419714
2013-11-26 12:03:58 +00:00
3af99e4d59 convert equalsAsciiL calls to startsWith calls
Convert code like:
    aStr.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "ActiveConnection" ) )
to
    aStr.startsWith( "ActiveConnection" )
which compiles down to the same machine code.

Change-Id: Id4b0c5e0f9afe716a468d3afc70374699848dc33
2013-11-20 10:07:31 +02:00
e52779d2f8 remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-11-11 11:21:26 +02:00
2f2416ff06 remove unnecessary use of OUString constructor in CUI module
Change-Id: Ib6cc0f089e9b3cbcfee67c6a780527e148f3c382
2013-11-11 11:21:24 +02:00
c1e2b7fee3 convert new/move menu to .ui
Change-Id: I77e46382cae6da03c3a972c9838afb3f8698c9a3
2013-10-31 17:00:13 +00:00
e2451bd729 Convert indexOf->startsWith and lastIndexOf->endsWith
This is both an optimisation and a cleanup.

This converts code like
   aStr.indexOf("XX") == 0
to
  aStr.startsWith("XX")
and converts code like
  aStr.lastIndexOf("XXX") == aStr.getLength() - 3
to
  aStr.endsWith("XXX")

Note that in general
  aStr.lastIndexOf("X") == aStr.getLength() - 1
converts to
  aStr.isEmpty() || aStr.endsWith("X")
so I used the surrounding context to determine if aStr could be empty
when modifying the code.

Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-31 08:34:21 +02:00
df2fe97072 fixincludeguards.sh: cui
Change-Id: I0a9f69b8c2129329f742f18e7749484b6f3e5bf7
2013-10-28 15:16:19 +01:00
54a17dd246 windows: warning 4355 is disabled globally in com_MSC_defs.mk
So there is no need to do this locally, too.

Change-Id: I0fa1d0cd3e077ba0985848a9d2cbb061b123e8ad
2013-10-28 01:02:13 +01:00
a7724966ab Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete.

Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-22 16:56:28 +03:00
cb1c2d1482 fdo#63866 Remove checkbox also for new separators
Change-Id: I2894b7ffc186836890ab7b8117e2c7ca43bd21be
Reviewed-on: https://gerrit.libreoffice.org/6087
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-10-09 13:59:31 +00:00
b86343eaac CID#708782 unused pointer value
Change-Id: I15c34278a3dca19547c77be7aca670fbbc2d2037
2013-10-07 09:16:27 +01:00
01b8d2e014 Better wording: "Add Separator" instead of "Begin Group"
This is the command that adds a Separator to the toolbar or menu

Change-Id: I38bb449b6f34b6fc80bbbe6c0161d3346f785888
Reviewed-on: https://gerrit.libreoffice.org/6088
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2013-10-04 13:05:59 +00:00