summaryrefslogtreecommitdiff
path: root/svl/source
AgeCommit message (Collapse)Author
2013-12-10editeng: fix more 32-bit Time breakageMichael Stahl
SfxDateTimeItem and SvxExtTimeField need to use 64-bit integer to store Time as well. These classes also have binary serialization Load()/Save() methods but they are unlikely to be used in a persistent way, just for the clipboard. The problem is easy to reproduce in Impress: Insert->Field->Time(fixed) (regression from 9830fd36dbdb72c79703b0c61efc027fba793c5a) Change-Id: I5946c5b94dd5a509805b6dc40461bbd910caffc4 (cherry picked from commit 7b9c61c7f20a679c5316a288c2ec2ffbf04b4200) Reviewed-on: https://gerrit.libreoffice.org/7021 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-23fdo#54686 Treat hard blank as soft blank in numberLaurent Balland-Poirier
AutoCorrect option "Add non-breaking space in French..." insert non-breaking space (hard blank) and avoid recognition of percent number and time number. This patch treats hard blanks as soft blank in number format recognition Rev.#1: change #define to const variable. Same change in svxaccor Rev.#2: improvements Reviewed-on: https://gerrit.libreoffice.org/6015 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 2f4d7eacabd62db35777682bcca353e142e024bf) Signed-off-by: Eike Rathke <erack@redhat.com> Conflicts: editeng/source/misc/svxacorr.cxx svl/source/numbers/zforfind.cxx Change-Id: I30c2c36778cb53a0238a0829043dad4d709f97d2
2013-08-13fdo#66071: SfxUndoManager: allow Writer to set modified status properlyMichael Stahl
If Undo actions are removed due to max undo limit, invalidate the current empty mark so it is different from sw::UndoManager::m_UndoSaveMark. Change-Id: I20415f42a77b67e9935c75b12df675ba1c5ef5ec (cherry picked from commit 1ff7dfa533b473d721c372ae801a46ecd513b32f) Reviewed-on: https://gerrit.libreoffice.org/5379 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-07-15i#108348 API CHANGE: add IsUTC to css.util.DateTime etc.Michael Stahl
Add IsUTC member to: com.sun.star.util.DateTime com.sun.star.util.DateTimeRange com.sun.star.util.Time Add new stucts with explicit time zones: com.sun.star.util.DateTimeWithTimezone com.sun.star.util.DateWithTimezone com.sun.star.util.TimeWithTimezone Adapt the sax::Converter to read/write timezones, and fix the unit test. Everything else just uses default (no time zone), this commit is just to fix the API. STRUCT: /UCR/com/sun/star/util/DateTime nFields1 = 7 != nFields2 = 8 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/DateTimeRange nFields1 = 14 != nFields2 = 15 Registry2 contains 1 more fields STRUCT: /UCR/com/sun/star/util/Time nFields1 = 4 != nFields2 = 5 Registry2 contains 1 more fields Conflicts: sc/source/filter/oox/unitconverter.cxx Reviewed-on: https://gerrit.libreoffice.org/4833 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 652ccbdf3111766fadc379a8cf4650b744e1e19c) i#108348: fix TimeZone -> Timezone in struct names (cherry picked from commit 604aae1fd240254fe851d93dc35b5408bd13296c) Signed-off-by: Michael Stahl <mstahl@redhat.com> Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu> Signed-off-by: Michael Meeks <michael.meeks@suse.com> Conflicts: forms/source/xforms/convert.cxx offapi/type_reference/offapi.rdb reportdesign/source/core/sdr/RptObject.cxx sc/source/filter/oox/unitconverter.cxx
2013-07-03SvStream: remove the error prone operator<</>>(sal_Int64)Michael Stahl
As the recent regression after merging AOO patch adding code serializing "long" variables has shown, this overload (which was added in 7b2a0e541567be9750dfc7d98374555967da3470) is a bad idea. In a unxlngx build, nm finds uses of the symbols _ZN8SvStreamrsERl and _ZN8SvStreamlsEl in these files: - sbxvalue.cxx: this appears to be a legitimate use with sal_Int64 - dateitem.cxx: this was accidentally changed by commit 9830fd36dbdb72c79703b0c61efc027fba793c5a - atrfrm.cxx: this was added for Table Autoformat enhancement in 7e8c0bd73ee59ff3041e55268c77203373962e51, which is after the sal_Int64 operators were added, so the file format is now platform dependent Change-Id: I78352b5429b53612c4831cdb81b587b5de5180a9 (cherry picked from commit 3835dee3c777bf10693903cb0866d22fab3794ea) Reviewed-on: https://gerrit.libreoffice.org/4685 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-15use proper offset for additional locale data formats, fdo#64947 relatedEike Rathke
Old number formats had predefined formats from 0..49, locale data could define additional formats from index 50 on. Internal (fractional) formats were added to the number formatter, shifting the number of predefined entries NF_INDEX_TABLE_ENTRIES by two that was also used as an offset to determine whether a format needed to be added additionally. As a consequece, formats defined with index values 50 and 51 in locale data were ignored and not available in the dialog. Introduced a new enum constant NF_INDEX_TABLE_LOCALE_DATA_DEFAULTS to use as the old offset value for not having to change all locale data definitions everytime an internally generated format is added. Change-Id: I94bdaabf360f7b9c253b1e3f5b73087f0c45fb44 (cherry picked from commit e7d73b42bd71aaab862c3e519348507a84f74754)
2013-05-14unused svl/source/items/cstitem.src + hrc cleanupAndras Timar
Change-Id: I3db54045dc5be13dd7c72076c96a7e3f3b7b30ea
2013-05-14Remove obsolete RestrictedPath env var supportStephan Bergmann
Change-Id: Ia4ea7d60d7b69c863c1e891887060265e73e1cb6
2013-05-14typo fix: s/inavlid/invalid/Andras Timar
Change-Id: If75cad038f35033be6dcad6f051673bd795accf3
2013-05-09fdo#63154: Remove _CL and _LF from solar.hMarcos Paulo de Souza
And use RTL_CHAR_{CR,LF} from rtl/string.h Conflicts: vcl/source/app/dbggui.cxx Change-Id: I05b0325006845e48eb5483485a9042aa7b0cd22a Reviewed-on: https://gerrit.libreoffice.org/3740 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
2013-05-07drop commented-out codeTakeshi Abe
Change-Id: I7384a4fd82c8807dfaf9049306b65fe3ef5cab42
2013-04-30i#120015# Let SdrUndoAttrObj remember a reference to the used style to surviveArmin Le Grand
removal of the style by UI (which creates no undo actions). Re-add the style when undoing if needed. Change-Id: I6069a1cb42dfaeb0dd35fdc15687fd307f2b641e
2013-04-27Bin ugly (ab)use of preprocessor in headersTor Lillqvist
The time when it made sense to use "clever" #ifdefs to, for performance or compiler reasons, conditionally bypass private parts of a class declaration passed a decade or longer ago. Still more of this in sw and sc. People working on those modules might want to do it too, or not. Change-Id: I1053139ca5e5e2631f7b22d99d3bada54fc337be Reviewed-on: https://gerrit.libreoffice.org/3627 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-26sal_Bool to boolTakeshi Abe
Change-Id: I7dcb2dcef78c67d90ff2dea58c1374bd17ac58af
2013-04-23eliminated another unnecessary rString.toString()Eike Rathke
Change-Id: Ic2fad1120876160f741056937825ab564e6d5f4e
2013-04-22fixed a mess of out of bounds string accessesEike Rathke
Change-Id: I800840e1b3c0d97a049b3ceba0ec244365dc8e6b
2013-04-20fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza
Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-19OUString::startsWith() is not equivalent to String::Match()Eike Rathke
String::Match() wasn't quite right at that place either, but.. Change-Id: I1aed325340f5f36973ef2da8fd48af3283c0b79b
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-12spurious warning C4701: potentially uninitialized local variableMichael Stahl
Change-Id: I2e99cbe9db6d5911f0c2ec61229cd47e07e99cdf
2013-04-10Resolves: #i120077# Memory leak fixed in ScXMLFontAutoStylePool_ImplArmin Le Grand
also checked and fixed memory leaks caused by not deleting SfxStyleSheetIterator instances. Found by: Chao Huang Patch by: Chao Huang Review by: alg (cherry picked from commit aee8221b3fbe64d8e88aa3a1b630214807cd86f0) Conflicts: sc/source/core/data/stlsheet.cxx sc/source/filter/xml/xmlfonte.cxx sfx2/source/doc/objcont.cxx svl/source/items/style.cxx sw/source/core/unocore/unostyle.cxx Resolves: #120077# ALG: Reverted r1354011, adapted all usages of SfxStyleSheetIterator and CreateIterator to use boost::shared_ptr (cherry picked from commit ec1819f218b94bed1556653e1b2b816a65da61ef) Conflicts: sc/source/core/data/stlsheet.cxx sc/source/filter/xml/xmlfonte.cxx sfx2/source/doc/objcont.cxx svl/inc/svl/style.hxx svl/source/items/style.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unostyle.cxx 26937d4d65562b14de0aea59a7b01cc4334f73c1 Change-Id: If99bf3ee399292ec269d68b36ee78ed63f033215
2013-04-10fdo#62096: Replaced some OUString 'compareTo' with '=='Prashant Pandey
Change-Id: I1d095cf5640595789f4ae99f1b0679be88b0baa9
2013-04-07Fix Array index "i" is used before limits checkJulien Nabet
Change-Id: Ie7a4b836db7391f4e625bfeaeab55c2ed4304604
2013-04-07remove needless forward rtl::OUString declarationsLuboš Luňák
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05new module i18nlangtagEike Rathke
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-04-05resolved fdo#63161 out of bounds string accessEike Rathke
Introduced with c7709b460394283fd5b1d2779b6af3585f80a991 String to OUString where previous String::GetChar() handled this. Change-Id: I9253df1af7498e2d7a8ea8077ec6b369697ad44e
2013-04-03Asserting rtl::O[U]StringBuffer::operator [] preconditionsStephan Bergmann
...and fixing two call-sites. Change-Id: I8ed8cb189bd5034130b49b2f57156568e6b24716
2013-04-02Revert "Revert "reduce some uglyness""Thomas Arnhold
The header guard seems to solve the problem. This reverts commit df8c41cceeca27ae49e9fa6b5cd64c65c8feb218. Change-Id: I27869be9c70e79a366a547ce061e71a3743f87da Reviewed-on: https://gerrit.libreoffice.org/3171 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-04-01Remove RTL_CONSTASCII_USTRINGPARAM in smoketest/sot/svl/toolkit/vbahelperChr. Rossmanith
Change-Id: I0816631a1d0c68dcef9c640c91d00ac9942ded28
2013-03-29ResMgr with LanguageTagEike Rathke
Change-Id: Ie5ce9157a7ea59db7b0509fbaec61d07f8f9edf0
2013-03-27-Werror=unused-macrosStephan Bergmann
Change-Id: I377711500e6308e8aa273f016f8a2a9dcbaab760
2013-03-26Cleanup comments and some translations in style.cxxJoren De Cuyper
Change-Id: I18f0a3d9e9c97164691233e3c997f978d339e401 Reviewed-on: https://gerrit.libreoffice.org/3062 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-23"atomar" is not a wordTor Lillqvist
SCNR Change-Id: I3aaa8d9b37423d44fe11f161cc21c0a77b466353
2013-03-19Simplify equalsIgnoreAsciiCaseAscii[L] callsStephan Bergmann
Change-Id: If5201bd772aed245e8f7f8b900d76ffe4ca57b49
2013-03-18renamed method, it determines if symbol combinesEike Rathke
Change-Id: I60fec73900b861363c02ec51ecbf9dcfd7edb167
2013-03-18use switch instead of multiple ifsEike Rathke
Change-Id: Ib928f7e80aa185119c37b400e8a3e002619ffd41
2013-03-18make empty subformat code work againEike Rathke
Broken with 842c95519a35174238c728784662f854031993d7 were things like ;;;@ or _;0 Change-Id: Idf99378beedacf97a0376d1cd11ee78d3f7c9aff
2013-03-18avoid Wundef in cases where the usage seems otherwise okLuboš Luňák
Change-Id: Iabccc31c59cec32235661f5225f45bb13f76a68f
2013-03-18janitorial: typo in commentLionel Elie Mamane
Change-Id: I57ff7cf21ab3d6bc7ded7fadd26475bbbe2cc2f5
2013-03-15i#120055 Prevent crash caused by un-disposed secondary item pool.Andre Fischer
Conflicts: svl/source/items/itempool.cxx Adapted to new pImp implementation. (erAck) Change-Id: I106f0dc41bc8f41d394d680fe89a8fee6a2f508a
2013-03-15rename methods to something meaningfulEike Rathke
Change-Id: I92f5b3cb637b7cc6152d118505b69e762047f78b
2013-03-15simplify logicEike Rathke
Change-Id: I60726b445712cc15f8453812ce6313167314a8df
2013-03-15i#119964 - Number displays different from MS with the same format codeWang Lei
Patch by: Zhang Lu Review by: Wang Lei Conflicts: svl/source/numbers/zformat.cxx Change-Id: Id1ce742dc829a7aa8056e3be50e315ea4499ecc6
2013-03-13resolved fdo#62278 test for LanguageTag equality resolving system localeEike Rathke
Change-Id: Ic50c6d02a3feaf72060defa50766b40b5dec1cf7
2013-03-13Resolves: #i119943 Underline can not work with ";" in format codeWang Lei
the semicolon will always be regarded as separator Patch by: Zhang Lu Review by: Wang Lei(cherry picked from commit 953b282dbb2552f89ec25455ec838f752abd6a2d) Conflicts: svl/source/numbers/zformat.cxx Resolves: #i119943 Underline can not work with ";" in format code the semicolon will always be regarded as separator Patch by: Zhang Lu Review by: Wang Lei(cherry picked from commit 423e8bc4e684a0790765aa2898bc2843538bc114) Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch> Conflicts: svl/source/numbers/zformat.cxx Change-Id: I1112739fb27939a66d22f198ec9c3a34f383bd9c
2013-03-13fdo#60724: Fix spelling avaliable -> available.Steven Meyer
2013-03-12Revert "reduce some uglyness"Thomas Arnhold
MSVC doesn't like this. This reverts commit 84dc8e5b5504e5f54fba695d4338d022681d85cf.
2013-03-11svl: fix buildThomas Arnhold
some more conversions from 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 Change-Id: I95e4fdf190e1f92501f3ec6ea09017e0c7bffe4f
2013-03-11reduce some uglyness IIThomas Arnhold
NUMTYPE is never defined outside this header. So this complexity can go. There is no need to deliver nranges.hxx as there is only itemset.cxx using it. NUMTYPE -> sal_uInt16 NUMTYPE_ARG -> int SfxNumRanges -> SfxUShortRanges Change-Id: I27027f9ec83ebf456bb545763954884d5de227b3