Noel Grandin
71b809959b
remove unnecessary use of void in function declarations
...
ie.
void f(void);
becomes
void f();
I used the following command to make the changes:
git grep -lP '\(\s*void\s*\)' -- *.cxx \
| xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'
and ran it for both .cxx and .hxx files.
Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
2015-04-15 11:47:12 +02:00
Stephan Bergmann
008904a75b
Replace remaining getCppuType et al with cppu::UnoType
...
Change-Id: I4791f064f223487ce57e68f8e0b1e3d74e66e868
2015-04-01 08:41:28 +02:00
Stephan Bergmann
85f28ec44a
Clean up C-style casts from pointers to void
...
Change-Id: I5f4029fc583952ae6392dbf2d478155982ccecef
2015-03-28 19:09:27 +01:00
Noel Grandin
ffcfcd76d1
convert SfxChildAlignment to enum class
...
Change-Id: I9013bc6dace79421b0a9ad0401a4fb59365d4dcf
2015-03-24 09:36:56 +02:00
Noel Grandin
15b406f073
convert SFX_CHILDWIN constants to enum class
...
Change-Id: I8eb0c9bda0883bc08aed3acd7eaa72480848c6f3
2015-02-25 12:39:49 +02:00
Noel Grandin
9f8ffc8dfe
add GetSelectEntryData to ListBox and ComboBox
...
to reduce code clutter like
pLbSelect->GetEntryData(pLbSelect->GetSelectEntryPos())
since this is a fairly frequent operation.
Change-Id: I41daf30fdeda2442ad1ac829e12f553233bae184
Reviewed-on: https://gerrit.libreoffice.org/14472
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-02-16 06:38:42 +00:00
Noel Grandin
5333782d09
convert SETTINGS_ #defines to 'enum class'
...
and dump the ones that nothing is listening to
Change-Id: I253ef284df785812a439dd160edba1b07fdbaac4
2015-01-12 12:57:05 +02:00
Noel Grandin
a5b5ad9f93
fdo#84938: replace DATACHANGED_ constants with 'enum class'
...
and drop DATACHANGED_DATETIME because no-one is using it
Change-Id: Id5ac9a7fbba0e35501ed82e5252f66858621f7ff
2015-01-12 12:57:04 +02:00
Tobias Madl
14596452e7
fdo#84938: replace EVENT_ constants with enum
...
Change-Id: I8275832d8dae43b374bddd48520d11592e9a6a1f
Reviewed-on: https://gerrit.libreoffice.org/13134
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2014-12-01 07:43:31 +00:00
Noel Grandin
182fc4f184
fdo#84938: replace WINDOW_BORDER constants with enum
...
Change-Id: I91ca8e09971aee26f16257a4fd01125cfb2ebcdb
2014-10-21 09:06:40 +02:00
Noel Grandin
3bb30a68e0
loplugin: cstylecast
...
Change-Id: If50022b55a558c4124d71acbbe0ef5eb48801d0b
2014-10-20 13:33:58 +02:00
Noel Grandin
8044acf2db
convert SFX_CALLMODE constants to SfxCallMode enum class
...
and fix a couple of bugs in SC and SW where the call mode was
being passed to the hints parameter by accident
Change-Id: Ief805410b3f7035e012e229e77f92d5832430f58
Reviewed-on: https://gerrit.libreoffice.org/11916
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2014-10-11 15:14:52 +00:00
Noel Grandin
827c46e7d7
fdo#82577: Handle Window
...
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.
Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
Noel Grandin
60e78fbb80
fdo#82577: Handle Font
...
Put the VCL Font class in the vcl namespace. Avoids clash with the X11
Font typedef.
Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-18 08:54:37 +02:00
Stephan Bergmann
ea733ab5b6
Turn SfxItemState into a C++11 scoped enumeration
...
...to gain further confidence in the claim "that none of the existing
code tries to uses combinations of these enum values"
(d92602c5b1
"more fixes for SfxItemState")
Change-Id: I987922d945e8738e38adfde83b869adf3ff35b13
Reviewed-on: https://gerrit.libreoffice.org/11384
Reviewed-by: Stephan Bergmann <sbergman@redhat.com >
Tested-by: Stephan Bergmann <sbergman@redhat.com >
2014-09-12 06:08:32 +00:00
Stephan Bergmann
39e91c585d
Replace uses of old SFX_ITEM_AVAILABLE alias with SFX_ITEM_DEFAULT
...
Change-Id: I88eeac06413fc3935cbbdb357ff8bf9acaa383a8
2014-09-10 16:37:20 +02:00
Tor Lillqvist
30ae83c268
fdo#82577: Handle KeyCode
...
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11
KeyCode typedef.
Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-23 22:33:30 +03:00
Caolán McNamara
d21d5a7261
drop unnecessary shl.hxx includes
...
Change-Id: Ieb984987c4a4f888a563377e0500444b12f43506
2014-08-18 12:59:49 +01:00
Noel Grandin
bf30c8b16d
use new VCL IsValueChangedFromSaved method
...
follow to commit ff1a7a5943
"RFC: add IsValueChangedFromSaved to VCL button and listbox"
Change-Id: If2e6d9e7c18590dc4abbc90362d7897ca2557dd6
2014-05-08 14:55:12 +02:00
Noel Grandin
be88947bac
svx: sal_Bool->bool
...
Change-Id: I464eba5fd5521c31868c6fc8a2137f17428d421e
2014-04-15 09:02:33 +02:00
Stephan Bergmann
362d4f0cd4
Explicitly mark overriding destructors as "virtual"
...
It appears that the C++ standard allows overriding destructors to be marked
"override," but at least some MSVC versions complain about it, so at least make
sure such destructors are explicitly marked "virtual."
Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01 19:22:54 +02:00
Stephan Bergmann
567ef6d578
Second batch of adding SAL_OVERRIDE to overriding function declarations
...
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.
Change-Id: Ie656f9d653fc716f72ac175925272696d509038f
2014-03-27 18:12:18 +01:00
Noel Grandin
aaee84c4c8
svx: sal_Bool->bool
...
Change-Id: I26a7bded5138d646c67ae396690659ee13ba9f36
2014-03-11 08:18:20 +02:00
Stephan Bergmann
5e21a413c7
cppuhelper: retrofit std::exception into overriding exception specs
...
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
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
Stephan Bergmann
e8f8f24c84
vcl: sal_Bool -> bool
...
Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
2014-02-21 12:53:51 +01:00
Tobias Lippert
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
Stephan Bergmann
602c87b425
Window::PreNotify should return bool
...
Change-Id: Ic9903fd887f2c3fab2630ebeb20df39392177c8d
2014-01-18 00:37:49 +01:00
Caolán McNamara
7715f7e6b9
CID#703891 RubyDialog::GetText orthogonal to Dialog::GetText
...
Change-Id: I131daae13b11b5242e9a32a94532463f6e0d925b
2013-12-19 12:06:22 +00:00
Caolán McNamara
363446eb61
Resolves: fdo#69236 route size request to layout widget, not hard-coded value
...
a) For the sidebar the sidebars automatically handle scrolling, but for the
older panel the widgets has to do the scrolling so add scrolling parents to the
.ui
b) Fold the DialogListBox scrolling widget implementation into
VclScrolledWindow and remove the duplication.
Change-Id: Ife9ccd8c501e5dee7bf3102a92c8261d979cd834
2013-09-16 11:33:20 +01:00
Noel Grandin
ef84ce9cec
convert svx/source/dialog/*.cxx from String to OUString
...
Change-Id: Icba1afdaf0d6ec16d2d09788ed3346160cb7564d
2013-09-05 08:55:12 +02:00
Noel Grandin
0a76e5679c
convert includes/vx/rubydialog.hxx from String to OUString
...
Change-Id: I5b43080ffce00370d095b8c125457f5fbb8fcaac
2013-09-05 08:54:24 +02:00
Noel Grandin
6a043e9c0a
Use the new type-checking Reference constructor to reduce code noise
...
Also create a Clang compiler plugin to detect such cases.
Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752
Reviewed-on: https://gerrit.libreoffice.org/4001
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2013-05-22 10:44:29 +00:00
Luboš Luňák
1946794ae0
mass removal of rtl:: prefixes for O(U)String*
...
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Takeshi Abe
a9bc164acc
sal_Bool to bool
...
Change-Id: I0a8d0f11c45aba1d34a0098e6a371bd616b08b72
2013-03-19 14:16:50 +09:00
Markus Mohrhard
e5b3d7f328
coverity#736492: fix memory leak
...
Change-Id: I7a2558f7c302a95601160ddac449f224e05d238f
2013-03-09 21:03:15 +01:00
Thomas Arnhold
33d6a7b2d7
doubled namespaces
...
Change-Id: I0f6a34a459c1492a69afa3ef6bcbaa8ed7639a22
2013-03-04 13:58:40 +01:00
Markus Mohrhard
baaf3ed129
coverity#705729: fix memory leak
...
Change-Id: I978d0a34b3f94e66f9ebc5ff0ed8d3068ed4fc12
2013-02-28 10:53:14 +01:00
Luboš Luňák
1475618fda
remove useless macros
...
created by incorrect replacements in the previous commit
Change-Id: I15a56ecd201ce202fe933c7d24908923bedc6708
2013-01-30 14:03:45 +01:00
Jean-Noël Rouvignac
97eb8a6e0e
Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
...
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz >
Reviewed-by: Luboš Luňák <l.lunak@suse.cz >
2013-01-30 12:54:40 +00:00
Chr. Rossmanith
2dab78ee21
Change GetSavedValue() to return OUString
...
removed temporarily added OUString(...GetSavedValue()...) constructs again
Change-Id: I11477654d217a5ae127c1ef1b19cbff56ed052a6
2013-01-24 22:26:40 +01:00
Chr. Rossmanith
e3f11c10d8
Changed SetText() / GetText() to take/return OUString
...
replaced lots of Len() with isEmpty()
Change-Id: I6b82d48245ee2a0782e05a326f7934e9357227d0
Reviewed-on: https://gerrit.libreoffice.org/1795
Reviewed-by: Michael Stahl <mstahl@redhat.com >
Tested-by: Michael Stahl <mstahl@redhat.com >
2013-01-21 20:48:35 +00:00
Caolán McNamara
830f44b1ca
we only ever want the preferred window size from GetOptimalSize
...
so remove the MAX and MIN options and simplify the whole lot
Change-Id: Iaaf350c37e01f7fce434af760bcddb9b7d7135ea
2013-01-14 16:04:17 +00:00
Caolán McNamara
612981fc8f
callcatcher: update and remove newly unused code
...
Change-Id: Iff3ce7c3a44010b3bc81fc0d2156216ee13948dc
2013-01-13 23:02:37 +00:00
Caolán McNamara
c82390b5af
adapt code to Asian Phonetic Guide .ui conversion
...
Change-Id: Ie7bf21269e11fd1b3982999fa16597ba9caba674
2013-01-10 12:24:45 +00:00
Caolán McNamara
b350eb3cdc
aAutoDetectionCB is always hidden and always unchecked
...
Change-Id: Ic8ed8fa3e883da387e8cf0f2bd953081cf75ebc3
2013-01-10 12:24:45 +00:00
Michael Meeks
0a063f3a36
re-base on ALv2 code. Includes:
...
Patch contributed by Christian Lippka
impress212: #i113063# patch: dubios self assign in svx/source/dialog/framelink.cxx
http://svn.apache.org/viewvc?view=revision&revision=1167619
Patches contributed by Mathias Bauer
gnumake4 work variously
http://svn.apache.org/viewvc?view=revision&revision=1394707
http://svn.apache.org/viewvc?view=revision&revision=1394326
cws mba34issues01: #i117712#: fix several resource errors introduced by
IAccessible2 implementation
http://svn.apache.org/viewvc?view=revision&revision=1172343
cws mba34issues01: #i117719#: use correct resource ID
http://svn.apache.org/viewvc?view=revision&revision=1172351
Patch contributed by Andre Fischer
Do not add targets for junit tests when junit is disabled.
http://svn.apache.org/viewvc?view=revision&revision=1241508
Patches contributed by Armin Le-Grand
#118804# corrected GraphicExporter behaviour on shortcut when pixel graphic is requested
http://svn.apache.org/viewvc?view=revision&revision=1240195
fix for #118525#: Using primitives for chart sub-geometry visualisation
http://svn.apache.org/viewvc?view=revision&revision=1226879
#118485# - Styles for OLEs are not saved.
http://svn.apache.org/viewvc?view=revision&revision=1182166
#118524 : apply patch, followup fixes to 118485
http://svn.apache.org/viewvc?view=revision&revision=1186077 13f79535-47bb-0310-9956-ffa450edef68
Patch contributed by Regina Henschel
linecap: Reintegrating finished LineCap feature
http://svn.apache.org/viewvc?view=revision&revision=1232507
Patch contributed by Wang Lei (leiw)
#i118760# split the first table cell vertically, then undo&redo,
the Presentation app will crash
http://svn.apache.org/viewvc?view=revision&revision=1301361
cleanup globlmn hacks, undo dependent fixmes.
2012-11-27 12:55:10 +00:00
Caolán McNamara
104261010a
some UniString->rtl::OUString
...
Change-Id: Ie69b30094da25df23a36baca2c7723d6a41f48c3
2012-07-09 12:16:56 +01:00
Caolán McNamara
bccf34c19a
ditch String::CreateFromAscii
...
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-03 21:24:35 +01:00
Szabolcs Dezsi
d6bc02f8c4
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
2012-04-06 20:03:42 +02:00