path: root/svl
AgeCommit message (Collapse)AuthorFilesLines
2015-05-20bin/rename-sw-abbreviations.shlibreoffice-5-0-branch-pointChristian Lohmaier1-3/+3
renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I9a62759138126c1537cc5c985ba05cf54d6132d9
2015-05-20Remove include stdio (part4)Julien Nabet5-7/+0
Change-Id: Ic17885b22167eedd0e56b3e5027c09a1c3aac1d8 Reviewed-on: Tested-by: Jenkins <> Tested-by: Julien Nabet <> Reviewed-by: Julien Nabet <>
2015-05-19Update Apache Bugzilla’s URLAdolfo Jayme Barrientos1-1/+1
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2015-05-11loplugin:cstylecast: nop between pointer types of exactly same spellingStephan Bergmann1-4/+4
Change-Id: I42b3964ea13931b401be65324b556a803ffdc529
2015-05-10NOINSTANCE is implied now in IMPL_STATIC_LINK...Stephan Bergmann1-1/+1
Change-Id: Ifb032457d6c1b279c4183282ef2b271c706dd71a
2015-05-06tdf#90258 Toggle Thousand Separator with Engineering NotationLaurent Balland-Poirier1-13/+64
If scientific format is selected, "Thousands separator" option is almost useless. It could be replaced by "Engineering Notation". Rebase of Update with more robust tests. Change-Id: Ie2b88b1f149fce26c32a43ace623cf1f45f38e6e Reviewed-on: Reviewed-by: Eike Rathke <> Tested-by: Eike Rathke <>
2015-05-06convert CONFIG_MODE constants to scoped enumNoel Grandin2-2/+2
Change-Id: I1b0fb976e7bf8d7de06da0c30012e8bba1320498
2015-04-30Use typed MaybeFile LinkStephan Bergmann1-5/+5
Change-Id: Ic9eebca9d8fe3e9173b1873bdc7800e5161f9999
2015-04-30Gradually typed LinkStephan Bergmann2-5/+5
Turn the Link class into a template abstracting over the link's argument and return types, but provide default template arguments that keep the generic, unsafe "void* in, sal_IntPtr out" behvior. That way, individual uses of the Link class can be updated over time. All the related macros are duplicated with ..._TYPED counterparts, that additionally take the RetType (except for LINK_TYPED, which manages to infer the relevant types from the supplied Member). (It would have been attractive to change the "untyped" LinkStubs from taking a void* to a properly typed ArgType parameter, too, but that would cause -fsanitize=function to flag uses of "untyped" Link::Call.) Change-Id: I3b0140378bad99abbf240140ebb4a46a05d2d2f8
2015-04-29Remove unnecessary STATIC_LINK macroStephan Bergmann1-1/+1
Change-Id: I4788824667c8e0d1d4e0717b7ae7737bb0fd2c90
2015-04-28expand and remove DECL_PTRHINT macroNoel Grandin2-7/+0
since there are only 2 uses of it Change-Id: I49543168d5d9aeaae66d99663707657d67002fdc Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Noel Grandin <>
2015-04-28SfxItemSet::PutDirect return value is unusedStephan Bergmann1-4/+3
Change-Id: Icf3e09318677655897f4a5308f066829982b9520
2015-04-28operator == return type wants to be boolStephan Bergmann1-4/+4
Change-Id: I7ef0a09b718ca701ed2b6f4a50593f8ef1421dd3
2015-04-27More loplugin:simplifyboolStephan Bergmann1-1/+1
Change-Id: Id80e640852c0fda7a4fe3fcec33ca1f95407235d
2015-04-24Ensure that svl/grabbagitem.hxx is self-containedMiklos Vajna1-1/+1
Change-Id: I1b3bd4add8c32e271e51db321fafe98604b2b830
2015-04-24loplugin:simplifyboolStephan Bergmann1-4/+4
Change-Id: I1ea1bcc6434a94fc6c15fcec17975c6c71a30a56
2015-04-22convert SVX_SEARCHIN_ flags to scoped enumNoel Grandin1-4/+8
Change-Id: Iac7216c66afef6cbd355f7047655baaadc0f74db
2015-04-22convert SFX_STYLESHEET_ constants to scoped enumNoel Grandin1-12/+12
Change-Id: Iceba35cb058afa55374cf3cac70ed2207b7bc8b4
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann13-0/+25
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. Cleaned up some, but something like grep -FwL sal/log.hxx $(git grep -Elw \ 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF') -- \*.cxx) shows lots more files that potentially need fixing before the include can be removed from rtl/string.hxx and rtl/ustring.hxx. Change-Id: Ibf033363e83d37851776f392dc0b077381cd8b90
2015-04-20Clean up new rtl/surrogates.hStephan Bergmann1-3/+3
Change-Id: Iec781bdbbf216cb14c9ba5be5955123273d7699c
2015-04-20duplicate surrogate codeCaolán McNamara1-3/+4
Change-Id: I9fad024e4b5c8a4ca272f2387df07351198cf5dc
2015-04-17SvStream: WriteUChar -> WriteBoolStephan Bergmann2-2/+2
Change-Id: I89aa0e22c31d368ab36fe46917db6aacb11c7b14
2015-04-17convert SCRIPTTYPE_ constants to scoped enumNoel Grandin3-13/+44
Change-Id: I5be3980ac865162d8d7626556ca47eca4b0ee433 Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2015-04-15convert LOCKFILE_ constants to scoped enum and cleanupNoel Grandin3-94/+72
Change-Id: I9a2339cc953a718403b3cd0960d5d8d34abae455 Reviewed-on: Tested-by: Noel Grandin <> Reviewed-by: Noel Grandin <>
2015-04-15convert SFX_ITEM constants to scoped enumNoel Grandin6-25/+24
Change-Id: Ief8c30c356ba947727c5ab70092042816a0db99e Reviewed-on: Reviewed-by: Noel Grandin <> Tested-by: Noel Grandin <>
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin2-9/+9
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-11No need to spell out com::sun::star, css is enough.Miklos Vajna1-1/+1
Change-Id: I1cdf56df10516f01ca091043b6a01bc14095413a Reviewed-on: Reviewed-by: Miklos Vajna <> Tested-by: Jenkins <>
2015-04-08svl: move SfxItemSet methods togetherMichael Stahl1-27/+26
Change-Id: I3f47273f7b648e8c8d261217ba3f9ea8d366b61b
2015-04-08svl: translate some comment in itemset.cxxMichael Stahl1-68/+1
Change-Id: I0d306854ed295826418ad88ea5c0c72b949eeb22
2015-04-08svl: prefix members of SfxItemIterMichael Stahl1-15/+15
Change-Id: I0d2bcf306a789f1eaa0760c69ced427c0ec70ef8
2015-04-08svl: prefix members of SfxItemSetMichael Stahl3-221/+228
Change-Id: I801aaa8ad9a4ff08dedd2f92b09d98c870c725b8
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann3-18/+18 avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann3-18/+18
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02loplugin:staticmethodsNoel Grandin5-14/+14
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-04-02loplugin:staticmethodsNoel Grandin1-3/+3
Change-Id: I1f6c6d13697aa397067478d6b07429120106e6bd
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann5-18/+18
Change-Id: I641a3a1e2cf2c789844940d7231015cb85e3b8bc
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann2-2/+2
Change-Id: I7e0e4982611d2680d657f99eb2359db1f80e4f96
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann5-5/+5
Change-Id: I4ce94a1cbe0567a829de977aaa9fd1cdbff71788
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann5-14/+14
Change-Id: Iefbf64608dba0c0ae01e79e5b679a9b42748b73a
2015-03-23tdf#90133 Scientific format: allow variable decimalLaurent Balland-Poirier1-12/+24
This commit treats variable decimal in the same way for scientfic format as for number format Change-Id: Ibc3f88150e2a8e353d35415da78998ec8c201e8b Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Eike Rathke <> Tested-by: Eike Rathke <>
2015-03-23tdf#30716 Engineering notationLaurent Balland-Poirier1-8/+17
Implement engineering notation: fomat ##0.00E+00 for instance Saved in ODF thanks to Change-Id: I1e401183a95ce05481a9af52e49bbcfe08cd1a20 Reviewed-on: Tested-by: Jenkins <> Reviewed-by: Eike Rathke <> Tested-by: Eike Rathke <>
2015-03-19loplugin:constantfunction: svlNoel Grandin5-31/+3
Change-Id: I6504e354cfb381cc00ea837f959e2e18e5fc596c
2015-03-19loplugin:constantfunction: toolsNoel Grandin1-1/+1
Change-Id: I3a29d90c60157dceb1da2225f4517ef3d193815e
2015-03-18more cast hellCaolán McNamara3-17/+13
Change-Id: I125c08ed182786cbdae7b5afabdab0754c31053a
2015-03-18another round of build fixingCaolán McNamara4-19/+13
Change-Id: I79964b1e091b9a11a0e5724c6ce8465b31d25bff
2015-03-18some more blind fixing towards a windows buildCaolán McNamara2-6/+6
Change-Id: I92f0df38fae820dac2df8289a9a38d7d0f12bc26
2015-03-18CF_TEXT and SotClipboardFormatId::STRING are both 1Caolán McNamara1-2/+2
Change-Id: If97a74b947fcec1790c6cf1497299ff11b87f042
2015-03-18fix windows DdePoke signatureCaolán McNamara1-1/+1
Change-Id: I61a2c7287a2a5b7abadcd79f74fb38ba528d7da7
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin3-12/+12
of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
2015-03-13tdf#43157: Fix format string violations in OSL_TRACE etc.Stephan Bergmann1-1/+4 preparation of enabling the __attribute__((format(...))) in sal_detail_logFormat (include/sal/detail/log.h) Change-Id: I8a859199fa11ca0f9f4f4b4b23a8ebddec955a86