summaryrefslogtreecommitdiffstats
path: root/svl/source
Commit message (Collapse)AuthorAgeFilesLines
* ComponentContext::getUnoContext -> getComponentContext simplificationStephan Bergmann2012-09-192-6/+4
| | | | | | ...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
* deprecate oustringostreaminserter.hxxNorbert Thiebaud2012-09-181-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>
* XubString->OUStringCaolán McNamara2012-09-171-29/+30
| | | | Change-Id: Ic8b191dfb0d14e129dc804aeb4ac14c732e72e6b
* SfxStyleSheetBasePool::Remove: fix valgrind warning:Michael Stahl2012-09-141-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
* Improvement on previous commit, UCB clean upStephan Bergmann2012-09-146-58/+39
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* fdo#46808, Adapt ucb::UniversalContentBroker UNO service to new styleNoel Grandin2012-09-141-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
* Improvement on previous commitStephan Bergmann2012-09-111-8/+4
| | | | Change-Id: I10984b6ac4128ad46f512dade0f4e0084d0b9348
* Replace usage of rtl/memory.h in svl with equivalent from string.hArnaud Versini2012-09-064-10/+12
| | | | Change-Id: I44e6b162a190939bfa17e04f551309d6249c48df
* fdo#46808, Adapt util::NumberFormatter UNO service to new styleNoel Grandin2012-09-031-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
* resolved fdo#52240 fdo#52137 fdo#52288 user editable date patternsEike Rathke2012-08-293-21/+73
| | | | | | | | | | | | | | | | | | | | | | | | 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
* String::Expand -> string::padToLengthCaolán McNamara2012-08-292-12/+19
| | | | Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
* tweaking the "fill in character" support in Calc Number Format StringsJohann Messner2012-08-282-5/+15
| | | | | | | 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
* fdo#46808, Adapt TempFile UNO service to new styleNoel Grandin2012-08-272-2/+5
| | | | Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
* fdo#46808, Adapt script::Converter service code to new styleNoel Grandin2012-08-272-6/+4
| | | | Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
* reduce ascii noise and useless commentsThomas Arnhold2012-08-082-4/+0
| | | | Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
* remove include comments and boxesThomas Arnhold2012-08-082-5/+0
| | | | Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
* String::AllocBuffer replacementsCaolán McNamara2012-08-071-27/+23
| | | | Change-Id: I278cd66fb4819721bb473796c28598aaf04eb123
* There is not need to allocate memory just for getting the 'indexOf'Christophe JAILLET2012-08-062-3/+2
| | | | | | a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
* SfxBroadcaster: fix STL conversion:Michael Stahl2012-08-041-20/+47
| | | | | | | | | | | | | | | | | | | | | | | 50cf7caee5bc6d8e066580d13c72b40926fcb69a introduced a regression that makes the smoketest fail on Windows (though strangely not on Linux), because it removed the special handling of null pointers in the SfxBroadcaster's listener array. It is evidently possible that a listener may be either added or removed at the SfxBroadcaster while that SfxBroadcaster is currently doing a Broadcast, hence AddListener and RemoveListener must be careful not to make the in progress iteration through the listener array fail. svllo.dll!SfxBroadcaster::AddListener(SfxListener & rListener={...}) Line 114 + 0x43 bytes C++ svllo.dll!SfxListener::StartListening(SfxBroadcaster & rBroadcaster={...}, unsigned char bPreventDups=0) Line 89 C++ sfxlo.dll!SfxPrintHelper::initialize(const com::sun::star::uno::Sequence<com::sun::star::uno::Any> & aArguments={...}) Line 162 C++ sfxlo.dll!SfxBaseModel::impl_getPrintHelper() Line 3693 C++ sfxlo.dll!SfxBaseModel::Notify(SfxBroadcaster & rBC={...}, const SfxHint & rHint={...}) Line 2583 C++ svllo.dll!SfxBroadcaster::Broadcast(const SfxHint & rHint={...}) Line 56 + 0xb bytes C++ sfxlo.dll!SfxApplication::NotifyEvent(const SfxEventHint & rEventHint={...}, bool bSynchron=true) Line 918 C++ sfxlo.dll!SfxObjectShell::SetInitialized_Impl(const bool i_fromInitNew=true) Line 1146 + 0x37 bytes C++ sfxlo.dll!SfxObjectShell::FinishedLoading(unsigned short nFlags=3) Line 1302 C++ Change-Id: Id27d08faaa2472b57947960a92f19c44df55b72b
* enable preview for 'special' '*' formatsNoel Power2012-08-031-2/+9
| | | | Change-Id: I2f94c3d8d827ecabc6dd5e685bb40954fe2427c4
* strip down UniString some moreCaolán McNamara2012-08-025-27/+30
| | | | Change-Id: Ibd749a70a7bbe8c1023edf7bd144aa6547147a12
* include svl/svdde.hxxCaolán McNamara2012-08-011-5/+1
| | | | Change-Id: Ib8696dad1905cbcd12d6c3dd42720eea3f883c6f
* Fix mingw build of svlFridrich Štrba2012-07-311-5/+9
| | | | Change-Id: I9992dba75903fea3d31be73de69e49f439df3a41
* svarray.hxx: 'e's pining for the fjords...Michael Stahl2012-07-311-97/+0
| | | | Change-Id: I3eeb257092a76744482ebd2d0eccaa29ead8a644
* remove DECLARE_LISTCaolán McNamara2012-07-311-2/+2
| | | | Change-Id: Ic74476797edbb08ed6721ea9a7d23b0dd042b4ce
* use of a pointer to a temporary strings buffer is very wrongCaolán McNamara2012-07-311-9/+11
| | | | Change-Id: Id5bee1f5120afb6efb60245a4606a4a15bb6db79
* Remove strange DummyTypeCaolán McNamara2012-07-291-0/+10
| | | | | | I can see no purpose to DummyType Change-Id: I25d9d3b321df28f8c2bcb4bf915eb176a14fdaf8
* callcatcher: strip SvPtrarr down to the used piecesCaolán McNamara2012-07-291-38/+0
| | | | Change-Id: I79e53acd886422a3691cc9a5916a271d02b3f7d9
* expand final SV_DECL_VARARR SV_IMPL_VARARR SvPtrarr macroCaolán McNamara2012-07-281-2/+97
| | | | | | | there's only one use of SV_DECL_VARARR/SV_IMPL_VARARR left as SvPtrarr, so expand it into something semi-readable. Change-Id: Ibaefda867c87c029d1bdf085b4f6517aec8bd5a3
* convert SfxListenerArr_Impl from SvPtrarr to std::vectorCaolán McNamara2012-07-282-60/+23
| | | | Change-Id: I7f46731d880da30dc2dda011b31818437c955f2d
* convert DdeItemImp to std::vectorNoel Grandin2012-07-271-10/+15
| | | | | | ... with some fixes from the committer. Change-Id: I51e0c14222a90e7826711b6bc02a6b70eef887b5
* delete svl/svstdarr.hxxMichael Stahl2012-07-253-3/+0
| | | | Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
* move SvStringsISortDtor to editeng/svxacorr.hxxMichael Stahl2012-07-251-6/+0
| | | | Change-Id: I4465281396f44f53ba87db0a405586294ea65076
* Convert SvStringsISortDtor from an SV_DECL_PTRARR to a o3tl::sorted_vectorNoel Grandin2012-07-251-44/+3
| | | | Change-Id: Ie1fa9b3cc2aef83ae9a82fbc110a08b2f298daef
* Revert "hrc cleanup: Remove unused cstitem.src"Norbert Thiebaud2012-07-181-0/+23
| | | | This reverts commit ae95e31831916df760503bfc2496b7bc55bc638b.
* hrc cleanup: Remove include guards from src filesThomas Arnhold2012-07-141-2/+0
| | | | Change-Id: I7d52837f4058bab1bb5a0137788521d12834d519
* hrc cleanup: Remove unused cstitem.srcThomas Arnhold2012-07-131-23/+0
| | | | | | STR_COLUM_DT_AUTO is unused too. Change-Id: Icd14e697842ec7c78131a76daa683aae1b5dfc3f
* some UniString->rtl::OUStringCaolán McNamara2012-07-093-17/+16
| | | | Change-Id: Ie69b30094da25df23a36baca2c7723d6a41f48c3
* cast sal_uInt8 to sal_Int32, otherwise it would invoke valueOf(sal_Bool)Ivan Timofeev2012-07-041-1/+1
| | | | Change-Id: Ibdd7b9213c073035a34cab11a6ec6f6d07bc6b13
* explicitly convert to int to help the compiler select overloaded funcDavid Tardon2012-07-041-1/+1
| | | | Change-Id: I8462319d0c5ccea0bc4d5327c94660e2e683e268
* Make windows tinderbox happyOlivier Hallot2012-07-031-6/+6
| | | | | | fix some cast for OUString Change-Id: I20563d404169b9e1f29699d52567760509fabb13
* Get rid of RTL_CONSTASCII_USTRINGPARAM in svl/Olivier Hallot2012-07-0311-170/+108
| | | | Change-Id: I64f3f966011bf07a2ee0c7327feb4a46df595210
* ditch String::CreateFromAsciiCaolán McNamara2012-07-031-8/+7
| | | | Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
* re-base on ALv2 code.Michael Meeks2012-07-0293-2164/+1330
|
* fs34b: #i117039# restore old behavior of SfxUndoManager::EnableUndo: don't ↵Frank Schoenheit [fs]2012-07-021-11/+6
| | | | | | count the calls, but maintain a simple flag. Consequently, let sw's UndoManager simply delegate now, and change the UndoManagerHelper to maintain a lock counter itself.
* Remove some unused defines and controlsThomas Arnhold2012-06-293-9/+0
| | | | Change-Id: I96f76ed6b33f5c786d1e3ab3981a535037a9c1b5
* Remove some more include guardsThomas Arnhold2012-06-291-3/+1
| | | | Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
* i#119400 repair broken undoIvan Timofeev2012-06-281-3/+7
| | | | Change-Id: I36d74fe1555bd436f93a5fa595e7da05bbd37493
* re-base on ALv2 code.Michael Meeks2012-06-221-26/+17
| | | | Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
* reduce scope and replace some String::CreateFromAsciiCaolán McNamara2012-06-211-3/+1
| | | | Change-Id: I8c375e3bfbcd3d7046a8bdb1968934b7d7ca96f8