summaryrefslogtreecommitdiff
path: root/unotools
AgeCommit message (Collapse)Author
2015-04-07convert SvtModuleOptions::EModule to scoped enumNoel Grandin
Change-Id: I9665fc003cb3a44f4db857b24584fa3a70487259
2015-04-07convert SvtModuleOptions::EFactory to enum classNoel Grandin
and fix issues in iterating through o3tl::enumarray Change-Id: Ia59ef9be44d8c92c2e406fa71aa92269578e26e3
2015-04-04Typo: creat->createJulien Nabet
Change-Id: I5e57e6d506504933096f4c8e371b0ddc93c04cbd
2015-04-03Fix "unknown factory" log, declare and use FACTORYNAME_BASICJulien Nabet
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>
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: I3ae555fd9f0dc3c11ea301ee1cb2c799fbec820d
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: I6b0974024e61e02639106d4ca3abcdcdb8e6fa87
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: I9e12cea5aba3b78e1f6ed284aedb7531d107edbf
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I8c40cbe7c6928d89eb280344436a4b68a4884bd1
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: I72a618a0deca795b87ec009105252f4594ecba90
2015-03-22introduce ODFSaneDefaultVersion; ODFDefaultVersion is a mess, mess, mess..Eike Rathke
A running ODFVER_LATEST is fine for configuration purposes, but not for determining how to store a feature. Change-Id: I8ebc13f900f62f8c36d2cdc50a18855fc6693527
2015-03-21Char highlight: option about export LO character background to MSO formatsZolnai Tamás
Export as highlighting or shading. Highlighting is the default. Change-Id: Ib2a38e4cd0d49317288bb565383b690d4222c8ed
2015-03-19loplugin:constantfunction: unotoolsNoel Grandin
Change-Id: Icf543973dc9edde270016c8af7e4c08c57eff650
2015-03-11do not call virtual Commit() from dtors of utl::ConfigItem subclassesMichael Stahl
~SvtAppFilterOptions_Impl() demonstrates that this is a bad idea, by not invoking its subclasses' ImplCommit() but its own. Change-Id: Ic675e9cd3be1494c740a4f289be3bdbf0d1a122b
2015-03-11utl::ConfigItem::Commit() should call ClearModified()Michael Stahl
Rename the virtual function, and add a new non-virtual Commit() to do that. Change-Id: I09421df781ba965d6ff638b46cd8214fb3a00022
2015-03-09V801: Decreased performanceCaolán McNamara
Change-Id: Id8cd45d2844c121f63684734ab3546c24a1aab32
2015-02-18TyposJulien Nabet
Change-Id: I845a85e1aad4a0708f2b43f7d94606b4b5513ee4
2015-02-16another dependency still requiredCaolán McNamara
Change-Id: I0f0ce96ee8209f711739952422d642a012252d1f
2015-02-16set unotools mk to require boostCaolán McNamara
Change-Id: I45857f694bb1906c2169058b9b09333a472da3fc
2015-02-16boost::noncopyable->'= delete'Caolán McNamara
Change-Id: If0f898a1e912fcd2095d8ba88b2b8046596e16ea
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
2015-02-15unusedcode.easyJulien Nabet
Remove getZoneOffsetInMillis, getDSTOffsetInMillis + getCombinedOffsetInMillis Change-Id: I7bf5b3e9e2e84c2f0add263083d6e7e9057db8ac
2015-02-11Fold INetRFC822Message into INetMIMEMessageStephan Bergmann
Change-Id: I9b02b8f758c3f0613a7b017d8822fc16ebfc9dec
2015-02-07loplugin:deletedspecialStephan Bergmann
Change-Id: I53a088b74b95230aa3842bcac0bb1fd09e39cc12
2015-02-06fdo#75757: Remove inheritance from std::vectorMatthew Pottage
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
2015-02-06shared_ptr<T>(new T(args)) -> make_shared<T>(args)Caolán McNamara
and boost:make_shared->std::make_shared Change-Id: Ic1e187c52c856a7b27817967b2caa8920f23a98d
2015-02-05Updated all precompiled headers.Ashod Nakashian
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>
2015-01-30fix tdf#88855: GetEnglishSearchFontName() returns incorrect value.Tomofumi Yagi
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>
2015-01-28Use vector::dataStephan Bergmann
...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
2015-01-26-Werror,-Wunused-const-variableStephan Bergmann
Change-Id: I526feb77b85607438dd9816ad02e06a2c7720fc8
2015-01-26use XCalendar4 local date/time in CalendarWrapper, tdf#63230Eike Rathke
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.
2015-01-26implement css::i18n::XCalendar4 and LocaleCalendar2 service, tdf#63230Eike Rathke
Implementation only, new local date/time routines not used yet from the outside in this step.
2015-01-26don't strip font names of apparent script suffixes anymoreCaolán McNamara
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
2015-01-26followup code removal after changing virtual methods to non-virtualNoel Grandin
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
2015-01-26new loplugin: change virtual methods to non-virtualNoel Grandin
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
2015-01-24Typo: syncro->synchroJulien Nabet
Change-Id: I0a377f3686e0f8d8f576aacbee49a392b039d3a5
2015-01-13simplify Date/Time/DateTime conversion codeNoel Grandin
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>
2015-01-09override the overloading of "overload" to decrease cognitive (over-)loadMichael Stahl
Change-Id: I4d0e1de89d0bbdbea23bc5a46bf75ae0ce4e2796
2015-01-07fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-05java: remove dead codeNoel Grandin
found by UCDetector Change-Id: I6b0f49529379072da566e927b86815f173e7a90b
2015-01-04cppcheck: Possible inefficient checking for <var> emptinessJulien Nabet
Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c
2015-01-02can't have an unordered_map of const OUStrings with gcc 4.8.2Caolán McNamara
Change-Id: I2527088fec51e597c406077e459969359a0ab28e
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-12-18Build fix for gcc 4.7.Kohei Yoshida
Change-Id: I9b971928fa2737d21c225406bf2a86c088be5b9c
2014-12-18unotools: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I9762f913080b4bad0d9cd3d1c1b42b333b08f27e
2014-12-17Introduce rtl::OUStringLiteral1Stephan Bergmann
...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f
2014-12-12unotools: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I14d3a3187b8528e3ff9743245b869773c2eb5e98
2014-12-11java: reduce visibility of fields and methodsNoel Grandin
found by PMD Change-Id: Id6737916b68ccbdbdeec5d314747a38410923ac6 Reviewed-on: https://gerrit.libreoffice.org/13409 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-12-10This shall apparently check that aScheme is neither http nor httpsStephan Bergmann
...introduced when https was added in c21b8a1620808865d03239256221a6a86e6316f0 "INTEGRATION: CWS tkr05_SRC680: #31053# HTTPS WebDAV support" Change-Id: Id7c361a078008d66391771f26b9c35999404091f