summaryrefslogtreecommitdiff
path: root/svl
AgeCommit message (Collapse)AuthorFilesLines
2012-11-05fdo#46808, use service constructor for i18n::CharacterClassificationNoel Grandin3-5/+6
Change-Id: I0499ad7de27b1539e97f01ab8aa0ef2d6713ae76
2012-11-05fdo#46808: Slight simplifications of previous commitStephan Bergmann1-9/+1
Change-Id: I9e0158faa24d388176427529500f073b8b6f34bd
2012-11-05fdo#46808, Adapt i18n::Transliteration UNO service to new styleNoel Grandin1-2/+11
Simply make the service implement XExtendedTransliteration, since all of the implementatins already do that. Change-Id: If03bf56a8d33931ad0230743a4603e2ae9b104ac
2012-11-01XubString->OUStringCaolán McNamara3-10/+10
Change-Id: Iea7d8681cdcd45d545826af63fc689640dfe29f0
2012-10-31resolved rhbz865058 retard overflow of internal table of number formatsEike Rathke1-1/+1
Due to an insane amount of ridiculous "user-defined" number formats the internal table may overflow during import, stave off and increase the number of available slots to another arbitrary limit.
2012-10-31fdo#46808, Deprecate configuration::ConfigurationProvider old-style serviceNoel Grandin1-6/+4
...in favor of existing new-style configuration::theDefaultProvider singleton. Theoretically, ConfigurationProvider instances can be created with specific Locale and EnableAsync arguments, but this is hardly used in practice, and thus effectively all uses of the ConfigurationProvider service use the theDefaultProvider instance, anyway. theDefaultProvider is restricted to the XMultiServiceFactory interface, while ConfigurationProvider also makes available XComponent. However, dispose must not be called manually on theDefaultProvider singleton anyway, and calls to add-/removeEventListener are so few (and in dubious code that should better be cleaned up) that requiring an explicit queryInterface does not really hurt there. This commit originated as a patch by Noel Grandin to "Adapt configuration::ConfigurationProvider UNO service to new style [by creating] a merged XConfigurationProvider interface for this service to implement." It was then modified by Stephan Bergmann by deprecating ConfigurationProvider instead of adding XConfigurationProvider and by replacing calls to ConfigurationProvider::create with calls to theDefaultProvider::get. Change-Id: I9c16700afe0faff1ef6f20338a66bd7a9af990bd
2012-10-30trivial empty-init String::Fill -> comphelper::padToLengthCaolán McNamara2-29/+31
Change-Id: I6c41b8f4d3ad739eff545063bd1f8fe8f4fba65e
2012-10-29fdo#46808, Adapt i18n::LocaleCalendar UNO service to new styleNoel Grandin3-12/+11
Did not need to create a new interface, because XCalendar3 already covers the whole service interface. Change-Id: Iaf094014c16e872d2003ca6e8e7588abd081d882
2012-10-26SAL_WARN on dup positionsEike Rathke1-5/+26
Change-Id: I6ac3940fb0b07d280998a56d5eaede0909f14bce
2012-10-26consistently use SAL_WARN svl.numbersEike Rathke3-21/+21
Change-Id: I16c555e87f8df19a74c8d34f21bce4570c1d756f
2012-10-25loplugin: tidy up some log areasCaolán McNamara1-5/+5
Change-Id: Ie2c7b219f57a2bdf14fc07311a03a2c66f6c75aa
2012-10-24PasswordContainer::allowPersistentStoring: fix warning C4805Michael Stahl1-1/+1
Change-Id: I8e2208bd054272ef6b461eadf1244e84968e8737
2012-10-12mark lcl_ functions static or rename them if they are not local at allLuboš Luňák3-7/+7
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html Change-Id: I37b2c7b7acd31437f4be74b0163f4dac2279655b
2012-10-09These are now already OUStrings, so no need for extra temp OUStringsCaolán McNamara1-10/+10
Change-Id: I3cf01d975e468299d9dc009f389e88bff7c8f4a2
2012-10-09SfxErrorHandler::CreateString: remove pointless loopsMichael Stahl1-1/+1
Change-Id: I585add18ea917249df252827e0eee944e59ce410
2012-10-09String->OUString in SVL::SvNumberFormat calendar methodsNoel Grandin2-18/+18
Change-Id: I6fe904d25a0675d881ee7c1d761e9af87e23a69d Reviewed-on: https://gerrit.libreoffice.org/772 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-09String->OUString in svl::ImpSvNumFor::GetNewCurrencySymbol methodNoel Grandin5-20/+21
Change-Id: Ie283a02903b0bf420291e1e4e1e29232cc7ff3a9 Reviewed-on: https://gerrit.libreoffice.org/771 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-09String->OUString in svl::SvNumberFormat::GetMappedFormatstring methodNoel Grandin2-25/+25
Change-Id: I80512acbcd639ee20f56f9ac95efc00bd3209b76 Reviewed-on: https://gerrit.libreoffice.org/770 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-10-04sal_Bool->bool in svl::DdeTransactionNoel Grandin2-5/+5
Change-Id: I97dd4411b5293b8f61527505e54608442eb18cca
2012-10-04sal_Bool->bool in svl::SfxStyleSheetBaseNoel Grandin2-51/+51
Change-Id: Id506fa56d07be56d63715703e354625715275933
2012-10-04sal_Bool->bool in svl::SvxSearchItemNoel Grandin2-52/+52
Change-Id: I60230e57993ee24fc80eb26d16588f131ec1f8dc
2012-10-04sal_Bool->bool in svl::DECL_PTRHINTNoel Grandin1-4/+4
Change-Id: Ib9a0aa8e22cb84b07b7346e5647b2a2667f05c6a
2012-10-04Fixes/improvements on previous commitStephan Bergmann1-3/+3
* UUIInteractionHandler still needs to implement XInitialization. * Moved ambiguating InteractionHandler typedef out of the way. * Removed InteractionHandler.createDefault, as it was originally stated that "it is strongly recommended that [the "Parent"] property is supplied." * Added back documentation about Parent and Context. * Simplified some call-sites to directly use XInteractionHandler2. Change-Id: I1029b8f3cf079171c75920cafaaa44b5bbada883
2012-10-04fdo#46808, Adapt task::InteractionHandler UNO service to new styleNoel Grandin1-3/+8
Since we don't need to expose XInitialisation, we can make the new-style service implement XInteractionHandler2. Change-Id: Ib27beed1c12df17592c6472d6f58c233d2c41558
2012-10-02String->OUString in svl::ImpSvNumberformatInfoNoel Grandin3-36/+36
Change-Id: Iff00b06a1e4e7c485e70ef0537fdea07ce3d42e5
2012-10-02String->OUString in sComment field in svl::SvNumberFormatNoel Grandin1-3/+3
Change-Id: I5a774563c791c7cd4170680a65711cc339f60c5b
2012-10-02sal_Bool->bool in svl::SfxImageItemNoel Grandin2-6/+6
Change-Id: I1a6d53352c65cd0999392531d8e406154bc4bf7a
2012-10-02sal_Bool->bool in svl::PasswordContainerNoel Grandin2-41/+41
Change-Id: I2be813554e773fade260a78eb677022b4c6991b0
2012-10-02sal_Bool->bool in svl::OFSInputStreamContainer and OFSStreamContainerNoel Grandin4-17/+16
Also make OFSInputStreamContainer's member variables private, there is no reason for them to be protected Change-Id: Ic5717b5a3740e27adfc0ee55e7677a8727b8cbae
2012-10-02sal_Bool->bool in svl::SvtCTLOptionsNoel Grandin2-47/+47
Change-Id: I824595b6b60d4114f27bf64d8a84f2973f778e39
2012-10-02XubString->OUStringCaolán McNamara3-199/+195
Change-Id: I49d2d41ad4d5ee4ececf5a57eae070898e33075f
2012-09-29Use comphelper::getComponentContextStephan Bergmann1-11/+2
...and some further clean up. Change-Id: Id294c0f38fe0041646fc86cacbd2e19734c746a9
2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl5-10/+0
Always link in gb_STDLIBS, except when the library explicitly opts out with gb_LinkTarget_disable_standard_system_libs. Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28gbuild: gb_Library_PLAINLIBS_NONE cleanup for WNT:Michael Stahl1-1/+1
add a new gb_LinkTarget_use_system_win32_libs to abstract different linker options on MSVC and GCC. Change-Id: Ic9bf2545f59bf7871e6fc06b290c486ddfbec03d
2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl5-5/+10
... new gb_LinkTarget_add_standard_system_libs Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl5-0/+5
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-28convert GetRepeatComment to OUStringCaolán McNamara2-37/+36
Change-Id: Ibf75533d04b3c68b875f44ad22639934578867e3
2012-09-19ComponentContext::getUnoContext -> getComponentContext simplificationStephan Bergmann2-6/+4
...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud1-1/+0
the intent of this header has canged over time. now it is already systematically included with ustring.hxx and the operator overload it provide fit nicely there... Just to be safe, since that include as been added to the api during the 3.5 timeframe and therefore is already in 'production' the header remain and simply attempt to include ustring.hxx but a warning is issued indicating that this header should not be used anymore... in a couple of major release we will thenr emove it completely All internal users of that header are converted. Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad Reviewed-on: https://gerrit.libreoffice.org/634 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-17XubString->OUStringCaolán McNamara3-38/+39
Change-Id: Ic8b191dfb0d14e129dc804aeb4ac14c732e72e6b
2012-09-14SfxStyleSheetBasePool::Remove: fix valgrind warning:Michael Stahl1-1/+4
aStyles contains rtl::References, so the erase() call may cause "p" to be deleted, while "p" is then used as a parameter to Broadcast; avoid this by retaining the rtl::Reference on the stack a bit longer. Valgrind warning observed in sc_unoapi sc.ScStyleFamilyObj on libreoffice-3-6 branch, called by ScStyleFamilyObj::removeByName. Change-Id: I96d6de85b1b182b5ae3f74e92987a7f137537ffb
2012-09-14Improvement on previous commit, UCB clean upStephan Bergmann7-71/+42
* As UCB is only ever initialized with "Local"/"Office", remove this configuration vector completely. The "create" ctor creates an instance internally initialized with those "Local"/"Office" keys. Special (test) code can still instantiate an uninitialized one via plain createInstance. And for backwards compatilibity process startup still ensures to create an initialized instance early, in case there is still code out there (in extensions) that later calls plain createInstance and expects to get the already-initialized (single) instance. * XInitialization is an "implementation detail" of the UniversalContentBroker service, do not expose in XUniversalContentBroker. * ucbhelper/configurationkeys.hxx is no longer needed and is removed. * ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that requires ucbhelper::Content constructors to take explicit XComponentContext arguments now. * The only remaining code in ucbhelper/source/client/contentbroker.cxx is Android-only InitUCBHelper. Is that relevant still? Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-14fdo#46808, Adapt ucb::UniversalContentBroker UNO service to new styleNoel Grandin1-13/+3
Create a merged XUniversalContentBroker interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Change-Id: Id264387bf8af8bf211050e15b8801a1fde368167
2012-09-11Improvement on previous commitStephan Bergmann1-8/+4
Change-Id: I10984b6ac4128ad46f512dade0f4e0084d0b9348
2012-09-06Replace usage of rtl/memory.h in svl with equivalent from string.hArnaud Versini4-10/+12
Change-Id: I44e6b162a190939bfa17e04f551309d6249c48df
2012-09-06Java cleanup, remove unnecessary importsNoel Grandin1-2/+0
Change-Id: Iacfcb2e16cb0e3c25a4cd0678a374fe5111284f7
2012-09-03fdo#46808, Adapt util::NumberFormatter UNO service to new styleNoel Grandin1-4/+3
Create a merged XNumberFormatter2 interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Change-Id: I57f35cde0a9dbbe91c1d2c3d068cb3a97c7245e3
2012-08-29resolved fdo#52240 fdo#52137 fdo#52288 user editable date patternsEike Rathke4-21/+77
Implemented user editable date acceptance patterns. The introduction of strict date parsing using locale dependent date acceptance patterns in 3.6.0 wasn't always welcomed. Besides that not every locale had patterns for incomplete (only day and month) date input, users also complained about not being able to key in dates on numeric keypads if the locale's date separator wasn't '/' or '-' This commit implements a "Date acceptance patterns" edit field under Tools->Options->LanguageSettings->Languages that follows the selected locale and enables the user to add patterns. Example de-DE locale: * default patterns: D.M.Y;D.M. * to enable additional input on numeric keypad: D.M.Y;D.M.;D-M-Y;D-M * if 3-4 shall not result in a date, D-M- could be used instead of D-M * note that to enter an ISO 8601 Y-M-D date with a D-M-Y pattern active one needs to enter a year >31 or with at least 3 digits, e.g. 011 Change-Id: I9e20fcb168578b02d0f0248a0e209942e0f27113
2012-08-29String::Expand -> string::padToLengthCaolán McNamara2-12/+19
Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
2012-08-28tweaking the "fill in character" support in Calc Number Format StringsJohann Messner3-7/+17
a) changed ordering of repeat code marker ( 0x1b ) and repeat code to more sensible ( and correct imo ) order b) prevent some possible div/0 errors c) added some missing formatter 'GetOutputString' calls