summaryrefslogtreecommitdiffstats
path: root/unotools
Commit message (Collapse)AuthorAgeFilesLines
* try to find a unique naming scheme for temp filesMarkus Mohrhard2015-04-211-1/+7
| | | | | | | | | | | | | This should hopefully avoid name clashes during the test runs. During the test runs two tests can try to access the same temp file which causes one test to fail. Using the pid as part of the temp file name should avoid that problem. Change-Id: I696c3d34e33a5d8e9234238d86f1201ecdfa66ec Reviewed-on: https://gerrit.libreoffice.org/15455 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
* improve commentStephan Bergmann2015-04-161-6/+5
| | | | Change-Id: I451ab0fb0e7ee1a6d20091caa9c1142b16796dc7
* tdf#89394. fix hangs because of unavailable Windows UNC path.Jan Kantert2015-04-161-1/+7
| | | | | | | | | | | | | UNC: \\server.domain\file.odt is stored as file://server.domain/file.odt. Windows local: C:\folder\file.odt is stored as file:///C:/folder/file.odt. Linux: /home/user/file.odt is stored as file:///home/user/file.odt. I cannot find any case where we only have file:// (but not a third slash) on a local file. Change-Id: Ib15b3380cb40f1cd37123be7a38426b74fbde5cf Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* remove unnecessary use of void in function declarationsNoel Grandin2015-04-156-17/+17
| | | | | | | | | | | | | | | | 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
* convert SvtModuleOptions::EModule to scoped enumNoel Grandin2015-04-071-37/+37
| | | | Change-Id: I9665fc003cb3a44f4db857b24584fa3a70487259
* convert SvtModuleOptions::EFactory to enum classNoel Grandin2015-04-071-194/+113
| | | | | | and fix issues in iterating through o3tl::enumarray Change-Id: Ia59ef9be44d8c92c2e406fa71aa92269578e26e3
* Typo: creat->createJulien Nabet2015-04-041-1/+1
| | | | Change-Id: I5e57e6d506504933096f4c8e371b0ddc93c04cbd
* Fix "unknown factory" log, declare and use FACTORYNAME_BASICJulien Nabet2015-04-031-1/+12
| | | | | | | | | | Also use FACTORYNAME_STARTMODULE in SvtModuleOptions::ClassifyFactoryByServiceName Change-Id: I1ab87f13a9a1d071bf6abaae137fc6470101d711 Reviewed-on: https://gerrit.libreoffice.org/15113 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Change INetProtocol enumerators to CamelCaseStephan Bergmann2015-04-023-5/+5
| | | | | | ...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
* Change INetProtocol to scoped enumerationStephan Bergmann2015-04-023-5/+5
| | | | | | ...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
* loplugin:staticmethodsNoel Grandin2015-04-027-23/+23
| | | | Change-Id: I3ae555fd9f0dc3c11ea301ee1cb2c799fbec820d
* Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2015-04-016-7/+7
| | | | Change-Id: I6b0974024e61e02639106d4ca3abcdcdb8e6fa87
* Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann2015-03-311-1/+1
| | | | Change-Id: I9e12cea5aba3b78e1f6ed284aedb7531d107edbf
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-286-16/+16
| | | | Change-Id: I8c40cbe7c6928d89eb280344436a4b68a4884bd1
* const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann2015-03-263-15/+15
| | | | Change-Id: I72a618a0deca795b87ec009105252f4594ecba90
* introduce ODFSaneDefaultVersion; ODFDefaultVersion is a mess, mess, mess..Eike Rathke2015-03-221-0/+24
| | | | | | | A running ODFVER_LATEST is fine for configuration purposes, but not for determining how to store a feature. Change-Id: I8ebc13f900f62f8c36d2cdc50a18855fc6693527
* Char highlight: option about export LO character background to MSO formatsZolnai Tamás2015-03-211-3/+30
| | | | | | | Export as highlighting or shading. Highlighting is the default. Change-Id: Ib2a38e4cd0d49317288bb565383b690d4222c8ed
* loplugin:constantfunction: unotoolsNoel Grandin2015-03-191-5/+0
| | | | Change-Id: Icf543973dc9edde270016c8af7e4c08c57eff650
* do not call virtual Commit() from dtors of utl::ConfigItem subclassesMichael Stahl2015-03-1113-58/+13
| | | | | | | ~SvtAppFilterOptions_Impl() demonstrates that this is a bad idea, by not invoking its subclasses' ImplCommit() but its own. Change-Id: Ic675e9cd3be1494c740a4f289be3bdbf0d1a122b
* utl::ConfigItem::Commit() should call ClearModified()Michael Stahl2015-03-1119-113/+84
| | | | | | | Rename the virtual function, and add a new non-virtual Commit() to do that. Change-Id: I09421df781ba965d6ff638b46cd8214fb3a00022
* V801: Decreased performanceCaolán McNamara2015-03-091-8/+8
| | | | Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
* TyposJulien Nabet2015-02-182-2/+2
| | | | Change-Id: I845a85e1aad4a0708f2b43f7d94606b4b5513ee4
* another dependency still requiredCaolán McNamara2015-02-161-0/+2
| | | | Change-Id: I0f0ce96ee8209f711739952422d642a012252d1f
* set unotools mk to require boostCaolán McNamara2015-02-161-0/+2
| | | | Change-Id: I45857f694bb1906c2169058b9b09333a472da3fc
* boost::noncopyable->'= delete'Caolán McNamara2015-02-168-17/+20
| | | | Change-Id: If0f898a1e912fcd2095d8ba88b2b8046596e16ea
* boost::foo_ptr->std::foo_ptrCaolán McNamara2015-02-164-20/+19
| | | | Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
* unusedcode.easyJulien Nabet2015-02-151-35/+0
| | | | | | | Remove getZoneOffsetInMillis, getDSTOffsetInMillis + getCombinedOffsetInMillis Change-Id: I7bf5b3e9e2e84c2f0add263083d6e7e9057db8ac
* Fold INetRFC822Message into INetMIMEMessageStephan Bergmann2015-02-111-1/+1
| | | | Change-Id: I9b02b8f758c3f0613a7b017d8822fc16ebfc9dec
* loplugin:deletedspecialStephan Bergmann2015-02-073-4/+4
| | | | Change-Id: I53a088b74b95230aa3842bcac0bb1fd09e39cc12
* fdo#75757: Remove inheritance from std::vectorMatthew Pottage2015-02-062-4/+3
| | | | | | | | | | | | | | | | | | | Deprecated comphelper/sequenceasvector.hxx. Rewritten code using it. Using instead the functions containerToSequence and sequenceToContainer, found in include/comphelper/sequence.hxx. One class that inherits from it (in framework/inc/stdtypes.h), and the code using that has been left. Signed-off-by: Michael Stahl <mstahl@redhat.com> Conflicts: writerfilter/source/dmapper/DomainMapper.cxx writerfilter/source/dmapper/TblStylePrHandler.hxx writerfilter/source/dmapper/WrapPolygonHandler.hxx Change-Id: Ice61c94ffb052e389281aebb7cdf185134221061
* shared_ptr<T>(new T(args)) -> make_shared<T>(args)Caolán McNamara2015-02-061-1/+1
| | | | | | and boost:make_shared->std::make_shared Change-Id: Ic1e187c52c856a7b27817967b2caa8920f23a98d
* Updated all precompiled headers.Ashod Nakashian2015-02-051-2/+3
| | | | | | | | Change-Id: I955c8ac4dbe002d23531df7eb10fb4444d6b5157 Reviewed-on: https://gerrit.libreoffice.org/14292 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* fix tdf#88855: GetEnglishSearchFontName() returns incorrect value.Tomofumi Yagi2015-01-301-2/+2
| | | | | | | | | | | | | | | | | | | GetEnglishSearchFontName() returns incorrect value for specific localized font name as parameter(ex."HGS Gothic M"). Because, the conversion table "aImplLocalizedNamesList[]" is wrong. http://opengrok.libreoffice.org/xref/core/unotools/source/misc/fontdefs.cxx#181 This causes the assertion from vcl/source/font/PhysicalFontFamily.cxx(line:297), and more problems, probably. This patch fixes two entries in the conversion table. One fixes the assertion, another fixes typo. Change-Id: I3141bbbb7956608cc59f20ad42c76ef97a42189d Reviewed-on: https://gerrit.libreoffice.org/14244 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Use vector::dataStephan Bergmann2015-01-281-2/+1
| | | | | | | ...in some places where it is obvious that it does not hurt that for an empty vector the obtained pointer is not necessarily a nullptr. Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51
* -Werror,-Wunused-const-variableStephan Bergmann2015-01-261-2/+0
| | | | Change-Id: I526feb77b85607438dd9816ad02e06a2c7720fc8
* use XCalendar4 local date/time in CalendarWrapper, tdf#63230Eike Rathke2015-01-261-41/+2
| | | | | | | | | | | | Replaces the three-step timezone+DST correction. Hopefully ICU does take these into account, but this needs to be double-rechecked and if necessary correction be implemented at XCalendar4::setLocalDateTime() See also http://userguide.icu-project.org/datetime/calendar#TOC-Ambiguous-Wall-Clock-Time-Resolution Interpreting as standard time for non-existing times sounds like what we need and covers the dreaded "00:00-01:00 doesn't exist" case that decremented the day and was fixed here with the now removed workaround.
* implement css::i18n::XCalendar4 and LocaleCalendar2 service, tdf#63230Eike Rathke2015-01-261-2/+2
| | | | | Implementation only, new local date/time routines not used yet from the outside in this step.
* don't strip font names of apparent script suffixes anymoreCaolán McNamara2015-01-262-6/+3
| | | | | | | | | | | | | | | e.g. "CM Roman CE" should be left alone. bump font cache id to invalidate old cached lists I think this practice stems from Window 3.1/Word 95 where the encoding was included in the font name http://www.webcenter.ru/~kazarn/eng/fonts_ttf.htm#charsettbl Microsoft Office still generates RTF files with weird-ass Win 3.1 style fontnames but any actual existing fonts that happen to have names that fall into that pattern should be left alone now. Change-Id: Ibb704048d63b33ce510d6b1076700c6e94a0af2a
* followup code removal after changing virtual methods to non-virtualNoel Grandin2015-01-261-8/+0
| | | | | | | | | | This cleanups up indentation and removes dead classes. This is a followup patch to commit 272b1dd55797aacf511fb4342b0054e3697243f6 "new loplugin: change virtual methods to non-virtual" Change-Id: I1c2139589cf8cb23bb9808defe22c51039d38de1
* new loplugin: change virtual methods to non-virtualNoel Grandin2015-01-262-22/+6
| | | | | | | | | | Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
* Typo: syncro->synchroJulien Nabet2015-01-241-1/+1
| | | | Change-Id: I0a377f3686e0f8d8f576aacbee49a392b039d3a5
* simplify Date/Time/DateTime conversion codeNoel Grandin2015-01-131-3/+1
| | | | | | | | | | | add constructors to Date/DateTime/Time, that take the css::util counterparts, to simplify code converting between these type Change-Id: I4b03da02c63f65b6ec18cb4d6ecc3859bdef1ff7 Reviewed-on: https://gerrit.libreoffice.org/13855 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com>
* override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl2015-01-094-4/+4
| | | | Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
* fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin2015-01-073-4/+4
| | | | Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
* java: remove dead codeNoel Grandin2015-01-052-13/+0
| | | | | | found by UCDetector Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
* cppcheck: Possible inefficient checking for <var> emptinessJulien Nabet2015-01-041-1/+1
| | | | Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c
* can't have an unordered_map of const OUStrings with gcc 4.8.2Caolán McNamara2015-01-021-1/+1
| | | | Change-Id: I2527088fec51e597c406077e459969359a0ab28e
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-0210-24/+23
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* Build fix for gcc 4.7.Kohei Yoshida2014-12-183-11/+11
| | | | Change-Id: I9b971928fa2737d21c225406bf2a86c088be5b9c
* unotools: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-1811-85/+82
| | | | Change-Id: I9762f913080b4bad0d9cd3d1c1b42b333b08f27e