summaryrefslogtreecommitdiff
path: root/svl
AgeCommit message (Collapse)Author
2015-04-22convert SVX_SEARCHIN_ flags to scoped enumNoel Grandin
Change-Id: Iac7216c66afef6cbd355f7047655baaadc0f74db
2015-04-22convert SFX_STYLESHEET_ constants to scoped enumNoel Grandin
Change-Id: Iceba35cb058afa55374cf3cac70ed2207b7bc8b4
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann
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 Bergmann
Change-Id: Iec781bdbbf216cb14c9ba5be5955123273d7699c
2015-04-20duplicate surrogate codeCaolán McNamara
Change-Id: I9fad024e4b5c8a4ca272f2387df07351198cf5dc
2015-04-17SvStream: WriteUChar -> WriteBoolStephan Bergmann
Change-Id: I89aa0e22c31d368ab36fe46917db6aacb11c7b14
2015-04-17convert SCRIPTTYPE_ constants to scoped enumNoel Grandin
Change-Id: I5be3980ac865162d8d7626556ca47eca4b0ee433 Reviewed-on: https://gerrit.libreoffice.org/15344 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-15convert LOCKFILE_ constants to scoped enum and cleanupNoel Grandin
Change-Id: I9a2339cc953a718403b3cd0960d5d8d34abae455 Reviewed-on: https://gerrit.libreoffice.org/15304 Tested-by: Noel Grandin <noelgrandin@gmail.com> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-15convert SFX_ITEM constants to scoped enumNoel Grandin
Change-Id: Ief8c30c356ba947727c5ab70092042816a0db99e Reviewed-on: https://gerrit.libreoffice.org/15302 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
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 Vajna
Change-Id: I1cdf56df10516f01ca091043b6a01bc14095413a Reviewed-on: https://gerrit.libreoffice.org/15242 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2015-04-08svl: move SfxItemSet methods togetherMichael Stahl
Change-Id: I3f47273f7b648e8c8d261217ba3f9ea8d366b61b
2015-04-08svl: translate some comment in itemset.cxxMichael Stahl
Change-Id: I0d306854ed295826418ad88ea5c0c72b949eeb22
2015-04-08svl: prefix members of SfxItemIterMichael Stahl
Change-Id: I0d2bcf306a789f1eaa0760c69ced427c0ec70ef8
2015-04-08svl: prefix members of SfxItemSetMichael Stahl
Change-Id: I801aaa8ad9a4ff08dedd2f92b09d98c870c725b8
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: I1f6c6d13697aa397067478d6b07429120106e6bd
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: I641a3a1e2cf2c789844940d7231015cb85e3b8bc
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: I7e0e4982611d2680d657f99eb2359db1f80e4f96
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I4ce94a1cbe0567a829de977aaa9fd1cdbff71788
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: Iefbf64608dba0c0ae01e79e5b679a9b42748b73a
2015-03-23tdf#90133 Scientific format: allow variable decimalLaurent Balland-Poirier
This commit treats variable decimal in the same way for scientfic format as for number format Change-Id: Ibc3f88150e2a8e353d35415da78998ec8c201e8b Reviewed-on: https://gerrit.libreoffice.org/14918 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-03-23tdf#30716 Engineering notationLaurent Balland-Poirier
Implement engineering notation: fomat ##0.00E+00 for instance Saved in ODF thanks to https://gerrit.libreoffice.org/14875/ Change-Id: I1e401183a95ce05481a9af52e49bbcfe08cd1a20 Reviewed-on: https://gerrit.libreoffice.org/14886 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-03-19loplugin:constantfunction: svlNoel Grandin
Change-Id: I6504e354cfb381cc00ea837f959e2e18e5fc596c
2015-03-19loplugin:constantfunction: toolsNoel Grandin
Change-Id: I3a29d90c60157dceb1da2225f4517ef3d193815e
2015-03-18more cast hellCaolán McNamara
Change-Id: I125c08ed182786cbdae7b5afabdab0754c31053a
2015-03-18another round of build fixingCaolán McNamara
Change-Id: I79964b1e091b9a11a0e5724c6ce8465b31d25bff
2015-03-18some more blind fixing towards a windows buildCaolán McNamara
Change-Id: I92f0df38fae820dac2df8289a9a38d7d0f12bc26
2015-03-18CF_TEXT and SotClipboardFormatId::STRING are both 1Caolán McNamara
Change-Id: If97a74b947fcec1790c6cf1497299ff11b87f042
2015-03-18fix windows DdePoke signatureCaolán McNamara
Change-Id: I61a2c7287a2a5b7abadcd79f74fb38ba528d7da7
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin
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 Bergmann
...in preparation of enabling the __attribute__((format(...))) in sal_detail_logFormat (include/sal/detail/log.h) Change-Id: I8a859199fa11ca0f9f4f4b4b23a8ebddec955a86
2015-03-11Clean up previous commitStephan Bergmann
Change-Id: I6ecc801d19c54ff93559bff627b99c656e71a6e4
2015-03-11svl: use constructor syntax in svl.componentChris Sherlock
Change-Id: I2cb78695ede4017dfc4594175268e3d3c7eb4eca Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-03-11do not call virtual Commit() from dtors of utl::ConfigItem subclassesMichael Stahl
~SvtAppFilterOptions_Impl() demonstrates that this is a bad idea, by not invoking its subclasses' ImplCommit() but its own. Change-Id: Ic675e9cd3be1494c740a4f289be3bdbf0d1a122b
2015-03-11utl::ConfigItem::Commit() should call ClearModified()Michael Stahl
Rename the virtual function, and add a new non-virtual Commit() to do that. Change-Id: I09421df781ba965d6ff638b46cd8214fb3a00022
2015-03-11V668 no sense in testing the result of new against nullCaolán McNamara
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-03-11SfxItemHandle is only used in one place, so inline itNoel Grandin
Change-Id: Ie54e0699312b6c072d2b162a068cffdf960be4d0
2015-03-09V801: Decreased performanceCaolán McNamara
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
2015-03-04V813: Decreased performanceCaolán McNamara
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-02convert SVX_SEARCHAPP_ constants to enum classNoel Grandin
Change-Id: I2b9d379e56e0af655aa06afb5391140de952b9d6
2015-03-02replace SVX_SEARCHCMD_ constants with enum classNoel Grandin
Change-Id: I675c488742219cc19624a21d1fc8e5033e7cbefa
2015-02-25remove NUMBERFORMAT_ constantsNoel Grandin
.. in favour of just using the underlying constants from css::util::NumberFormat Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
2015-02-24Remove long-unnecessary cruftStephan Bergmann
Change-Id: Id770188f8c03cade5fd4f97295bb0933968dee71
2015-02-23tdf#88835 Calc: General format: 2 digits in exponentLaurent Balland-Poirier
Create 4 new formats enums rtl_math_StringFormat: rtl_math_StringFormat_E1, rtl_math_StringFormat_E2, rtl_math_StringFormat_G1, rtl_math_StringFormat_G2 to 1 or 2 digits in exponent for scientific notation. Set General format to use rtl_math_StringFormat_E2. Set trendline equation in status bar to use rtl_math_StringFormat_E1 Change-Id: I41466a6d4ba808ba5b9b38ba252b37c6b4560f12 Reviewed-on: https://gerrit.libreoffice.org/14562 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-02-22Simplify erase iterator management (zforlist.cxx)Julien Nabet
Change-Id: Ia3ddb5223d4ac54b9b6b31d734a4cc6978dff3b3
2015-02-20Resolves: tdf#89500 catch ISO 8601 datetime in all localesEike Rathke
Change-Id: I906ebdc6aa5c365df98a29e9e0f319f89f6833c6
2015-02-18boost->stdCaolán McNamara
Change-Id: I412137e7e7b9b2b87f401bc140a9499d1fc012c6