summaryrefslogtreecommitdiff
path: root/svl
AgeCommit message (Collapse)Author
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud
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 McNamara
Change-Id: Ic8b191dfb0d14e129dc804aeb4ac14c732e72e6b
2012-09-14SfxStyleSheetBasePool::Remove: fix valgrind warning:Michael Stahl
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 Bergmann
* 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 Grandin
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 Bergmann
Change-Id: I10984b6ac4128ad46f512dade0f4e0084d0b9348
2012-09-06Replace usage of rtl/memory.h in svl with equivalent from string.hArnaud Versini
Change-Id: I44e6b162a190939bfa17e04f551309d6249c48df
2012-09-06Java cleanup, remove unnecessary importsNoel Grandin
Change-Id: Iacfcb2e16cb0e3c25a4cd0678a374fe5111284f7
2012-09-03fdo#46808, Adapt util::NumberFormatter UNO service to new styleNoel Grandin
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 Rathke
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 McNamara
Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
2012-08-28tweaking the "fill in character" support in Calc Number Format StringsJohann Messner
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
2012-08-27fdo#46808, Adapt TempFile UNO service to new styleNoel Grandin
Change-Id: Ia448d6d74201e2be487c6d8317f94be3745808aa
2012-08-27fdo#46808, Adapt script::Converter service code to new styleNoel Grandin
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
2012-08-17gbuild: register all jarsMichael Stahl
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-14-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann
Change-Id: I792247193e98cbf9225ec103911920e7f63640bf
2012-08-08reduce ascii noise and useless commentsThomas Arnhold
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08remove include comments and boxesThomas Arnhold
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-07String::AllocBuffer replacementsCaolán McNamara
Change-Id: I278cd66fb4819721bb473796c28598aaf04eb123
2012-08-07Remove non-existing forward declarationsThomas Arnhold
Those classes don't exist. So remove friend class operators too. Change-Id: I8e3b32db933dea7cbab86015f0c926df967511f6
2012-08-06There is not need to allocate memory just for getting the 'indexOf'Christophe JAILLET
a literal within a OUString. Change-Id: Icc8e22c43f6ddca25cb284a3d45ab39680ad6d1f
2012-08-04SfxBroadcaster: fix STL conversion:Michael Stahl
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
2012-08-03enable preview for 'special' '*' formatsNoel Power
Change-Id: I2f94c3d8d827ecabc6dd5e685bb40954fe2427c4
2012-08-02cntnrsrt.hxx: remove dead codeMichael Stahl
Change-Id: I004101e814ac3eb1de7a518c2dd9b1f14683eca8
2012-08-02strip down UniString some moreCaolán McNamara
Change-Id: Ibd749a70a7bbe8c1023edf7bd144aa6547147a12
2012-08-01Remove unused code: those classes are unusedThomas Arnhold
Change-Id: Ibf41655d40c9534629bbb0dd5ae600791b42922d
2012-08-01include svl/svdde.hxxCaolán McNamara
Change-Id: Ib8696dad1905cbcd12d6c3dd42720eea3f883c6f
2012-07-31Fix mingw build of svlFridrich Štrba
Change-Id: I9992dba75903fea3d31be73de69e49f439df3a41
2012-07-31DdeServices has forward declarations so can't be typedef'dMichael Stahl
Change-Id: I1455d380cbb8b096255a0d3cb402ff0dc4d35996
2012-07-31svarray.hxx: 'e's pining for the fjords...Michael Stahl
Change-Id: I3eeb257092a76744482ebd2d0eccaa29ead8a644
2012-07-31remove DECLARE_LISTCaolán McNamara
Change-Id: Ic74476797edbb08ed6721ea9a7d23b0dd042b4ce
2012-07-31use of a pointer to a temporary strings buffer is very wrongCaolán McNamara
Change-Id: Id5bee1f5120afb6efb60245a4606a4a15bb6db79
2012-07-31strip down the PTRARR macro to the bits the last two uses requireCaolán McNamara
Change-Id: I60323cd849e98b194af43e80aebc699ab662ed0e
2012-07-30remove unnecessary includes of svl/svarray.hxxCaolán McNamara
Change-Id: Ifec201efc4e97baf2d36d66c4ae6967eadd6134c
2012-07-30C40_GETPOS is unnecessary nowCaolán McNamara
Change-Id: Ida64fbeba996c8e3deb7591be825b61d17044d9c
2012-07-30ditch SV_DECL_PTRARR_SORT_DELCaolán McNamara
Change-Id: Ie57f283b2087564afe9b700d1f35a3be52f1e940
2012-07-29Remove strange DummyTypeCaolán McNamara
I can see no purpose to DummyType Change-Id: I25d9d3b321df28f8c2bcb4bf915eb176a14fdaf8
2012-07-29expand out some rats nests of macrosCaolán McNamara
Change-Id: Ibd0a5779339f4ff00063f93c1b452e61c35a5a2a
2012-07-29SV_DECL_PTRARR_GEN only used once, expand it outCaolán McNamara
Change-Id: I57bc5ff6f5f1f9fe8475a2f8417d312d5bae4aee
2012-07-29callcatcher: strip SvPtrarr down to the used piecesCaolán McNamara
Change-Id: I79e53acd886422a3691cc9a5916a271d02b3f7d9
2012-07-29svarray.hxx: clean out much more cruftThomas Arnhold
Change-Id: Id506fdcd832aca1f55b2406d9232a55ed55e6c19
2012-07-28expand final SV_DECL_VARARR SV_IMPL_VARARR SvPtrarr macroCaolán McNamara
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
2012-07-28dung out the unused pre-stl macrosCaolán McNamara
remove the unused macros post Noel Grandin, et. al.'s stl conversion work Change-Id: I8ab930214a74c3aaac90c8ca9581010a04ce662e
2012-07-28update comment about SvPtrArrCaolán McNamara
Change-Id: I1944a04a5732d328f542c0819b43edc6fad9f7ac
2012-07-28convert SfxListenerArr_Impl from SvPtrarr to std::vectorCaolán McNamara
Change-Id: I7f46731d880da30dc2dda011b31818437c955f2d
2012-07-27convert DdeItemImp to std::vectorNoel Grandin
... with some fixes from the committer. Change-Id: I51e0c14222a90e7826711b6bc02a6b70eef887b5
2012-07-25include osl/diagnose.h for OSL_ENSURECaolán McNamara
Change-Id: I64ed84dc6f5939e110a5051bc9c701e5dee1ba85
2012-07-25delete svl/svstdarr.hxxMichael Stahl
Change-Id: Ia3d1d8dbe100443410b80c3881f10ab51b2d0419
2012-07-25remove typedef StringPtrMichael Stahl
Change-Id: Ibb5b1c02a15fb1b6e4b45737b2afa9f065318071
2012-07-25svstdarr.hxx: remove SvXub_StrLensMichael Stahl
Change-Id: Ia1d171b00cfbf2e541928213c39005ac873db938