summaryrefslogtreecommitdiff
path: root/svl
AgeCommit message (Collapse)AuthorFilesLines
2013-04-24fixed a mess of out of bounds string accessesEike Rathke1-21/+40
(cherry picked from commit 5cd4300f7ffc24d6bc0ed5704f37a04852fd322b) Conflicts: svl/source/numbers/zformat.cxx Change-Id: I800840e1b3c0d97a049b3ceba0ec244365dc8e6b Reviewed-on: https://gerrit.libreoffice.org/3563 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Andras Timar <atimar@suse.com> Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2013-04-05resolved fdo#63161 out of bounds string accessEike Rathke1-0/+4
Introduced with c7709b460394283fd5b1d2779b6af3585f80a991 String to OUString where previous String::GetChar() handled this. Change-Id: I9253df1af7498e2d7a8ea8077ec6b369697ad44e (cherry picked from commit d526e48912deeb44061ff570d715c31ca45f77b8) Reviewed-on: https://gerrit.libreoffice.org/3211 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-03-27fdo#61429: Stylist: save selection of "Hierarchical" entryMichael Stahl1-0/+1
This is unfortunately rather ugly because that one is "very special". (cherry picked from commit 44dd8b838b8dfa74b895a870a68200cf4f3574e0) Conflicts: sfx2/source/dialog/templdlg.cxx Change-Id: Ie2bc9ce2690fbc742b4510e453ca1ef310614256 Reviewed-on: https://gerrit.libreoffice.org/3056 Reviewed-by: Christoph Brill <egore911@gmail.com> Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-03-18make empty subformat code work againEike Rathke1-2/+2
Broken with 842c95519a35174238c728784662f854031993d7 were things like ;;;@ or _;0 Change-Id: Idf99378beedacf97a0376d1cd11ee78d3f7c9aff Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2013-03-13resolved fdo#62278 test for LanguageTag equality resolving system localeEike Rathke1-1/+1
added LanguageTag::equals(), fdo#62278 related (cherry picked from commit fb26196ce64979ab6dc6c82c0fbdeedb126a3433) Conflicts: i18npool/inc/i18npool/languagetag.hxx i18npool/source/languagetag/languagetag.cxx resolved fdo#62278 test for LanguageTag equality resolving system locale (cherry picked from commit dde0dcd553b676abcb41eaf3f9f1bf797907e22f) Change-Id: I7c6e91518b3afd7a42d21bcae41283b0e00b833a Reviewed-on: https://gerrit.libreoffice.org/2707 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-13Resolves: #i119943 Underline can not work with ";" in format codeWang Lei1-1/+17
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 (cherry picked from commit c26bae0b168acaa5702be43a9748457f5d0eafa0) Reviewed-on: https://gerrit.libreoffice.org/2694 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-01-21resolve fdo#59240 - FORMATTING: Thai number shown as Arabic numeralsJoren De Cuyper1-1/+1
Change-Id: Ia0d1089d90a6b2196d45da63afbb7d8fa80e4658 Reviewed-on: https://gerrit.libreoffice.org/1770 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
2012-12-19resolved fdo#54344 let date pattern match overrule incomplete format matchEike Rathke1-1/+11
Change-Id: I69a0c62ab5b4da036a77bd6c3b2baec0af7c8339 (cherry picked from commit 8041285b369e58df477b5e92df4bde68e96056a2)
2012-12-19resolved fdo#54336 accept abbreviated combined date/time inputEike Rathke2-5/+72
Abbreviated combined date/time input was not accepted if the date acceptance pattern ended in a separator, like "D.M." with input "D.M. hh:mm". Additionally check that for "D.M. #" input against a "D.M." pattern the '#' (any number) is not interpreted as year if the input so far was recognized to possibly match a date without time, in which case the count of numbers in input must match the count of numbers in pattern and input here is not a date. Change-Id: I3b123b872fbab9dab58afe3b6754b8ad70a61356 (cherry picked from commit f2851a270eb9c617fce9bfdde5c8f2428ced7014)
2012-12-18resolved fdo#58179 ImpSvNumberformatScan::RemoveQuotes: both ...Eike Rathke1-1/+1
Bug crept in with String to OUString change of 1599fc9e54a7c4855bee1c30d92dd1f5be05f530 Change-Id: I25a6b40de10785bc861fa2b353edada0e4a623c9 (cherry picked from commit 91d3c0ce2b808e917ee45f18f2c40a58329d2c19)
2012-12-13Bad compareToIgnoreAsciiCaseAscii result comparison caused endless loopCédric Bosdonnat1-12/+7
Change-Id: I6ef5aa87623a0d61942183b7eb888fc0f9cf6af0
2012-12-06OUStringBuffer::remove( int ) -> truncate( int )Luboš Luňák1-7/+7
Although this may seem consistent with remove( int, int ), it is in fact rather misleading API. The biggest offender is most probably buffer.remove( 'a' ) , which definitely does not do what it suggests to do. Change-Id: I287619cd4b953228b93fa68fb381d66c344c3865 Reviewed-on: https://gerrit.libreoffice.org/1256 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-12-05Bye bye ODMATor Lillqvist1-1/+0
SUSE has no interest in it any longer, and I doubt anybody else has either.
2012-12-04more explicit ctorsDavid Tardon11-20/+20
Change-Id: If91343890d9ed29ff2887e47c7c0a332baa5a8e1
2012-12-04SwXStyle::getPropertyDefaults: handle non-itemset based properties:Michael Stahl1-1/+2
These do not occur in ItemSets and thus cause fxItemPropertySet::getPropertyValue to throw. This caused sw_unoapi test to fail in sw.CharacterStyle on the property "Hidden" that was added in d9ef61fb546af443736057557552e3a95c569c11. Change-Id: I5b7b5b366120470a0f7d64b9b109b5c84c52b515
2012-11-30Fixed style iterators filters to show only hidden styles when requiredCédric Bosdonnat1-6/+10
Change-Id: I60d4dff4fc6eabc3882361457e19ae66f148d114
2012-11-30Styles & Formatting: added SFXSTYLEBIT_ALL_VISIBLE and show hidden stylesCédric Bosdonnat2-9/+12
Change-Id: Ie74ec3c15ba270afd0a6864bd5824a5bc0e3ea8b
2012-11-30Allow to hide styles in the "Styles & Formating" dialogCédric Bosdonnat3-13/+30
In its current state, the feature only hides the styles. Things to sort out are: + Add some automatic filter to show hidden styles + Make the visibility persist in the file format Change-Id: I5904f41bb567add7b6bf501c6c5297f9f149a915
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens8-21/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30fdo#46808, use service constructor for i18n::CollatorNoel Grandin2-4/+2
Change-Id: I15a360723e335345aad09e73fcb0f6815ed9e0d4
2012-11-28fix misuse of toAscii(Lower|Upper)CaseNorbert Thiebaud1-8/+5
OUString are immutable so these api, contrary to what happen with String, do not change the object but create a new copy Change-Id: Ib48a8d11e485d4b8556f4427880aaaca32d4e82c
2012-11-28fix windows miss in svl OUString workNorbert Thiebaud1-2/+3
Change-Id: Iff20613231058db92d65cfecc5e4b16dd5395589
2012-11-27remove legacy String svl's Put*Entry family of function and convert usersNorbert Thiebaud2-59/+0
Change-Id: Iebf4017ce4c2c48389716eac1bbf7f386ac7a296
2012-11-27String=>OUString in svl's inettype and fall-outNorbert Thiebaud2-179/+153
Change-Id: I7d64d117183738b86d1869ed629d73675de9c679
2012-11-27String->OUString in svl urifilter and restrictedpathsNorbert Thiebaud5-359/+342
Change-Id: If11b8752c3aa21554c3ee06de07d63639695e284
2012-11-27String => OUString in svl numfmuno + clean-up legacy of GetPreviewStringNorbert Thiebaud3-252/+203
Change-Id: I20f080b76b864208f0706bef9e87cb299f3845aa
2012-11-27String => OUString conversion of svl's PasswordHelperNorbert Thiebaud3-18/+15
Change-Id: I7e107c37c43a8c9d868b579a2c389de558594a77
2012-11-27String=>OUString of svl's urihelperNorbert Thiebaud3-121/+100
Change-Id: Ib4d9175ce4661140a147962b8f45be40f800d85a
2012-11-27String => OUString for svl's zforfindNorbert Thiebaud2-281/+307
Change-Id: Ifcdca197bd2f99a9dddacd82e77ec07d18519a23
2012-11-27cosmetic prep work on zforfindNorbert Thiebaud4-1307/+1707
Change-Id: I3c445a20e2c8d17c4fc68360dd896d902be46e56
2012-11-27another round of String -> OUString conversion in zforlistNorbert Thiebaud4-114/+132
Change-Id: I9979927af016f0b782ae9481a6207649f6455558
2012-11-27more wrapper in zforlist to isolate String/OUString issuesNorbert Thiebaud2-19/+49
Change-Id: I53e5e60f59739bdcedb6e7b13006850e0e5b22c0
2012-11-27use const in SvNumberformat::GetOutputString when possibleNorbert Thiebaud2-3/+3
Change-Id: I364b1ac36f999f4309b3aab2ef0c55ff2147ef43
2012-11-27make GetIndexPuttingAndConverting String/OUString agnostic for nowNorbert Thiebaud2-46/+99
plus convert GetKeyWord() and GetStandardName and some more zforlist implementation conversion Change-Id: I64abe35a4875d84518a1904ef3121269b79a6df0
2012-11-27String -> OUString prep clean-upNorbert Thiebaud1-493/+619
Change-Id: Iacd7a20a49c40b6f4db07a14a17cc6301eeb086d
2012-11-27convert the last SvNumberformat::GetOutputString and users to OUStringNorbert Thiebaud3-19/+20
Change-Id: I9766872069ef5c2ee740dcbd8ac288aa8063a752
2012-11-27migrate user of InsertBlanks to OUStringNorbert Thiebaud2-20/+12
Change-Id: Idc7379daf25a226622e5599124df2ab68b98902a
2012-11-27clean-up few more String out of zformat internalsNorbert Thiebaud2-44/+53
Change-Id: I83f7794a3cc413c7720ad605a22c00efe966e1a5
2012-11-27no need for String version of ImpGetOutputStandardNorbert Thiebaud2-8/+0
Change-Id: Ie498b7603cd493b00698c2fa1858ba9a77832ea3
2012-11-27migrating SvNumberformat::GetOutputString implementation to OUStringBufferNorbert Thiebaud2-72/+70
Change-Id: Ib6c6d1a31b037b6e687b063257a9dc813ff3be91
2012-11-27support OUStringBuffer for ImpGetOutputStandardNorbert Thiebaud2-9/+17
Change-Id: I03aa6278ee3cbbb85ffa9cbe5437493dbc7e463b
2012-11-27remove String usage from SvNumberformat::SaveNorbert Thiebaud2-12/+12
Change-Id: I07d379c9a38a60b5950ff4e2970e46f18cac2de2
2012-11-27convert first and replace afterNorbert Thiebaud1-14/+4
the original code was converting one character at the time from whatever codepage of the input stream to unicode just to be able to substitute the 'euro' character that apparently is somehow not converted properly (why this is hacked here rather than fixed in the code page converted is another story) the change consist in translating the 'native' euro character in whatever the converter think it should be, then converting the whole string at once to Unicode and finally replace the 'bad' euro character representation with the the 'good' one. This turn the allocation pattern for O(N) to O(1) where N is the length of the string. Change-Id: Ie7ffeb813346953f539cf6dc34b43f890d8b970f
2012-11-27no need for String in SvNumberformat::ConvertLanguage anymoreNorbert Thiebaud1-2/+2
Change-Id: Ib849ffb115f7501d90dd56356c56c90edf9fd5e0
2012-11-27remove String use in SvNumberformat::LoadNorbert Thiebaud1-8/+22
Change-Id: Ie7cb50605d9e1e1a21d50a962bdc9b9880c8d06a
2012-11-27convert ImpGet[Date|Time|DateTime]Output to OUStringBufferNorbert Thiebaud2-148/+162
Change-Id: Ie4ab10b81897ac32228dc1267b3da00250ff82ea
2012-11-27convert ImpGet[Fraction|Scientific|Number]Output to OUStringBufferNorbert Thiebaud2-100/+120
Change-Id: Ia865ef3859bb120578e2d92a866ddadbeaa943df
2012-11-27migrate ImpNumberFill implementation to OUStringBufferNorbert Thiebaud1-17/+23
Change-Id: Ideb89b8ced5c3ac2b07a7e270b90e92beef02aad
2012-11-27migrate ImpNumberFillWithThousand implementation to OUString[Buffer]Norbert Thiebaud2-35/+40
Change-Id: Ife0fbb28ba2686a9a251757e109f2ac451296192
2012-11-27spin Scientific formatting in its own imp functionNorbert Thiebaud2-98/+120
Change-Id: I8d9e0d01642c04ca7742b68e8926b3966418f841