summaryrefslogtreecommitdiff
path: root/unotools
AgeCommit message (Collapse)Author
2014-04-18Typo: s/gurantee/guaranteeTor Lillqvist
Change-Id: I8bd7ca5896931fbf18bf8ae25b62ced9b420fe39
2014-04-18Typo: s/shure/sureTor Lillqvist
Change-Id: I1c55d3ee8be06deb6d48a6ad5cd30d170c8b9dbb
2014-04-16Remove FontNameHash, use standard OUStringHashStephan Bergmann
Change-Id: If123bbe8a4ee044ef45f418be0118ccf9509f4e7
2014-04-16Off by one (-fsanitize=address)Stephan Bergmann
Change-Id: Idaeeb0b70458fe4c02d9ed585cb69db9dabb07b0
2014-04-12do not change configured runtime system locale when setting UI localeEike Rathke
This was always plain wrong. Change-Id: I2b0e3572a8285638c6d2a16e2b095c4a9847a25c
2014-04-11replace some SvStream seeking with calls to remainingSize()Michael Stahl
Change-Id: I2905e98425b9991d6138ab0adc15083d313ca445
2014-04-11Use valid UNOIDL identifiers in TransliterationModulesExtraStephan Bergmann
ignoreDiacritics_CTL was introduced in LO 4.2, but is unpublished and appears to be rarely used, so changing it is hopefully OK. ignoreKashida_CTL is new in LO 4.3. Change-Id: I52c6d1e8c6b30eec4af22e3bbc72dd5874ef7151
2014-04-10Intermediate commit: un-revert last changeTor Lillqvist
Change-Id: I3d18f8d6844377edc0864d81284c7fb9dbb9dbf9
2014-04-09Revert special-casing tiled rendering hereTor Lillqvist
It seems to do more harm than good. Using the default avoids some yet not found bug in vcl (or somewhere) and fixes the rendering of some complex SmartArt test documents. (As long as the use of delayed rendering for "graphics" in svx is also disabled.) Change-Id: I0ed4b25278101bdd995ce90e8fb65f65ca644ebe
2014-04-08SwMultiTOXTabDialog: fortunately the bogus SetTemplatePath callMichael Stahl
... fails with exception and does not modify the configuration. (regression from 1b0f7ee1e04d7b0fe81f7458ae2116615e0f6889) Change-Id: I0e12cf0b531bc68147cf2be22c28c75c0f05f3ff
2014-04-08fdo#77123: Add option ignore kashida to the searchFaisal M. Al-Otaibi
This patch will add new checkbox to ignore kashida in the search and replace dialog. Change-Id: I9e7179242751103b8418d922ade5b9145170ad15
2014-04-07Clean up unused functionsStephan Bergmann
Change-Id: Ic1ba88f99c3e0de0761a28b8ff0ca2e9416aecec
2014-04-06Typo: s/ouer/ourTor Lillqvist
Change-Id: I0179678c6c5dd6a05b1d7d5038a901e7bf2af3de
2014-04-06Bin empty @seealso, @param, @return and @onerror metacommentsTor Lillqvist
Change-Id: I9a590b9e65960bf7360b37567aa5bfa7588c69f7
2014-04-06Kill superfluous spacing before semicolonsTor Lillqvist
Change-Id: I2d8b430e1a6c23569eb0a67a2dcf8702cf7abc41
2014-04-06Kill superfluous vertical whitespaceTor Lillqvist
Change-Id: I949ba575951998d36cb4d38746f2182633046b3b
2014-04-05coverity#708566 Uninitialized scalar fieldCaolán McNamara
Change-Id: I4a9c3faa194ae0885dc27571cc14c4c8cee8cb0f
2014-04-04fdo#43157 : clean up more OSL_POSTCONDMichaël Lefèvre
Change-Id: Iaca31b4e12c258b762b3d88fbad0fb08b4f1fc16 Reviewed-on: https://gerrit.libreoffice.org/8832 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-04-01Remove unused inline functionStephan Bergmann
Change-Id: I5601a1d6d37f5d30d50bbe22e1079d8c6acf2c4b
2014-03-30decorate tempfile name's to help identify leaks' authorNorbert Thiebaud
unottols TempFile class check in debug bod for and env variable LO_TESTNAME.. if present it use that as the root for the tempfile filename. cppunitteset framework is augmented so that it export such LO_TESNAME using the cppunit testName(), after replacement of non-alphnum characters by _ Change-Id: Iebb9545d3bd789083afbeaf4c64eab086b56049a
2014-03-29tools: support 64-bit file positions in SvStreamMichael Stahl
Bump stream positions to 64 bits on: SvLockBytes::SetSize() SvStream::SeekPos() SvStream::SetSize() SvStream::SetStreamSize() SvStream::Seek() SvStream::SeekRel() SvStream::Tell() SvStream::remainingSize() SvStream::nActPos SvStream::nBufFilePos Change-Id: I0521fd60d31d1a33e5634cbf51dd42edc46ad919 TODO: adapt callers of Seek()/SeekRel()/Tell()/remainingSize()
2014-03-29tools: allow 64-bit positions on SvLockBytesMichael Stahl
Bump stream positions to 64 bits on: SvLockBytes::ReadAt() SvLockBytes::WriteAt() SvAsyncLockBytes::m_nSize SvOpenLockBytes::Seek() SvOpenLockBytes::Tell() SvOutputStreamOpenLockBytes::m_nPosition OInputStreamHelper::m_nActPos Change-Id: Ica3b674e0ab23a756260a51475e97a5396ecdddb
2014-03-28Remove remaining DBG_CTOR etc. remnants from unotoolsStephan Bergmann
Change-Id: Ife6cecde4a9e89146493737d06cd9f0d8a041610
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-17sal,toolkit,unotools: prefer passing OUString by referenceNoel Grandin
Change-Id: Ie62a59fd9ff3d6f6a34240fd562fbc91a143bf3a
2014-03-11"overflow" is one wordTor Lillqvist
Change-Id: Ib36c2c5d55f86aff27081a0da554f6e8a81474ee
2014-03-10unotools: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann
Change-Id: I99cea658b20cf342f503f61c1cb91a8e29abf1ad
2014-03-10Avoid "delayed" rendering in the tiled rendering caseTor Lillqvist
Obviously, when using tiled rendering, all of the tile should be rendered at once during the call to lo_touch_draw_tile(). Nothing should be delayed to happen later (when the PaintTimer fires). The main culprit causing such "delayed" rendering, at least in a certain test document, seems to be SmartArt objects. It is not 100% clear how to determine whether tiled rendering is being used, though. For now, let's assume it is always the case on non-desktop (i.e. iOS and Android, even if for Android we dont actually do it). For desktop platforms, including liblibreoffice, will have to figure out later how we want to do it, assume never for now. Change-Id: I0f7e7172e7a699a0c6752ee465776f9da5c3098e
2014-03-08unotools: extractDate and extractTime functionsJacobo Aragunde Pérez
Added a pair of functions to split a UNO DateTime object into the corresponding Date and Time objects. Change-Id: I6bf31d83b3843a9482d6bf538a5dd7130c2c7046
2014-03-08unotools: improve date parser to support timezonesJacobo Aragunde Pérez
ISO8601 defines timezones with formats like 'Z', '+01', '-08:30' or '+0830' at the end of the datetime string, but our parser was failing when the string contained any timezone information. I have modified the parser so it doesn't fail in case of the string contains a timezone. Moreover, I check that the timezone definition is correct according to the standard [1] and I extract it to the string tokTz. Unfortunately UNO Time class doesn't contain any field to store the timezone, only the boolean field IsUTC, which I fill accordingly. TODO: add a timezone field to UNO and fill it from the parser. [1] https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators Change-Id: I9d33b19efbc6d41a74b02ece2dfa12fa12fac5eb
2014-03-06coverity#1190364 Uncaught exceptionCaolán McNamara
Change-Id: I647c7f7bf29c81c3ecafac4a8d18a61663e7738e
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26Remove visual noise from unotoolsAlexander Wilms
Change-Id: I1285c4e47ad381934adc3aea6671e7c95d820c39 Reviewed-on: https://gerrit.libreoffice.org/8334 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25remove unused code utl::MediaDescriptor::PROP_DEEPDETECTION()Noel Grandin
Change-Id: Ie80d0c00fe8725e59a6814707c9a4afcb6ac09b5
2014-02-25remove unused code utl::toISO8601(com::sun::star::util::Time const&)Noel Grandin
Change-Id: I8df1934c7392ec38918be2a5b986c6ca871f9d15
2014-02-24Remove unnecessary extractInterfaceStephan Bergmann
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
2014-02-23Remove unneccessary commentsAlexander Wilms
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-19unotools: sal_Bool -> boolStephan Bergmann
Change-Id: I8051c0756e0474a5b4f748e0aa15a9922e82ea97
2014-02-19coverity#984168 Uninitialized scalar fieldCaolán McNamara
Change-Id: I7c0af2de872bb0064a2e5cb269fd2a08f228ce3e
2014-02-18coverity#984167 Uninitialized scalar fieldCaolán McNamara
Change-Id: I2f6b40def145ea478403fb566c4b0d57c87c0627
2014-02-06Introduce com.sun.star.util.thePathSettings singleton.Matúš Kukan
To replace single-instance com.sun.star.util.PathSettings service, incorrectly converted in 89b0017b22889af6a8afe28b94c06e7095dc8c6f Keeping util::PathSettings::create in sc/source/ui/vba/vbaapplication.cxx because for some reason util::thePathSettings::get does not work in sc_macros_test while testing sc/qa/extras/testdocuments/Ranges.xls. Change-Id: I75b68ae56ac5b58f72416070dba100ab3ab70fe8
2014-02-04startcenter: fdo#72469: Thumbnails also for other file types than ODF.Jan Holesovsky
Change-Id: If905b2f3e51adf7e64df9385ede74368acd11771
2014-02-03Remove needless SAL_DLLPRIVATE annotationsStephan Bergmann
Change-Id: I6b560474e38230a0c8b6ba3be0bbffe9e7dcae48
2014-02-03fdo#54938 Convert to cppu::supportsServiceAlexandre Vicenzi
Change-Id: I512c525029ebd63d261560d27e9f38bbe94f7e10 Reviewed-on: https://gerrit.libreoffice.org/7649 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
2014-01-29coverity#984169 : Uninitialized scalar fieldNorbert Thiebaud
Change-Id: Ie304c66b7a3abb163428fb481c3cca3de2b4379b
2014-01-28bool improvementsStephan Bergmann
Change-Id: I7020537797b181b0fcbf78de3d7b962b96744895
2014-01-28coverity#440774 Logically dead codeCaolán McNamara
Change-Id: Id6f13ba0f51bef17de6b5e200c71dbde06e3ab63
2014-01-23Let C++ inline functions return bool instead of sal_BoolStephan Bergmann
...to improve diagnosing misuses of boolean expressions in client code (cf. compilerplugins/clang/implicitboolconversion.cxx). This change should be transparent to client code. Missing overloads of insert() for bool have been added to OStringBuffer and OUStringBuffer (which required dropping one !VALID_CONVERSION check that would now pick that overload, but would be flagged by compilerplugins/clang/pointertobool.cxx). Change-Id: I2d64cd923b8f47bfaa31e753def6515c29a3f8c9